﻿namespace = tgp_child_personality

#arrogant, compassionate or callous
tgp_child_personality.0002 = {
	type = character_event
	title = tgp_child_personality.0002.t
	desc = {
		first_valid = {
			triggered_desc = {
				trigger = {
					exists = scope:guardian
				}
				desc = tgp_child_personality.0002.guardian
			}
			desc = tgp_child_personality.0002.no_guardian
		}
	}
	theme = education
	override_background = alley_day
	left_portrait = {
		character = root
		animation = shock
	}
	right_portrait = {
		character = scope:poor_fellow
		animation = beg
		outfit_tags = { beggar_rags }
		camera = camera_event_standing_with_horse_right
		hide_info = yes
	}

	trigger = {
		is_available_child_allow_travel = yes
		NAND = {
			OR = {
				has_trait = arrogant
				has_trait = humble
			}
			OR = {
				has_trait = compassionate
				has_trait = callous
				has_trait = sadistic
			}
		}
		is_valid_for_east_asian_events_trigger = yes
	}

	weight_multiplier = {
		base = 1
		modifier = {
			add = 2
			any_relation = {
				type = guardian
				OR = {
					has_trait = arrogant
					has_trait = compassionate
					has_trait = callous
				}
			}
		}
		modifier = {
			add = 2
			NOT = {
				any_relation = {
					type = guardian
				}
			}
			court_owner.court_position:court_tutor_court_position ?= {
				OR = {
					has_trait = arrogant
					has_trait = compassionate
					has_trait = callous
				}
			}
		}
		modifier = {
			add = 5
			culture = {
				has_cultural_parameter = compassionate_trait_more_common
			}
			NOR = {
				has_trait = compassionate
				has_trait = callous
				has_trait = sadistic
			}
		}
	}

	immediate = {
		save_scope_as = child
		if = {
			limit = {
				any_relation = {
					type = guardian
					is_available = yes
				}		
			}
			random_relation = {
				type = guardian
				save_scope_as = guardian
			}
		}
		else = {
			court_owner.court_position:court_tutor_court_position ?= {
				save_scope_as = guardian
			}
		}
		create_character = {
			template = generic_peasant_character
			gender_female_chance = 0
			location = root.location
			save_scope_as = poor_fellow
		}
	}

	option = {
		name = tgp_child_personality.0002.a
		trigger = {
			NOR = {
				has_trait = arrogant
				has_trait = humble
			}
		}
		ai_chance = {
			base = 1
			modifier = {
				add = 4
				guardian_or_court_tutor_trait = { TRAIT = arrogant }
			}
			modifier = {
				add = -0.5
				guardian_or_court_tutor_trait = { TRAIT = humble }
			}
		}
		add_trait = arrogant
		if = {
			limit = {
				is_ai = yes
			}
			guardian_or_court_tutor_trigger_event = { EVENT = tgp_child_personality.1021 }
		}	
	}

	option = {
		name = tgp_child_personality.0002.b
		trigger = {
			NOR = {
				has_trait = callous
				has_trait = compassionate
				has_trait = sadistic	
			}
		}
		ai_chance = {
			base = 1
			modifier = {
				add = 4
				guardian_or_court_tutor_trait = { TRAIT = compassionate }
			}
			modifier = {
				add = -0.5
				guardian_or_court_tutor_2_trait = {
					TRAIT = callous
					TRAIT_2 = sadistic
				}
			}
			modifier = {
				add = 100
				culture = {
					has_cultural_parameter = compassionate_trait_more_common
				}
			}
		}
		add_trait = compassionate
		if = {
			limit = {
				is_ai = yes
			}
			guardian_or_court_tutor_trigger_event = { EVENT = tgp_child_personality.1022 }
		}
	}

	option = {
		name = tgp_child_personality.0002.c
		trigger = {
			NOR = {
				has_trait = callous
				has_trait = compassionate
				has_trait = sadistic
			}
		}
		ai_chance = {
			base = 1
			modifier = {
				add = 4
				guardian_or_court_tutor_2_trait = {
					TRAIT = callous
					TRAIT_2 = sadistic
				}
			}
			modifier = {
				add = -0.5
				guardian_or_court_tutor_trait = { TRAIT = compassionate }
			}
		}
		add_trait = callous
		if = {
			limit = {
				is_ai = yes
			}
			guardian_or_court_tutor_trigger_event = { EVENT = tgp_child_personality.1023 }
		}	
	}
	after = {
		scope:poor_fellow = {
			silent_disappearance_effect = yes
		}
	}
}

#deceitful, honest or humble
tgp_child_personality.0003 = {
	type = character_event
	title = tgp_child_personality.0003.t
	desc = tgp_child_personality.0003.desc
	theme = education
	override_background = feast_event
	left_portrait = {
		character = root
		animation = shame
	}
	right_portrait = {
		character = scope:guardian
		animation = storyteller
	}

	trigger = {
		is_available_child_allow_travel = yes
		OR = {
			any_relation = {
				type = guardian
				is_available = yes
			}
			exists = court_owner.court_position:court_tutor_court_position
			exists = court_owner.court_position:court_guru_court_position
			any_courtier_or_guest = {
				is_adult = yes
				is_available = yes
			}
			AND = {
				host ?= {
					any_courtier_or_guest = {
						is_adult = yes
						is_available = yes
					}
				}
			}
		}
		NAND = {
			OR = {
				has_trait = deceitful
				has_trait = honest
			}
			OR = {
				has_trait = humble
				has_trait = arrogant
			}
		}
		is_valid_for_east_asian_events_trigger = yes
	}

	weight_multiplier = {
		base = 1
		modifier = {
			add = 2
			any_relation = {
				type = guardian
				OR = {
					has_trait = deceitful
					has_trait = honest
					has_trait = humble
				}
			}
		}
		modifier = {
			add = 2
			NOT = {
				any_relation = {
					type = guardian
				}
			}
			court_owner.court_position:court_tutor_court_position ?= {
				OR = {
					has_trait = deceitful
					has_trait = honest
					has_trait = humble
				}
			}
		}
		modifier = {
			add = 5
			culture = {
				has_cultural_parameter = humble_trait_more_common
			}
			NOR = {
				has_trait = humble
				has_trait = arrogant
			}
		}
		modifier = {
			add = 5
			culture = {
				has_cultural_parameter = honest_trait_more_common
			}
			NOR = {
				has_trait = honest
				has_trait = deceitful
			}
		}
	}

	immediate = {
		save_scope_as = child
		get_guardian_scope_effect = yes
	}

	option = {
		name = tgp_child_personality.0003.a
		trigger = {
			NOR = {
				has_trait = deceitful
				has_trait = honest
			}
		}
		ai_chance = {
			base = 1
			modifier = {
				add = 4
				guardian_or_court_tutor_trait = { TRAIT = deceitful }
			}
			modifier = {
				add = -0.5
				guardian_or_court_tutor_trait = { TRAIT = honest }
			}
		}
		add_trait = deceitful
		if = {
			limit = {
				is_ai = yes
			}
			guardian_or_court_tutor_trigger_event = { EVENT = tgp_child_personality.1031 }
		}	
	}

	option = {
		name = tgp_child_personality.0003.b
		trigger = {
			NOR = {
				has_trait = honest
				has_trait = deceitful
			}
		}
		ai_chance = {
			base = 1
			modifier = {
				add = 4
				guardian_or_court_tutor_trait = { TRAIT = honest }
			}
			modifier = {
				add = -0.5
				guardian_or_court_tutor_trait = { TRAIT = deceitful }
			}
			modifier = {
				add = 100
				culture = {
					has_cultural_parameter = honest_trait_more_common
				}
			}
		}
		add_trait = honest
		if = {
			limit = {
				is_ai = yes
			}
			guardian_or_court_tutor_trigger_event = { EVENT = tgp_child_personality.1032 }
		}	
	}

	option = {
		name = tgp_child_personality.0003.c
		trigger = {
			NOR = {
				has_trait = humble
				has_trait = arrogant
			}
		}
		ai_chance = {
			base = 1
			modifier = {
				add = 4
				guardian_or_court_tutor_trait = { TRAIT = humble }
			}
			modifier = {
				add = -0.5
				guardian_or_court_tutor_trait = { TRAIT = arrogant }
			}
			modifier = {
				add = 100
				culture = {
					has_cultural_parameter = humble_trait_more_common
				}
			}
		}
		add_trait = humble
		if = {
			limit = {
				is_ai = yes
			}
			guardian_or_court_tutor_trigger_event = { EVENT = tgp_child_personality.1033 }
		}	
	}
}

#generous, diligent or patient
tgp_child_personality.0004 = {
	type = character_event
	title = tgp_child_personality.0004.t
	desc = tgp_child_personality.0004.desc
	theme = education
	
	left_portrait = {
		character = root
		animation = boredom
	}

	trigger = {
		is_available_child_allow_travel = yes
		OR = {
			any_relation = {
				type = guardian
				is_available = yes
			}
			exists = court_owner.court_position:court_tutor_court_position
			exists = court_owner.court_position:court_guru_court_position
			any_courtier_or_guest = {
				is_adult = yes
				is_available = yes
			}
			AND = {
				host ?= {
					any_courtier_or_guest = {
						is_adult = yes
						is_available = yes
					}
				}
			}
		}
		NAND = {
			OR = {
				has_trait = generous
				has_trait = greedy
			}
			OR = {
				has_trait = diligent
				has_trait = lazy
			}
			OR = {
				has_trait = patient
				has_trait = impatient
			}
		}
		is_valid_for_east_asian_events_trigger = yes
	}

	weight_multiplier = {
		base = 1
		modifier = {
			add = 2
			any_relation = {
				type = guardian
				OR = {
					has_trait = generous
					has_trait = diligent
					has_trait = patient
				}
			}
		}
		modifier = {
			add = 2
			NOT = {
				any_relation = {
					type = guardian
				}
			}
			court_owner.court_position:court_tutor_court_position ?= {
				OR = {
					has_trait = generous
					has_trait = diligent
					has_trait = patient
				}
			}
		}
		modifier = {
			add = 5
			culture = {
				has_cultural_parameter = diligent_trait_more_common
			}
			NOR = {
				has_trait = diligent
				has_trait = lazy
			}
		}
		modifier = {
			add = 5
			culture = {
				has_cultural_parameter = patient_trait_more_common
			}
			NOR = {
				has_trait = patient
				has_trait = impatient
			}
		}
		modifier = {
			add = 5
			culture = {
				has_cultural_parameter = generous_trait_more_common
			}
			NOR = {
				has_trait = generous
				has_trait = greedy
			}
		}
	}

	immediate = {
		save_scope_as = child
		get_guardian_scope_effect = yes
	}

	option = {
		name = tgp_child_personality.0004.a
		trigger = {
			NOR = {
				has_trait = generous
				has_trait = greedy
			}
		}
		ai_chance = {
			base = 1
			modifier = {
				add = 4
				guardian_or_court_tutor_trait = { TRAIT = generous }
			}
			modifier = {
				add = -0.5
				guardian_or_court_tutor_trait = { TRAIT = greedy }
			}
			modifier = {
				add = 100
				culture = {
					has_cultural_parameter = generous_trait_more_common
				}
			}
		}
		add_trait = generous
		if = {
			limit = {
				is_ai = yes
			}
			guardian_or_court_tutor_trigger_event = { EVENT = tgp_child_personality.1041 }
		}	
	}

	option = {
		name = tgp_child_personality.0004.b
		trigger = {
			NOR = {
				has_trait = diligent
				has_trait = lazy
			}
		}
		ai_chance = {
			base = 1
			modifier = {
				add = 4
				guardian_or_court_tutor_trait = { TRAIT = diligent }
			}
			modifier = {
				add = -0.5
				guardian_or_court_tutor_trait = { TRAIT = lazy }
			}
			modifier = {
				add = 100
				culture = {
					has_cultural_parameter = diligent_trait_more_common
				}
			}
		}
		add_trait = diligent
		if = {
			limit = {
				is_ai = yes
			}
			guardian_or_court_tutor_trigger_event = { EVENT = tgp_child_personality.1042 }
		}	
	}

	option = {
		name = tgp_child_personality.0004.c
		trigger = {
			NOR = {
				has_trait = patient
				has_trait = impatient
			}
		}
		ai_chance = {
			base = 1
			modifier = {
				add = 4
				guardian_or_court_tutor_trait = { TRAIT = patient }
			}
			modifier = {
				add = -0.5
				guardian_or_court_tutor_trait = { TRAIT = impatient }
			}
			modifier = {
				add = 100
				culture = {
					has_cultural_parameter = patient_trait_more_common
				}
			}
		}
		add_trait = patient
		if = {
			limit = {
				is_ai = yes
			}
			guardian_or_court_tutor_trigger_event = { EVENT = tgp_child_personality.1043 }
		}	
	}
}

#just, cynical or temperate
tgp_child_personality.0007 = {
	type = character_event
	title = tgp_child_personality.0007.t
	desc = tgp_child_personality.0007.desc
	theme = education
	override_background = tgp_kitchen_asia
	
	left_portrait = {
		character = root
		animation = worry
	}
	right_portrait = {
		character = scope:gluttonous_servant
		animation = sick_stomach
		camera = camera_event_scheme_vs_right_look_right
		hide_info = yes
	}

	trigger = {
		is_available_child_allow_travel = yes
		NAND = {
			OR = {
				has_trait = just
				has_trait = arbitrary
			}
			OR = {
				has_trait = cynical
				has_trait = trusting
			}
			OR = {
				has_trait = temperate
				has_trait = gluttonous
			}
		}
		is_valid_for_east_asian_events_trigger = yes
	}

	weight_multiplier = {
		base = 1
		modifier = {
			add = 2
			any_relation = {
				type = guardian
				OR = {
					has_trait = just
					has_trait = cynical
					has_trait = temperate
				}
			}
		}
		modifier = {
			add = 2
			NOT = {
				any_relation = {
					type = guardian
				}
			}
			court_owner.court_position:court_tutor_court_position ?= {
				OR = {
					has_trait = just
					has_trait = cynical
					has_trait = temperate
				}
			}
		}
		modifier = {
			add = 5
			culture = {
				has_cultural_parameter = just_trait_more_common
			}
			NOR = {
				has_trait = just
				has_trait = arbitrary
			}
		}
		modifier = {
			add = 5
			culture = {
				has_cultural_parameter = temperate_trait_more_common
			}
			NOR = {
				has_trait = temperate
				has_trait = gluttonous
			}
		}
	}

	immediate = {
		save_scope_as = child
		create_character = {
			template = merchant_template
			age = { 40 60 }
			location = root.location
			save_scope_as = gluttonous_servant
			trait = gluttonous
			trait = drunkard
			after_creation = {
				change_current_weight = 150
			}
		}
	}

	option = {
		name = tgp_child_personality.0007.a
		trigger = {
			NOR = {
				has_trait = just
				has_trait = arbitrary
			}
		}
		ai_chance = {
			base = 1
			modifier = {
				add = 4
				guardian_or_court_tutor_trait = { TRAIT = just }
			}
			modifier = {
				add = -0.5
				guardian_or_court_tutor_trait = { TRAIT = arbitrary }
			}
			modifier = {
				add = 100
				culture = {
					has_cultural_parameter = just_trait_more_common
				}
			}
		}
		add_trait = just
		if = {
			limit = {
				is_ai = yes
			}
			guardian_or_court_tutor_trigger_event = { EVENT = tgp_child_personality.1071 }
		}	
	}

	option = {
		name = tgp_child_personality.0007.b
		trigger = {
			NOR = {
				has_trait = cynical
				has_trait = trusting
			}
		}
		ai_chance = {
			base = 1
			modifier = {
				add = 4
				guardian_or_court_tutor_trait = { TRAIT = cynical }
			}
			modifier = {
				add = -0.5
				guardian_or_court_tutor_trait = { TRAIT = trusting }
			}
		}
		add_trait = cynical
		if = {
			limit = {
				is_ai = yes
			}
			guardian_or_court_tutor_trigger_event = { EVENT = tgp_child_personality.1072 }
		}	
	}

	option = {
		name = tgp_child_personality.0007.c
		trigger = {
			NOR = {
				has_trait = temperate
				has_trait = gluttonous
			}
		}
		ai_chance = {
			base = 1
			modifier = {
				add = 4
				guardian_or_court_tutor_trait = { TRAIT = temperate }
			}
			modifier = {
				add = -0.5
				guardian_or_court_tutor_trait = { TRAIT = gluttonous }
			}
			modifier = {
				add = 100
				culture = {
					has_cultural_parameter = temperate_trait_more_common
				}
			}
		}
		add_trait = temperate
		if = {
			limit = {
				is_ai = yes
			}
			guardian_or_court_tutor_trigger_event = { EVENT = tgp_child_personality.1073 }
		}
	}
	after = {
		scope:gluttonous_servant = {
			silent_disappearance_effect = yes
		}
	}
}

#brave, calm or zealous
tgp_child_personality.0009 = {
	type = character_event
	title = tgp_child_personality.0009.t
	desc = tgp_child_personality.0009.desc
	theme = education
	override_background = bedchamber
	left_portrait = {
		character = root
		animation = nervous
	}

	trigger = {
		is_available_child_allow_travel = yes
		NAND = {
			OR = {
				has_trait = brave
				has_trait = craven
			}
			OR = {
				has_trait = calm
				has_trait = wrathful
			}
			OR = {
				has_trait = zealous
				has_trait = cynical
			}
		}
		is_valid_for_east_asian_events_trigger = yes
	}

	weight_multiplier = {
		base = 1
		modifier = {
			add = 2
			any_relation = {
				type = guardian
				OR = {
					has_trait = brave
					has_trait = calm
					has_trait = zealous
				}
			}
		}
		modifier = {
			add = 2
			NOT = {
				any_relation = {
					type = guardian
				}
			}
			court_owner.court_position:court_tutor_court_position ?= {
				OR = {
					has_trait = brave
					has_trait = calm
					has_trait = zealous
				}
			}
		}
		modifier = {
			add = 5
			culture = {
				has_cultural_parameter = zealous_trait_more_common
			}
			NOR = {
				has_trait = zealous
				has_trait = cynical
			}
		}
		modifier = {
			add = 5
			culture = {
				has_cultural_parameter = calm_trait_more_common
			}
			NOR = {
				has_trait = calm
				has_trait = wrathful
			}
		}
	}

	immediate = {
		save_scope_as = child
	}

	option = {
		name = tgp_child_personality.0009.a
		trigger = {
			NOR = {
				has_trait = brave
				has_trait = craven
			}
		}
		ai_chance = {
			base = 1
			modifier = {
				add = 4
				guardian_or_court_tutor_trait = { TRAIT = brave }
			}
			modifier = {
				add = -0.5
				guardian_or_court_tutor_trait = { TRAIT = craven }
			}
		}
		add_trait = brave
		
		if = {
			limit = {
				is_ai = yes
			}
			guardian_or_court_tutor_trigger_event = { EVENT = tgp_child_personality.1091 }
		}
	}

	option = {
		name = tgp_child_personality.0009.b
		trigger = {
			NOR = {
				has_trait = calm
				has_trait = wrathful
			}
		}
		ai_chance = {
			base = 1
			modifier = {
				add = 4
				guardian_or_court_tutor_trait = { TRAIT = calm }
			}
			modifier = {
				add = -0.5
				guardian_or_court_tutor_trait = { TRAIT = wrathful }
			}
			modifier = {
				add = 100
				culture = {
					has_cultural_parameter = calm_trait_more_common
				}
			}
		}
		add_trait = calm
		if = {
			limit = {
				is_ai = yes
			}
			guardian_or_court_tutor_trigger_event = { EVENT = tgp_child_personality.1092 }
		}
	}

	option = {
		name = tgp_child_personality.0009.c
		trigger = {
			NOR = {
				has_trait = zealous
				has_trait = cynical
			}
		}
		ai_chance = {
			base = 1
			modifier = {
				add = 4
				guardian_or_court_tutor_trait = { TRAIT = zealous }
			}
			modifier = {
				add = -0.5
				guardian_or_court_tutor_trait = { TRAIT = cynical }
			}
			modifier = {
				add = 100
				culture = {
					has_cultural_parameter = zealous_trait_more_common
				}
			}
		}
		add_trait = zealous
		if = {
			limit = {
				is_ai = yes
			}
			guardian_or_court_tutor_trigger_event = { EVENT = tgp_child_personality.1093 }
		}	
	}
}

#ambitious, sadistic or paranoid
tgp_child_personality.0010 = {
	type = character_event
	title = tgp_child_personality.0010.t
	desc = tgp_child_personality.0010.desc
	theme = education
	override_effect_2d = { reference = legend_glow }
	
	left_portrait = {
		character = root
		animation = disapproval
	}
	right_portrait = {
		character = scope:guardian
		animation = war_over_win
		camera = camera_event_scheme_far_right
	}

	trigger = {
		is_available_child_allow_travel = yes
		OR = {
			any_relation = {
				type = guardian
				is_available = yes
			}
			exists = court_owner.court_position:court_tutor_court_position
			exists = court_owner.court_position:court_guru_court_position
			any_courtier_or_guest = {
				is_adult = yes
				is_available = yes
			}
			AND = {
				host ?= {
					any_courtier_or_guest = {
						is_adult = yes
						is_available = yes
					}
				}
			}
		}
		NAND = {
			OR = {
				has_trait = ambitious
				has_trait = content
			}
			OR = {
				has_trait = sadistic
				has_trait = compassionate
				has_trait = callous
			}
			OR = {
				has_trait = paranoid
				has_trait = trusting
			}
		}
		is_valid_for_east_asian_events_trigger = yes
	}

	weight_multiplier = {
		base = 1
		modifier = {
			add = 2
			any_relation = {
				type = guardian
				OR = {
					has_trait = ambitious
					has_trait = sadistic
					has_trait = paranoid
				}
			}
		}
		modifier = {
			add = 2
			NOT = {
				any_relation = {
					type = guardian
				}
			}
			court_owner.court_position:court_tutor_court_position ?= {
				OR = {
					has_trait = ambitious
					has_trait = sadistic
					has_trait = paranoid
				}
			}
		}
		modifier = {
			add = 5
			culture = {
				has_cultural_parameter = ambitious_trait_more_common
			}
			NOR = {
				has_trait = content
				has_trait = ambitious
			}
		}
	}

	immediate = {
		save_scope_as = child
		get_guardian_scope_effect = yes
	}

	option = {
		name = tgp_child_personality.0010.a
		trigger = {
			NOR = {
				has_trait = ambitious
				has_trait = content
			}
		}
		ai_chance = {
			base = 1
			modifier = {
				add = 4
				guardian_or_court_tutor_trait = { TRAIT = ambitious }
			}
			modifier = {
				add = -0.5
				guardian_or_court_tutor_trait = { TRAIT = content }
			}
			modifier = {
				add = 100
				culture = {
					has_cultural_parameter = ambitious_trait_more_common
				}
			}
		}
		add_trait = ambitious
		if = {
			limit = {
				is_ai = yes
			}
			guardian_or_court_tutor_trigger_event = { EVENT = tgp_child_personality.1101 }
		}	
	}

	option = {
		name = tgp_child_personality.0010.b
		trigger = {
			NOR = {
				has_trait = sadistic
				has_trait = compassionate
				has_trait = callous
			}
		}
		ai_chance = {
			base = 0.25
			modifier = {
				add = 2
				guardian_or_court_tutor_trait = { TRAIT = sadistic }
			}
			modifier = {
				add = 500 #To be sure this happens if they're marked for it
				has_character_flag = marked_for_sadistic_in_yearly_4021
			}
		}
		add_trait = sadistic
		if = {
			limit = {
				is_ai = yes
			}
			guardian_or_court_tutor_trigger_event = { EVENT = tgp_child_personality.1102 }
		}
	}

	option = {
		name = tgp_child_personality.0010.c
		trigger = {
			NOR = {
				has_trait = paranoid
				has_trait = trusting
			}
		}
		ai_chance = {
			base = 1
			modifier = {
				add = 4
				guardian_or_court_tutor_trait = { TRAIT = paranoid }
			}
			modifier = {
				add = -0.5
				guardian_or_court_tutor_trait = { TRAIT = trusting }
			}
		}
		add_trait = paranoid
		if = {
			limit = {
				is_ai = yes
			}
			guardian_or_court_tutor_trigger_event = { EVENT = tgp_child_personality.1103 }
		}	
	}
}

#diligent, gregarious, temperate
tgp_child_personality.7000 = {
	type = character_event
	title = tgp_child_personality.7000.t
	desc = tgp_child_personality.7000.desc
	theme = education
	override_background = corridor_day
	left_portrait = {
		character = root
		animation = worry
	}
	right_portrait = {
		character = scope:guardian
		animation = personality_cynical
	}

	trigger = {
		is_available_child_allow_travel = yes
		OR = {
			any_relation = {
				type = guardian
				is_available = yes
			}
			exists = court_owner.court_position:court_tutor_court_position
			exists = court_owner.court_position:court_guru_court_position
			any_courtier_or_guest = {
				is_adult = yes
				is_available = yes
			}
			AND = {
				host ?= {
					any_courtier_or_guest = {
						is_adult = yes
						is_available = yes
					}
				}
			}
		}
		NAND = {
			OR = {
				has_trait = lazy
				has_trait = diligent
			}
			OR = {
				has_trait = shy
				has_trait = gregarious
			}
			OR = {
				has_trait = gluttonous
				has_trait = temperate
			}
		}
		is_valid_for_east_asian_events_trigger = yes
	}

	weight_multiplier = {
		base = 1
		modifier = {
			add = 2
			any_relation = {
				type = guardian
				OR = {
					has_trait = diligent
					has_trait = gregarious
					has_trait = temperate
				}
			}
		}
		modifier = {
			add = 5
			culture = {
				has_cultural_parameter = temperate_trait_more_common
			}
			NOR = {
				has_trait = temperate
				has_trait = gluttonous
			}
		}
		modifier = {
			add = 5
			culture = {
				has_cultural_parameter = diligent_trait_more_common
			}
			NOR = {
				has_trait = diligent
				has_trait = lazy
			}
		}
	}

	immediate = {
		save_scope_as = child
		get_guardian_scope_effect = yes
	}

	option = { # diligent
		name = tgp_child_personality.7000.a
		trigger = {
			NOR = {
				has_trait = lazy
				has_trait = diligent
			}
		}
		add_trait = diligent
		if = {
			limit = {
				is_ai = yes
			}
			add_character_flag = diligent
			random_relation = {
				type = guardian
				trigger_event = tgp_child_personality.7001
			}
		}
		ai_chance = {
			base = 1
			modifier = {
				add = 4
				any_relation = {
					type = guardian
					has_trait = diligent
				}
			}
			modifier = {
				add = 100
				culture = {
					has_cultural_parameter = diligent_trait_more_common
				}
			}
			modifier = {
				add = -0.5
				any_relation = {
					type = guardian
					has_trait = lazy
				}
			}
		}
	}

	option = { # gregarious
		name = tgp_child_personality.7000.b
		trigger = {
			NOR = {
				has_trait = shy
				has_trait = gregarious
			}
		}
		add_trait = gregarious
		if = {
			limit = {
				is_ai = yes
			}
			add_character_flag = gregarious
			random_relation = {
				type = guardian
				trigger_event = tgp_child_personality.7001
			}
		}
		ai_chance = {
			base = 1
			modifier = {
				add = 4
				any_relation = {
					type = guardian
					has_trait = gregarious
				}
			}
			modifier = {
				add = -0.5
				any_relation = {
					type = guardian
					has_trait = shy
				}
			}
		}
	}

	option = { # temperate
		name = tgp_child_personality.7000.c
		trigger = {
			NOR = {
				has_trait = gluttonous
				has_trait = temperate
			}
		}
		add_trait = temperate
		if = {
			limit = {
				is_ai = yes
			}
			add_character_flag = temperate
			random_relation = {
				type = guardian
				trigger_event = tgp_child_personality.7001
			}
		}
		ai_chance = {
			base = 1
			modifier = {
				add = 4
				any_relation = {
					type = guardian
					has_trait = temperate
				}
			}
			modifier = {
				add = -0.5
				any_relation = {
					type = guardian
					has_trait = gluttonous
				}
			}
			modifier = {
				add = 100
				culture = {
					has_cultural_parameter = temperate_trait_more_common
				}
			}
		}
	}
}

#eccentric, compassionate, callous
tgp_child_personality.7300 = {
	type = character_event
	title = tgp_child_personality.7300.t
	desc = tgp_child_personality.7300.desc
	theme = education
	override_background = tgp_garden_asia
	left_portrait = {
		character = root
		animation = interested
	}

	trigger = {
		is_available_child_allow_travel = yes
		NAND = {
			OR = {
				has_trait = eccentric
				has_trait = stubborn
				has_trait = fickle
			}
			OR = {
				has_trait = compassionate
				has_trait = callous
				has_trait = sadistic
			}
		}
		is_valid_for_east_asian_events_trigger = yes
	}

	weight_multiplier = {
		base = 1
		modifier = {
			add = 2
			any_relation = {
				type = guardian
				OR = {
					has_trait = eccentric
					has_trait = gregarious
					has_trait = compassionate
				}
			}
		}
	}

	immediate = {
		save_scope_as = child
	}

	option = { # eccentric, I can talk to animals
		name = tgp_child_personality.7300.a
		trigger = {
			NOR = {
				has_trait = eccentric
				has_trait = fickle
				has_trait = stubborn
			}
		}
		add_trait = eccentric
		
		if = {
			limit = {
				is_ai = yes
			}
			add_character_flag = eccentric
			random_relation = {
				type = guardian
				trigger_event = tgp_child_personality.7301
			}
		}
		ai_chance = {
			base = 1
			modifier = {
				add = 4
				any_relation = {
					type = guardian
					has_trait = eccentric
				}
			}
			modifier = {
				add = -0.5
				any_relation = {
					type = guardian
					OR = {
						has_trait = fickle
						has_trait = stubborn
					}
				}
			}
		}
	}

	option = { # compassionate, I just love animals
		name = tgp_child_personality.7300.b
		trigger = {
			NOR = {
				has_trait = compassionate
				has_trait = sadistic
				has_trait = callous
			}
		}
		add_trait = compassionate

		if = {
			limit = {
				is_ai = yes
			}
			add_character_flag = compassionate
			random_relation = {
				type = guardian
				trigger_event = tgp_child_personality.7301
			}
		}
		ai_chance = {
			base = 1
			modifier = {
				add = 4
				any_relation = {
					type = guardian
					has_trait = compassionate
				}
			}
			modifier = {
				add = -0.5
				any_relation = {
					type = guardian
					OR = {
						has_trait = sadistic
						has_trait = callous
					}
				}
			}
		}
	}

	option = { # callous, they are boring and predictable, much like people
		name = tgp_child_personality.7300.c
		trigger = {
			NOR = {
				has_trait = compassionate
				has_trait = callous
				has_trait = sadistic
			}
		}
		add_trait = callous
		
		if = {
			limit = {
				is_ai = yes
			}
			add_character_flag = callous
			random_relation = {
				type = guardian
				trigger_event = tgp_child_personality.7301
			}
		}
		ai_chance = {
			base = 1
			modifier = {
				add = 4
				any_relation = {
					type = guardian
					has_trait = callous
				}
			}
			modifier = {
				add = -0.5
				any_relation = {
					type = guardian
					has_trait = compassionate
				}
			}
		}
	}
}

#zealous, ambitious, sadistic
tgp_child_personality.7010 = {
	type = character_event
	title = tgp_child_personality.7010.t
	desc = tgp_child_personality.7010.desc
	theme = education
	override_background = corridor_day
	left_portrait = {
		character = root
		animation = shock
	}

	trigger = {
		is_available_child_allow_travel = yes
		NAND = {
			OR = {
				has_trait = zealous
				has_trait = cynical
			}
			OR = {
				has_trait = ambitious
				has_trait = content
			}
			OR = {
				has_trait = sadistic
				has_trait = compassionate
				has_trait = callous
			}
		}
		is_valid_for_east_asian_events_trigger = yes
	}

	weight_multiplier = {
		base = 1
		modifier = {
			add = 2
			any_relation = {
				type = guardian
				OR = {
					has_trait = zealous
					has_trait = ambitious
					has_trait = sadistic
				}
			}
		}
		modifier = {
			add = 5
			culture = {
				has_cultural_parameter = zealous_trait_more_common
			}
			NOR = {
				has_trait = zealous
				has_trait = cynical
			}
		}
		modifier = {
			add = 5
			culture = {
				has_cultural_parameter = ambitious_trait_more_common
			}
			NOR = {
				has_trait = content
				has_trait = ambitious
			}
		}
	}

	immediate = {
		save_scope_as = child
	}

	option = { # zealous
		name = tgp_child_personality.7010.a
		trigger = {
			NOR = {
				has_trait = cynical
				has_trait = zealous
			}
		}
		add_trait = zealous
		if = {
			limit = {
				is_ai = yes
			}
			add_character_flag = zealous
			random_relation = {
				type = guardian
				trigger_event = tgp_child_personality.7011
			}
		}
		ai_chance = {
			base = 1
			modifier = {
				add = 4
				any_relation = {
					type = guardian
					has_trait = zealous
				}
			}
			modifier = {
				add = -0.5
				any_relation = {
					type = guardian
					has_trait = cynical
				}
			}
			modifier = {
				add = 100
				culture = {
					has_cultural_parameter = zealous_trait_more_common
				}
			}
		}
	}

	option = { # ambitious
		name = tgp_child_personality.7010.b
		trigger = {
			NOR = {
				has_trait = content
				has_trait = ambitious
			}
		}
		add_trait = ambitious
		if = {
			limit = {
				is_ai = yes
			}
			add_character_flag = ambitious
			random_relation = {
				type = guardian
				trigger_event = tgp_child_personality.7011
			}
		}
		ai_chance = {
			base = 1
			modifier = {
				add = 4
				any_relation = {
					type = guardian
					has_trait = ambitious
				}
			}
			modifier = {
				add = -0.5
				any_relation = {
					type = guardian
					has_trait = content
				}
			}
			modifier = {
				add = 100
				culture = {
					has_cultural_parameter = ambitious_trait_more_common
				}
			}
		}
	}

	option = { # sadistic
		name = tgp_child_personality.7010.c
		trigger = {
			NOR = {
				has_trait = compassionate
				has_trait = callous
				has_trait = sadistic
			}
		}
		add_trait = sadistic
		if = {
			limit = {
				is_ai = yes
			}
			add_character_flag = sadistic
			random_relation = {
				type = guardian
				trigger_event = tgp_child_personality.7011
			}
		}
		ai_chance = {
			base = 1
			modifier = {
				add = 4
				any_relation = {
					type = guardian
					has_trait = sadistic
				}
			}
			modifier = {
				add = -0.5
				any_relation = {
					type = guardian
					has_trait = compassionate
				}
			}
		}
	}
}

#shy, paranoid, craven
tgp_child_personality.7020 = {
	type = character_event
	title = tgp_child_personality.7020.t
	desc = tgp_child_personality.7020.desc
	theme = education
	override_background = tgp_courtyard_asia
	left_portrait = {
		character = scope:eyes
		animation = personality_zealous
		camera = camera_event_right_massive_head
		hide_info = yes
	}

	trigger = {
		is_available_child_allow_travel = yes
		NAND = {
			OR = {
				has_trait = shy
				has_trait = gregarious
			}
			OR = {
				has_trait = paranoid
				has_trait = trusting
			}
			OR = {
				has_trait = craven
				has_trait = brave
			}
		}
		is_valid_for_east_asian_events_trigger = yes
	}

	weight_multiplier = {
		base = 1
		modifier = {
			add = 2
			any_relation = {
				type = guardian
				OR = {
					has_trait = shy
					has_trait = paranoid
					has_trait = craven
				}
			}
		}
	}

	immediate = {
		save_scope_as = child
		create_character = {
			template = merchant_template
			age = { 40 60 }
			location = root.location
			save_scope_as = eyes
		}
	}

	option = { # shy
		name = tgp_child_personality.7020.a
		trigger = {
			NOR = {
				has_trait = shy
				has_trait = gregarious
			}
		}
		add_trait = shy
		if = {
			limit = {
				is_ai = yes
			}
			add_character_flag = shy
			random_relation = {
				type = guardian
				trigger_event = tgp_child_personality.7021
			}
		}
		ai_chance = {
			base = 1
			modifier = {
				add = 4
				any_relation = {
					type = guardian
					has_trait = shy
				}
			}
			modifier = {
				add = -0.5
				any_relation = {
					type = guardian
					has_trait = gregarious
				}
			}
		}
	}

	option = { # paranoid
		name = tgp_child_personality.7020.b
		trigger = {
			NOR = {
				has_trait = paranoid
				has_trait = trusting
			}
		}
		add_trait = paranoid
		if = {
			limit = {
				is_ai = yes
			}
			add_character_flag = paranoid
			random_relation = {
				type = guardian
				trigger_event = tgp_child_personality.7021
			}
		}
		ai_chance = {
			base = 1
			modifier = {
				add = 4
				any_relation = {
					type = guardian
					has_trait = paranoid
				}
			}
			modifier = {
				add = -0.5
				any_relation = {
					type = guardian
					has_trait = trusting
				}
			}
		}
	}

	option = { # craven
		name = tgp_child_personality.7020.c
		trigger = {
			NOR = {
				has_trait = craven
				has_trait = brave
			}
		}
		add_trait = craven
		if = {
			limit = {
				is_ai = yes
			}
			add_character_flag = craven
			random_relation = {
				type = guardian
				trigger_event = tgp_child_personality.7021
			}
		}
		ai_chance = {
			base = 1
			modifier = {
				add = 4
				any_relation = {
					type = guardian
					has_trait = craven
				}
			}
			modifier = {
				add = -0.5
				any_relation = {
					type = guardian
					has_trait = brave
				}
			}
		}
	}
	after = {
		scope:eyes = {
			silent_disappearance_effect = yes
		}
	}
}

#just, greedy, callous
tgp_child_personality.7050 = {
	type = character_event
	title = tgp_child_personality.7050.t
	desc = tgp_child_personality.7050.desc
	theme = education
	override_background = tgp_market_asia
	left_portrait = {
		character = root
		animation = ecstasy
	}

	trigger = {
		is_available_child_allow_travel = yes
		NAND = {
			OR = {
				has_trait = just
				has_trait = arbitrary
			}
			OR = {
				has_trait = greedy
				has_trait = generous
			}
			OR = {
				has_trait = callous
				has_trait = compassionate
				has_trait = sadistic
			}
		}
		is_valid_for_east_asian_events_trigger = yes
	}

	weight_multiplier = {
		base = 1
		modifier = {
			add = 2
			any_relation = {
				type = guardian
				OR = {
					has_trait = just
					has_trait = greedy
					has_trait = callous
				}
			}
		}
		modifier = {
			add = 5
			culture = {
				has_cultural_parameter = just_trait_more_common
			}
			NOR = {
				has_trait = just
				has_trait = arbitrary
			}
		}
	}

	immediate = {
		save_scope_as = child
	}

	option = { # just
		name = tgp_child_personality.7050.a
		trigger = {
			NOR = {
				has_trait = just
				has_trait = arbitrary
			}
		}
		add_trait = just
		
		if = {
			limit = {
				is_ai = yes
			}
			add_character_flag = just
			random_relation = {
				type = guardian
				trigger_event = tgp_child_personality.7051
			}
		}
		ai_chance = {
			base = 1
			modifier = {
				add = 4
				any_relation = {
					type = guardian
					has_trait = just
				}
			}
			modifier = {
				add = -0.5
				any_relation = {
					type = guardian
					has_trait = arbitrary
				}
			}
			modifier = {
				add = 100
				culture = {
					has_cultural_parameter = just_trait_more_common
				}
			}
		}
	}

	option = { # greedy
		name = tgp_child_personality.7050.b
		trigger = {
			NOR = {
				has_trait = generous
				has_trait = greedy
			}
		}
		add_trait = greedy
		
		if = {
			limit = {
				is_ai = yes
			}
			add_character_flag = greedy
			random_relation = {
				type = guardian
				trigger_event = tgp_child_personality.7051
			}
		}
		ai_chance = {
			base = 1
			modifier = {
				add = 4
				any_relation = {
					type = guardian
					has_trait = greedy
				}
			}
			modifier = {
				add = -0.5
				any_relation = {
					type = guardian
					has_trait = generous
				}
			}
		}
	}

	option = { # callous
		name = tgp_child_personality.7050.c
		trigger = {
			NOR = {
				has_trait = callous
				has_trait = compassionate
				has_trait = sadistic
			}
		}
		add_trait = callous
		
		if = {
			limit = {
				is_ai = yes
			}
			add_character_flag = callous
			random_relation = {
				type = guardian
				trigger_event = tgp_child_personality.7051
			}
		}
		ai_chance = {
			base = 1
			modifier = {
				add = 4
				any_relation = {
					type = guardian
					has_trait = callous
				}
			}
			modifier = {
				add = -0.5
				any_relation = {
					type = guardian
					OR = {
						has_trait = callous
						has_trait = sadistic
					}
				}
			}
		}
	}
}

#brave, stubborn, wrathful
tgp_child_personality.7200 = {
	type = character_event
	title = tgp_child_personality.7200.t
	desc = tgp_child_personality.7200.desc
	theme = education
	override_background = tgp_market_asia
	left_portrait = {
		character = root
		animation = stunned
		camera = camera_hud
	}
	right_portrait = {
		character = scope:alarmed_servant
		animation = fear
		camera = camera_event_table_center_background
	}

	trigger = {
		is_available_child_allow_travel = yes
		NAND = {
			OR = {
				has_trait = brave
				has_trait = craven
			}
			OR = {
				has_trait = stubborn
				has_trait = fickle
			}
			OR = {
				has_trait = wrathful
				has_trait = calm
			}
		}
		is_valid_for_east_asian_events_trigger = yes
	}

	weight_multiplier = {
		base = 1
		modifier = {
			add = 2
			any_relation = {
				type = guardian
				OR = {
					has_trait = brave
					has_trait = stubborn
					has_trait = wrathful
				}
			}
		}
		modifier = {
			add = 5
			culture = {
				has_cultural_parameter = stubborn_trait_more_common
			}
			NOR = {
				has_trait = stubborn
				has_trait = fickle
			}
		}
	}

	immediate = {
		save_scope_as = child
		create_character = {
			template = merchant_template
			age = { 40 60 }
			location = root.location
			save_scope_as = alarmed_servant
		}
	}

	option = { # brave
		name = tgp_child_personality.7200.a
		trigger = {
			NOR = {
				has_trait = brave
				has_trait = craven
			}
		}
		add_trait = brave
		
		if = {
			limit = {
				is_ai = yes
			}
			add_character_flag = brave
			random_relation = {
				type = guardian
				trigger_event = tgp_child_personality.7201
			}
		}
		ai_chance = {
			base = 1
			modifier = {
				add = 4
				any_relation = {
					type = guardian
					has_trait = brave
				}
			}
			modifier = {
				add = -0.5
				any_relation = {
					type = guardian
					has_trait = craven
				}
			}
		}
	}

	option = { # stubborn
		name = tgp_child_personality.7200.b
		trigger = {
			NOR = {
				has_trait = fickle
				has_trait = stubborn
			}
		}
		add_trait = stubborn
		
		if = {
			limit = {
				is_ai = yes
			}
			add_character_flag = stubborn
			random_relation = {
				type = guardian
				trigger_event = tgp_child_personality.7201
			}
		}
		ai_chance = {
			base = 1
			modifier = {
				add = 4
				any_relation = {
					type = guardian
					has_trait = stubborn
				}
			}
			modifier = {
				add = -0.5
				any_relation = {
					type = guardian
					has_trait = fickle
				}
			}
			modifier = {
				add = 100
				culture = {
					has_cultural_parameter = stubborn_trait_more_common
				}
			}
		}
	}

	option = { # wrathful
		name = tgp_child_personality.7200.c
		trigger = {
			NOR = {
				has_trait = wrathful
				has_trait = calm
			}
		}
		add_trait = wrathful
		
		if = {
			limit = {
				is_ai = yes
			}
			add_character_flag = wrathful
			random_relation = {
				type = guardian
				trigger_event = tgp_child_personality.7201
			}
		}
		ai_chance = {
			base = 1
			modifier = {
				add = 4
				any_relation = {
					type = guardian
					has_trait = wrathful
				}
			}
			modifier = {
				add = -0.5
				any_relation = {
					type = guardian
					has_trait = calm
				}
			}
		}
	}
	after = {
		scope:alarmed_servant = {
			silent_disappearance_effect = yes
		}
	}
}

#vengeful, deceitful, calm
tgp_child_personality.7070 = {
	type = character_event
	title = tgp_child_personality.7070.t
	desc = tgp_child_personality.7070.desc
	theme = education
	override_background = tgp_feast_asia
	left_portrait = {
		character = scope:guardian
		animation = rage
		camera = camera_event_group_talking_left_left
	}
	right_portrait = {
		character = scope:servant
		animation = prostration
		hide_info = yes
	}
	trigger = {
		is_available_child_allow_travel = yes
		OR = {
			any_relation = {
				type = guardian
				is_available = yes
			}
			exists = court_owner.court_position:court_tutor_court_position
			exists = court_owner.court_position:court_guru_court_position
			any_courtier_or_guest = {
				is_adult = yes
				is_available = yes
			}
			AND = {
				host ?= {
					any_courtier_or_guest = {
						is_adult = yes
						is_available = yes
					}
				}
			}
		}
		NAND = {
			OR = {
				has_trait = vengeful
				has_trait = forgiving
			}
			OR = {
				has_trait = deceitful
				has_trait = honest
			}
			OR = {
				has_trait = calm
				has_trait = wrathful
			}
		}
		is_valid_for_east_asian_events_trigger = yes
	}

	weight_multiplier = {
		base = 1
		modifier = {
			add = 2
			any_relation = {
				type = guardian
				OR = {
					has_trait = vengeful
					has_trait = deceitful
					has_trait = calm
				}
			}
		}
		modifier = {
			add = 5
			culture = {
				has_cultural_parameter = vengeful_trait_more_common
			}
			NOR = {
				has_trait = vengeful
				has_trait = forgiving
			}
		}
		modifier = {
			add = 5
			culture = {
				has_cultural_parameter = calm_trait_more_common
			}
			NOR = {
				has_trait = calm
				has_trait = wrathful
			}
		}
	}

	immediate = {
		save_scope_as = child
		get_guardian_scope_effect = yes
		create_character = {
			template = merchant_template
			age = { 40 60 }
			location = root.location
			save_scope_as = servant
		}
	}

	option = { # vengeful
		name = tgp_child_personality.7070.a
		trigger = {
			NOR = {
				has_trait = vengeful
				has_trait = forgiving
			}
		}
		add_trait = vengeful
		
		if = {
			limit = {
				is_ai = yes
			}
			add_character_flag = vengeful
			random_relation = {
				type = guardian
				trigger_event = tgp_child_personality.7071
			}
		}
		ai_chance = {
			base = 1
			modifier = {
				add = 4
				any_relation = {
					type = guardian
					has_trait = vengeful
				}
			}
			modifier = {
				add = -0.5
				any_relation = {
					type = guardian
					has_trait = forgiving
				}
			}
			modifier = {
				add = 100
				culture = {
					has_cultural_parameter = vengeful_trait_more_common
				}
			}
		}
	}

	option = { # deceitful
		name = tgp_child_personality.7070.b
		trigger = {
			NOR = {
				has_trait = honest
				has_trait = deceitful
			}
		}
		add_trait = deceitful
		
		if = {
			limit = {
				is_ai = yes
			}
			add_character_flag = deceitful
			random_relation = {
				type = guardian
				trigger_event = tgp_child_personality.7071
			}
		}
		ai_chance = {
			base = 1
			modifier = {
				add = 4
				any_relation = {
					type = guardian
					has_trait = deceitful
				}
			}
			modifier = {
				add = -0.5
				any_relation = {
					type = guardian
					has_trait = honest
				}
			}
		}
	}

	option = { # calm
		name = tgp_child_personality.7070.c
		trigger = {
			NOR = {
				has_trait = calm
				has_trait = wrathful
			}
		}
		add_trait = calm
		
		if = {
			limit = {
				is_ai = yes
			}
			add_character_flag = calm
			random_relation = {
				type = guardian
				trigger_event = tgp_child_personality.7071
			}
		}
		ai_chance = {
			base = 1
			modifier = {
				add = 4
				any_relation = {
					type = guardian
					has_trait = calm
				}
			}
			modifier = {
				add = -0.5
				any_relation = {
					type = guardian
					has_trait = wrathful
				}
			}
			modifier = {
				add = 100
				culture = {
					has_cultural_parameter = calm_trait_more_common
				}
			}
		}
	}
	after = {
		scope:servant = {
			silent_disappearance_effect = yes
		}
	}
}

#lustful, chaste
tgp_child_personality.7040 = {
	type = character_event
	title = tgp_child_personality.7040.t
	desc = tgp_child_personality.7040.desc
	theme = education
	override_background = { reference = bedchamber }
	left_portrait = {
		character = root
		animation = reading
	}

	trigger = {
		is_available_child_allow_travel = yes
		age >= 13 #Because chaste/lustful are only given at age 13
		NOR = {
			has_trait = chaste
			has_trait = lustful
		}
		is_valid_for_east_asian_events_trigger = yes
	}

	weight_multiplier = {
		base = 1
		modifier = {
			add = 2
			any_relation = {
				type = guardian
				OR = {
					has_trait = lustful
					has_trait = chaste
				}
			}
		}
		modifier = {
			factor = 0.5
			culture = {
				has_cultural_parameter = lustful_trait_less_common
			}
		}
	}

	immediate = {
		save_scope_as = child
	}

	option = { # lustful
		name = tgp_child_personality.7040.a
		trigger = {
			OR = {
				is_ai = no
				NOT = { exists = scope:child_crush_target }
			}
		}
		add_trait = lustful
		if = {
			limit = {
				is_ai = yes
			}
			add_character_flag = lustful
			random_relation = {
				type = guardian
				trigger_event = tgp_child_personality.7041
			}
		}
		ai_chance = {
			base = 1
			modifier = {
				add = 4
				any_relation = {
					type = guardian
					has_trait = lustful
				}
			}
			modifier = {
				add = -0.5
				any_relation = {
					type = guardian
					has_trait = chaste
				}
			}
		}
	}

	option = { # chaste
		name = tgp_child_personality.7040.b
		add_trait = chaste
		if = {
			limit = {
				is_ai = yes
			}
			add_character_flag = chaste
			random_relation = {
				type = guardian
				trigger_event = tgp_child_personality.7041
			}
		}
		ai_chance = {
			base = 1
			modifier = {
				add = 4
				any_relation = {
					type = guardian
					has_trait = chaste
				}
			}
			modifier = {
				add = -0.5
				any_relation = {
					type = guardian
					has_trait = lustful
				}
			}
		}
	}
}

#generous, fickle, arrogant
tgp_child_personality.7080 = {
	type = character_event
	title = tgp_child_personality.7080.t
	desc = tgp_child_personality.7080.desc
	theme = education
	override_background = tgp_kitchen_asia

	left_portrait = {
		character = root
		animation = happiness
	}
	right_portrait = {
		character = scope:greedy_child
		animation = interested
		camera = camera_event_standing_with_horse_right
		hide_info = yes
	}

	trigger = {
		is_available_child_allow_travel = yes
		NAND = {
			OR = {
				has_trait = generous
				has_trait = greedy
			}
			OR = {
				has_trait = fickle
				has_trait = stubborn
				has_trait = eccentric
			}
			OR = {
				has_trait = arrogant
				has_trait = humble
			}
		}
		is_valid_for_east_asian_events_trigger = yes
	}

	weight_multiplier = {
		base = 1
		modifier = {
			add = 2
			any_relation = {
				type = guardian
				OR = {
					has_trait = generous
					has_trait = fickle
					has_trait = arrogant
				}
			}
		}
		modifier = {
			add = 5
			culture = {
				has_cultural_parameter = generous_trait_more_common
			}
			NOR = {
				has_trait = generous
				has_trait = greedy
			}
		}
	}

	immediate = {
		save_scope_as = child
		create_character = {
			template = merchant_template
			age = { 8 12 }
			location = root.location
			save_scope_as = greedy_child
		}
	}

	option = { # generous
		name = tgp_child_personality.7080.a
		trigger = {
			NOR = {
				has_trait = generous
				has_trait = greedy
			}
		}
		add_trait = generous
		
		if = {
			limit = {
				is_ai = yes
			}
			add_character_flag = generous
			random_relation = {
				type = guardian
				trigger_event = tgp_child_personality.7081
			}
		}
		ai_chance = {
			base = 1
			modifier = {
				add = 4
				any_relation = {
					type = guardian
					has_trait = generous
				}
			}
			modifier = {
				add = -0.5
				any_relation = {
					type = guardian
					has_trait = greedy
				}
			}
			modifier = {
				add = 100
				culture = {
					has_cultural_parameter = generous_trait_more_common
				}
			}
		}
	}

	option = { # fickle
		name = tgp_child_personality.7080.b
		trigger = {
			NOR = {
				has_trait = stubborn
				has_trait = fickle
			}
		}
		add_trait = fickle
		
		if = {
			limit = {
				is_ai = yes
			}
			add_character_flag = fickle
			random_relation = {
				type = guardian
				trigger_event = tgp_child_personality.7081
			}
		}
		ai_chance = {
			base = 1
			modifier = {
				add = 4
				any_relation = {
					type = guardian
					has_trait = fickle
				}
			}
			modifier = {
				add = -0.5
				any_relation = {
					type = guardian
					has_trait = stubborn
				}
			}
		}
	}

	option = { # arrogant
		name = tgp_child_personality.7080.c
		trigger = {
			NOR = {
				has_trait = arrogant
				has_trait = humble
			}
		}
		add_trait = arrogant
		
		if = {
			limit = {
				is_ai = yes
			}
			add_character_flag = arrogant
			random_relation = {
				type = guardian
				trigger_event = tgp_child_personality.7081
			}
		}
		ai_chance = {
			base = 1
			modifier = {
				add = 4
				any_relation = {
					type = guardian
					has_trait = arrogant
				}
			}
			modifier = {
				add = -0.5
				any_relation = {
					type = guardian
					has_trait = humble
				}
			}
		}
	}
	after = {
		scope:greedy_child = {
			silent_disappearance_effect = yes
		}
	}
}

#lazy, gluttonous, compassionate
tgp_child_personality.7030 = {
	type = character_event
	title = tgp_child_personality.7030.t
	desc = tgp_child_personality.7030.desc
	theme = education
	override_background = corridor_day
	left_portrait = {
		character = root
		animation = pondering
	}
	right_portrait = {
		character = scope:clumsy_servant
		animation = nervous
		camera = camera_event_right_pointing_left_away
		hide_info = yes
	}

	trigger = {
		is_available_child_allow_travel = yes
		NAND = {
			OR = {
				has_trait = lazy
				has_trait = diligent
			}
			OR = {
				has_trait = gluttonous
				has_trait = temperate
			}
			OR = {
				has_trait = compassionate
				has_trait = callous
				has_trait = sadistic
			}
		}
		is_valid_for_east_asian_events_trigger = yes
	}

	weight_multiplier = {
		base = 1
		modifier = {
			add = 2
			any_relation = {
				type = guardian
				OR = {
					has_trait = lazy
					has_trait = gluttonous
					has_trait = compassionate
				}
			}
		}
		modifier = {
			add = 5
			culture = {
				has_cultural_parameter = compassionate_trait_more_common
			}
			NOR = {
				has_trait = compassionate
				has_trait = callous
				has_trait = sadistic
			}
		}
	}

	immediate = {
		save_scope_as = child
		create_character = {
			template = merchant_template
			age = { 40 60 }
			gender_female_chance = {
				if = {
					limit = {
						root = {
							is_female = yes
						}
					}
					add = 100
				}
				else = {
					add = 0
				}
			}
			location = root.location
			save_scope_as = clumsy_servant
		}
	}

	option = { # lazy
		name = tgp_child_personality.7030.a
		trigger = {
			NOR = {
				has_trait = lazy
				has_trait = diligent
			}
		}
		add_trait = lazy

		if = {
			limit = {
				is_ai = yes
			}
			add_character_flag = lazy
			random_relation = {
				type = guardian
				trigger_event = tgp_child_personality.7031
			}
		}
		ai_chance = {
			base = 1
			modifier = {
				add = 4
				any_relation = {
					type = guardian
					has_trait = lazy
				}
			}
			modifier = {
				add = -0.5
				any_relation = {
					type = guardian
					has_trait = diligent
				}
			}
		}
	}

	option = { # gluttonous
		name = tgp_child_personality.7030.b
		trigger = {
			NOR = {
				has_trait = temperate
				has_trait = gluttonous
			}
		}

		add_trait = gluttonous

		if = {
			limit = {
				is_ai = yes
			}
			add_character_flag = gluttonous
			random_relation = {
				type = guardian
				trigger_event = tgp_child_personality.7031
			}
		}
		ai_chance = {
			base = 1
			modifier = {
				add = 4
				any_relation = {
					type = guardian
					has_trait = gluttonous
				}
			}
			modifier = {
				add = -0.5
				any_relation = {
					type = guardian
					has_trait = temperate
				}
			}
		}
	}

	option = { # compassionate
		name = tgp_child_personality.7030.c
		trigger = {
			NOR = {
				has_trait = compassionate
				has_trait = callous
				has_trait = sadistic
			}
		}
		add_trait = compassionate

		if = {
			limit = {
				is_ai = yes
			}
			add_character_flag = compassionate
			random_relation = {
				type = guardian
				trigger_event = tgp_child_personality.7031
			}
		}
		ai_chance = {
			base = 1
			modifier = {
				add = 4
				any_relation = {
					type = guardian
					has_trait = compassionate
				}
			}
			modifier = {
				add = -0.5
				any_relation = {
					type = guardian
					OR = {
						has_trait = callous
						has_trait = sadistic
					}
				}
			}
			modifier = {
				add = 100
				culture = {
					has_cultural_parameter = compassionate_trait_more_common
				}
			}
		}
	}
	after = {
		scope:clumsy_servant = {
			silent_disappearance_effect = yes
		}
	}
}

#forgiving, trusting, patient
tgp_child_personality.7090 = {
	type = character_event
	title = tgp_child_personality.7090.t
	desc = tgp_child_personality.7090.desc
	theme = education
	left_portrait = {
		character = root
		animation = disappointed
	}
	right_portrait = {
		character = scope:sorry_servant
		animation = prostration
	}

	trigger = {
		is_available_child_allow_travel = yes
		NAND = {
			OR = {
				has_trait = forgiving
				has_trait = vengeful
			}
			OR = {
				has_trait = trusting
				has_trait = paranoid
			}
			OR = {
				has_trait = patient
				has_trait = impatient
			}
		}
		is_valid_for_east_asian_events_trigger = yes
	}

	weight_multiplier = {
		base = 1
		modifier = {
			add = 2
			any_relation = {
				type = guardian
				OR = {
					has_trait = forgiving
					has_trait = trusting
					has_trait = patient
				}
			}
		}
		modifier = {
			add = 5
			culture = {
				has_cultural_parameter = patient_trait_more_common
			}
			NOR = {
				has_trait = patient
				has_trait = impatient
			}
		}
	}

	immediate = {
		save_scope_as = child
		create_character = {
			template = merchant_template
			age = { 40 60 }
			gender_female_chance = {
				if = {
					limit = {
						root = {
							is_female = yes
						}
					}
					add = 100
				}
				else = {
					add = 0
				}
			}
			location = root.location
			save_scope_as = sorry_servant
		}
	}

	option = { # forgiving
		name = tgp_child_personality.7090.a
		trigger = {
			NOR = {
				has_trait = forgiving
				has_trait = vengeful
			}
		}
		add_trait = forgiving

		if = {
			limit = {
				is_ai = yes
			}
			add_character_flag = forgiving
			random_relation = {
				type = guardian
				trigger_event = tgp_child_personality.7091
			}
		}
		ai_chance = {
			base = 1
			modifier = {
				add = 4
				any_relation = {
					type = guardian
					has_trait = forgiving
				}
			}
			modifier = {
				add = -0.5
				any_relation = {
					type = guardian
					has_trait = vengeful
				}
			}
		}
	}

	option = { # trusting
		name = tgp_child_personality.7090.b
		trigger = {
			NOR = {
				has_trait = paranoid
				has_trait = trusting
			}
		}
		add_trait = trusting
		
		if = {
			limit = {
				is_ai = yes
			}
			add_character_flag = trusting
			random_relation = {
				type = guardian
				trigger_event = tgp_child_personality.7091
			}
		}
		ai_chance = {
			base = 1
			modifier = {
				add = 4
				any_relation = {
					type = guardian
					has_trait = trusting
				}
			}
			modifier = {
				add = -0.5
				any_relation = {
					type = guardian
					has_trait = paranoid
				}
			}
		}
	}

	option = { # patient
		name = tgp_child_personality.7090.c
		trigger = {
			NOR = {
				has_trait = patient
				has_trait = impatient
			}
		}
		add_trait = patient
		
		if = {
			limit = {
				is_ai = yes
			}
			add_character_flag = patient
			random_relation = {
				type = guardian
				trigger_event = tgp_child_personality.7091
			}
		}
		ai_chance = {
			base = 1
			modifier = {
				add = 4
				any_relation = {
					type = guardian
					has_trait = patient
				}
			}
			modifier = {
				add = -0.5
				any_relation = {
					type = guardian
					has_trait = impatient
				}
			}
			modifier = {
				add = 100
				culture = {
					has_cultural_parameter = patient_trait_more_common
				}
			}
		}
	}
	after = {
		scope:sorry_servant = {
			silent_disappearance_effect = yes
		}
	}
}

#humble, cynical, content
tgp_child_personality.7060 = {
	type = character_event
	title = tgp_child_personality.7060.t
	desc = tgp_child_personality.7060.desc
	theme = education
	override_background = { reference = relaxing_room }
	left_portrait = {
		character = root
		animation = disbelief
	}
	right_portrait = {
		character = scope:sycophantic_servant
		animation = admiration
	}

	trigger = {
		is_available_child_allow_travel = yes
		NAND = {
			OR = {
				has_trait = humble
				has_trait = arrogant
			}
			OR = {
				has_trait = cynical
				has_trait = zealous
			}
			OR = {
				has_trait = content
				has_trait = ambitious
			}
		}
		is_valid_for_east_asian_events_trigger = yes
	}

	weight_multiplier = {
		base = 1
		modifier = {
			add = 2
			any_relation = {
				type = guardian
				OR = {
					has_trait = humble
					has_trait = cynical
					has_trait = content
				}
			}
		}
		modifier = {
			add = 5
			culture = {
				has_cultural_parameter = humble_trait_more_common
			}
			NOR = {
				has_trait = humble
				has_trait = arrogant
			}
		}
		modifier = {
			add = 5
			culture = {
				has_cultural_parameter = content_trait_more_common
			}
			NOR = {
				has_trait = content
				has_trait = ambitious
			}
		}
	}

	immediate = {
		save_scope_as = child
		create_character = {
			template = merchant_template
			age = { 40 60 }
			location = root.location
			save_scope_as = sycophantic_servant
		}
	}

	option = { # humble
		name = tgp_child_personality.7060.a
		trigger = {
			NOR = {
				has_trait = humble
				has_trait = arrogant
			}
		}
		add_trait = humble

		if = {
			limit = {
				is_ai = yes
			}
			add_character_flag = humble
			random_relation = {
				type = guardian
				trigger_event = tgp_child_personality.7061
			}
		}
		ai_chance = {
			base = 1
			modifier = {
				add = 4
				any_relation = {
					type = guardian
					has_trait = humble
				}
			}
			modifier = {
				add = -0.5
				any_relation = {
					type = guardian
					has_trait = arrogant
				}
			}
			modifier = {
				add = 100
				culture = {
					has_cultural_parameter = humble_trait_more_common
				}
			}
		}
	}

	option = { # cynical
		name = tgp_child_personality.7060.b
		trigger = {
			NOR = {
				has_trait = zealous
				has_trait = cynical
			}
		}
		add_trait = cynical
		
		if = {
			limit = {
				is_ai = yes
			}
			add_character_flag = cynical
			random_relation = {
				type = guardian
				trigger_event = tgp_child_personality.7061
			}
		}
		ai_chance = {
			base = 1
			modifier = {
				add = 4
				any_relation = {
					type = guardian
					has_trait = cynical
				}
			}
			modifier = {
				add = -0.5
				any_relation = {
					type = guardian
					has_trait = zealous
				}
			}
		}
	}

	option = { # content
		name = tgp_child_personality.7060.c
		trigger = {
			NOR = {
				has_trait = content
				has_trait = ambitious
			}
		}
		add_trait = content
		
		if = {
			limit = {
				is_ai = yes
			}
			add_character_flag = content
			random_relation = {
				type = guardian
				trigger_event = tgp_child_personality.7061
			}
		}
		ai_chance = {
			base = 1
			modifier = {
				add = 4
				any_relation = {
					type = guardian
					has_trait = content
				}
			}
			modifier = {
				add = -0.5
				any_relation = {
					type = guardian
					has_trait = ambitious
				}
			}
			modifier = {
				add = 100
				culture = {
					has_cultural_parameter = content_trait_more_common
				}
			}
		}
	}
	after = {
		scope:sycophantic_servant = {
			silent_disappearance_effect = yes
		}
	}
}

#honest, arbitrary, impatient
tgp_child_personality.7100 = {
	type = character_event
	title = tgp_child_personality.7100.t
	desc = tgp_child_personality.7100.desc
	theme = education
	left_portrait = {
		character = root
		animation = stress
	}
	right_portrait = {
		character = scope:guardian
		animation = stressed_teacher
	}

	trigger = {
		is_available_child_allow_travel = yes
		OR = {
			any_relation = {
				type = guardian
				is_available = yes
			}
			exists = court_owner.court_position:court_tutor_court_position
			exists = court_owner.court_position:court_guru_court_position
			any_courtier_or_guest = {
				is_adult = yes
				is_available = yes
			}
			AND = {
				host ?= {
					any_courtier_or_guest = {
						is_adult = yes
						is_available = yes
					}
				}
			}
		}
		NAND = {
			OR = {
				has_trait = honest
				has_trait = deceitful
			}
			OR = {
				has_trait = arbitrary
				has_trait = just
			}
			OR = {
				has_trait = impatient
				has_trait = patient
			}
		}
		is_valid_for_east_asian_events_trigger = yes
	}

	weight_multiplier = {
		base = 1
		modifier = {
			add = 2
			any_relation = {
				type = guardian
				OR = {
					has_trait = honest
					has_trait = arbitrary
					has_trait = impatient
				}
			}
		}
		modifier = {
			add = 5
			culture = {
				has_cultural_parameter = honest_trait_more_common
			}
			NOR = {
				has_trait = honest
				has_trait = deceitful
			}
		}
	}

	immediate = {
		save_scope_as = child
		get_guardian_scope_effect = yes
	}

	option = { # honest
		name = tgp_child_personality.7100.a
		trigger = {
			NOR = {
				has_trait = honest
				has_trait = deceitful
			}
		}
		add_trait = honest
		
		if = {
			limit = {
				is_ai = yes
			}
			add_character_flag = honest
			random_relation = {
				type = guardian
				trigger_event = tgp_child_personality.7101
			}
		}
		ai_chance = {
			base = 1
			modifier = {
				add = 4
				any_relation = {
					type = guardian
					has_trait = honest
				}
			}
			modifier = {
				add = -0.5
				any_relation = {
					type = guardian
					has_trait = deceitful
				}
			}
			modifier = {
				add = 100
				culture = {
					has_cultural_parameter = honest_trait_more_common
				}
			}
		}
	}

	option = { # arbitrary
		name = tgp_child_personality.7100.b
		trigger = {
			NOR = {
				has_trait = just
				has_trait = arbitrary
			}
		}
		add_trait = arbitrary
		
		if = {
			limit = {
				is_ai = yes
			}
			add_character_flag = arbitrary
			random_relation = {
				type = guardian
				trigger_event = tgp_child_personality.7101
			}
		}
		ai_chance = {
			base = 1
			modifier = {
				add = 4
				any_relation = {
					type = guardian
					has_trait = arbitrary
				}
			}
			modifier = {
				add = -0.5
				any_relation = {
					type = guardian
					has_trait = just
				}
			}
		}
	}

	option = { # impatient
		name = tgp_child_personality.7100.c
		trigger = {
			NOR = {
				has_trait = impatient
				has_trait = patient
			}
		}
		add_trait = impatient
		
		if = {
			limit = {
				is_ai = yes
			}
			add_character_flag = impatient
			random_relation = {
				type = guardian
				trigger_event = tgp_child_personality.7101
			}
		}
		ai_chance = {
			base = 1
			modifier = {
				add = 4
				any_relation = {
					type = guardian
					has_trait = impatient
				}
			}
			modifier = {
				add = -0.5
				any_relation = {
					type = guardian
					has_trait = patient
				}
			}
		}
	}
}

####
# GUARDIAN EVENTS
####

#Child has become arrogant
tgp_child_personality.1021 = {
	type = character_event
	title = tgp_child_personality.1021.t
	desc = {
		desc = tgp_child_personality.102.desc
		desc = tgp_child_personality.102.arrogant
	}
	theme = education
	left_portrait = {
		character = scope:child
		animation = dismissal
	}
	right_portrait = {
		character = root
		animation = worry
	}

	trigger = {
		scope:child = {
			NAND = {
				OR = {
					has_trait = compassionate
					has_trait = callous
					has_trait = sadistic
				}
				OR = {
					has_trait = callous
					has_trait = compassionate
				}
			}
		}
	}

	immediate = {
		if = {
			limit = {
				court_owner ?= {
					exists = capital_province
				}
			}
			court_owner = {
				capital_province = {
					barony = { save_scope_as = court_location }
				}
			}
		}
	}

	option = {
		name = tgp_child_personality.102.confirm_arrogant
		custom_tooltip = child_personality.keeps_arrogant_tt
	}

	option = {
		name = tgp_child_personality.102.compassionate_change
		trigger = {
			scope:child = {
				NOR = {
					has_trait = compassionate
					has_trait = callous
					has_trait = sadistic
				}
			}
		}
		ai_chance = {
			base = 0
		}
		stress_impact = {
			base = child_trait_change_stress_penalty
		}
		scope:child = {
			remove_trait = arrogant
			add_trait_force_tooltip = compassionate
		}
	}

	option = {
		name = tgp_child_personality.102.callous_change
		trigger = {
			scope:child = {
				NOR = {
					has_trait = callous
					has_trait = compassionate
				}
			}
		}
		ai_chance = {
			base = 0
		}
		stress_impact = {
			base = child_trait_change_stress_penalty
		}
		scope:child = {
			remove_trait = arrogant
			add_trait_force_tooltip = callous
		}
	}
}

#Child has become compassionate
tgp_child_personality.1022 = {
	type = character_event
	title = tgp_child_personality.1021.t
	desc = {
		desc = tgp_child_personality.102.desc
		desc = tgp_child_personality.102.compassionate
	}
	theme = education
	left_portrait = {
		character = scope:child
		animation = personality_compassionate
	}
	right_portrait = {
		character = root
		animation = personality_rational
	}

	trigger = {
		scope:child = {
			NAND = {
				OR = {
					has_trait = arrogant
					has_trait = humble
				}
				OR = {
					has_trait = callous
					has_trait = sadistic
				}
			}
		}
	}

	option = {
		name = tgp_child_personality.102.confirm_compassionate
		custom_tooltip = child_personality.keeps_compassionate_tt
	}

	option = {
		name = tgp_child_personality.102.arrogant_change
		trigger = {
			scope:child = {
				NOR = {
					has_trait = arrogant
					has_trait = humble
				}
			}
		}
		ai_chance = {
			base = 0
		}
		stress_impact = {
			base = child_trait_change_stress_penalty
		}
		scope:child = {
			remove_trait = compassionate
			add_trait_force_tooltip = arrogant
		}
	}

	option = {
		name = tgp_child_personality.102.callous_change
		trigger = {
			scope:child = {
				NOR = {
					has_trait = callous
					has_trait = sadistic
				}
			}
		}
		ai_chance = {
			base = 0
		}
		stress_impact = {
			base = child_trait_change_stress_penalty
		}
		scope:child = {
			remove_trait = compassionate
			add_trait_force_tooltip = callous
		}
	}
}

#Child has become callous
tgp_child_personality.1023 = {
	type = character_event
	title = tgp_child_personality.1021.t
	desc = {
		desc = tgp_child_personality.102.desc
		desc = tgp_child_personality.102.callous
	}
	theme = education
	override_background = {
		reference = gallows
	}
	left_portrait = {
		character = scope:child
		animation = personality_callous
	}
	right_portrait = {
		character = root
		animation = worry
	}

	trigger = {
		scope:child = {
			NAND = {
				OR = {
					has_trait = arrogant
					has_trait = humble
				}
				OR = {
					has_trait = sadistic
					has_trait = compassionate
				}
			}
		}
	}

	option = {
		name = tgp_child_personality.102.confirm_callous
		custom_tooltip = child_personality.keeps_callous_tt
	}
	option = {
		name = tgp_child_personality.102.arrogant_change
		trigger = {
			scope:child = {
				NOR = {
					has_trait = arrogant
					has_trait = humble
				}
			}
		}
		scope:child = {
			if = {
				limit = {
					NOT = { has_trait = arrogant }
				}
				add_trait = arrogant
			}
		}
		ai_chance = {
			base = 0
		}
		stress_impact = {
			base = child_trait_change_stress_penalty
		}
		scope:child = {
			remove_trait = callous
		}
	}
	option = {
		name = tgp_child_personality.102.compassionate_change
		trigger = {
			scope:child = {
				NOR = {
					has_trait = compassionate
					has_trait = sadistic
				}
			}
		}
		scope:child = {
			if = {
				limit = {
					NOT = { has_trait = compassionate }
				}
				add_trait = compassionate
			}
		}
		ai_chance = {
			base = 0
		}
		stress_impact = {
			base = child_trait_change_stress_penalty
		}
		scope:child = {
			remove_trait = callous
			add_trait_force_tooltip = compassionate
		}
	}
}

#Child has become deceitful
tgp_child_personality.1031 = {
	type = character_event
	title = tgp_child_personality.1031.t
	desc = {
		desc = tgp_child_personality.103.desc
		desc = tgp_child_personality.103.deceitful
	}
	theme = education
	left_portrait = {
		character = scope:child
		animation = personality_dishonorable
	}
	right_portrait = {
		character = root
		animation = worry
	}

	trigger = {
		scope:child = {
			NAND = {
				has_trait = honest
				OR = {
					has_trait = humble
					has_trait = arrogant
				}
			}
		}
	}

	option = {
		name = tgp_child_personality.103.confirm_deceitful
		custom_tooltip = child_personality.keeps_deceitful_tt
	}

	option = {
		name = tgp_child_personality.103.honest_change
		trigger = {
			scope:child = {
				NOT = { has_trait = honest }
			}
		}
		ai_chance = {
			base = 0
		}
		stress_impact = {
			base = child_trait_change_stress_penalty
		}
		scope:child = {
			remove_trait = deceitful
			add_trait_force_tooltip = honest
		}
	}

	option = {
		name = tgp_child_personality.103.humble_change
		trigger = {
			scope:child = {
				NOR = {
					has_trait = humble
					has_trait = arrogant
				}
			}
		}
		ai_chance = {
			base = 0
		}
		stress_impact = {
			base = child_trait_change_stress_penalty
		}
		scope:child = {
			remove_trait = deceitful
			add_trait_force_tooltip = humble
		}
	}
}

#Child has become honest
tgp_child_personality.1032 = {
	type = character_event
	title = tgp_child_personality.1031.t
	desc = {
		desc = tgp_child_personality.103.desc
		desc = tgp_child_personality.103.honest
	}
	theme = education
	left_portrait = {
		character = scope:child
		animation = personality_honorable
	}
	right_portrait = {
		character = root
		animation = happiness
	}

	trigger = {
		scope:child = {
			NAND = {
				has_trait = deceitful
				OR = {
					has_trait = humble
					has_trait = arrogant
				}
			}
		}
	}

	option = {
		name = tgp_child_personality.103.confirm_honest
		custom_tooltip = child_personality.keeps_honest_tt
	}

	option = {
		name = tgp_child_personality.103.deceitful_change
		trigger = {
			NOT = {
				scope:child = { has_trait = deceitful }
			}
		}
		ai_chance = {
			base = 0
		}
		stress_impact = {
			base = child_trait_change_stress_penalty
		}
		scope:child = {
			remove_trait = honest
			add_trait_force_tooltip = deceitful
		}
	}

	option = {
		name = tgp_child_personality.103.humble_change
		trigger = {
			scope:child = {
				NOR = {
					has_trait = humble
					has_trait = arrogant
				}
			}
		}
		ai_chance = {
			base = 0
		}
		stress_impact = {
			base = child_trait_change_stress_penalty
		}
		scope:child = {
			remove_trait = honest
			add_trait_force_tooltip = humble
		}
	}
}

#Child has become humble
tgp_child_personality.1033 = {
	type = character_event
	title = tgp_child_personality.1031.t
	desc = {
		desc = tgp_child_personality.103.desc
		desc = tgp_child_personality.103.humble
	}
	theme = education
	left_portrait = {
		character = scope:child
		animation = personality_forgiving
	}
	right_portrait = {
		character = root
		animation = happiness
	}

	trigger = {
		scope:child = {
			NOR = {
				has_trait = honest
				has_trait = deceitful
			}
		}
	}

	option = {
		name = tgp_child_personality.103.confirm_humble
		custom_tooltip = child_personality.keeps_humble_tt
	}

	option = {
		name = tgp_child_personality.103.deceitful_change
		trigger = {
			scope:child = {
				NOR = {
					has_trait = honest
					has_trait = deceitful
				}
			}
		}
		ai_chance = {
			base = 0
		}
		stress_impact = {
			base = child_trait_change_stress_penalty
		}
		scope:child = {
			remove_trait = humble
			add_trait_force_tooltip = deceitful
		}
	}

	option = {
		name = tgp_child_personality.103.honest_change
		trigger = {
			scope:child = {
				NOR = {
					has_trait = deceitful
					has_trait = honest
				}
			}
		}
		ai_chance = {
			base = 0
		}
		stress_impact = {
			base = child_trait_change_stress_penalty
		}
		scope:child = {
			remove_trait = humble
			add_trait_force_tooltip = honest
		}
	}
}

#Child has become generous
tgp_child_personality.1041 = {
	type = character_event
	title = tgp_child_personality.1041.t
	desc = {
		desc = tgp_child_personality.104.desc
		desc = tgp_child_personality.104.generous
	}
	theme = education

	left_portrait = {
		character = root
		animation = personality_rational
	}

	right_portrait = {
		character = scope:child
		animation = personality_honorable
	}

	trigger = {
		scope:child = {
			NAND = {
				OR = {
					has_trait = diligent
					has_trait = lazy
				}
				OR = {
					has_trait = patient
					has_trait = impatient
				}
			}
		}
	}
	
	immediate = {
		random_knight = { # Just for flavor
			limit = {
				is_available_ai_adult = yes
				is_courtier = yes
			}
			save_scope_as = knight
		}
	}

	option = {
		name = tgp_child_personality.104.confirm_generous
		custom_tooltip = child_personality.keeps_generous_tt
	}

	option = {
		name = tgp_child_personality.104.diligent_change
		trigger = {
			scope:child = {
				NOR = {
					has_trait = diligent
					has_trait = lazy
				}
			}
		}
		ai_chance = {
			base = 0
		}
		stress_impact = {
			base = child_trait_change_stress_penalty
		}
		scope:child = {
			remove_trait = generous
			add_trait_force_tooltip = diligent
		}
	}

	option = {
		name = tgp_child_personality.104.patient_change
		trigger = {
			scope:child = {
				NOR = {
					has_trait = patient
					has_trait = impatient
				}
			}
		}
		ai_chance = {
			base = 0
		}
		stress_impact = {
			base = child_trait_change_stress_penalty
		}
		scope:child = {
			remove_trait = generous
			add_trait_force_tooltip = patient
		}
	}
}

#Child has become diligent
tgp_child_personality.1042 = {
	type = character_event
	title = tgp_child_personality.1041.t
	desc = {
		desc = tgp_child_personality.104.desc
		desc = tgp_child_personality.104.diligent
	}
	theme = education
	left_portrait = {
		character = root
		animation = personality_rational
	}
	right_portrait = {
		character = scope:child
		animation = personality_honorable
	}

	trigger = {
		scope:child = {
			NAND = {
				OR = {
					has_trait = generous
					has_trait = greedy
				}
				OR = {
					has_trait = patient
					has_trait = impatient
				}
			}
		}
	}
	
	immediate = {
		random_courtier = {
			limit = {
				is_physically_able = yes
				is_knight = yes
			}
			save_scope_as = knight
		}
	}

	option = {
		name = tgp_child_personality.104.confirm_diligent
		custom_tooltip = child_personality.keeps_diligent_tt
	}

	option = {
		name = tgp_child_personality.104.generous_change
		trigger = {
			scope:child = {
				NOR = {
					has_trait = generous
					has_trait = greedy
				}
			}
		}
		ai_chance = {
			base = 0
		}
		stress_impact = {
			base = child_trait_change_stress_penalty
		}
		scope:child = {
			remove_trait = diligent
			add_trait_force_tooltip = generous
		}
	}

	option = {
		name = tgp_child_personality.104.patient_change
		trigger = {
			scope:child = {
				NOR = {
					has_trait = patient
					has_trait = impatient
				}
			}
		}
		ai_chance = {
			base = 0
		}
		stress_impact = {
			base = child_trait_change_stress_penalty
		}
		scope:child = {
			remove_trait = diligent
			add_trait_force_tooltip = patient
		}
	}
}

#Child has become patient
tgp_child_personality.1043 = {
	type = character_event
	title = tgp_child_personality.1041.t
	desc = {
		desc = tgp_child_personality.104.desc
		desc = tgp_child_personality.104.patient
	}
	theme = education
	left_portrait = {
		character = root
		animation = personality_rational
	}
	right_portrait = {
		character = scope:child
		animation = personality_honorable
	}

	trigger = {
		scope:child = {
			NAND = {
				OR = {
					has_trait = generous
					has_trait = greedy
				}
				OR = {
					has_trait = diligent
					has_trait = lazy
				}
			}
		}
	}

	option = {
		name = tgp_child_personality.104.confirm_patient
		custom_tooltip = child_personality.keeps_patient_tt
	}

	option = {
		name = tgp_child_personality.104.generous_change
		trigger = {
			scope:child = {
				NOR = {
					has_trait = generous
					has_trait = greedy
				}
			}
		}
		ai_chance = {
			base = 0
		}
		stress_impact = {
			base = child_trait_change_stress_penalty
		}
		scope:child = {
			remove_trait = patient
			add_trait_force_tooltip = generous
		}
	}

	option = {
		name = tgp_child_personality.104.diligent_change
		trigger = {
			scope:child = {
				NOR = {
					has_trait = diligent
					has_trait = lazy
				}
			}
		}
		ai_chance = {
			base = 0
		}
		stress_impact = {
			base = child_trait_change_stress_penalty
		}
		scope:child = {
			remove_trait = patient
			add_trait_force_tooltip = diligent
		}
	}
}

#Child has become just
tgp_child_personality.1071 = {
	type = character_event
	title = tgp_child_personality.1071.t
	desc = {
		desc = tgp_child_personality.107.desc
		desc = tgp_child_personality.107.just
	}
	theme = education

	left_portrait = {
		character = root
		animation = personality_rational
	}
	right_portrait = {
		character = scope:child
		animation = disapproval
	}

	trigger = {
		scope:child = {
			NAND = {
				OR = {
					has_trait = cynical
					has_trait = trusting
				}
				OR = {
					has_trait = temperate
					has_trait = gluttonous
				}
			}
		}
	}

	option = {
		name = tgp_child_personality.107.confirm_just
		custom_tooltip = child_personality.keeps_just_tt
	}

	option = {
		name = tgp_child_personality.107.cynical_change
		trigger = {
			scope:child = {
				NOR = {
					has_trait = cynical
					has_trait = trusting
				}
			}
		}
		ai_chance = {
			base = 0
		}
		stress_impact = {
			base = child_trait_change_stress_penalty
		}
		scope:child = {
			remove_trait = just
			add_trait_force_tooltip = cynical
		}
	}

	option = {
		name = tgp_child_personality.107.temperate_change
		trigger = {
			scope:child = {
				NOR = {
					has_trait = temperate
					has_trait = gluttonous
				}
			}
		}
		ai_chance = {
			base = 0
		}
		stress_impact = {
			base = child_trait_change_stress_penalty
		}
		scope:child = {
			remove_trait = just
			add_trait_force_tooltip = temperate
		}
	}
}

#Child has become cynical
tgp_child_personality.1072 = {
	type = character_event
	title = tgp_child_personality.1071.t
	desc = {
		desc = tgp_child_personality.107.desc
		desc = tgp_child_personality.107.cynical
	}
	theme = education
	left_portrait = {
		character = root
		animation = personality_rational
	}
	right_portrait = {
		character = scope:child
		animation = personality_cynical
	}

	trigger = {
		scope:child = {
			NAND = {
				OR = {
					has_trait = just
					has_trait = arbitrary
				}
				OR = {
					has_trait = temperate
					has_trait = gluttonous
				}
			}
		}
	}

	option = {
		name = tgp_child_personality.107.confirm_cynical
		custom_tooltip = child_personality.keeps_cynical_tt
	}

	option = {
		name = tgp_child_personality.107.just_change
		trigger = {
			scope:child = {
				NOR = {
					has_trait = just
					has_trait = arbitrary
				}
			}
		}
		ai_chance = {
			base = 0
		}
		stress_impact = {
			base = child_trait_change_stress_penalty
		}
		scope:child = {
			remove_trait = cynical
			add_trait_force_tooltip = just
		}
	}

	option = {
		name = tgp_child_personality.107.temperate_change
		trigger = {
			scope:child = {
				NOR = {
					has_trait = temperate
					has_trait = gluttonous
				}
			}
		}
		ai_chance = {
			base = 0
		}
		stress_impact = {
			base = child_trait_change_stress_penalty
		}
		scope:child = {
			remove_trait = cynical
			add_trait_force_tooltip = temperate
		}
	}
}

#Child has become temperate
tgp_child_personality.1073 = {
	type = character_event
	title = tgp_child_personality.1071.t
	desc = {
		desc = tgp_child_personality.107.desc
		desc = tgp_child_personality.107.temperate
	}
	theme = education

	left_portrait = {
		character = root
		animation = personality_rational
	}
	right_portrait = {
		character = scope:child
		animation = personality_compassionate
	}

	trigger = {
		scope:child = {
			NAND = {
				OR = {
					has_trait = just
					has_trait = arbitrary
				}
				OR = {
					has_trait = cynical
					has_trait = trusting
				}
			}
		}
	}

	option = {
		name = tgp_child_personality.107.confirm_temperate
		custom_tooltip = child_personality.keeps_temperate_tt
	}

	option = {
		name = tgp_child_personality.107.just_change
		trigger = {
			scope:child = {
				NOR = {
					has_trait = just
					has_trait = arbitrary
				}
			}
		}
		ai_chance = {
			base = 0
		}
		stress_impact = {
			base = child_trait_change_stress_penalty
		}
		scope:child = {
			remove_trait = temperate
			add_trait_force_tooltip = just
		}
	}

	option = {
		name = tgp_child_personality.107.cynical_change
		trigger = {
			scope:child = {
				NOR = {
					has_trait = cynical
					has_trait = trusting
				}
			}
		}
		ai_chance = {
			base = 0
		}
		stress_impact = {
			base = child_trait_change_stress_penalty
		}
		scope:child = {
			remove_trait = temperate
			add_trait_force_tooltip = cynical
		}
	}
}

#Child has become brave
tgp_child_personality.1091 = {
	type = character_event
	title = tgp_child_personality.1091.t
	desc = {
		desc = tgp_child_personality.109.desc
		desc = tgp_child_personality.109.brave
	}
	theme = education

	left_portrait = {
		character = root
		animation = personality_rational
	}
	right_portrait = {
		character = scope:child
		animation = personality_bold
	}

	trigger = {
		scope:child = {
			NAND = {
				OR = {
					has_trait = calm
					has_trait = wrathful
				}
				OR = {
					has_trait = zealous
					has_trait = cynical
				}
			}
		}
	}

	option = {
		name = tgp_child_personality.109.confirm_brave
		custom_tooltip = child_personality.keeps_brave_tt
	}

	option = {
		name = tgp_child_personality.109.calm_change
		trigger = {
			scope:child = {
				NOR = {
					has_trait = calm
					has_trait = wrathful
				}
			}
		}
		ai_chance = {
			base = 0
		}
		stress_impact = {
			base = child_trait_change_stress_penalty
		}
		scope:child = {
			remove_trait = brave
			add_trait_force_tooltip = calm
		}
	}

	option = {
		name = tgp_child_personality.109.zealous_change
		trigger = {
			scope:child = {
				NOR = {
					has_trait = zealous
					has_trait = cynical
				}
			}
		}
		ai_chance = {
			base = 0
		}
		stress_impact = {
			base = child_trait_change_stress_penalty
		}
		scope:child = {
			remove_trait = brave
			add_trait_force_tooltip = zealous
		}
	}
}

#Child has become calm
tgp_child_personality.1092 = {
	type = character_event
	title = tgp_child_personality.1091.t
	desc = {
		desc = tgp_child_personality.109.desc
		desc = tgp_child_personality.109.calm
	}
	theme = education
	left_portrait = {
		character = root
		animation = personality_compassionate
	}
	right_portrait = {
		character = scope:child
		animation = personality_compassionate
	}

	trigger = {
		scope:child = {
			NAND = {
				OR = {
					has_trait = brave
					has_trait = craven
				}
				OR = {
					has_trait = zealous
					has_trait = cynical
				}
			}
		}
	}

	option = {
		name = tgp_child_personality.109.confirm_calm
		custom_tooltip = child_personality.keeps_calm_tt
	}

	option = {
		name = tgp_child_personality.109.brave_change
		trigger = {
			scope:child = {
				NOR = {
					has_trait = brave
					has_trait = craven
				}
			}
		}
		ai_chance = {
			base = 0
		}
		stress_impact = {
			base = child_trait_change_stress_penalty
		}
		scope:child = {
			remove_trait = calm
			add_trait_force_tooltip = brave
		}
	}

	option = {
		name = tgp_child_personality.109.zealous_change
		trigger = {
			scope:child = {
				NOR = {
					has_trait = zealous
					has_trait = cynical
				}
			}
		}
		ai_chance = {
			base = 0
		}
		stress_impact = {
			base = child_trait_change_stress_penalty
		}
		scope:child = {
			remove_trait = calm
			add_trait_force_tooltip = zealous
		}
	}
}

#Child has become zealous
tgp_child_personality.1093 = {
	type = character_event
	title = tgp_child_personality.1091.t
	desc = {
		desc = tgp_child_personality.109.desc
		desc = tgp_child_personality.109.zealous
	}
	theme = education
	left_portrait = {
		character = root
		animation = personality_rational
	}
	right_portrait = {
		character = scope:child
		animation = personality_zealous
	}

	trigger = {
		scope:child = {
			NAND = {
				OR = {
					has_trait = brave
					has_trait = craven
				}
				OR = {
					has_trait = calm
					has_trait = wrathful
				}
			}
		}
	}

	option = {
		name = tgp_child_personality.109.confirm_zealous
		custom_tooltip = child_personality.keeps_zealous_tt
	}

	option = {
		name = tgp_child_personality.109.brave_change
		trigger = {
			scope:child = {
				NOR = {
					has_trait = brave
					has_trait = craven
				}
			}
		}
		ai_chance = {
			base = 0
		}
		stress_impact = {
			base = child_trait_change_stress_penalty
		}
		scope:child = {
			remove_trait = zealous
			add_trait_force_tooltip = brave
		}
	}

	option = {
		name = tgp_child_personality.109.calm_change
		trigger = {
			scope:child = {
				NOR = {
					has_trait = calm
					has_trait = wrathful
				}
			}
		}
		ai_chance = {
			base = 0
		}
		stress_impact = {
			base = child_trait_change_stress_penalty
		}
		scope:child = {
			remove_trait = zealous
			add_trait_force_tooltip = calm
		}
	}
}

#Responses to Ambitious, Sadistic or Paranoid
#0010

#Child has become ambitious
tgp_child_personality.1101 = {
	type = character_event
	title = tgp_child_personality.1101.t
	desc = {
		desc = tgp_child_personality.110.desc
		desc = tgp_child_personality.110.ambitious
	}
	theme = education

	left_portrait = {
		character = root
		animation = personality_rational
	}
	right_portrait = {
		character = scope:child
		animation = personality_bold
	}

	trigger = {
		scope:child = {
			NAND = {
				OR = {
					has_trait = sadistic
					has_trait = compassionate
					has_trait = callous
				}
				OR = {
					has_trait = paranoid
					has_trait = trusting
				}
			}
		}
	}

	option = {
		name = tgp_child_personality.110.confirm_ambitious
		custom_tooltip = child_personality.keeps_ambitious_tt
	}

	option = {
		name = tgp_child_personality.110.sadistic_change
		trigger = {
			scope:child = {
				NOR = {
					has_trait = sadistic
					has_trait = compassionate
					has_trait = callous
				}
			}
		}
		ai_chance = {
			base = 0
		}
		stress_impact = {
			base = child_trait_change_stress_penalty
		}
		scope:child = {
			remove_trait = ambitious
			add_trait_force_tooltip = sadistic
		}
	}

	option = {
		name = tgp_child_personality.110.paranoid_change
		trigger = {
			scope:child = {
				NOR = {
					has_trait = paranoid
					has_trait = trusting
				}
			}
		}
		ai_chance = {
			base = 0
		}
		stress_impact = {
			base = child_trait_change_stress_penalty
		}
		scope:child = {
			remove_trait = ambitious
			add_trait_force_tooltip = paranoid
		}
	}
}

#Child has become sadistic
tgp_child_personality.1102 = {
	type = character_event
	title = tgp_child_personality.1101.t
	desc = {
		desc = tgp_child_personality.110.desc
		desc = tgp_child_personality.110.sadistic
	}
	theme = education
	override_background = {
		reference = terrain
	}

	left_portrait = {
		character = root
		animation = worry
	}
	right_portrait = {
		character = scope:child
		animation = happiness
	}

	trigger = {
		scope:child = {
			NAND = {
				OR = {
					has_trait = ambitious
					has_trait = content
				}
				OR = {
					has_trait = paranoid
					has_trait = trusting
				}
			}
		}
	}

	option = {
		name = tgp_child_personality.110.confirm_sadistic
		custom_tooltip = child_personality.keeps_sadistic_tt
	}

	option = {
		name = tgp_child_personality.110.ambitious_change
		trigger = {
			scope:child = {
				NOR = {
					has_trait = ambitious
					has_trait = content
				}
			}
		}
		ai_chance = {
			base = 0
		}
		stress_impact = {
			base = child_trait_change_stress_penalty
		}
		scope:child = {
			remove_trait = sadistic
			add_trait_force_tooltip = ambitious
		}
	}

	option = {
		name = tgp_child_personality.110.paranoid_change
		trigger = {
			scope:child = {
				NOR = {
					has_trait = paranoid
					has_trait = trusting
				}
			}
		}
		ai_chance = {
			base = 0
		}
		stress_impact = {
			base = child_trait_change_stress_penalty
		}
		scope:child = {
			remove_trait = sadistic
			add_trait_force_tooltip = paranoid
		}
	}
}

#Child has become paranoid
tgp_child_personality.1103 = {
	type = character_event
	title = tgp_child_personality.1101.t
	desc = {
		desc = tgp_child_personality.110.desc
		desc = tgp_child_personality.110.paranoid
	}
	theme = education

	left_portrait = {
		character = root
		animation = worry
	}
	right_portrait = {
		character = scope:child
		animation = paranoia
	}

	trigger = {
		scope:child = {
			NAND = {
				OR = {
					has_trait = ambitious
					has_trait = content
				}
				OR = {
					has_trait = sadistic
					has_trait = compassionate
					has_trait = callous
				}
			}
		}
	}

	option = {
		name = tgp_child_personality.110.confirm_paranoid
		custom_tooltip = child_personality.keeps_paranoid_tt
	}

	option = {
		name = tgp_child_personality.110.ambitious_change
		trigger = {
			scope:child = {
				NOR = {
					has_trait = ambitious
					has_trait = content
				}
			}
		}
		ai_chance = {
			base = 0
		}
		stress_impact = {
			base = child_trait_change_stress_penalty
		}
		scope:child = {
			remove_trait = paranoid
			add_trait_force_tooltip = ambitious
		}
	}

	option = {
		name = tgp_child_personality.110.sadistic_change
		trigger = {
			scope:child = {
				NOR = {
					has_trait = sadistic
					has_trait = compassionate
					has_trait = callous
				}
			}
		}
		ai_chance = {
			base = 0
		}
		stress_impact = {
			base = child_trait_change_stress_penalty
		}
		scope:child = {
			remove_trait = paranoid
			add_trait_force_tooltip = sadistic
		}
	}
}

#Guardian response to diligent, gregarious, temperate
tgp_child_personality.7001 = {
	type = character_event
	title = tgp_child_personality.7001.t
	desc = {
		desc = tgp_child_personality.7001.desc
		first_valid = {
			triggered_desc = {
			    trigger = {
					scope:child = {
						has_character_flag = diligent
					}
			    }
			    desc = {
			    	desc = tgp_child_personality.diligent.desc
			    }
			}
			triggered_desc = {
			    trigger = {
					scope:child = {
						has_character_flag = gregarious
					}
			    }
			    desc = {
			    	desc = tgp_child_personality.gregarious.desc
			    }
			}
			triggered_desc = {
			    trigger = {
					scope:child = {
						has_character_flag = temperate
					}
			    }
			    desc = {
			    	desc = tgp_child_personality.temperate.desc
			    }
			}
		}
	}
	theme = education
	left_portrait = {
		character = root
		animation = personality_rational
	}
	right_portrait = {
		character = scope:child
		triggered_animation = {
			trigger = {
				scope:child = {
					has_character_flag = diligent
				}
			}
  			animation = personality_honorable
  		}
		triggered_animation = {
			trigger = {
				scope:child = {
					has_character_flag = gregarious
				}
			}
  			animation = personality_irrational
  		}
		triggered_animation = {
			trigger = {
				scope:child = {
					has_character_flag = temperate
				}
			}
  			animation = personality_content
  		}
	}

	option = {
		trigger = {
			scope:child = {
				has_character_flag = diligent
			}
		}
		name = tgp_child_personality.7001.diligent
		custom_tooltip = child_personality.keeps_diligent_tt
	}

	option = {
		trigger = {
			scope:child = {
				has_character_flag = gregarious
			}
		}
		name = tgp_child_personality.7001.gregarious
		custom_tooltip = child_personality.keeps_gregarious_tt
	}

	option = {
		trigger = {
			scope:child = {
				has_character_flag = temperate
			}
		}
		name = tgp_child_personality.7001.temperate
		custom_tooltip = child_personality.keeps_temperate_tt
	}

	option = {
		name = tgp_child_personality.7001.change.diligent
		trigger = {
			scope:child = {
				NOR = {
					has_trait = lazy
					has_trait = diligent
				}
			}
		}
		ai_chance = {
			base = 0
		}
		stress_impact = {
			base = child_trait_change_stress_penalty
		}
		scope:child = {
			if = {
				limit = {
					has_character_flag = gregarious
				}
				remove_trait = gregarious
			}
			if = {
				limit = {
					has_character_flag = temperate
				}
				remove_trait = temperate
			}
			add_trait_force_tooltip = diligent
		}
	}

	option = {
		name = tgp_child_personality.7001.change.gregarious
		trigger = {
			scope:child = {
				NOR = {
					has_trait = shy
					has_trait = gregarious
				}
			}
		}
		ai_chance = {
			base = 0
		}
		stress_impact = {
			base = child_trait_change_stress_penalty
		}
		scope:child = {
			if = {
				limit = {
					has_character_flag = diligent
				}
				remove_trait = diligent
			}
			if = {
				limit = {
					has_character_flag = temperate
				}
				remove_trait = temperate
			}
			add_trait_force_tooltip = gregarious
		}
	}

	option = {
		name = tgp_child_personality.7001.change.temperate
		trigger = {
			scope:child = {
				NOR = {
					has_trait = gluttonous
					has_trait = temperate
				}
			}
		}
		ai_chance = {
			base = 0
		}
		stress_impact = {
			base = child_trait_change_stress_penalty
		}
		scope:child = {
			if = {
				limit = {
					has_character_flag = gregarious
				}
				remove_trait = gregarious
			}
			if = {
				limit = {
					has_character_flag = diligent
				}
				remove_trait = diligent
			}
			add_trait_force_tooltip = temperate
		}
	}
	
	after = {
		scope:child = {
			remove_character_flag = diligent
			remove_character_flag = gregarious
			remove_character_flag = temperate
		}
	}
}

#Guardian response to zealous, ambitious, sadistic
tgp_child_personality.7011 = {
	type = character_event
	title = tgp_child_personality.7011.t
	desc = {
		desc = tgp_child_personality.7011.desc
		first_valid = {
			triggered_desc = {
			    trigger = {
					scope:child = {
						has_character_flag = zealous
					}
			    }
			    desc = {
			    	desc = tgp_child_personality.zealous.desc
			    }
			}
			triggered_desc = {
			    trigger = {
					scope:child = {
						has_character_flag = ambitious
					}
			    }
			    desc = {
			    	desc = tgp_child_personality.ambitious.desc
			    }
			}
			triggered_desc = {
			    trigger = {
					scope:child = {
						has_character_flag = sadistic
					}
			    }
			    desc = {
			    	desc = tgp_child_personality.sadistic.desc
			    }
			}
		}
	}
	theme = education
	left_portrait = {
		character = root
		animation = personality_zealous
	}
	right_portrait = {
		character = scope:child
		triggered_animation = {
			trigger = {
				scope:child = {
					has_character_flag = zealous
				}
			}
  			animation = personality_zealous
  		}
		triggered_animation = {
			trigger = {
				scope:child = {
					has_character_flag = ambitious
				}
			}
  			animation = personality_greedy
  		}
		triggered_animation = {
			trigger = {
				scope:child = {
					has_character_flag = sadistic
				}
			}
  			animation = schadenfreude
  		}
	}

	option = {
		trigger = {
			scope:child = {
				has_character_flag = zealous
			}
		}
		name = tgp_child_personality.7011.zealous
		custom_tooltip = child_personality.keeps_zealous_tt
	}

	option = {
		trigger = {
			scope:child = {
				has_character_flag = ambitious
			}
		}
		name = tgp_child_personality.7011.ambitious
		custom_tooltip = child_personality.keeps_ambitious_tt
	}

	option = {
		trigger = {
			scope:child = {
				has_character_flag = sadistic
			}
		}
		name = tgp_child_personality.7011.sadistic
		custom_tooltip = child_personality.keeps_sadistic_tt
	}

	option = {
		name = tgp_child_personality.7011.change.zealous
		trigger = {
			scope:child = {
				NOR = {
					has_trait = zealous
					has_trait = cynical
				}
			}
		}
		ai_chance = {
			base = 0
		}
		stress_impact = {
			base = child_trait_change_stress_penalty
		}
		scope:child = {
			if = {
				limit = {
					has_character_flag = ambitious
				}
				remove_trait = ambitious
			}
			if = {
				limit = {
					has_character_flag = sadistic
				}
				remove_trait = sadistic
			}
			add_trait_force_tooltip = zealous
		}
	}

	option = {
		name = tgp_child_personality.7011.change.ambitious
		trigger = {
			scope:child = {
				NOR = {
					has_trait = ambitious
					has_trait = content
				}
			}
		}
		ai_chance = {
			base = 0
		}
		stress_impact = {
			base = child_trait_change_stress_penalty
		}
		scope:child = {
			if = {
				limit = {
					has_character_flag = zealous
				}
				remove_trait = zealous
			}
			if = {
				limit = {
					has_character_flag = sadistic
				}
				remove_trait = sadistic
			}
			add_trait_force_tooltip = ambitious
		}
	}

	option = {
		name = tgp_child_personality.7011.change.sadistic
		trigger = {
			scope:child = {
				NOR = {
					has_trait = sadistic
					has_trait = callous
					has_trait = compassionate
				}
			}
		}
		ai_chance = {
			base = 0
		}
		stress_impact = {
			base = child_trait_change_stress_penalty
		}
		scope:child = {
			if = {
				limit = {
					has_character_flag = zealous
				}
				remove_trait = zealous
			}
			if = {
				limit = {
					has_character_flag = ambitious
				}
				remove_trait = ambitious
			}
			add_trait_force_tooltip = sadistic
		}
	}
	
	after = {
		scope:child = {
			remove_character_flag = zealous
			remove_character_flag = ambitious
			remove_character_flag = sadistic
		}
	}
}

#Guardian response to shy, paranoid, craven
tgp_child_personality.7021 = {
	type = character_event
	title = tgp_child_personality.7021.t
	desc = {
		desc = tgp_child_personality.7021.desc
		first_valid = {
			triggered_desc = {
			    trigger = {
					scope:child = {
						has_character_flag = shy
					}
			    }
			    desc = {
			    	desc = tgp_child_personality.shy.desc
			    }
			}
			triggered_desc = {
			    trigger = {
					scope:child = {
						has_character_flag = paranoid
					}
			    }
			    desc = {
			    	desc = tgp_child_personality.paranoid.desc
			    }
			}
			triggered_desc = {
			    trigger = {
					scope:child = {
						has_character_flag = craven
					}
			    }
			    desc = {
			    	desc = tgp_child_personality.craven.desc
			    }
			}
		}
	}
	theme = education
	left_portrait = {
		character = root
		animation = shock
	}
	right_portrait = {
		character = scope:child
		triggered_animation = {
			trigger = {
				scope:child = {
					has_character_flag = shy
				}
			}
  			animation = worry
  		}
		triggered_animation = {
			trigger = {
				scope:child = {
					has_character_flag = paranoid
				}
			}
  			animation = paranoia
  		}
		triggered_animation = {
			trigger = {
				scope:child = {
					has_character_flag = craven
				}
			}
  			animation = personality_coward
  		}
	}

	option = {
		trigger = {
			scope:child = {
				has_character_flag = shy
			}
		}
		name = tgp_child_personality.7021.shy
		custom_tooltip = child_personality.keeps_shy_tt
	}

	option = {
		trigger = {
			scope:child = {
				has_character_flag = paranoid
			}
		}
		name = tgp_child_personality.7021.paranoid
		custom_tooltip = child_personality.keeps_paranoid_tt
	}

	option = {
		trigger = {
			scope:child = {
				has_character_flag = craven
			}
		}
		name = tgp_child_personality.7021.craven
		custom_tooltip = child_personality.keeps_craven_tt
	}

	option = {
		name = tgp_child_personality.7021.change.shy
		trigger = {
			scope:child = {
				NOR = {
					has_trait = shy
					has_trait = gregarious
				}
			}
		}
		ai_chance = {
			base = 0
		}
		stress_impact = {
			base = child_trait_change_stress_penalty
		}
		scope:child = {
			if = {
				limit = {
					has_character_flag = paranoid
				}
				remove_trait = paranoid
			}
			if = {
				limit = {
					has_character_flag = craven
				}
				remove_trait = craven
			}
			add_trait_force_tooltip = shy
		}
	}

	option = {
		name = tgp_child_personality.7021.change.paranoid
		trigger = {
			scope:child = {
				NOR = {
					has_trait = paranoid
					has_trait = trusting
				}
			}
		}
		ai_chance = {
			base = 0
		}
		stress_impact = {
			base = child_trait_change_stress_penalty
		}
		scope:child = {
			if = {
				limit = {
					has_character_flag = shy
				}
				remove_trait = shy
			}
			if = {
				limit = {
					has_character_flag = craven
				}
				remove_trait = craven
			}
			add_trait_force_tooltip = paranoid
		}
	}

	option = {
		name = tgp_child_personality.7021.change.craven
		trigger = {
			scope:child = {
				NOR = {
					has_trait = craven
					has_trait = brave
				}
			}
		}
		ai_chance = {
			base = 0
		}
		stress_impact = {
			base = child_trait_change_stress_penalty
		}
		scope:child = {
			if = {
				limit = {
					has_character_flag = shy
				}
				remove_trait = shy
			}
			if = {
				limit = {
					has_character_flag = paranoid
				}
				remove_trait = paranoid
			}
			add_trait_force_tooltip = craven
		}
	}
	
	after = {
		scope:child = {
			remove_character_flag = shy
			remove_character_flag = paranoid
			remove_character_flag = craven
		}
	}
}

#Guardian response to lazy, gluttonous, compassionate
tgp_child_personality.7031 = {
	type = character_event
	title = tgp_child_personality.7031.t
	desc = {
		desc = tgp_child_personality.7031.desc
		first_valid = {
			triggered_desc = {
			    trigger = {
					scope:child = {
						has_character_flag = lazy
					}
			    }
			    desc = {
			    	desc = tgp_child_personality.lazy.desc
			    }
			}
			triggered_desc = {
			    trigger = {
					scope:child = {
						has_character_flag = gluttonous
					}
			    }
			    desc = {
			    	desc = tgp_child_personality.gluttonous.desc
			    }
			}
			triggered_desc = {
			    trigger = {
					scope:child = {
						has_character_flag = compassionate
					}
			    }
			    desc = {
			    	desc = tgp_child_personality.compassionate.desc
			    }
			}
		}
	}
	theme = education
	left_portrait = {
		character = root
		animation = personality_rational
	}
	right_portrait = {
		character = scope:child
		triggered_animation = {
			trigger = {
				scope:child = {
					has_character_flag = lazy
				}
			}
  			animation = shame
  		}
		triggered_animation = {
			trigger = {
				scope:child = {
					has_character_flag = gluttonous
				}
			}
  			animation = beg
  		}
		triggered_animation = {
			trigger = {
				scope:child = {
					has_character_flag = compassionate
				}
			}
  			animation = personality_compassionate
  		}
	}

	option = {
		trigger = {
			scope:child = {
				has_character_flag = lazy
			}
		}
		name = tgp_child_personality.7031.lazy
		custom_tooltip = child_personality.keeps_lazy_tt
	}

	option = {
		trigger = {
			scope:child = {
				has_character_flag = gluttonous
			}
		}
		name = tgp_child_personality.7031.gluttonous
		custom_tooltip = child_personality.keeps_gluttonous_tt
	}

	option = {
		trigger = {
			scope:child = {
				has_character_flag = compassionate
			}
		}
		name = tgp_child_personality.7031.compassionate
		custom_tooltip = child_personality.keeps_compassionate_tt
	}

	option = {
		name = tgp_child_personality.7031.change.lazy
		trigger = {
			scope:child = {
				NOR = {
					has_trait = lazy
					has_trait = diligent
				}
			}
		}
		ai_chance = {
			base = 0
		}
		stress_impact = {
			base = child_trait_change_stress_penalty
		}
		scope:child = {
			if = {
				limit = {
					has_character_flag = gluttonous
				}
				remove_trait = gluttonous
			}
			if = {
				limit = {
					has_character_flag = compassionate
				}
				remove_trait = compassionate
			}
			add_trait_force_tooltip = lazy
		}
	}

	option = {
		name = tgp_child_personality.7031.change.gluttonous
		trigger = {
			scope:child = {
				NOR = {
					has_trait = gluttonous
					has_trait = temperate
				}
			}
		}
		ai_chance = {
			base = 0
		}
		stress_impact = {
			base = child_trait_change_stress_penalty
		}
		scope:child = {
			if = {
				limit = {
					has_character_flag = lazy
				}
				remove_trait = lazy
			}
			if = {
				limit = {
					has_character_flag = compassionate
				}
				remove_trait = compassionate
			}
			add_trait_force_tooltip = gluttonous
		}
	}

	option = {
		name = tgp_child_personality.7031.change.compassionate
		trigger = {
			scope:child = {
				NOR = {
					has_trait = compassionate
					has_trait = callous
					has_trait = sadistic
				}
			}
		}
		ai_chance = {
			base = 0
		}
		stress_impact = {
			base = child_trait_change_stress_penalty
		}
		scope:child = {
			if = {
				limit = {
					has_character_flag = gluttonous
				}
				remove_trait = gluttonous
			}
			if = {
				limit = {
					has_character_flag = lazy
				}
				remove_trait = lazy
			}
			add_trait_force_tooltip = compassionate
		}
	}
	
	after = {
		scope:child = {
			remove_character_flag = lazy
			remove_character_flag = gluttonous
			remove_character_flag = compassionate
		}
	}
}

#Guardian response to lustful, chaste
tgp_child_personality.7041 = {
	type = character_event
	title = tgp_child_personality.7041.t
	desc = {
		desc = tgp_child_personality.7041.desc
		first_valid = {
			triggered_desc = {
			    trigger = {
					scope:child = {
						has_character_flag = lustful
					}
			    }
			    desc = {
			    	desc = tgp_child_personality.lustful.desc
			    }
			}
			triggered_desc = {
			    trigger = {
					scope:child = {
						has_character_flag = chaste
					}
			    }
			    desc = {
			    	desc = tgp_child_personality.chaste.desc
			    }
			}
		}
	}
	theme = education
	left_portrait = {
		character = root
		animation = personality_rational
	}
	right_portrait = {
		character = scope:child
		triggered_animation = {
			trigger = {
				scope:child = {
					has_character_flag = lustful
				}
			}
  			animation = personality_irrational
  		}
		triggered_animation = {
			trigger = {
				scope:child = {
					has_character_flag = chaste
				}
			}
  			animation = worry
  		}
	}

	option = {
		trigger = {
			scope:child = {
				has_character_flag = lustful
			}
		}
		name = tgp_child_personality.7041.lustful
		custom_tooltip = child_personality.keeps_lustful_tt
	}

	option = {
		trigger = {
			scope:child = {
				has_character_flag = chaste
			}
		}
		name = tgp_child_personality.7041.chaste
		custom_tooltip = child_personality.keeps_chaste_tt
	}

	option = {
		name = tgp_child_personality.7041.change.lustful
		trigger = {
			scope:child = {
				NOT = {
					has_trait = lustful
				}
			}
		}
		ai_chance = {
			base = 0
		}
		stress_impact = {
			base = child_trait_change_stress_penalty
		}
		scope:child = {
			if = {
				limit = {
					has_character_flag = chaste
				}
				remove_trait = chaste
			}
			add_trait_force_tooltip = lustful
		}
	}

	option = {
		name = tgp_child_personality.7041.change.chaste
		trigger = {
			scope:child = {
				NOT = {
					has_trait = chaste
				}
			}
		}
		ai_chance = {
			base = 0
		}
		stress_impact = {
			base = child_trait_change_stress_penalty
		}
		scope:child = {
			if = {
				limit = {
					has_character_flag = lustful
				}
				remove_trait = lustful
			}
			add_trait_force_tooltip = chaste
		}
	}
	
	after = {
		scope:child = {
			remove_character_flag = lustful
			remove_character_flag = chaste
		}
	}
}

#Guardian response to just, greedy, callous
tgp_child_personality.7051 = {
	type = character_event
	title = tgp_child_personality.7051.t
	desc = {
		desc = tgp_child_personality.7051.desc
		first_valid = {
			triggered_desc = {
			    trigger = {
					scope:child = {
						has_character_flag = just
					}
			    }
			    desc = {
			    	desc = tgp_child_personality.just.desc
			    }
			}
			triggered_desc = {
			    trigger = {
					scope:child = {
						has_character_flag = greedy
					}
			    }
			    desc = {
			    	desc = tgp_child_personality.greedy.desc
			    }
			}
			triggered_desc = {
			    trigger = {
					scope:child = {
						has_character_flag = callous
					}
			    }
			    desc = {
			    	desc = tgp_child_personality.callous.desc
			    }
			}
		}
	}
	theme = education
	left_portrait = {
		character = root
		animation = personality_rational
	}
	right_portrait = {
		character = scope:child
		triggered_animation = {
			trigger = {
				scope:child = {
					has_character_flag = just
				}
			}
  			animation = personality_honorable
  		}
		triggered_animation = {
			trigger = {
				scope:child = {
					has_character_flag = greedy
				}
			}
  			animation = steward
  		}
		triggered_animation = {
			trigger = {
				scope:child = {
					has_character_flag = callous
				}
			}
  			animation = personality_callous
  		}
	}

	option = {
		trigger = {
			scope:child = {
				has_character_flag = just
			}
		}
		name = tgp_child_personality.7051.just
		custom_tooltip = child_personality.keeps_just_tt
	}

	option = {
		trigger = {
			scope:child = {
				has_character_flag = greedy
			}
		}
		name = tgp_child_personality.7051.greedy
		custom_tooltip = child_personality.keeps_greedy_tt
	}

	option = {
		trigger = {
			scope:child = {
				has_character_flag = callous
			}
		}
		name = tgp_child_personality.7051.callous
		custom_tooltip = child_personality.keeps_callous_tt
	}

	option = {
		name = tgp_child_personality.7051.change.just
		trigger = {
			scope:child = {
				NOR = {
					has_trait = just
					has_trait = arbitrary
				}
			}
		}
		ai_chance = {
			base = 0
		}
		stress_impact = {
			base = child_trait_change_stress_penalty
		}
		scope:child = {
			if = {
				limit = {
					has_character_flag = greedy
				}
				remove_trait = greedy
			}
			if = {
				limit = {
					has_character_flag = callous
				}
				remove_trait = callous
			}
			add_trait_force_tooltip = just
		}
	}

	option = {
		name = tgp_child_personality.7051.change.greedy
		trigger = {
			scope:child = {
				NOR = {
					has_trait = greedy
					has_trait = generous
				}
			}
		}
		ai_chance = {
			base = 0
		}
		stress_impact = {
			base = child_trait_change_stress_penalty
		}
		scope:child = {
			if = {
				limit = {
					has_character_flag = just
				}
				remove_trait = just
			}
			if = {
				limit = {
					has_character_flag = callous
				}
				remove_trait = callous
			}
			add_trait_force_tooltip = greedy
		}
	}

	option = {
		name = tgp_child_personality.7051.change.callous
		trigger = {
			scope:child = {
				NOR = {
					has_trait = callous
					has_trait = compassionate
					has_trait = sadistic
				}
			}
		}
		ai_chance = {
			base = 0
		}
		stress_impact = {
			base = child_trait_change_stress_penalty
		}
		scope:child = {
			if = {
				limit = {
					has_character_flag = greedy
				}
				remove_trait = greedy
			}
			if = {
				limit = {
					has_character_flag = just
				}
				remove_trait = just
			}
			add_trait_force_tooltip = callous
		}
	}
	
	after = {
		scope:child = {
			remove_character_flag = just
			remove_character_flag = greedy
			remove_character_flag = callous
		}
	}
}

#Guardian response to humble, cynical, content
tgp_child_personality.7061 = {
	type = character_event
	title = tgp_child_personality.7061.t
	desc = {
		desc = tgp_child_personality.7061.desc
		first_valid = {
			triggered_desc = {
			    trigger = {
					scope:child = {
						has_character_flag = humble
					}
			    }
			    desc = {
			    	desc = tgp_child_personality.humble.desc
			    }
			}
			triggered_desc = {
			    trigger = {
					scope:child = {
						has_character_flag = cynical
					}
			    }
			    desc = {
			    	desc = tgp_child_personality.cynical.desc
			    }
			}
			triggered_desc = {
			    trigger = {
					scope:child = {
						has_character_flag = content
					}
			    }
			    desc = {
			    	desc = tgp_child_personality.content.desc
			    }
			}
		}
	}
	theme = education
	override_background = { reference = relaxing_room }
	left_portrait = {
		character = root
		animation = personality_rational
	}
	right_portrait = {
		character = scope:child
		triggered_animation = {
			trigger = {
				scope:child = {
					has_character_flag = humble
				}
			}
  			animation = admiration
  		}
		triggered_animation = {
			trigger = {
				scope:child = {
					has_character_flag = cynical
				}
			}
  			animation = shame
  		}
		triggered_animation = {
			trigger = {
				scope:child = {
					has_character_flag = content
				}
			}
  			animation = happiness
  		}
	}

	option = {
		trigger = {
			scope:child = {
				has_character_flag = humble
			}
		}
		name = tgp_child_personality.7061.humble
		custom_tooltip = child_personality.keeps_humble_tt
	}

	option = {
		trigger = {
			scope:child = {
				has_character_flag = cynical
			}
		}
		name = tgp_child_personality.7061.cynical
		custom_tooltip = child_personality.keeps_cynical_tt
	}

	option = {
		trigger = {
			scope:child = {
				has_character_flag = content
			}
		}
		name = tgp_child_personality.7061.content
		custom_tooltip = child_personality.keeps_content_tt
	}

	option = {
		name = tgp_child_personality.7061.change.humble
		trigger = {
			scope:child = {
				NOR = {
					has_trait = humble
					has_trait = arrogant
				}
			}
		}
		ai_chance = {
			base = 0
		}
		stress_impact = {
			base = child_trait_change_stress_penalty
		}
		scope:child = {
			if = {
				limit = {
					has_character_flag = cynical
				}
				remove_trait = cynical
			}
			if = {
				limit = {
					has_character_flag = content
				}
				remove_trait = content
			}
			add_trait_force_tooltip = humble
		}
	}

	option = {
		name = tgp_child_personality.7061.change.cynical
		trigger = {
			scope:child = {
				NOR = {
					has_trait = cynical
					has_trait = zealous
				}
			}
		}
		ai_chance = {
			base = 0
		}
		stress_impact = {
			base = child_trait_change_stress_penalty
		}
		scope:child = {
			if = {
				limit = {
					has_character_flag = humble
				}
				remove_trait = humble
			}
			if = {
				limit = {
					has_character_flag = content
				}
				remove_trait = content
			}
			add_trait_force_tooltip = cynical
		}
	}

	option = {
		name = tgp_child_personality.7061.change.content
		trigger = {
			scope:child = {
				NOR = {
					has_trait = content
					has_trait = ambitious
				}
			}
		}
		ai_chance = {
			base = 0
		}
		stress_impact = {
			base = child_trait_change_stress_penalty
		}
		scope:child = {
			if = {
				limit = {
					has_character_flag = cynical
				}
				remove_trait = cynical
			}
			if = {
				limit = {
					has_character_flag = humble
				}
				remove_trait = humble
			}
			add_trait_force_tooltip = content
		}
	}
	
	after = {
		scope:child = {
			remove_character_flag = humble
			remove_character_flag = cynical
			remove_character_flag = content
		}
	}
}

#Guardian response to vengeful, deceitful, calm
tgp_child_personality.7071 = {
	type = character_event
	title = tgp_child_personality.7071.t
	desc = {
		desc = tgp_child_personality.7071.desc
		first_valid = {
			triggered_desc = {
			    trigger = {
					scope:child = {
						has_character_flag = vengeful
					}
			    }
			    desc = {
			    	desc = tgp_child_personality.vengeful.desc
			    }
			}
			triggered_desc = {
			    trigger = {
					scope:child = {
						has_character_flag = deceitful
					}
			    }
			    desc = {
			    	desc = tgp_child_personality.deceitful.desc
			    }
			}
			triggered_desc = {
			    trigger = {
					scope:child = {
						has_character_flag = calm
					}
			    }
			    desc = {
			    	desc = tgp_child_personality.calm.desc
			    }
			}
		}
	}
	theme = education
	left_portrait = {
		character = root
		animation = personality_rational
	}
	right_portrait = {
		character = scope:child
		triggered_animation = {
			trigger = {
				scope:child = {
					has_character_flag = vengeful
				}
			}
  			animation = rage
  		}
		triggered_animation = {
			trigger = {
				scope:child = {
					has_character_flag = deceitful
				}
			}
  			animation = scheme
  		}
		triggered_animation = {
			trigger = {
				scope:child = {
					has_character_flag = calm
				}
			}
  			animation = dismissal
  		}
	}
	
	option = {
		trigger = {
			scope:child = {
				has_character_flag = vengeful
			}
		}
		name = tgp_child_personality.7071.vengeful
		custom_tooltip = child_personality.keeps_vengeful_tt
	}

	option = {
		trigger = {
			scope:child = {
				has_character_flag = deceitful
			}
		}
		name = tgp_child_personality.7071.deceitful
		custom_tooltip = child_personality.keeps_deceitful_tt
	}

	option = {
		trigger = {
			scope:child = {
				has_character_flag = calm
			}
		}
		name = tgp_child_personality.7071.calm
		custom_tooltip = child_personality.keeps_calm_tt
	}

	option = {
		name = tgp_child_personality.7071.change.vengeful
		trigger = {
			scope:child = {
				NOR = {
					has_trait = vengeful
					has_trait = forgiving
				}
			}
		}
		ai_chance = {
			base = 0
		}
		stress_impact = {
			base = child_trait_change_stress_penalty
		}
		scope:child = {
			if = {
				limit = {
					has_character_flag = deceitful
				}
				remove_trait = deceitful
			}
			if = {
				limit = {
					has_character_flag = calm
				}
				remove_trait = calm
			}
			add_trait_force_tooltip = vengeful
		}
	}

	option = {
		name = tgp_child_personality.7071.change.deceitful
		trigger = {
			scope:child = {
				NOR = {
					has_trait = deceitful
					has_trait = honest
				}
			}
		}
		ai_chance = {
			base = 0
		}
		stress_impact = {
			base = child_trait_change_stress_penalty
		}
		scope:child = {
			if = {
				limit = {
					has_character_flag = vengeful
				}
				remove_trait = vengeful
			}
			if = {
				limit = {
					has_character_flag = calm
				}
				remove_trait = calm
			}
			add_trait_force_tooltip = deceitful
		}
	}

	option = {
		name = tgp_child_personality.7071.change.calm
		trigger = {
			scope:child = {
				NOR = {
					has_trait = calm
					has_trait = wrathful
				}
			}
		}
		ai_chance = {
			base = 0
		}
		stress_impact = {
			base = child_trait_change_stress_penalty
		}
		scope:child = {
			if = {
				limit = {
					has_character_flag = deceitful
				}
				remove_trait = deceitful
			}
			if = {
				limit = {
					has_character_flag = vengeful
				}
				remove_trait = vengeful
			}
			add_trait_force_tooltip = calm
		}
	}
	
	after = {
		scope:child = {
			remove_character_flag = vengeful
			remove_character_flag = deceitful
			remove_character_flag = calm
		}
	}
}

#Guardian response to generous, fickle, arrogant
tgp_child_personality.7081 = {
	type = character_event
	title = tgp_child_personality.7081.t
	desc = {
		desc = tgp_child_personality.7081.desc
		first_valid = {
			triggered_desc = {
			    trigger = {
					scope:child = {
						has_character_flag = generous
					}
			    }
			    desc = {
			    	desc = tgp_child_personality.generous.desc
			    }
			}
			triggered_desc = {
			    trigger = {
					scope:child = {
						has_character_flag = fickle
					}
			    }
			    desc = {
			    	desc = tgp_child_personality.fickle.desc
			    }
			}
			triggered_desc = {
			    trigger = {
					scope:child = {
						has_character_flag = arrogant
					}
			    }
			    desc = {
			    	desc = tgp_child_personality.arrogant.desc
			    }
			}
		}
	}
	theme = education
	left_portrait = {
		character = root
		animation = personality_rational
	}

	right_portrait = {
		character = scope:child
		triggered_animation = {
			trigger = {
				scope:child = {
					has_character_flag = generous
				}
			}
  			animation = personality_forgiving
  		}
		triggered_animation = {
			trigger = {
				scope:child = {
					has_character_flag = fickle
				}
			}
  			animation = personality_irrational
  		}
		triggered_animation = {
			trigger = {
				scope:child = {
					has_character_flag = arrogant
				}
			}
  			animation = dismissal
  		}
	}
	option = {
		trigger = {
			scope:child = {
				has_character_flag = generous
			}
		}
		name = tgp_child_personality.7081.generous
		custom_tooltip = child_personality.keeps_generous_tt
	}

	option = {
		trigger = {
			scope:child = {
				has_character_flag = fickle
			}
		}
		name = tgp_child_personality.7081.fickle
		custom_tooltip = child_personality.keeps_fickle_tt
	}

	option = {
		trigger = {
			scope:child = {
				has_character_flag = arrogant
			}
		}
		name = tgp_child_personality.7081.arrogant
		custom_tooltip = child_personality.keeps_arrogant_tt
	}

	option = {
		name = tgp_child_personality.7081.change.generous
		trigger = {
			scope:child = {
				NOR = {
					has_trait = generous
					has_trait = greedy
				}
			}
		}
		ai_chance = {
			base = 0
		}
		stress_impact = {
			base = child_trait_change_stress_penalty
		}
		scope:child = {
			if = {
				limit = {
					has_character_flag = fickle
				}
				remove_trait = fickle
			}
			if = {
				limit = {
					has_character_flag = arrogant
				}
				remove_trait = arrogant
			}
			add_trait_force_tooltip = generous
		}
	}

	option = {
		name = tgp_child_personality.7081.change.fickle
		trigger = {
			scope:child = {
				NOR = {
					has_trait = fickle
					has_trait = stubborn
				}
			}
		}
		ai_chance = {
			base = 0
		}
		stress_impact = {
			base = child_trait_change_stress_penalty
		}
		scope:child = {
			if = {
				limit = {
					has_character_flag = generous
				}
				remove_trait = generous
			}
			if = {
				limit = {
					has_character_flag = arrogant
				}
				remove_trait = arrogant
			}
			add_trait_force_tooltip = fickle
		}
	}

	option = {
		name = tgp_child_personality.7081.change.arrogant
		trigger = {
			scope:child = {
				NOR = {
					has_trait = arrogant
					has_trait = humble
				}
			}
		}
		ai_chance = {
			base = 0
		}
		stress_impact = {
			base = child_trait_change_stress_penalty
		}
		scope:child = {
			if = {
				limit = {
					has_character_flag = fickle
				}
				remove_trait = fickle
			}
			if = {
				limit = {
					has_character_flag = generous
				}
				remove_trait = generous
			}
			add_trait_force_tooltip = arrogant
		}
	}
	
	after = {
		scope:child = {
			remove_character_flag = generous
			remove_character_flag = fickle
			remove_character_flag = arrogant
		}
	}
}

#Guardian response to forgiving, trusting, patient
tgp_child_personality.7091 = {
	type = character_event
	title = tgp_child_personality.7091.t
	desc = {
		desc = tgp_child_personality.7091.desc
		first_valid = {
			triggered_desc = {
			    trigger = {
					scope:child = {
						has_character_flag = forgiving
					}
			    }
			    desc = {
			    	desc = tgp_child_personality.forgiving.desc
			    }
			}
			triggered_desc = {
			    trigger = {
					scope:child = {
						has_character_flag = trusting
					}
			    }
			    desc = {
			    	desc = tgp_child_personality.trusting.desc
			    }
			}
			triggered_desc = {
			    trigger = {
					scope:child = {
						has_character_flag = patient
					}
			    }
			    desc = {
			    	desc = tgp_child_personality.patient.desc
			    }
			}
		}
	}
	theme = education
	left_portrait = {
		character = root
		animation = personality_rational
	}
	right_portrait = {
		character = scope:child
		triggered_animation = {
			trigger = {
				scope:child = {
					has_character_flag = forgiving
				}
			}
  			animation = personality_forgiving
  		}
		triggered_animation = {
			trigger = {
				scope:child = {
					has_character_flag = trusting
				}
			}
  			animation = personality_compassionate
  		}
		triggered_animation = {
			trigger = {
				scope:child = {
					has_character_flag = patient
				}
			}
  			animation = personality_rational
  		}
	}

	option = {
		trigger = {
			scope:child = {
				has_character_flag = forgiving
			}
		}
		name = tgp_child_personality.7091.forgiving
		custom_tooltip = child_personality.keeps_forgiving_tt
	}

	option = {
		trigger = {
			scope:child = {
				has_character_flag = trusting
			}
		}
		name = tgp_child_personality.7091.trusting
		custom_tooltip = child_personality.keeps_trusting_tt
	}

	option = {
		trigger = {
			scope:child = {
				has_character_flag = patient
			}
		}
		name = tgp_child_personality.7091.patient
		custom_tooltip = child_personality.keeps_patient_tt
	}

	option = {
		name = tgp_child_personality.7091.change.forgiving
		trigger = {
			scope:child = {
				NOR = {
					has_trait = forgiving
					has_trait = vengeful
				}
			}
		}
		ai_chance = {
			base = 0
		}
		stress_impact = {
			base = child_trait_change_stress_penalty
		}
		scope:child = {
			if = {
				limit = {
					has_character_flag = trusting
				}
				remove_trait = trusting
			}
			if = {
				limit = {
					has_character_flag = patient
				}
				remove_trait = patient
			}
			add_trait_force_tooltip = forgiving
		}
	}

	option = {
		name = tgp_child_personality.7091.change.trusting
		trigger = {
			scope:child = {
				NOR = {
					has_trait = trusting
					has_trait = paranoid
				}
			}
		}
		ai_chance = {
			base = 0
		}
		stress_impact = {
			base = child_trait_change_stress_penalty
		}
		scope:child = {
			if = {
				limit = {
					has_character_flag = forgiving
				}
				remove_trait = forgiving
			}
			if = {
				limit = {
					has_character_flag = patient
				}
				remove_trait = patient
			}
			add_trait_force_tooltip = trusting
		}
	}

	option = {
		name = tgp_child_personality.7091.change.patient
		trigger = {
			scope:child = {
				NOR = {
					has_trait = patient
					has_trait = impatient
				}
			}
		}
		ai_chance = {
			base = 0
		}
		stress_impact = {
			base = child_trait_change_stress_penalty
		}
		scope:child = {
			if = {
				limit = {
					has_character_flag = trusting
				}
				remove_trait = trusting
			}
			if = {
				limit = {
					has_character_flag = forgiving
				}
				remove_trait = forgiving
			}
			add_trait_force_tooltip = patient
		}
	}
	
	after = {
		scope:child = {
			remove_character_flag = forgiving
			remove_character_flag = trusting
			remove_character_flag = patient
		}
	}
}

#Guardian response to honest, arbitrary, impatient
tgp_child_personality.7101 = {
	type = character_event
	title = tgp_child_personality.7101.t
	desc = {
		desc = tgp_child_personality.7101.desc
		first_valid = {
			triggered_desc = {
			    trigger = {
					scope:child = {
						has_character_flag = honest
					}
			    }
			    desc = {
			    	desc = tgp_child_personality.honest.desc
			    }
			}
			triggered_desc = {
			    trigger = {
					scope:child = {
						has_character_flag = arbitrary
					}
			    }
			    desc = {
			    	desc = tgp_child_personality.arbitrary.desc
			    }
			}
			triggered_desc = {
			    trigger = {
					scope:child = {
						has_character_flag = impatient
					}
			    }
			    desc = {
			    	desc = tgp_child_personality.impatient.desc
			    }
			}
		}
	}
	theme = education
	left_portrait = {
		character = root
		animation = personality_rational
	}
	right_portrait = {
		character = scope:child
		triggered_animation = {
			trigger = {
				scope:child = {
					has_character_flag = honest
				}
			}
  			animation = worry
  		}
		triggered_animation = {
			trigger = {
				scope:child = {
					has_character_flag = arbitrary
				}
			}
  			animation = disapproval
  		}
		triggered_animation = {
			trigger = {
				scope:child = {
					has_character_flag = impatient
				}
			}
  			animation = paranoia
  		}
	}

	option = {
		trigger = {
			scope:child = {
				has_character_flag = honest
			}
		}
		name = tgp_child_personality.7101.honest
		custom_tooltip = child_personality.keeps_honest_tt
	}

	option = {
		trigger = {
			scope:child = {
				has_character_flag = arbitrary
			}
		}
		name = tgp_child_personality.7101.arbitrary
		custom_tooltip = child_personality.keeps_arbitrary_tt
	}

	option = {
		trigger = {
			scope:child = {
				has_character_flag = impatient
			}
		}
		name = tgp_child_personality.7101.impatient
		custom_tooltip = child_personality.keeps_impatient_tt
	}

	option = {
		name = tgp_child_personality.7101.change.honest
		trigger = {
			scope:child = {
				NOR = {
					has_trait = honest
					has_trait = deceitful
				}
			}
		}
		ai_chance = {
			base = 0
		}
		stress_impact = {
			base = child_trait_change_stress_penalty
		}
		scope:child = {
			if = {
				limit = {
					has_character_flag = arbitrary
				}
				remove_trait = arbitrary
			}
			if = {
				limit = {
					has_character_flag = impatient
				}
				remove_trait = impatient
			}
			add_trait_force_tooltip = honest
		}
	}

	option = {
		name = tgp_child_personality.7101.change.arbitrary
		trigger = {
			scope:child = {
				NOR = {
					has_trait = arbitrary
					has_trait = just
				}
			}
		}
		ai_chance = {
			base = 0
		}
		stress_impact = {
			base = child_trait_change_stress_penalty
		}
		scope:child = {
			if = {
				limit = {
					has_character_flag = honest
				}
				remove_trait = honest
			}
			if = {
				limit = {
					has_character_flag = impatient
				}
				remove_trait = impatient
			}
			add_trait_force_tooltip = arbitrary
		}
	}

	option = {
		name = tgp_child_personality.7101.change.impatient
		trigger = {
			scope:child = {
				NOR = {
					has_trait = impatient
					has_trait = patient
				}
			}
		}
		ai_chance = {
			base = 0
		}
		stress_impact = {
			base = child_trait_change_stress_penalty
		}
		scope:child = {
			if = {
				limit = {
					has_character_flag = arbitrary
				}
				remove_trait = arbitrary
			}
			if = {
				limit = {
					has_character_flag = honest
				}
				remove_trait = honest
			}
			add_trait_force_tooltip = impatient
		}
	}
	
	after = {
		scope:child = {
			remove_character_flag = honest
			remove_character_flag = arbitrary
			remove_character_flag = impatient
		}
	}
}

#Guardian response to brave, stubborn, wrathful
tgp_child_personality.7201 = {
	type = character_event
	title = tgp_child_personality.7201.t
	desc = {
		desc = tgp_child_personality.7201.desc
		first_valid = {
			triggered_desc = {
			    trigger = {
					scope:child = {
						has_character_flag = brave
					}
			    }
			    desc = {
			    	desc = tgp_child_personality.brave.desc
			    }
			}
			triggered_desc = {
			    trigger = {
					scope:child = {
						has_character_flag = stubborn
					}
			    }
			    desc = {
			    	desc = tgp_child_personality.stubborn.desc
			    }
			}
			triggered_desc = {
			    trigger = {
					scope:child = {
						has_character_flag = wrathful
					}
			    }
			    desc = {
			    	desc = tgp_child_personality.wrathful.desc
			    }
			}
		}
	}
	theme = education
	left_portrait = {
		character = root
		animation = personality_rational
	}
	right_portrait = {
		character = scope:child
		triggered_animation = {
			trigger = {
				scope:child = {
					has_character_flag = brave
				}
			}
  			animation = personality_bold
  		}
		triggered_animation = {
			trigger = {
				scope:child = {
					has_character_flag = stubborn
				}
			}
  			animation = disapproval
  		}
		triggered_animation = {
			trigger = {
				scope:child = {
					has_character_flag = wrathful
				}
			}
  			animation = rage
  		}
	}
	
	option = {
		trigger = {
			scope:child = {
				has_character_flag = brave
			}
		}
		name = tgp_child_personality.7201.brave
		custom_tooltip = child_personality.keeps_brave_tt
	}

	option = {
		trigger = {
			scope:child = {
				has_character_flag = stubborn
			}
		}
		name = tgp_child_personality.7201.stubborn
		custom_tooltip = child_personality.keeps_stubborn_tt
	}

	option = {
		trigger = {
			scope:child = {
				has_character_flag = wrathful
			}
		}
		name = tgp_child_personality.7201.wrathful
		custom_tooltip = child_personality.keeps_wrathful_tt
	}

	option = {
		name = tgp_child_personality.7201.change.brave
		trigger = {
			scope:child = {
				NOR = {
					has_trait = brave
					has_trait = craven
				}
			}
		}
		ai_chance = {
			base = 0
		}
		stress_impact = {
			base = child_trait_change_stress_penalty
		}
		scope:child = {
			if = {
				limit = {
					has_character_flag = stubborn
				}
				remove_trait = stubborn
			}
			if = {
				limit = {
					has_character_flag = wrathful
				}
				remove_trait = wrathful
			}
			add_trait_force_tooltip = brave
		}
	}

	option = {
		name = tgp_child_personality.7201.change.stubborn
		trigger = {
			scope:child = {
				NOR = {
					has_trait = stubborn
					has_trait = fickle
				}
			}
		}
		ai_chance = {
			base = 0
		}
		stress_impact = {
			base = child_trait_change_stress_penalty
		}
		scope:child = {
			if = {
				limit = {
					has_character_flag = brave
				}
				remove_trait = brave
			}
			if = {
				limit = {
					has_character_flag = wrathful
				}
				remove_trait = wrathful
			}
			add_trait_force_tooltip = stubborn
		}
	}

	option = {
		name = tgp_child_personality.7201.change.wrathful
		trigger = {
			scope:child = {
				NOR = {
					has_trait = wrathful
					has_trait = calm
				}
			}
		}
		ai_chance = {
			base = 0
		}
		stress_impact = {
			base = child_trait_change_stress_penalty
		}
		scope:child = {
			if = {
				limit = {
					has_character_flag = stubborn
				}
				remove_trait = stubborn
			}
			if = {
				limit = {
					has_character_flag = brave
				}
				remove_trait = brave
			}
			add_trait_force_tooltip = wrathful
		}
	}
	
	after = {
		scope:child = {
			remove_character_flag = brave
			remove_character_flag = stubborn
			remove_character_flag = wrathful
		}
	}
}

#Guardian response to eccentric, compassionate, callous
tgp_child_personality.7301 = {
	type = character_event
	title = tgp_child_personality.7301.t
	desc = {
		desc = tgp_child_personality.7301.desc
		first_valid = {
			triggered_desc = {
			    trigger = {
					scope:child = {
						has_character_flag = eccentric
					}
			    }
			    desc = tgp_child_personality.7301.eccentric.desc
			}
			triggered_desc = {
			    trigger = {
					scope:child = {
						has_character_flag = compassionate
					}
			    }
			    desc = tgp_child_personality.7301.compassionate.desc
			}
			triggered_desc = {
			    trigger = {
					scope:child = {
						has_character_flag = callous
					}
			    }
			    desc = tgp_child_personality.7301.callous.desc
			}
		}
	}
	theme = education
	left_portrait = {
		character = root
		animation = personality_rational
	}
	right_portrait = {
		character = scope:child
		triggered_animation = {
			trigger = {
				scope:child = {
					has_character_flag = eccentric
				}
			}
  			animation = manic
  		}
		triggered_animation = {
			trigger = {
				scope:child = {
					has_character_flag = compassionate
				}
			}
  			animation = personality_compassionate
  		}
		triggered_animation = {
			trigger = {
				scope:child = {
					has_character_flag = callous
				}
			}
  			animation = personality_dishonorable
  		}
	}
	
	option = {
		trigger = {
			scope:child = {
				has_character_flag = eccentric
			}
		}
		name = tgp_child_personality.7301.eccentric
		custom_tooltip = child_personality.keeps_eccentric_tt
	}

	option = {
		trigger = {
			scope:child = {
				has_character_flag = compassionate
			}
		}
		name = tgp_child_personality.7301.compassionate
		custom_tooltip = child_personality.keeps_compassionate_tt
	}

	option = {
		trigger = {
			scope:child = {
				has_character_flag = callous
			}
		}
		name = tgp_child_personality.7301.callous
		custom_tooltip = child_personality.keeps_callous_tt
	}

	option = {
		name = tgp_child_personality.7301.change.eccentric
		trigger = {
			scope:child = {
				NOR = {
					has_trait = eccentric
					has_trait = fickle
					has_trait = stubborn
				}
			}
		}
		ai_chance = {
			base = 0
		}
		stress_impact = {
			base = child_trait_change_stress_penalty
		}
		scope:child = {
			if = {
				limit = {
					has_character_flag = compassionate
				}
				remove_trait = compassionate
			}
			if = {
				limit = {
					has_character_flag = callous
				}
				remove_trait = callous
			}
			add_trait_force_tooltip = eccentric
		}
	}

	option = {
		name = tgp_child_personality.7301.change.compassionate
		trigger = {
			scope:child = {
				NOT = {
					has_trait = compassionate
				}
			}
		}
		ai_chance = {
			base = 0
		}
		stress_impact = {
			base = child_trait_change_stress_penalty
		}
		scope:child = {
			if = {
				limit = {
					has_character_flag = eccentric
				}
				remove_trait = eccentric
			}
			if = {
				limit = {
					has_character_flag = callous
				}
				remove_trait = callous
			}
			add_trait_force_tooltip = compassionate
		}
	}

	option = {
		name = tgp_child_personality.7301.change.callous
		trigger = {
			scope:child = {
				NOT = {
					has_trait = callous
				}
			}
		}
		ai_chance = {
			base = 0
		}
		stress_impact = {
			base = child_trait_change_stress_penalty
		}
		scope:child = {
			if = {
				limit = {
					has_character_flag = compassionate
				}
				remove_trait = compassionate
			}
			if = {
				limit = {
					has_character_flag = eccentric
				}
				remove_trait = eccentric
			}
			add_trait_force_tooltip = callous
		}
	}
	
	after = {
		scope:child = {
			remove_character_flag = eccentric
			remove_character_flag = compassionate
			remove_character_flag = callous
		}
	}
}
