﻿#Events for children developing personality traits

namespace = child_personality

#0000-0999: Child events
#1000-1999: Guardian events
	#Key:
	#1012 = response to event option 0001.b (the "second" option of event 0001)
	#1111 = response to event option 0011.a (the "first" option of event 0011)
#2000-2999: Other events fired by child events
#3000-3999: Childhood personality assignment
#4000-4999: Sexuality assignment
#9900-9910: Reincarnation events

#By Petter Vilberg, Linnéa Thimrén, and Bianca Savazzi

#####
# CHILD EVENTS
# 0000-0999
#####

#Child is trying to deal with a bully
child_personality.0001 = {
	type = character_event
	title = child_personality.0001.t
	desc = {
		first_valid = {
			triggered_desc = {
				trigger = { exists = scope:bully }
				desc = {
					desc = child_personality.0001.opening
					random_valid = {
						desc = child_personality.0001.bullying_1
						desc = child_personality.0001.bullying_2
						desc = child_personality.0001.bullying_3
					}
					desc = child_personality.0001.end
				}
			}
			desc = child_personality.0001.no_bully_fallback
		}
	}
	theme = education
	override_icon = {
		reference = "gfx/interface/icons/event_types/type_relation_unfriendly.dds"
	}
	override_background = { reference = corridor_day }
	left_portrait = {
		character = root
		animation = worry
	}
	right_portrait = {
		character = scope:bully
		animation = schadenfreude
	}

	trigger = {
		is_available_child_allow_travel = yes
		NOR = { 
			has_character_flag = cp_0001
			has_character_flag = cp_700
		}
	}

	weight_multiplier = {
		base = 1
	}

	immediate = {
		save_scope_as = child
		add_character_flag = { flag = cp_0001 }
		if = {
			limit = {
				any_relation = { type = bully count >= 1 }
			}
			random_relation = {
				type = bully
				save_scope_as = bully
			}
		}
		else = {
			every_vassal = {
				limit = {
					save_good_bully_character_trigger_check = yes
					is_ai = yes
				}
				add_to_list = bullies
			}
			every_vassal = {
				every_child = {
					limit = {
						save_good_bully_character_trigger_check = yes
						is_ai = yes
					}
					add_to_list = bullies
				}
			}
			every_courtier_or_guest = {
				limit = {
					save_good_bully_character_trigger_check = yes
					is_ai = yes
				}
				add_to_list = bullies
			}
			if = {
				limit = {
					is_independent_ruler = no
					exists = liege
					liege = {
						save_good_bully_character_trigger_check = yes
						is_ai = yes
					}
				}
				liege = {
					add_to_list = bullies
				}
			}
			if = {
				limit = {
					is_independent_ruler = no
					exists = liege
					liege = {
						any_vassal = {
							save_good_bully_character_trigger_check = yes
							is_ai = yes
						}
					}
				}
				liege = {
					every_vassal = {
						limit = {
							save_good_bully_character_trigger_check = yes
							is_ai = yes
						}
						add_to_list = bullies
					}
				}
			}
			if = {
				limit = {
					is_independent_ruler = no
					exists = liege
					liege = {
						any_vassal = {
							any_child = {
								save_good_bully_character_trigger_check = yes
								is_ai = yes
							}
						}
					}
				}
				liege = {
					every_vassal = {
						every_child = {
							limit = {
								save_good_bully_character_trigger_check = yes
								is_ai = yes
							}
							add_to_list = bullies
						}
					}
				}
			}
			if = {
				limit = {
					is_independent_ruler = no
					exists = liege
					liege = {
						any_courtier_or_guest = {
							save_good_bully_character_trigger_check = yes
							is_ai = yes
						}
					}
				}
				liege = {
					every_courtier_or_guest = {
						limit = {
							save_good_bully_character_trigger_check = yes
							is_ai = yes
						}
						add_to_list = bullies
					}
				}
			}
			if = {
				limit = {
					exists = host
					host = {
						save_good_bully_character_trigger_check = yes
						is_ai = yes
					}
				}
				host = {
					add_to_list = bullies
				}
			}
			if = {
				limit = {
					exists = host
					host = {
						any_vassal = {
							save_good_bully_character_trigger_check = yes
							is_ai = yes
						}
					}
				}
				host = {
					every_vassal = {
						limit = {
							save_good_bully_character_trigger_check = yes
							is_ai = yes
						}
						add_to_list = bullies
					}
				}
			}
			if = {
				limit = {
					exists = host
					host = {
						any_vassal = {
							any_child = {
								save_good_bully_character_trigger_check = yes
								is_ai = yes
							}
						}
					}
				}
				host = {
					every_vassal = {
						every_child = {
							limit = {
								save_good_bully_character_trigger_check = yes
								is_ai = yes
							}
							add_to_list = bullies
						}
					}
				}
			}
			if = {
				limit = {
					exists = host
					host = {
						any_courtier_or_guest = {
							save_good_bully_character_trigger_check = yes
							is_ai = yes
						}
					}
				}
				host = {
					every_courtier_or_guest = {
						limit = {
							save_good_bully_character_trigger_check = yes
							is_ai = yes
						}
						add_to_list = bullies
					}
				}
			}
			
			random_in_list = {
				list = bullies
				weight = {
					base = 1
					modifier = {
						add = 10
						is_of_major_interest_to_root_trigger = yes
					}
					modifier = {
						add = 5
						is_of_minor_interest_to_root_trigger = yes
					}
					modifier = {
						add = 5
						number_of_opposing_personality_traits = {
							target = root
							value >= 1
						}
					}
					modifier = {
						add = 5
						number_of_opposing_personality_traits = {
							target = root
							value >= 2
						}
					}
					modifier = {
						add = 5
						number_of_opposing_personality_traits = {
							target = root
							value >= 3
						}
					}
					modifier = {
						add = 5
						has_trait = wrathful
					}
					modifier = {
						add = 10
						has_trait = sadistic
					}
				}
				save_scope_as = bully
			}
		}

		#Prepare them to become a bully. Here in case this should be randomised
		if = {
			limit = {
				exists = scope:bully
				NOT = { has_relation_bully = scope:bully }
			}
			add_character_flag = gain_bully_flag
		}
	}

	option = {
		name = child_personality.0001.a
		custom_tooltip = child_personality.0001.gen.tt
		trigger = {
			NOT = {
				has_trait = brave
			}
		}
		
		if = {
			limit = {
				has_trait = craven
				is_ai = no
			}
			add_stress = minor_stress_gain
		}
		else = {
			add_trait = craven
		}
		
		if = {
			limit = {
				is_ai = yes
			}
			random_relation = {
				type = guardian
				trigger_event = child_personality.1011
			}
		}
		if = {
			limit = {
				exists = scope:bully
				has_character_flag = gain_bully_flag
			}
			show_as_tooltip = { set_relation_bully = scope:bully }
		}
		if = {
			limit = {
				exists = scope:bully
			}
			scope:bully = { trigger_event = child_personality.2001 }
		}
		ai_chance = {
			base = 1
			modifier = {
				add = 4
				has_trait = craven
			}
		}
	}

	option = {
		name = child_personality.0001.b
		custom_tooltip = child_personality.0001.gen.tt
		if = {
			limit = {
				has_trait = patient
				is_ai = no
			}
			add_stress = minor_stress_gain
		}
		else_if = {
			limit = {
				has_trait = impatient
				is_ai = no
			}
			add_stress = medium_stress_gain
		}
		else_if = {
			add_stress = medium_stress_gain
			random_list = {
				25 = { add_trait = patient }
				75 = {}
			}
		}
		else = { }
		
		if = {
			limit = {
				is_ai = yes
			}
			random_relation = {
				type = guardian
				trigger_event = child_personality.1012
			}
		}
		if = {
			limit = {
				exists = scope:bully
				has_character_flag = gain_bully_flag
			}
			show_as_tooltip = { set_relation_bully = scope:bully }
		}
		if = {
			limit = {
				exists = scope:bully
			}
			scope:bully = { trigger_event = child_personality.2002 }
		}
		ai_chance = {
			base = 1
			modifier = {
				add = 4
				has_trait = patient
			}
			modifier = {
				factor = 0
				has_trait = impatient
			}
		}
	}

	option = {
		name = child_personality.0001.c
		custom_tooltip = child_personality.0001.gen.tt
		if = {
			limit = {
				has_trait = shy
				is_ai = no
			}
			add_stress = minor_stress_loss
		}
		else_if = {
			limit = {
				has_trait = gregarious
				is_ai = no
			}
			add_stress = medium_stress_gain
		}
		else = {
			random_list = {
				50 = { add_trait = shy }
				50 = {}
			}
		}
		if = {
			limit = {
				is_ai = yes
			}
			random_relation = {
				type = guardian
				trigger_event = child_personality.1013
			}
		}
		if = {
			limit = {
				has_character_flag = gain_bully_flag
			}
			show_as_tooltip = { set_relation_bully = scope:bully }
		}
		if = {
			limit = {
				exists = scope:bully
			}
			scope:bully = { trigger_event = child_personality.2003 }
		}
		ai_chance = {
			base = 1
			modifier = {
				add = 4
				has_trait = shy
			}
			modifier = {
				factor = 0
				has_trait = gregarious
			}
		}
	}
	
	option = {
		name = child_personality.0001.d
		custom_tooltip = child_personality.0001.sp.tt
		trigger = {
			has_trait = brave
		}
		
		random = {
			chance = 25
			increase_wounds_effect = { REASON = wounds }
			if = {
				limit = {
					is_ai = yes
				}
				random_relation = {
					type = guardian
					send_interface_toast = {
						title = child_personality.1014.t
						left_icon = scope:child
						custom_tooltip = child_personality.1014.tt
					}
				}
			}
		}
		
		if = { 
			limit = { exists = scope:bully}
			scope:bully = { trigger_event = child_personality.2904 }
		}
		ai_chance = {
			base = 10
		}
		
	}
	
	after = {
		remove_character_flag = gain_bully_flag
	}
}


#Pillory event
child_personality.0002 = {
	type = character_event
	title = child_personality.0002.t
	desc = {
		first_valid = {
			triggered_desc = {
				trigger = {
					exists = scope:guardian
				}
				desc = child_personality.0002.guardian
			}
			desc = child_personality.0002.no_guardian
		}
		desc = child_personality.0002.desc
	}
	theme = education
	override_background = {
		reference = gallows
	}
	left_portrait = {
		character = root
		animation = personality_rational
	}
	right_portrait = {
		character = scope:guardian
		animation = personality_callous
	}

	trigger = {
		is_available_child_allow_travel = yes
		NOR = {
			has_character_flag = cp_0002
			has_character_flag = cp_700
		}
	}

	weight_multiplier = {
		base = 1
		modifier = {
			add = 2
			culture = {
				has_cultural_parameter = compassionate_trait_more_common
			}
			NOR = {
				has_trait = compassionate
				has_trait = callous
				has_trait = sadistic
			}
		}
	}

	immediate = {
		save_scope_as = child
		add_character_flag = { flag = cp_0002 }
		if = {
			limit = {
				any_relation = {
					type = guardian
					is_available = yes
				}		
			}
			random_relation = {
				type = guardian
				save_scope_as = guardian
			}
		}
	}

	option = {
		name = child_personality.0002.a
		ai_chance = {
			base = 1
			modifier = {
				add = 4
				OR = {
					has_trait = callous
					has_trait = arrogant
				}
			}
			modifier = {
				factor = 0
				has_trait = compassionate
			}
		}
		
		if = {
			limit = {
				is_ai = no
			}
			stress_impact = {
				humble = medium_stress_gain
				compassionate = major_stress_gain
				arrogant = medium_stress_loss
				callous = medium_stress_loss
				sadistic = minor_stress_gain
			}
		}
		
		if = { 
			limit = {
				NOR = {
					has_trait = humble
					has_trait = arrogant
					has_trait = sadistic
					has_trait = callous
					has_trait = compassionate
				}
			}
			random_list = {
				40 = {
					add_trait = arrogant
				}
				60 = {
					add_trait = callous
				}
			}
		}
		else_if = {
			limit = {
				NOR = {
					has_trait = sadistic
					has_trait = callous
					has_trait = compassionate
				}
			}
			add_trait = callous
		}
		else_if = {
			limit = {
				NOR = {
					has_trait = humble
					has_trait = arrogant
				}
			}
			add_trait = arrogant
		}
		else = { }
		

		if = {
			limit = {
				is_ai = yes
			}
			random_relation = {
				type = guardian
				trigger_event = child_personality.1021
			}
		}	
	}

	option = {
		name = child_personality.0002.b
		ai_chance = {
			base = 1
			modifier = {
				add = 4
				has_trait = compassionate
			}
			modifier = {
				add = 100
				culture = {
					has_cultural_parameter = compassionate_trait_more_common
				}
			}
			modifier = {
				factor = 0
				OR = {
					has_trait = callous
					has_trait = sadistic
				}
			}
		}
		trigger = {
			NOT = { has_trait = sadistic }
		}
		
		if = {
			limit = {
				is_ai = no
			}
			stress_impact = {
				humble = medium_stress_loss
				compassionate = medium_stress_loss
				arrogant = medium_stress_gain
				callous = major_stress_gain
			}
		}
		
		remove_trait = callous
		add_trait = compassionate

		if = {
			limit = {
				is_ai = yes
			}
			random_relation = {
				type = guardian
				trigger_event = child_personality.1022
			}
		}
	}

	option = {
		name = child_personality.0002.c
		custom_tooltip = child_personality.0002.c.tt
		ai_chance = {
			base = 1
			modifier = {
				add = 4
				has_trait = just
			}
			modifier = {
				add = 100
				culture = {
					has_cultural_parameter = just_trait_more_common
				}
			}
			modifier = {
				factor = 0
				has_trait = arbitrary
			}
		}
				
		if = {
			limit = {
				is_ai = no
			}
			stress_impact = {
				compassionate = minor_stress_gain
				just = medium_stress_loss
				callous = minor_stress_loss
				arbitrary = major_stress_gain
				sadistic = minor_stress_gain
			}
		}
		
		if = { 
			limit = {
				NOR = {
					has_trait = just
					has_trait = arbitrary
					has_trait = sadistic
					has_trait = callous
					has_trait = compassionate
					culture = {
						has_cultural_parameter = just_trait_more_common
					}
				}
			}
			random_list = {
				10 = {
					add_trait = callous
				}
				10 = {
					add_trait = compassionate
				}
				80 = {
					add_trait = just
				}
			}
		}
		else_if = {
			limit = {
				NOR = {
					has_trait = just
					has_trait = arbitrary
				}
			}
			random_list = {
				20 = {
					modifier = {
						factor = 0
						culture = {
							has_cultural_parameter = just_trait_more_common
						}
					}
				}
				80 = {
					add_trait = just
				}
			}
		}
		else = { }

		if = {
			limit = {
				is_ai = yes
			}
			random_relation = {
				type = guardian
				trigger_event = child_personality.1023
			}
		}	
	}
	
	option = {
		name = child_personality.0002.d
		custom_tooltip = child_personality.0002.d.tt
		ai_chance = {
			base = 1
			modifier = {
				add = 4
				has_trait = arbitrary
			}
			modifier = {
				factor = 0
				has_trait = just
			}
		}
		
		if = {
			limit = {
				is_ai = no
			}
			stress_impact = {
				compassionate = minor_stress_loss
				just = medium_stress_gain
				callous = minor_stress_gain
				arbitrary = major_stress_loss
				sadistic = minor_stress_gain
			}
		}
		
		if = { 
			limit = {
				NOR = {
					has_trait = just
					has_trait = arbitrary
					has_trait = sadistic
					has_trait = callous
					has_trait = compassionate
				}
			}
			random_list = {
				30 = {
					add_trait = compassionate
				}
				70 = {
					add_trait = arbitrary
				}
			}
		}
		else_if = {
			limit = {
				NOR = {
					has_trait = just
					has_trait = arbitrary
				}
			}
			add_trait = arbitrary
			
		}
		else = { }
		
		if = {
			limit = {
				is_ai = yes
			}
			random_relation = {
				type = guardian
				trigger_event = child_personality.1024
			}
		}	
	}
	
	option = {
		name = child_personality.0002.e
		custom_tooltip = child_personality.0002.e.tt
		ai_chance = {
			base = 1
			modifier = {
				add = 4
				has_trait = sadistic
			}
		}
		trigger = {
			AND = {
				OR = {
					has_trait = arrogant
					has_trait = callous
					has_trait = deceitful
				}
				NOT = { has_trait = compassionate }
			}
		}
				
		if = {
			limit = {
				is_ai = no
			}
			stress_impact = {
				compassionate = major_stress_gain
				arrogant = minor_stress_loss
				sadistic = major_stress_loss
			}
		}

		remove_trait = callous
		add_trait = sadistic

		if = {
			limit = {
				is_ai = yes
			}
			random_relation = {
				type = guardian
				trigger_event = child_personality.1025
			}
		}	
	}
	
}


#Gift event
child_personality.0003 = {
	type = character_event
	title = child_personality.0003.t
	desc = {
		desc = child_personality.0003.desc
		first_valid = {
			triggered_desc = {
				trigger = {
					has_trait = bossy
				}
				desc = child_personality.0003.bossy
			}
			triggered_desc = {
				trigger = {
					has_trait = charming
				}
				desc = child_personality.0003.charming
			}
			triggered_desc = {
				trigger = {
					has_trait = pensive
				}
				desc = child_personality.0003.pensive
			}
			triggered_desc = {
				trigger = {
					has_trait = curious
				}
				desc = child_personality.0003.curious
			}
			desc = child_personality.0003.rowdy
		}
		desc = child_personality.0003.fin
	}
	theme = education
	override_background = {
		reference = sitting_room
	}
	left_portrait = {
		character = root
		animation = eyeroll
	}

	trigger = {
		is_available_child_allow_travel = yes
		NOR = {
			has_character_flag = cp_0003
			has_character_flag = cp_700
		}
	}

	weight_multiplier = {
		base = 1
		modifier = {
			add = 2
			culture = {
				has_cultural_parameter = honest_trait_more_common
			}
			NOR = {
				has_trait = honest
				has_trait = deceitful
			}
		}
	}

	immediate = {
		save_scope_as = child
		add_character_flag = { flag = cp_0003 }
	}

	option = {
		name = child_personality.0003.a
		ai_chance = {
			base = 1
			modifier = {
				add = 4
				has_trait = honest
			}
			modifier = {
				factor = 0
				has_trait = deceitful
			}
			modifier = {
				add = 100
				culture = {
					has_cultural_parameter = honest_trait_more_common
				}
			}
		}
		
		if = {
			limit = {
				is_ai = no
			}
			stress_impact = {
				deceitful = medium_stress_gain
				greedy = minor_stress_gain
				honest = medium_stress_loss
			}
		}
		
		if = { 
			limit = {
				NOR = {
					has_trait = honest
					has_trait = deceitful
				}
			}
			add_trait = honest
		}
		else = { }
		

		if = {
			limit = {
				is_ai = yes
			}
			random_relation = {
				type = guardian
				trigger_event = child_personality.1031
			}
		}	
	}

	option = {
		name = child_personality.0003.b
		trigger = {
			NOT = { has_trait = deceitful }
		}
		ai_chance = {
			base = 1
			modifier = {
				factor = 0
				has_trait = honest
			}
		}
		
		if = {
			limit = {
				is_ai = no
			}
			stress_impact = {
				base = medium_stress_gain
				honest = medium_stress_gain
				greedy = minor_stress_loss
			}
		}

		if = {
			limit = {
				NOT = {
					has_trait = honest
				}
			}
			random_list = {
				20 = { }
				80 = { add_trait = deceitful }
			}
		}
		else = { }

		if = {
			limit = {
				is_ai = yes
			}
			random_relation = {
				type = guardian
				trigger_event = child_personality.1032
			}
		}
	}

	option = {
		name = child_personality.0003.c
		custom_tooltip = child_personality.0003.c.tt
		ai_chance = {
			base = 1
			modifier = {
				add = 4
				has_trait = greedy
			}
			modifier = {
				factor = 0
				has_trait = generous
			}
		}
				
		if = {
			limit = {
				is_ai = no
			}
			stress_impact = {
				base = minor_stress_gain
				greedy = medium_stress_loss
				generous = medium_stress_gain
			}
		}
		
		if = { 
			limit = {
				NOR = {
					has_trait = greedy
					has_trait = generous
				}
			}
			random_list = {
				20 = { }
				80 = {
					add_trait = greedy
				}
			}
		}
		else = { }

		if = {
			limit = {
				is_ai = yes
			}
			random_relation = {
				type = guardian
				trigger_event = child_personality.1033
			}
		}	
	}
	
	option = {
		name = child_personality.0003.d
		custom_tooltip = child_personality.0003.d.tt
		trigger = {
			NOT = { has_trait = deceitful }
		}
		ai_chance = {
			base = 1
			modifier = {
				add = 4
				has_trait = generous
			}
			modifier = {
				add = 100
				culture = {
					has_cultural_parameter = generous_trait_more_common
				}
			}
			modifier = {
				factor = 0
				has_trait = greedy
			}
		}
		
		if = {
			limit = {
				is_ai = no
			}
			stress_impact = {
				base = minor_stress_gain
				greedy = medium_stress_gain
				generous = medium_stress_loss
			}
		}
		
		if = { 
			limit = {
				NOR = {
					has_trait = honest
					has_trait = generous
					has_trait = greedy
				}
			}
			random_list = {
				20 = {
					modifier = {
						factor = 0
						culture = {
							has_cultural_parameter = generous_trait_more_common
						}
					}
					add_trait = deceitful
					if = {
						limit = {
							is_ai = yes
						}
						random_relation = {
							type = guardian
							trigger_event = child_personality.1035
						}
					}
				}
				80 = {
					add_trait = generous
					if = {
						limit = {
							is_ai = yes
						}
						random_relation = {
							type = guardian
							trigger_event = child_personality.1034
						}
					}
				}
			}
		}
		else_if = {
			limit = {
				NOR = {
					has_trait = generous
					has_trait = greedy
				}
			}
			add_trait = generous
			if = {
				limit = {
					is_ai = yes
				}
				random_relation = {
					type = guardian
					trigger_event = child_personality.1034
				}
			}				
		}
		else = { 
			if = {
				limit = {
					is_ai = yes
				}
				random_relation = {
					type = guardian
					trigger_event = child_personality.1034
				}
			}	
		}
	}
	
	option = {
		name = child_personality.0003.d
		custom_tooltip = child_personality.0003.d.tt_alt
		trigger = {
			has_trait = deceitful
		}
		ai_chance = {
			base = 1
			modifier = {
				add = 6
				has_trait = deceitful
			}
		}
				
		if = {
			limit = {
				is_ai = no
			}
			stress_impact = {
				generous = minor_stress_loss
				deceitful = medium_stress_loss
				greedy = medium_stress_gain
			}
		}

		if = {
			limit = {
				is_ai = yes
			}
			random_relation = {
				type = guardian
				trigger_event = child_personality.1035
			}
		}	
	}	
}

#Observing the workings of life
child_personality.0004 = {
	type = character_event
	title = child_personality.0004.t
	desc = child_personality.0004.desc
	theme = education
	
	override_background = {
		reference = courtyard
	}
	left_portrait = {
		character = root
		animation = admiration
	}

	trigger = {
		is_available_child_allow_travel = yes
		NOR = {
			has_character_flag = cp_0004
			has_character_flag = cp_700
		}
	}

	weight_multiplier = {
		base = 1
	}

	immediate = {
		save_scope_as = child
		add_character_flag = { flag = cp_0004 }
	}

	option = {
		name = child_personality.0004.a
		custom_tooltip = child_personality.0004.a.tt
		ai_chance = {
			base = 1
			modifier = {
				add = 4
				has_trait = diligent
			}
			modifier = {
				factor = 0
				has_trait = lazy
			}
		}
		
		if = {
			limit = {
				is_ai = no
				NOT = { has_trait = diligent }
			}
			stress_impact = {
				base = medium_stress_gain
				ambitious = minor_stress_gain
				lazy = medium_stress_gain
			}
		}
		else_if = {
			limit = {
				is_ai = no
			}
			stress_impact = {
				diligent = minor_stress_loss
			}
		}
		else = { }
		
		if = { 
			limit = {
				NOR = {
					has_trait = lazy
					has_trait = diligent
				}
			}
			add_trait = diligent
		}
		else = { }
		

		if = {
			limit = {
				is_ai = yes
			}
			random_relation = {
				type = guardian
				trigger_event = child_personality.1041
			}
		}	
	}

	option = {
		name = child_personality.0004.b
		custom_tooltip = child_personality.0004.b.tt
		ai_chance = {
			base = 1
			modifier = {
				add = 4
				has_trait = ambitious
			}
			modifier = {
				factor = 0
				has_trait = content
			}
		}
		
		if = {
			limit = {
				is_ai = no
				NOT = { has_trait = ambitious }
			}
			stress_impact = {
				base = minor_stress_gain
				content = minor_stress_gain
			}
		}
		else_if = {
			limit = {
				is_ai = no
			}
			stress_impact = {
				ambitious = minor_stress_loss
			}
		}
		else = { }

		if = { 
			limit = {
				NOR = {
					has_trait = content
					has_trait = ambitious
				}
			}
			add_trait =  ambitious
		}
		else = { }
		

		if = {
			limit = {
				is_ai = yes
			}
			random_relation = {
				type = guardian
				trigger_event = child_personality.1042
			}
		}	
	}

	option = {
		name = child_personality.0004.c
		custom_tooltip = child_personality.0004.c.tt
		ai_chance = {
			base = 1
			modifier = {
				add = 4
				has_trait = content
			}
			modifier = {
				factor = 0
				has_trait = ambitious
			}
		}
		
		if = {
			limit = {
				is_ai = no
				NOT = { has_trait = content }
			}
			stress_impact = {
				ambitious = minor_stress_gain
			}
		}
		else_if = {
			limit = {
				is_ai = no
			}
			stress_impact = {
				content = minor_stress_loss
			}
		}
		else = { }

		if = { 
			limit = {
				NOR = {
					has_trait = content
					has_trait = ambitious
				}
			}
			random_list = {
				50 = { }
				50 = { add_trait = content }
			}
		}
		else = { }
		
		if = {
			limit = {
				is_ai = yes
			}
			random_relation = {
				type = guardian
				trigger_event = child_personality.1043
			}
		}	
	}
	
	option = {
		name = child_personality.0004.d
		custom_tooltip = child_personality.0004.d.tt
		ai_chance = {
			base = 1
			modifier = {
				add = 4
				has_trait = content
			}
			modifier = {
				factor = 0
				has_trait = ambitious
			}
		}
		
		if = {
			limit = {
				is_ai = no
				NOR = { 
					has_trait = lazy
					has_trait = diligent
				}
			}
			stress_impact = {
				base = major_stress_loss
				ambitious = minor_stress_gain
			}
		}
		else_if = {
			limit = {
				is_ai = no
			}
			stress_impact = {
				lazy = medium_stress_loss
				diligent = medium_stress_gain
			}
		}
		else = { }

		if = { 
			limit = {
				NOR = {
					has_trait = lazy
					has_trait = diligent
				}
			}
			random_list = {
				30 = { }
				70 = { add_trait = lazy }
			}
		}
		else = { }
		
		if = {
			limit = {
				is_ai = yes
			}
			random_relation = {
				type = guardian
				trigger_event = child_personality.1044
			}
		}	
	}
}

#Being pushed in playtime
child_personality.0005 = {
	type = character_event
	title = child_personality.0005.t
	desc = child_personality.0005.desc
	theme = education
	
	override_background = {
		reference = courtyard
	}
	left_portrait = {
		character = root
		animation = worry
	}
	right_portrait = {
		character = scope:doing_push
		animation = anger
	}

	trigger = {
		is_available_child_allow_travel = yes
		NOR = {
			has_character_flag = cp_0005
			has_character_flag = cp_700
		}
		OR = {
			any_relation = { type = bully count >= 1 }
			any_vassal = {
				save_good_bully_character_trigger_check = yes
				is_ai = yes
			}
			any_vassal = {
				any_child = {
					save_good_bully_character_trigger_check = yes
					is_ai = yes
				}
			}
			any_courtier_or_guest = {
				save_good_bully_character_trigger_check = yes
				is_ai = yes
			}
			AND = {
				is_independent_ruler = no
				exists = liege
				liege = {
					save_good_bully_character_trigger_check = yes
					is_ai = yes
				}
			}
			AND = {
				is_independent_ruler = no
				exists = liege
				liege = {
					any_vassal = {
						save_good_bully_character_trigger_check = yes
						is_ai = yes
					}
				}
			}
			AND = {
				is_independent_ruler = no
				exists = liege
				liege = {
					any_vassal = {
						any_child = {
							save_good_bully_character_trigger_check = yes
							is_ai = yes
						}
					}
				}
			}
			AND = {
				is_independent_ruler = no
				exists = liege
				liege = {
					any_courtier_or_guest = {
						save_good_bully_character_trigger_check = yes
						is_ai = yes
					}
				}
			}
			AND = {
				exists = host
				host = {
					save_good_bully_character_trigger_check = yes
					is_ai = yes
				}
			}
			AND = {
				exists = host
				host = {
					any_vassal = {
						save_good_bully_character_trigger_check = yes
						is_ai = yes
					}
				}
			}
			AND = {
				exists = host
				host = {
					any_vassal = {
						any_child = {
							save_good_bully_character_trigger_check = yes
							is_ai = yes
						}
					}
				}
			}
			AND = {
				exists = host
				host = {
					any_courtier_or_guest = {
						save_good_bully_character_trigger_check = yes
						is_ai = yes
					}
				}
			}
		}
	}

	weight_multiplier = {
		base = 1
	}

	immediate = {
		save_scope_as = child
		add_character_flag = { flag = cp_0005 }
		if = {
			limit = {
				any_relation = { type = bully count >= 1 }
			}
			random_relation = {
				type = bully
				save_scope_as = doing_push
			}
		}
		else = {
			every_vassal = {
				limit = {
					save_good_bully_character_trigger_check = yes
					is_ai = yes
				}
				add_to_list = bullies
			}
			every_vassal = {
				every_child = {
					limit = {
						save_good_bully_character_trigger_check = yes
						is_ai = yes
					}
					add_to_list = bullies
				}
			}
			every_courtier_or_guest = {
				limit = {
					save_good_bully_character_trigger_check = yes
					is_ai = yes
				}
				add_to_list = bullies
			}
			if = {
				limit = {
					is_independent_ruler = no
					exists = liege
					liege = {
						save_good_bully_character_trigger_check = yes
						is_ai = yes
					}
				}
				liege = {
					add_to_list = bullies
				}
			}
			if = {
				limit = {
					is_independent_ruler = no
					exists = liege
					liege = {
						any_vassal = {
							save_good_bully_character_trigger_check = yes
							is_ai = yes
						}
					}
				}
				liege = {
					every_vassal = {
						limit = {
							save_good_bully_character_trigger_check = yes
							is_ai = yes
						}
						add_to_list = bullies
					}
				}
			}
			if = {
				limit = {
					is_independent_ruler = no
					exists = liege
					liege = {
						any_vassal = {
							any_child = {
								save_good_bully_character_trigger_check = yes
								is_ai = yes
							}
						}
					}
				}
				liege = {
					every_vassal = {
						every_child = {
							limit = {
								save_good_bully_character_trigger_check = yes
								is_ai = yes
							}
							add_to_list = bullies
						}
					}
				}
			}
			if = {
				limit = {
					is_independent_ruler = no
					exists = liege
					liege = {
						any_courtier_or_guest = {
							save_good_bully_character_trigger_check = yes
							is_ai = yes
						}
					}
				}
				liege = {
					every_courtier_or_guest = {
						limit = {
							save_good_bully_character_trigger_check = yes
							is_ai = yes
						}
						add_to_list = bullies
					}
				}
			}
			if = {
				limit = {
					exists = host
					host = {
						save_good_bully_character_trigger_check = yes
						is_ai = yes
					}
				}
				host = {
					add_to_list = bullies
				}
			}
			if = {
				limit = {
					exists = host
					host = {
						any_vassal = {
							save_good_bully_character_trigger_check = yes
							is_ai = yes
						}
					}
				}
				host = {
					every_vassal = {
						limit = {
							save_good_bully_character_trigger_check = yes
							is_ai = yes
						}
						add_to_list = bullies
					}
				}
			}
			if = {
				limit = {
					exists = host
					host = {
						any_vassal = {
							any_child = {
								save_good_bully_character_trigger_check = yes
								is_ai = yes
							}
						}
					}
				}
				host = {
					every_vassal = {
						every_child = {
							limit = {
								save_good_bully_character_trigger_check = yes
								is_ai = yes
							}
							add_to_list = bullies
						}
					}
				}
			}
			if = {
				limit = {
					exists = host
					host = {
						any_courtier_or_guest = {
							save_good_bully_character_trigger_check = yes
							is_ai = yes
						}
					}
				}
				host = {
					every_courtier_or_guest = {
						limit = {
							save_good_bully_character_trigger_check = yes
							is_ai = yes
						}
						add_to_list = bullies
					}
				}
			}
			
			random_in_list = {
				list = bullies
				weight = {
					base = 1
					modifier = {
						add = 10
						is_of_major_interest_to_root_trigger = yes
					}
					modifier = {
						add = 5
						is_of_minor_interest_to_root_trigger = yes
					}
					modifier = {
						add = 5
						number_of_opposing_personality_traits = {
							target = root
							value >= 1
						}
					}
					modifier = {
						add = 5
						number_of_opposing_personality_traits = {
							target = root
							value >= 2
						}
					}
					modifier = {
						add = 5
						number_of_opposing_personality_traits = {
							target = root
							value >= 3
						}
					}
					modifier = {
						add = 5
						has_trait = wrathful
					}
					modifier = {
						add = 10
						has_trait = sadistic
					}
				}
				save_scope_as = doing_push
			}
		}
		
		if = {
			limit = { exists = scope:doing_push }
			scope:doing_push = {
				random_parent = {
					limit = { is_female = no }
					save_scope_as = push_father
				}
				random_parent = {
					limit = { is_female = yes }
					save_scope_as = push_mother
				}
			}
		}
		random_relation = {
			type = guardian
			save_scope_as = guardian
		}
	}

	option = {
		name = child_personality.0005.a
		ai_chance = {
			base = 1
			modifier = {
				add = 4
				has_trait = vengeful
			}
			modifier = {
				add = 100
				culture = {
					has_cultural_parameter = stubborn_trait_more_common
				}
			}
			modifier = {
				factor = 0
				has_trait = forgiving
			}
		}
		
		if = {
			limit = {
				is_ai = no
			}
			stress_impact = {
				calm = minor_stress_gain
				vengeful = medium_stress_loss
				wrathful = minor_stress_loss
				forgiving = minor_stress_gain
			}
		}
		
		if = {
			limit = {
				NOR = {
					has_trait = vengeful
					has_trait = forgiving
				}
			}
			add_trait =  vengeful
		}
		else = {
			remove_trait = calm
			add_trait_force_tooltip = wrathful
		}
		
		if = {
			limit = {
				is_ai = yes
				exists = scope:doing_push
			}
			random_relation = {
				type = guardian
				trigger_event = child_personality.1051
			}
		}	
	}

	option = {
		name = child_personality.0005.b
		ai_chance = {
			base = 1
			modifier = {
				add = 4
				has_trait = forgiving
			}
			modifier = {
				factor = 0
				has_trait = vengeful
			}
		}
		
		if = {
			limit = {
				is_ai = no
				NOT = { has_trait = forgiving }
			}
			stress_impact = {
				base = medium_stress_gain
				calm = minor_stress_loss
				vengeful = medium_stress_gain
				wrathful = medium_stress_gain
			}
		}
		else_if = {
			limit = {
				is_ai = no
			}
			stress_impact = {
				forgiving = minor_stress_loss
			}
		}
		else = { }
		
		if = {
			limit = {
				NOR = {
					has_trait = vengeful
					has_trait = forgiving
				}
			}
			add_trait =  forgiving
		}
		else_if = {
			limit = {
				has_trait = vengeful
			}
			remove_trait = vengeful
		}
		else = {
			remove_trait = wrathful
			add_trait_force_tooltip = calm
		}
		
		if = {
			limit = {
				is_ai = yes
				exists = scope:doing_push
			}
			random_relation = {
				type = guardian
				trigger_event = child_personality.1052
			}
		}
		
		if = {
			limit = {
				exists = scope:doing_push
				scope:doing_push = {
					NOR = {
						any_relation = {
							type = victim
							this = root
						}
						has_trait = sadistic
						has_trait = callous
					}
				}
			}
			show_as_tooltip = {
				scope:doing_push = { set_relation_friend = { reason = friend_playing_children target = root } }
			}
			scope:doing_push = { trigger_event = child_personality.2004 }
		}
	}

	option = {
		name = child_personality.0005.c
		ai_chance = {
			base = 1
			modifier = {
				add = 4
				has_trait = fickle
			}
			modifier = {
				factor = 0
				has_trait = stubborn
			}
		}
		if = {
			limit = {
				is_ai = no
				NOT = { has_trait = fickle }
			}
			stress_impact = {
				base = minor_stress_gain
				vengeful = minor_stress_gain
				wrathful = minor_stress_gain
				impatient = minor_stress_loss
			}
		}
		else_if = {	
			limit = {
				is_ai = no
			}
			stress_impact = {
				fickle = minor_stress_loss
				impatient = minor_stress_loss
			}
		}
		else = { }
		
		add_trait = fickle
		
		if = {
			limit = {
				exists = scope:doing_push
				scope:doing_push = {
					any_relation = {
						type = victim
						this = root
					}
				}
			}
			random_list = {
				50 = {
					desc = child_personality.0005.bully_relents
					scope:doing_push = { trigger_event = child_personality.2905 }
					send_interface_toast = {
						title = child_personality.0005.bully_relents
						left_icon = scope:doing_push
						scope:doing_push = {
							remove_relation_victim = scope:child
						}
					}
				}
				50 = {
					desc = child_personality.0005.bully_not_relents
					send_interface_toast = {
						title = child_personality.0005.bully_not_relents
						left_icon = scope:doing_push
					}
				}	
			}
		}	
		else_if = {
			limit = {
				exists = scope:doing_push
			}
			random_list = {
				50 = {
					desc = child_personality.0005.bully_relents
					send_interface_toast = {
						title = child_personality.0005.bully_relents
						left_icon = scope:doing_push
						scope:doing_push = {
							set_relation_friend = { reason = friend_playing_children target = root }
						}
					scope:doing_push = { trigger_event = child_personality.2906 }	
					}
				}
				50 = {
					desc = child_personality.0005.bully_not_relents
					send_interface_toast = {
						left_icon = scope:doing_push
						title = child_personality.0005.bully_not_relents
					}
				}	
			}
		}
		else = { }
		
		if = {
			limit = {
				is_ai = yes
				exists = scope:doing_push
			}
			random_relation = {
				type = guardian
				trigger_event = child_personality.1053
			}
		}	
	}
	
	option = {
		name = child_personality.0005.d
		
		ai_chance = {
			base = 1
			modifier = {
				add = 8
				has_trait = stubborn
			}
			modifier = {
				add = 100
				culture = {
					has_cultural_parameter = stubborn_trait_more_common
				}
			}
			modifier = {
				factor = 0
				has_trait = fickle
			}
		}
		if = {
			limit = {
				is_ai = no
				NOT = { has_trait = stubborn }
			}
			stress_impact = {
				base = minor_stress_gain
				vengeful = minor_stress_gain
				wrathful = minor_stress_gain
				impatient = minor_stress_gain
				calm = minor_stress_loss
				patient = minor_stress_loss
			}
		}
		else_if = {	
			limit = {
				is_ai = no
			}
			stress_impact = {
				stubborn = minor_stress_loss
				patient = minor_stress_loss
			}
		}
		else = { }
		
		add_trait = stubborn
		if = {
			limit = {
				is_ai = yes
				exists = scope:doing_push
			}
			random_relation = {
				type = guardian
				trigger_event = child_personality.1054
			}
		}
	}
}

#Child is rejected by a crush
#0006
child_personality.0006 = {
	type = character_event
	title = child_personality.0006.t
	desc = {
		first_valid = {
			triggered_desc = {
				trigger = {
					exists = scope:crush
				}
				desc = child_personality.0006.desc_crush
			}
			desc = child_personality.0006.desc
		}
	}
	theme = education
	override_icon = {
		reference = "gfx/interface/icons/event_types/type_relation_unfriendly.dds"
	}
	
	override_background = {
		reference = corridor_day
	}
	left_portrait = {
		character = root
		animation = sadness
	}
	right_portrait = {
		character = scope:crush
		animation = dismissal
	}

	trigger = {
		is_available_child_allow_travel = yes
		age >= 13 #Because chaste/lustful are only given at age 13
		NOT = {
			has_sexuality = none
		}
		NOR = {
			has_character_flag = cp_0006
			has_character_flag = cp_700
		}
	}

	weight_multiplier = {
		base = 1
	}

	immediate = {
		save_scope_as = child
		add_character_flag = { flag = cp_0006 }
		if = {
			limit = {
				any_relation = {
					type = crush
					is_available_child_allow_travel = yes
				}
				NOT = { #Not a crush who crushes on you!
					any_relation = {
						type = crush
						is_available_child_allow_travel = yes
						any_relation = {
							type = crush
							this = root
						}
					}
				}
			}
			random_relation = {
				type = crush
				limit = {
					is_available_child_allow_travel = yes
					NOT = {
						any_relation = {
							type = crush
							this = root
						}
					}
				}
				save_scope_as = crush
			}
		}
		else = {
			every_vassal = {
				limit = {
					save_good_crush_character_trigger_check = yes
				}
				add_to_list = crushes
			}
			every_vassal = {
				every_child = {
					limit = {
						save_good_crush_character_trigger_check = yes
					}
					add_to_list = crushes
				}
			}
			every_courtier_or_guest = {
				limit = {
					save_good_crush_character_trigger_check = yes
				}
				add_to_list = crushes
			}
			if = {
				limit = {
					is_independent_ruler = no
					exists = liege
					liege = {
						save_good_crush_character_trigger_check = yes
					}
				}
				liege = {
					add_to_list = crushes
				}
			}
			if = {
				limit = {
					is_independent_ruler = no
					exists = liege
					liege = {
						any_vassal = {
							save_good_crush_character_trigger_check = yes
						}
					}
				}
				liege = {
					every_vassal = {
						limit = {
							save_good_crush_character_trigger_check = yes
						}
						add_to_list = crushes
					}
				}
			}
			if = {
				limit = {
					is_independent_ruler = no
					exists = liege
					liege = {
						any_vassal = {
							any_child = {
								save_good_crush_character_trigger_check = yes
							}
						}
					}
				}
				liege = {
					every_vassal = {
						every_child = {
							limit = {
								save_good_crush_character_trigger_check = yes
							}
							add_to_list = crushes
						}
					}
				}
			}
			if = {
				limit = {
					is_independent_ruler = no
					exists = liege
					liege = {
						any_courtier_or_guest = {
							save_good_crush_character_trigger_check = yes
						}
					}
				}
				liege = {
					every_courtier_or_guest = {
						limit = {
							save_good_crush_character_trigger_check = yes
						}
						add_to_list = crushes
					}
				}
			}
			
			random_in_list = {
				list = crushes
				weight = {
					base = 1
					modifier = {
						add = 10
						is_independent_ruler = no
						exists = liege
						is_primary_heir_of = liege
					}
					modifier = {
						add = 5
						is_independent_ruler = no
						exists = liege
						is_heir_of = liege
					}
					modifier = {
						add = 10
						any_parent = {
							is_powerful_vassal_of = root
						}
					}
					modifier = {
						add = 5
						any_parent = {
							is_vassal_of = root
						}
					}
					modifier = {
						add = 10
						is_of_major_interest_to_root_trigger = yes
					}
					modifier = {
						add = 5
						is_of_minor_interest_to_root_trigger = yes
					}
				}
				save_scope_as = crush
			}
		}
		if = {
			limit = {
				exists = scope:crush
				NOT = { has_relation_crush = scope:crush }
			}
			set_relation_crush = scope:crush
		}
		if = {
			limit = {
				NOT = {
					exists = scope:crush
				}
			}
			pick_servant_romance_target_effect = yes
		}
	}

	option = { #Fury
		name = {
			text = child_personality.0006.a
		}
		name = {
			trigger = { exists = scope:crush }
			text = child_personality.0006.a_crush
		}
		custom_tooltip = child_personality.0006.a_tt
		trigger = {
			NOT = {
				has_trait = calm
			}
		}
		
		if = {
			limit = {
				is_ai = no
			}
			stress_impact = {
				wrathful = minor_stress_loss
				impatient = minor_stress_loss
			}
		}
		
		if = {
			limit = {
				NOT = {
					has_trait = calm
					has_trait = wrathful
				}
			}
			random_list = {
				50 = { add_trait = wrathful }
				50 = {}
			}
		}

		
		ai_chance = {
			base = 1
			modifier = {
				add = 4
				has_trait = wrathful
			}
		}
		
		if = {
			limit = {
				is_ai = yes
			}
			random_relation = {
				type = guardian
				trigger_event = child_personality.1061
			}
		}
	}

	option = { #Chaste Or Lustful
		name = child_personality.0006.b
		if = {
			limit = {
				has_trait = lustful
			}
			custom_tooltip = child_personality.0006.lust_tt
		}
		if = {
			limit = {
				has_trait = chaste
			}
			custom_tooltip = child_personality.0006.chaste_tt
		}
		ai_chance = {
			base = 1
			modifier = {
				add = 4
				has_trait = chaste
			}
			modifier = {
				add = 4
				has_trait = lustful
			}
		}
		if = {
			limit = {
				is_ai = no
			}
			stress_impact = {
				base = medium_stress_gain
			}
		}
		
		if = {
			limit = {
				exists = scope:crush
			}
			remove_relation_crush = scope:crush
		}
		
		if = {
			limit = {
				NOR = {
					has_trait = chaste
					has_trait = lustful
				}
			}
			random_list = {
				70 = {
					desc = child_personality.0006.chaste_tt
					add_trait = chaste
				}
				30 = {
					desc = child_personality.0006.lust_tt
					add_trait = lustful
				}
			}
		}
		
		if = {
			limit = {
				is_ai = yes
				has_trait = chaste
			}
			random_relation = {
				type = guardian
				trigger_event = child_personality.1062
			}
		}
		else_if = {
			limit = {
				is_ai = yes
				has_trait = lustful
			}
			random_relation = {
				type = guardian
				trigger_event = child_personality.1063
			}
		}
		else = { }
	}

	option = { #Stubborn
		name = child_personality.0006.c
		custom_tooltip = child_personality.0006.c_tt
		ai_chance = {
			base = 1
			modifier = {
				add = 4
				has_trait = stubborn
			}
			modifier = {
				add = 100
				culture = {
					has_cultural_parameter = stubborn_trait_more_common
				}
			}
			modifier = {
				factor = 0
				has_trait = fickle
			}
		}
		
		if = {
			limit = {
				is_ai = no
			}
			stress_impact = {
				base = minor_stress_gain
				stubborn = minor_stress_loss
				fickle = minor_stress_gain
				wrathful = minor_stress_gain
				impatient = minor_stress_gain
			}
		}
		
		if = {
			limit = {
				NOT = {
					has_trait = stubborn
					has_trait = fickle
				}
			}
			random_list = {
				50 = { add_trait = stubborn }
				50 = {}
			}
		}

		if = {
			limit = {
				is_ai = yes
			}
			random_relation = {
				type = guardian
				trigger_event = child_personality.1064
			}
		}
		if = {
			limit = {
				exists = scope:crush
			}
			scope:crush = {
				trigger_event = child_personality.2005
			}
		}
	}
	
	option = { #No care
		name = child_personality.0006.d
		trigger = {
			OR = {
				has_trait = calm
				has_trait = fickle
			}
		}
		stress_impact = {
			base = minor_stress_gain
		}
		
		if = {
			limit = {
				exists = scope:crush
			}
			remove_relation_crush = scope:crush
		}
		
		ai_chance = {
			base = 7
		}
	}
}

#Playing in the nature
#Wilderness event
child_personality.0007 = {
	type = character_event
	title = child_personality.0007.t
	desc = {
		desc = child_personality.0007.desc
	}
	theme = education
	override_background = {
		reference = terrain_activity
	}
	left_portrait = {
		character = root
		animation = personality_rational
	}

	trigger = {
		is_available_child_allow_travel = yes
		NOR = { 
			has_character_flag = cp_0007 
			has_character_flag = cp_700
		}
	}

	weight_multiplier = {
		base = 1
	}

	immediate = {
		save_scope_as = child
		add_character_flag = { flag = cp_0007 }
	}

	option = {
		name = child_personality.0007.a
		custom_tooltip = child_personality.0007.a.tt
		ai_chance = {
			base = 1
			modifier = {
				add = 4
				has_trait = brave
			}
			modifier = {
				factor = 0
				has_trait = craven
			}
		}
		if = {
			limit = {
				is_ai = no
				NOT = { has_trait = brave }
			}
			stress_impact = {
				base = minor_stress_loss
				ambitious = minor_stress_loss
				craven = medium_stress_gain
				patient = minor_stress_gain
				arbitrary = minor_stress_loss
			}
		}
		else_if = {
			limit = {
				is_ai = no
			}
			stress_impact = {
				brave = medium_stress_loss
				ambitious = minor_stress_loss
			}
		}
		else = { }
		if = {
			limit = {
				NOR = {
					has_trait = brave
					has_trait = craven
				}
			}
			add_trait = brave
		}

		if = {
			limit = {
				is_ai = no
			}
			add_character_modifier = {
				modifier = high_risk_mod
				days = 2000
			}
		}	
		if = {
			limit = {
				is_ai = yes
			}
			random_relation = {
				type = guardian
				trigger_event = child_personality.1071
			}
		}	
	}

	option = {
		name = child_personality.0007.b
		custom_tooltip = child_personality.0007.b.tt
		trigger = {
			NOR = {
				has_trait = patient
				has_trait = content
				has_trait = calm
			}
		}
		ai_chance = {
			base = 1
			modifier = {
				add = 4
				has_trait = craven
			}
			modifier = {
				factor = 0
				has_trait = brave
			}
		}
		if = {
			limit = {
				is_ai = no
				NOT = { has_trait = craven }
			}
			stress_impact = {
				base = minor_stress_gain
				ambitious = medium_stress_gain
				brave = medium_stress_gain
			}
		}
		else_if = {
			limit = {
				is_ai = no
			}
			stress_impact = {
				craven = minor_stress_loss
				ambitious = medium_stress_gain
				brave = medium_stress_gain
			}
		}
		else = { }
		
		if = {
			limit = {
				NOR = { 
					has_trait = craven
					has_trait = brave
					has_trait = ambitious
				}
			}
			random_list = {
				20 = { add_trait = craven }
				20 = { add_trait = content }
				40 = { }
			}
		}
		else_if = {
			limit = {
				NOR = { 
					has_trait = brave
					has_trait = craven
				}
			}
			random_list = {
				80 = { add_trait = craven }
				20 = { }
			}
		}
		else = {
			random_list = {
				80 = { add_trait = content }
				20 = { }
			}
		}
		
		if = {
			limit = {
				is_ai = no
			}
			add_character_modifier = {
				modifier = low_risk_mod
				days = 2000
			}
		}	
		
		if = {
			limit = {
				is_ai = yes
			}
			random_relation = {
				type = guardian
				trigger_event = child_personality.1072
			}
		}	
	}
	
	option = {
		name = child_personality.0007.c
		custom_tooltip = child_personality.0007.c.tt
		trigger = {
			OR = {
				has_trait = patient
				has_trait = content
				has_trait = calm
			}
		}
		ai_chance = {
			base = 8
		}
		if = {
			limit = {
				is_ai = no
			}
			stress_impact = {
				base = minor_stress_loss
			}
		}
		else = { }
		
		if = {
			limit = {
				is_ai = no
			}
			add_character_modifier = {
				modifier = low_risk_mod
				days = 2000
			}
		}
		
		if = {
			limit = {
				is_ai = yes
			}
			random_relation = {
				type = guardian
				trigger_event = child_personality.1072
			}
		}	
	}
	
	option = {
		name = child_personality.0007.d
		ai_chance = {
			base = 1
			modifier = {
				add = 4
				OR = {
					has_trait = arbitrary
					has_trait = arrogant
				}
			}
			modifier = {
				factor = 0
				OR = {
					has_trait = just
					has_trait = humble
				}
			}
		}
		if = {
			limit = {
				is_ai = no
				NOT = { has_trait = arbitrary }
			}
			stress_impact = {
				base = minor_stress_loss
				just = medium_stress_gain
				content = minor_stress_gain
				lazy = minor_stress_loss
				arrogant = minor_stress_loss
			}
		}
		else_if = {
			limit = {
				is_ai = no
			}
			stress_impact = {
				arbitrary = medium_stress_loss
				content = minor_stress_gain
				lazy = minor_stress_loss
				arrogant = minor_stress_loss
			}
		}
		else = { }
		if = {
			limit = {
				NOR = { 
					has_trait = arbitrary
					has_trait = just
					has_trait = arrogant
					has_trait = humble
					has_trait = lazy
					has_trait = diligent
				}
			}
			random_list = {
				20 = { add_trait = arbitrary }
				20 = { add_trait = lazy }
				20 = { add_trait = arrogant }
				40 = { }
			}
		}
		else_if = {
			limit = {
				NOR = { 
					has_trait = arrogant
					has_trait = humble
					has_trait = lazy
					has_trait = diligent
				}
			}
			random_list = {
				25 = { add_trait = lazy }
				25 = { add_trait = arrogant }
				50 = { }
			}
		}
		else_if = {
			limit = {
				NOR = { 
					has_trait = arbitrary
					has_trait = just
					has_trait = lazy
					has_trait = diligent
				}
			}
			random_list = {
				50 = { add_trait = arbitrary }
				10 = { add_trait = lazy }
				40 = { }
			}
		}
		else_if = {
			limit = {
				NOR = { 
					has_trait = arbitrary
					has_trait = just
					has_trait = arrogant
					has_trait = humble
				}
			}
			random_list = {
				40 = { add_trait = arbitrary }
				40 = { add_trait = arrogant }
				20 = { }
			}
		}
		else_if = {
			limit = {
				NOR = { 
					has_trait = arrogant
					has_trait = humble
				}
			}
			random_list = {
				50 = { add_trait = arrogant }
				50 = { }
			}
		}
		else_if = {
			limit = {
				NOR = { 
					has_trait = arbitrary
					has_trait = just
				}
			}
			random_list = {
				50 = { add_trait = arbitrary }
				50 = { }
			}
		}
		else = {
			random_list = {
				50 = { add_trait = lazy }
				50 = { }
			}
		}
		if = {
			limit = {
				is_ai = yes
			}
			random_relation = {
				type = guardian
				trigger_event = child_personality.1073
			}
		}	
	}
}

#Feast event!
child_personality.0008 = {
	type = character_event
	title = child_personality.0008.t
	desc = {
		desc = child_personality.0008.desc
	}
	theme = education
	override_background = {
		reference = feast
	}
	left_portrait = {
		character = root
		animation = worry
	}

	trigger = {
		is_available_child_allow_travel = yes
		NOR = { 
			has_character_flag = cp_0008
			has_character_flag = cp_700
		}
	}

	weight_multiplier = {
		base = 1
	}

	immediate = {
		save_scope_as = child
		add_character_flag = { flag = cp_0008 }
	}

	option = {
		name = child_personality.0008.a
		ai_chance = {
			base = 1
			modifier = {
				add = 4
				has_trait = gluttonous 
			}
			modifier = {
				factor = 0
				has_trait = temperate
			}
		}
		if = {
			limit = {
				is_ai = no
				NOT = { has_trait = gluttonous }
			}
			stress_impact = {
				base = minor_stress_gain
				temperate = medium_stress_gain
			}
		}
		else_if = {
			limit = {
				is_ai = no
			}
			stress_impact = {
				gluttonous = minor_stress_loss
			}
		}
		else = { }
		add_trait = gluttonous
		if = {
			limit = {
				is_ai = yes
			}
			random_relation = {
				type = guardian
				trigger_event = child_personality.1081
			}
		}	
	}

	option = {
		name = child_personality.0008.b
		ai_chance = {
			base = 1
			modifier = {
				add = 4
				has_trait = gregarious
			}
			modifier = {
				factor = 0
				has_trait = shy
			}
		}
		if = {
			limit = {
				is_ai = no
				NOT = { has_trait = gregarious }
			}
			stress_impact = {
				base = minor_stress_gain
				shy = medium_stress_gain
			}
		}
		else_if = {
			limit = {
				is_ai = no
			}
			stress_impact = {
				gregarious = minor_stress_loss
			}
		}
		else = { }
		add_trait = gregarious
		if = {
			limit = {
				is_ai = yes
			}
			random_relation = {
				type = guardian
				trigger_event = child_personality.1082
			}
		}	
	}

	option = {
		name = child_personality.0008.c
		ai_chance = {
			base = 1
			modifier = {
				add = 4
				has_trait = shy
			}
			modifier = {
				factor = 0
				has_trait = gregarious
			}
		}
		if = {
			limit = {
				is_ai = no
				NOT = { has_trait = shy }
			}
			stress_impact = {
				base = minor_stress_loss
				gregarious = medium_stress_gain
			}
		}
		else_if = {
			limit = {
				is_ai = no
			}
			stress_impact = {
				shy = medium_stress_loss
			}
		}
		else = { }
		random_list = {
			50 = { }
			50 = { add_trait = shy }
		}
		if = {
			limit = {
				is_ai = yes
			}
			random_relation = {
				type = guardian
				trigger_event = child_personality.1083
			}
		}	
	}

	option = {
		name = child_personality.0008.d
		ai_chance = {
			base = 1
			modifier = {
				add = 4
				has_trait = temperate
			}
			modifier = {
				factor = 0
				has_trait = gluttonous
			}
		}
		if = {
			limit = {
				is_ai = no
				NOT = { has_trait = temperate }
			}
			stress_impact = {
				base = minor_stress_loss
				gluttonous = medium_stress_gain
				humble = minor_stress_loss
			}
		}
		else_if = {
			limit = {
				is_ai = no
			}
			stress_impact = {
				temperate = minor_stress_loss
				humble = minor_stress_loss
			}
		}
		else = { }
		random_list = {
			50 = { }
			50 = { add_trait = temperate }
		}
		if = {
			limit = {
				is_ai = yes
			}
			random_relation = {
				type = guardian
				trigger_event = child_personality.1084
			}
		}	
	}
}


scripted_trigger child_personality_0009_child_preacher_trigger = {
	is_ai = yes
	is_available_child_allow_travel = yes
	age >= 4 # Kid should be able to talk in order to preach
	NOT = { this = root }
	NOT = { has_trait = cynical }
	NOT = {
		any_relation = {
			type = guardian
			is_ai = no
		}
	}
	has_faith = root.faith
}

#Child preacher event
child_personality.0009 = {
	type = character_event
	title = child_personality.0009.t
	desc = {
		first_valid = {
			triggered_desc = {
				trigger = {
					exists = scope:child_preacher
				}
				desc = child_personality.0009.desc
			}
			desc = child_personality.0009.desc_fallback
		}
	}
	theme = education
	override_background = {
		reference = courtyard
	}
	left_portrait = {
		character = root
		animation = shock
	}
	right_portrait = {
		character = scope:child_preacher
		animation = personality_zealous
	}

	trigger = {
		is_available_child_allow_travel = yes
		NOR = { 
			has_character_flag = cp_0009
			has_character_flag = cp_700
		}
	}

	weight_multiplier = {
		base = 1
	}

	immediate = {
		save_scope_as = child
		add_character_flag = { flag = cp_0009 }
		if = {
			limit = {
				is_landed = yes
			}
			random_courtier_or_guest = {
				limit = {
					child_personality_0009_child_preacher_trigger = yes
					has_trait = zealous
				}
				alternative_limit = {
					child_personality_0009_child_preacher_trigger = yes
				}
				save_scope_as = child_preacher
			}
		}
		else_if = {
			limit = {
				NOT = { exists = scope:child_preacher }
				exists = liege_or_court_owner 
			}
			liege_or_court_owner = { save_temporary_scope_as = tloco }
			scope:tloco = {
			random_courtier_or_guest = {
				limit = {
					child_personality_0009_child_preacher_trigger = yes
						has_trait = zealous
					}
					alternative_limit = {
						child_personality_0009_child_preacher_trigger = yes
					}
					save_scope_as = child_preacher
				}
			}
		}
		else_if = {
			limit = {
				NOT = { exists = scope:child_preacher }
				exists = liege_or_court_owner 
			}
			liege_or_court_owner = { save_temporary_scope_as = tloco }
			scope:tloco = {
				random_vassal = {
					limit = {
						any_courtier_or_guest = {
							child_personality_0009_child_preacher_trigger = yes
						}	
					}
					random_courtier_or_guest = {
						limit = {
							child_personality_0009_child_preacher_trigger = yes
							has_trait = zealous
						}
						alternative_limit = {
							child_personality_0009_child_preacher_trigger = yes
						}
						save_scope_as = child_preacher
					}
				}
			}
		}
		else = { }
	}

	option = {
		name = child_personality.0009.a
		custom_tooltip = child_personality.0009.a_tt
		trigger = {
			NAND = {
				has_trait = craven
				NOT = { has_trait = compassionate }
			}
		}
		ai_chance = {
			base = 1
			modifier = {
				add = 4
				OR = {
					has_trait = brave
					has_trait = compassionate
				}
			}
			modifier = {
				factor = 0
				OR = {
					has_trait = craven
					has_trait = callous
					has_trait = sadistic
				}
			}
		}
		if = {
			limit = {
				is_ai = no
				NOT = { has_trait = brave }
			}
			stress_impact = {
				base = medium_stress_gain
				compassionate = minor_stress_loss
				craven = major_stress_gain
				callous = minor_stress_gain
				sadistic = medium_stress_gain
				just = minor_stress_loss
			}
		}
		else_if = {
			limit = {
				is_ai = no
			}
			stress_impact = {
				brave = minor_stress_loss
				compassionate = medium_stress_loss
				just = minor_stress_loss
				callous = minor_stress_gain
				sadistic = medium_stress_gain
			}
		}
		else = { }
		
		if = {
			limit = {
				has_trait = brave
				NOR = {
					has_trait = callous
					has_trait = compassionate
					has_trait = sadistic
				}
			}
			add_trait = compassionate
		}
		else_if = {
			limit = {
				has_trait = brave
			}
		}
		else_if = {
			limit = {
				has_trait = compassionate
				has_trait = craven
			}
			remove_trait = craven
		}
		else_if = {
			limit = {
				OR = {
					has_trait = callous
					has_trait = sadistic
					has_trait = compassionate
				}
			}
			add_trait = brave
		}
		else = {
			random_list = {
				30 = { add_trait = compassionate }
				70 = { add_trait = brave }
			}
		}
		random = {
			chance = 25
			increase_wounds_effect = { REASON = fight }
		}
		if = {
			limit = {
				exists = scope:child_preacher
				any_relation = {
					type = bully
					NOT = {
						any_relation = {
							type = friend
							this = scope:child_preacher
						}
					}
				}
			}
			hidden_effect = {
				random = {
					chance = 50
					show_as_tooltip = {
						random_relation = {
							type = bully
							limit = {
								NOT = {
									any_relation = {
										type = friend
										this = scope:child_preacher
									}
								}
							}
							increase_wounds_effect = { REASON = fight }
						}
					}
					hidden_effect = {
						random_relation = {
							type = bully
							limit = {
								NOT = {
									any_relation = {
										type = friend
										this = scope:child_preacher
									}
								}
							}
							trigger_event = child_personality.2007
						}
					}
				}
			}
		}
		if = {
			limit = {
				is_ai = yes
			}
			random_relation = {
				type = guardian
				trigger_event = child_personality.1091
			}
		}
		if = {
			limit = {
				exists = scope:child_preacher
			}
			if = {
				limit = {
					has_relation_bully = scope:child_preacher
				}
				show_as_tooltip = {
					remove_relation_bully = scope:child_preacher
				}
			}
			if = {
				limit = {
					has_relation_victim = scope:child_preacher
				}
				show_as_tooltip = {
					remove_relation_victim = scope:child_preacher
				}
			}
			show_as_tooltip = {
				set_relation_friend = scope:child_preacher
			}
			scope:child_preacher = {
				trigger_event = child_personality.2006
			}
		}
	}

	option = {
		name = child_personality.0009.b
		custom_tooltip = child_personality.0009.b_tt
		ai_chance = {
			base = 1
			modifier = {
				add = 4
				has_trait = zealous
			}
			modifier = {
				factor = 0
				has_trait = cynical
			}
			modifier = {
				add = 100
				culture = {
					has_cultural_parameter = zealous_trait_more_common
				}
			}
		}
		
		if = {
			limit = {
				is_ai = no
				NOT = { has_trait = zealous }
			}
			stress_impact = {
				base = minor_stress_gain
				compassionate = minor_stress_loss
				cynical = medium_stress_gain
				calm = minor_stress_loss
				stubborn = minor_stress_loss
				craven = minor_stress_gain
			}
		}
		else_if = {
			limit = {
				is_ai = no
			}
			stress_impact = {
				zealous = minor_stress_loss
				compassionate = minor_stress_loss
				calm = minor_stress_loss
				stubborn = minor_stress_loss
				craven = minor_stress_gain
			}
		}
		else = { }
		
		if = {
			limit = { NOT = { has_trait = cynical } }
			add_trait = zealous
		}
		
		if = {
			limit = {
				is_ai = yes
			}
			random_relation = {
				type = guardian
				trigger_event = child_personality.1092
			}
		}
		if = {
			limit = {
				exists = scope:child_preacher
			}
			if = {
				limit = {
					has_relation_bully = scope:child_preacher
				}
				show_as_tooltip = {
					remove_relation_bully = scope:child_preacher
				}
			}
			if = {
				limit = {
					has_relation_victim = scope:child_preacher
				}
				show_as_tooltip = {
					remove_relation_victim = scope:child_preacher
				}
			}
			show_as_tooltip = {
				set_relation_friend = scope:child_preacher
			}
			scope:child_preacher = {
				trigger_event = child_personality.2006
			}
		}
	}

	option = {
		name = child_personality.0009.c
		ai_chance = {
			base = 1
			modifier = {
				add = 4
				OR = {
					has_trait = cynical
					has_trait = callous
				}
			}
			modifier = {
				factor = 0
				AND = {
					has_trait = zealous
					has_trait = compassionate
				}
			}
		}
		
		if = {
			limit = {
				is_ai = no
				NOT = { has_trait = cynical }
			}
			stress_impact = {
				compassionate = medium_stress_gain
				callous = minor_stress_loss
			}
		}
		else_if = {
			limit = {
				is_ai = no
			}
			stress_impact = {
				cynical = medium_stress_loss
				compassionate = medium_stress_gain
				callous = minor_stress_loss
			}
		}
		else = { }
		
		if = {
			limit = { NOT = { has_trait = zealous } }
			add_trait = cynical
		}
		
		if = {
			limit = {
				is_ai = yes
			}
			random_relation = {
				type = guardian
				trigger_event = child_personality.1093
			}
		}	
	}
	
	option = {
		name = child_personality.0009.d
		custom_tooltip = child_personality.0009.d_tt
		ai_chance = {
			base = 1
			modifier = {
				add = 4
				OR = {
					has_trait = craven
				}
			}
			modifier = {
				factor = 0
				has_trait = brave
			}
		}
		
		if = {
			limit = {
				is_ai = no
			}
			stress_impact = {
				craven = minor_stress_loss
				brave = medium_stress_gain
				arbitrary = minor_stress_gain
				compassionate = medium_stress_gain
				sadistic = minor_stress_gain
			}
		}
		else = { }
		
		if = {
			limit = {
				is_ai = yes
			}
			random_relation = {
				type = guardian
				trigger_event = child_personality.1094
			}
		}	
	}

	option = {
		name = child_personality.0009.e
		
		ai_chance = {
			base = 8
			modifier = {
				factor = 0
				has_trait = compassionate
				has_trait = just
			}
		}
		
		trigger = {
			OR = {
				AND = {
					exists = scope:child_preacher
					OR = {
						has_relation_victim = scope:child_preacher
						has_relation_bully = scope:child_preacher
					}
				}
				has_trait = sadistic
			}
		}
		if = {
			limit = {
				exists = scope:child_preacher
			}
			scope:child_preacher = {
				increase_wounds_effect = { REASON = fight }
			}
		}
		if = {
			limit = {
				is_ai = no
			}
			stress_impact = {
				base = medium_stress_loss
				wrathful = medium_stress_loss
				cynical = minor_stress_loss
				compassionate = massive_stress_gain
				just = medium_stress_gain
				callous = minor_stress_loss
				sadistic = medium_stress_loss
			}
		}
		else = { }
		
		if = {
			limit = {
				OR = {
					AND = {
						exists = scope:child_preacher
						OR = {
							has_relation_victim = scope:child_preacher
							has_relation_bully = scope:child_preacher
						}
					}
					has_trait = callous
				}
			}
			remove_trait = callous
			add_trait = sadistic
		}
		
		if = {
			limit = {
				is_ai = yes
			}
			random_relation = {
				type = guardian
				trigger_event = child_personality.1095
			}
		}	
	}
}

#Horse-like riding
child_personality.0010 = {
	type = character_event
	title = child_personality.0010.t
	desc = child_personality.0010.desc
	theme = education
	override_background = {
		reference = terrain
	}
	
	left_portrait = {
		character = root
		animation = sadness
	}
	right_portrait = {
		character = scope:guardian
		animation = marshal
	}

	trigger = {
		is_available_child_allow_travel = yes
		NOR = { 
			has_character_flag = cp_0010 
			has_character_flag = cp_700
		}
		OR = {
			any_relation = {
				type = guardian
				is_available = yes
			}
			any_courtier_or_guest = {
				is_adult = yes
				is_available = yes
			}
			AND = {
				exists = host
				host = {
					any_courtier_or_guest = {
						is_adult = yes
						is_available = yes
					}
				}
			}
		}
	}

	weight_multiplier = {
		base = 1
	}

	immediate = {
		save_scope_as = child
		get_guardian_scope_effect = yes
		add_character_flag = { flag = cp_0010 }
	}

	option = {
		name = child_personality.0010.a
		ai_chance = {
			base = 1
			modifier = {
				add = 4
				OR = {
					has_trait = impatient
					has_trait = fickle
				}
			}
			modifier = {
				factor = 0 
				OR = {
					has_trait = patient
					has_trait = stubborn
				}
			}
		}
		if = {
			limit = {
				is_ai = no
			}
			stress_impact = {
				patient = medium_stress_gain
				stubborn = medium_stress_gain
				fickle = minor_stress_loss
				impatient = minor_stress_loss
				arrogant = minor_stress_loss
			}
		}
		
		if = {
			limit = {
				AND = {
					OR = {
						has_trait = patient
						has_trait = impatient
					}
					OR = {
						has_trait = stubborn
						has_trait = fickle
					}
				}
			}
		}
		else_if = {
			limit = {
				OR = {
					has_trait = patient
					has_trait = impatient
				}
			}
			add_trait = fickle
		}
		else_if = {
			limit = {
				OR = {
					has_trait = stubborn
					has_trait = fickle
				}
			}
			add_trait = impatient
		}
		else = {
			random_list = {
				50 = { add_trait = impatient }
				50 = { add_trait = fickle }
			}
		}
		
		if = {
			limit = {
				is_ai = yes
			}
			random_relation = {
				type = guardian
				trigger_event = child_personality.1101
			}
		}	
	}
	
	option = {
		name = child_personality.0010.b
		ai_chance = {
			base = 1
			modifier = {
				add = 4
				has_trait = patient
			}
			modifier = {
				factor = 0 
				OR = {
					has_trait = impatient
					has_trait = fickle
				}
			}
		}
		if = {
			limit = {
				is_ai = no
			}
			stress_impact = {
				base = minor_stress_gain
				patient = minor_stress_loss
				fickle = minor_stress_gain
				impatient = medium_stress_gain
			}
		}
		
		if = {
			limit = {
				NOR = {
					has_trait = patient
					has_trait = impatient
				}
			}
			random_list = {
				50 = { add_trait = patient }
				50 = { }
			}
		}
		
		if = {
			limit = {
				is_ai = yes
			}
			random_relation = {
				type = guardian
				trigger_event = child_personality.1102
			}
		}	
	}
	
	option = {
		name = child_personality.0010.c
		ai_chance = {
			base = 1
			modifier = {
				add = 4
				has_trait = humble
			}
			modifier = {
				factor = 0 
				OR = {
					has_trait = ambitious
					has_trait = stubborn
					has_trait = arrogant
				}
			}
		}
		if = {
			limit = {
				is_ai = no
			}
			stress_impact = {
				base = minor_stress_loss
				humble = minor_stress_loss
				content = minor_stress_loss
				ambitious = medium_stress_gain
				stubborn = medium_stress_gain
				arrogant = medium_stress_gain
				calm = minor_stress_loss
			}
		}
		
		if = {
			limit = {
				NOR = {
					has_trait = arrogant
					has_trait = humble
				}
			}
			random_list = {
				70 = { add_trait = humble }
				30 = { }
			}
		}
		
		if = {
			limit = {
				is_ai = yes
			}
			random_relation = {
				type = guardian
				trigger_event = child_personality.1103
			}
		}	
	}
	
	option = {
		name = child_personality.0010.d
		ai_chance = {
			base = 1
			modifier = {
				add = 4
				OR = {
					has_trait = stubborn
					has_trait = ambitious
				}
			}
			modifier = {
				factor = 0 
				OR = {
					has_trait = content
					has_trait = fickle
				}
			}
		}
		if = {
			limit = {
				is_ai = no
			}
			stress_impact = {
				base = medium_stress_gain
				stubborn = minor_stress_gain
				fickle = medium_stress_gain
				content = minor_stress_loss
				ambitious = minor_stress_loss
			}
		}
		
		if = {
			limit = {
				AND = {
					OR = {
						has_trait = fickle
						has_trait = stubborn
					}
					OR = {
						has_trait = ambitious
						has_trait = content
					}
				}
			}
		}
		else_if = {
			limit = {
				OR = {
					has_trait = fickle
					has_trait = stubborn
				}
			}
			add_trait = ambitious
		}
		else_if = {
			limit = {
				OR = {
					has_trait = ambitious
					has_trait = content
				}
			}
			add_trait = stubborn
		}
		else = {
			random_list = {
				50 = { add_trait = ambitious }
				50 = { add_trait = stubborn }
			}
		}
		
		if = {
			limit = {
				is_ai = yes
			}
			random_relation = {
				type = guardian
				trigger_event = child_personality.1104
			}
		}	
	}	
}

#Strange servant event
child_personality.0011 = {
	type = character_event
	title = child_personality.0011.t
	desc = {
		desc = child_personality.0011.desc
		random_valid = {
			desc = child_personality.0011.speak
			desc = child_personality.0011.look
			desc = child_personality.0011.breath
			desc = child_personality.0011.smell
		}
		desc = child_personality.0011.desc_fin
	}
	theme = education
	
	left_portrait = {
		character = root
		animation = personality_worry
	}

	trigger = {
		is_available_child_allow_travel = yes
		NOR = { 
			has_character_flag = cp_0011 
			has_character_flag = cp_700
		}
	}

	weight_multiplier = {
		base = 1
	}

	immediate = {
		save_scope_as = child
		add_character_flag = { flag = cp_0011 }
	}

	option = {
		name = child_personality.0011.a
		ai_chance = {
			base = 1
			modifier = {
				add = 4
				has_trait = trusting
			}
			modifier = {
				factor = 0 
				OR = {
					has_trait = paranoid
				}
			}
		}
		if = {
			limit = {
				is_ai = no
				NOT = { has_trait = trusting }
			}
			stress_impact = {
				base = minor_stress_gain
				calm = minor_stress_loss
				paranoid = medium_stress_gain
			}
		}
		else_if = {
			limit = {
				is_ai = no
			}
			stress_impact = {
				trusting = minor_stress_loss
				calm = minor_stress_loss
			}
		}
		else = { }
	
		if = {
			limit = {
				NOR = {
					has_trait = trusting
					has_trait = paranoid
				}
			}
			random_list = {
				70 = { add_trait = trusting }
				30 = { }
			}
		}
		
		if = {
			limit = {
				is_ai = yes
			}
			random_relation = {
				type = guardian
				trigger_event = child_personality.1111
			}
		}
	}
	
	option = {
		name = child_personality.0011.b
		ai_chance = {
			base = 1
			modifier = {
				add = 4
				has_trait = calm
			}
			modifier = {
				factor = 0 
				OR = {
					has_trait = wrathful
				}
			}
		}
		if = {
			limit = {
				is_ai = no
			}
			stress_impact = {
				wrathful = minor_stress_gain
				paranoid = minor_stress_gain
				calm = minor_stress_loss
				trusting = minor_stress_gain
			}
		}
		else = { }
	
		if = {
			limit = {
				NOR = {
					has_trait = calm
					has_trait = wrathful
				}
			}
			random_list = {
				70 = { add_trait = calm }
				30 = { }
			}
		}
		
		if = {
			limit = {
				is_ai = yes
			}
			random_relation = {
				type = guardian
				trigger_event = child_personality.1112
			}
		}
	}
	
	option = {
		name = child_personality.0011.c
		ai_chance = {
			base = 1
			modifier = {
				add = 4
				OR = {
					has_trait = wrathful
					has_trait = arbitrary
				}
			}
			modifier = {
				factor = 0 
				OR = {
					has_trait = just
					has_trait = calm
				}
			}
		}
		if = {
			limit = {
				is_ai = no
			}
			stress_impact = {
				base = minor_stress_loss
				just = medium_stress_gain
				arbitrary = minor_stress_loss
				wrathful = medium_stress_loss
				calm = medium_stress_gain
				paranoid = minor_stress_loss
			}
		}
		else = { }
	
		if = {
			limit = {
				OR = {
					has_trait = arbitrary
					has_trait = just
				}
			}
			add_trait = wrathful
		}
		else_if = {
			limit = {
				OR = {
					has_trait = calm
					has_trait = wrathful
				}
			}
			add_trait = arbitrary
		}
		else = {
			random_list = {
				50 = { add_trait = arbitrary }
				50 = { add_trait = wrathful }
			}
		}
		
		if = {
			limit = {
				is_ai = yes
			}
			random_relation = {
				type = guardian
				trigger_event = child_personality.1113
			}
		}
	}
	
	option = {
		name = child_personality.0011.d
		ai_chance = {
			base = 1
			modifier = {
				add = 4
				has_trait = paranoid
			}
			modifier = {
				factor = 0 
				OR = {
					has_trait = trusting
				}
			}
		}
		if = {
			limit = {
				is_ai = no
				NOT = { has_trait = paranoid }
			}
			stress_impact = {
				base = minor_stress_gain
				calm = minor_stress_gain
				trusting = minor_stress_gain
			}
		}
		else_if = {
			limit = {
				is_ai = no
			}
			stress_impact = {
				paranoid = medium_stress_loss
			}
		}
		else = { }
	
		if = {
			limit = {
				NOR = {
					has_trait = trusting
					has_trait = paranoid
				}
			}
			random_list = {
				50 = { add_trait = paranoid }
				50 = { }
			}
		}
		
		if = {
			limit = {
				is_ai = yes
			}
			random_relation = {
				type = guardian
				trigger_event = child_personality.1114
			}
		}
	}
}

#Thinking about the way the world works
child_personality.0012 = {
	type = character_event
	title = child_personality.0012.t
	desc = child_personality.0012.desc
	theme = education
	
	left_portrait = {
		character = root
		animation = personality_rational
	}

	trigger = {
		is_available_child_allow_travel = yes
		age >= 9
		NOR = {
			has_character_flag = cp_0012
			has_character_flag = cp_700
		}
	}

	weight_multiplier = {
		base = 1
	}

	immediate = {
		save_scope_as = child
		add_character_flag = { flag = cp_0012 }
	}

	option = {
		name = child_personality.0012.a
		ai_chance = {
			base = 1
			modifier = {
				add = 4
				has_trait = humble
			}
			modifier = {
				factor = 0
				has_trait = arrogant
			}
		}
		
		if = {
			limit = {
				is_ai = no
				NOT = { has_trait = humble }
			}
			stress_impact = {
				base = minor_stress_loss
				arrogant = medium_stress_gain
				zealous = minor_stress_loss
				cynical = minor_stress_gain
			}
		}
		else_if = {
			limit = {
				is_ai = no
			}
			stress_impact = {
				humble = medium_stress_loss
				zealous = minor_stress_loss
				cynical = minor_stress_gain
			}
		}
		else = { }
		
		if = { 
			limit = {
				NOR = {
					has_trait = arrogant
					has_trait = humble
				}
			}
			add_trait = humble
		}
		else = { }
		

		if = {
			limit = {
				is_ai = yes
			}
			random_relation = {
				type = guardian
				trigger_event = child_personality.1121
			}
		}	
	}

	option = {
		name = child_personality.0012.b
		ai_chance = {
			base = 1
			modifier = {
				add = 4
				has_trait = zealous
			}
			modifier = {
				factor = 0
				has_trait = cynical
			}
		}
		
		if = {
			limit = {
				is_ai = no
				NOT = { has_trait = zealous }
			}
			stress_impact = {
				cynical = medium_stress_gain
				trusting = minor_stress_loss
			}
		}
		else_if = {
			limit = {
				is_ai = no
			}
			stress_impact = {
				zealous = medium_stress_loss
				trusting = minor_stress_loss
			}
		}
		else = { }

		if = { 
			limit = {
				NOR = {
					has_trait = zealous
					has_trait = cynical
				}
			}
			add_trait =  zealous
		}
		else = { }
		

		if = {
			limit = {
				is_ai = yes
			}
			random_relation = {
				type = guardian
				trigger_event = child_personality.1122
			}
		}	
	}

	option = {
		name = child_personality.0012.c
		ai_chance = {
			base = 1
			modifier = {
				add = 4
				has_trait = cynical
			}
			modifier = {
				factor = 0
				has_trait = zealous
			}
		}
		
		if = {
			limit = {
				is_ai = no
				NOT = { has_trait = cynical }
			}
			stress_impact = {
				base = minor_stress_gain
				zealous = minor_stress_gain
				callous = minor_stress_loss
			}
		}
		else_if = {
			limit = {
				is_ai = no
			}
			stress_impact = {
				cynical = minor_stress_loss
				callous = minor_stress_loss
			}
		}
		else = { }

		if = { 
			limit = {
				NOR = {
					has_trait = cynical
					has_trait = zealous
				}
			}
			random_list = {
				50 = { }
				50 = { add_trait = cynical }
			}
		}
		else = { }
		
		if = {
			limit = {
				is_ai = yes
			}
			random_relation = {
				type = guardian
				trigger_event = child_personality.1123
			}
		}	
	}
	
	option = {
		name = child_personality.0012.d
		ai_chance = {
			base = 1
			modifier = {
				add = 4
				has_trait = arrogant
			}
			modifier = {
				factor = 0
				has_trait = humble
			}
		}
		
		if = {
			limit = {
				is_ai = no
				NOT = { 
					has_trait = arrogant
				}
			}
			stress_impact = {
				base = minor_stress_gain
				trusting = minor_stress_gain
				zealous = minor_stress_gain
				humble = minor_stress_gain
			}
		}
		else_if = {
			limit = {
				is_ai = no
			}
			stress_impact = {
				arrogant = minor_stress_loss
				trusting = minor_stress_gain
				zealous = minor_stress_gain
			}
		}
		else = { }

		if = { 
			limit = {
				NOR = {
					has_trait = humble
					has_trait = arrogant
				}
			}
			random_list = {
				30 = { }
				70 = { add_trait = arrogant }
			}
		}
		else = { }
		
		if = {
			limit = {
				is_ai = yes
			}
			random_relation = {
				type = guardian
				trigger_event = child_personality.1124
			}
		}	
	}
}

#Thinking about rules
child_personality.0013 = {
	type = character_event
	title = child_personality.0013.t

	desc = {
		desc = child_personality.0013.start
		random_valid = {
			desc = child_personality.0013.rule1
			desc = child_personality.0013.rule2
			desc = child_personality.0013.rule3
			desc = child_personality.0013.rule4
		}
		desc = child_personality.0013.fin
	}
	theme = education

	left_portrait = {
		character = root
		animation = disapproval
	}

	trigger = {
		is_available_child_allow_travel = yes
		age >= 9
		NOR = {
			has_character_flag = cp_0013
			has_character_flag = cp_700
		}
	}

	weight_multiplier = {
		base = 1
	}

	immediate = {
		save_scope_as = child
		add_character_flag = { flag = cp_0013 }
	}

	option = {
		name = child_personality.0013.a
		ai_chance = {
			base = 1
			modifier = {
				add = 4
				has_trait = arbitrary
			}
			modifier = {
				factor = 0
				has_trait = just
			}
		}
		
		if = {
			limit = {
				is_ai = no
				NOT = { has_trait = arbitrary }
			}
			stress_impact = {
				base = minor_stress_loss
				just = medium_stress_gain
				patient = minor_stress_gain
				impatient = minor_stress_loss
				ambitious = minor_stress_loss
			}
		}
		else_if = {
			limit = {
				is_ai = no
			}
			stress_impact = {
				arbitrary = minor_stress_loss
				impatient = minor_stress_loss
			}
		}
		else = { }
		
		if = { 
			limit = {
				NOR = {
					has_trait = arbitrary
					has_trait = just
				}
			}
			add_trait = arbitrary
		}
		else = { }
		
		if = {
			limit = {
				is_ai = no
			}
			random_list = {
				50 = {
					send_interface_toast = {
						title = child_personality.0013.yes
						add_prestige = minor_prestige_gain
						left_icon = scope:child
					}
				}
				50 = {
					send_interface_toast = {
						title = child_personality.0013.no
						add_piety = minor_piety_loss
						left_icon = scope:child
					}
				}
			}
		}
		else = {
			random_relation = {
				type = guardian
				trigger_event = child_personality.1131
			}
		}	
	}

	option = {
		name = child_personality.0013.b
		custom_tooltip = child_personality.0013.b_tt
		ai_chance = {
			base = 1
			modifier = {
				add = 4
				has_trait = just
			}
			modifier = {
				factor = 0
				has_trait = arbitrary
			}
		}
		
		if = {
			limit = {
				is_ai = no
				NOT = { has_trait = just }
			}
			stress_impact = {
				base = minor_stress_gain
				arbitrary = medium_stress_gain
				calm = minor_stress_loss
				impatient = minor_stress_gain
			}
		}
		else_if = {
			limit = {
				is_ai = no
			}
			stress_impact = {
				just = minor_stress_loss
				calm = minor_stress_loss
				impatient = minor_stress_gain
			}
		}
		else = { }

		if = { 
			limit = {
				NOR = {
					has_trait = just
					has_trait = arbitrary
				}
			}
			add_trait =  just
		}
		else = { }
		
		if = {
			limit = {
				is_ai = no
			}
			add_piety = minor_piety_gain
		}
		else = {
			random_relation = {
				type = guardian
				trigger_event = child_personality.1132
			}
		}	
	}

	option = {
		name = child_personality.0013.c
		ai_chance = {
			base = 1
			modifier = {
				add = 4
				has_trait = impatient
			}
			modifier = {
				factor = 0
				has_trait = patient
			}
		}
		
		if = {
			limit = {
				is_ai = no
				NOT = { has_trait = impatient }
			}
			stress_impact = {
				base = minor_stress_loss
				just = medium_stress_gain
				patient = minor_stress_gain
				ambitious = minor_stress_loss
				arbitrary = minor_stress_loss
			}
		}
		else_if = {
			limit = {
				is_ai = no
			}
			stress_impact = {
				impatient = minor_stress_loss
				just = medium_stress_gain
				ambitious = minor_stress_loss
				arbitrary = minor_stress_loss
			}
		}
		else = { }

		if = { 
			limit = {
				NOR = {
					has_trait = impatient
					has_trait = patient
				}
			}
			add_trait = impatient
		}
		else = { }
		
		if = {
			limit = {
				is_ai = no
			}
			random_list = {
				50 = {
					send_interface_toast = {
						title = child_personality.0013.yes
						add_prestige = minor_prestige_gain
						left_icon = scope:child
					}
				}
				50 = {
					send_interface_toast = {
						title = child_personality.0013.no
						add_piety = minor_piety_loss
						left_icon = scope:child
					}
				}
			}
		}
		else = {
			random_relation = {
				type = guardian
				trigger_event = child_personality.1133
			}
		}	
	}
	
	option = {
		name = child_personality.0013.d
		ai_chance = {
			base = 1
			modifier = {
				add = 4
				has_trait = patient
			}
			modifier = {
				factor = 0
				has_trait = impatient
			}
		}
		
		if = {
			limit = {
				is_ai = no
				NOT = { 
					has_trait = patient
				}
			}
			stress_impact = {
				base = minor_stress_gain
				arbitrary = minor_stress_gain
				calm = minor_stress_loss
				impatient = medium_stress_gain
			}
		}
		else_if = {
			limit = {
				is_ai = no
			}
			stress_impact = {
				patient = minor_stress_loss
				arbitrary = minor_stress_gain
				calm = minor_stress_loss
			}
		}
		else = { }

		if = { 
			limit = {
				NOR = {
					has_trait = patient
					has_trait = impatient
				}
			}
			add_trait = patient
		}
		else = { }
		
		if = {
			limit = {
				is_ai = no
			}
			add_piety = minor_piety_gain
		}
		else = {
			random_relation = {
				type = guardian
				trigger_event = child_personality.1134
			}
		}	
	}
}


#Friend in romantic need
scripted_trigger child_personality_0014_friend_trigger = {
	is_ai = yes
	is_available_child_allow_travel = yes
	age >= 13 # Same romance limit
	NOT = { this = root }
}


child_personality.0014 = {
	type = character_event
	title = child_personality.0014.t
	desc = {
		first_valid = {
			triggered_desc = {
				trigger = {
					exists = scope:friend
					exists = scope:fcrush
				}
				desc = child_personality.0014_both
			}
			triggered_desc = {
				trigger = {
					exists = scope:friend
				}
				desc = child_personality.0014_friend
			}
			desc = child_personality.0014_none
		}
		desc = child_personality.0014.end
	}
	
	theme = education
	
	left_portrait = {
		character = root
		animation = rational
	}
	
	right_portrait = {
		character = scope:friend
		animation = worry
	}
	
	trigger = {
		is_available_child_allow_travel = yes
		age >= 13
		NOR = {
			has_character_flag = cp_0014
			has_character_flag = cp_700
		}
	}
	
	weight_multiplier = {
		base = 1
	}
	
	immediate = {
		save_scope_as = child
		add_character_flag = { flag = cp_0014 }
		random_relation = {
			type = friend
			limit = {
				child_personality_0014_friend_trigger = yes
			}
			save_scope_as = friend
		}
		random_relation = {
			type = crush
			save_scope_as = temp_crush
		}
		if = {
			limit = {
				exists = scope:friend
			}
			scope:friend = {
				random_relation = {
					type = crush
					limit = {
						age <= 20
					}
					save_scope_as = fcrush
				}
			}
		}
	}
	
	option = {
		name = child_personality.0014.a
		ai_chance = {
			base = 1
			modifier = {
				add = 4
				has_trait = chaste
			}
			modifier = {
				factor = 0 
				OR = {
					has_trait = lustful
				}
			}
		}
		if = {
			limit = {
				is_ai = no
			}
			stress_impact = {
				chaste = minor_stress_loss
				shy = minor_stress_loss
				lustful = minor_stress_gain
				gregarious = minor_stress_gain
			}
		}
		else = { }
	
		if = {
			limit = {
				NOR = {
					has_trait = lustful
					has_trait = chaste
				}
			}
			random_list = {
				80 = { add_trait = chaste }
				20 = { }
			}
		}
		
		if = {
			limit = {
				is_ai = yes
			}
			random_relation = {
				type = guardian
				trigger_event = child_personality.1141
			}
		}
	}
	
	option = {
		name = child_personality.0014.b
		trigger = {
			OR = {
				is_ai = yes
				NOT = { exists = scope:friend }
				AND = {
					exists = scope:fcrush
					is_attracted_to_gender_of = scope:fcrush
				}
				AND = {
					NOT = { exists = scope:fcrush }
					root = { is_attracted_to_men = yes }
					scope:friend = { is_attracted_to_men = yes }
				}
				AND = {
					NOT = { exists = scope:fcrush }
					root = { is_attracted_to_women = yes }
					scope:friend = { is_attracted_to_women = yes }
				}
			}
		}
		ai_chance = {
			base = 1
			modifier = {
				add = 4
				has_trait = lustful
			}
			modifier = {
				factor = 0 
				OR = {
					has_trait = lustful
				}
			}
		}
		if = {
			limit = {
				is_ai = no
			}
			stress_impact = {
				chaste = medium_stress_gain
				lustful = medium_stress_loss
			}
		}
		else = { }
	
		if = {
			limit = {
				NOR = {
					has_trait = lustful
					has_trait = chaste
				}
			}
			add_trait = lustful
		}
		
		if = {
			limit = {
				is_ai = yes
			}
			random_relation = {
				type = guardian
				trigger_event = child_personality.1142
			}
		}
	}
	
	option = {
		name = child_personality.0014.c
		trigger = {
			AND = {
				is_ai = no
				exists = scope:friend
				OR = {
					NOT = { exists = scope:fcrush }
					scope:fcrush = { is_ai = yes }
				}
				scope:friend = { is_attracted_to_gender_of = root }
				root = { is_attracted_to_gender_of = scope:friend }
				OR = {
					NOT = { exists = scope:temp_crush }
					scope:temp_crush = scope:friend
				}
			}
		}
		ai_chance = {
			base = 0
		}
		random_list = {
			80 = {
				desc = child_personality.0014_yes_tt
				if = { 
					scope:friend = {
						remove_relation_crush = scope:fcrush
					}
				}
				set_relation_crush = scope:friend
				scope:friend = { set_relation_crush = root }
			}
			20 = {
				desc = child_personality.0014_no_tt
				stress_impact = {
					base = major_stress_gain
				}
			}
		}
	}
	
	option = {
		name = child_personality.0014.d
		ai_chance = {
			base = 1
			modifier = {
				add = 4
				has_trait = compassionate
			}
			modifier = {
				factor = 0 
				OR = {
					has_trait = callous
					has_trait = sadistic
				}
			}
		}
		
		if = {
			limit = {
				is_ai = no
			}
			stress_impact = {
				compassionate = medium_stress_loss
				gregarious = minor_stress_gain
				callous = medium_stress_gain
				sadistic = medium_stress_gain
			}
		}
		else = { }
	
		if = {
			limit = {
				exists = scope:friend
			}
			reverse_add_opinion = {
				modifier = pleased_opinion
				target = scope:friend
				opinion = 20
			}
		}
	
		if = {
			limit = {
				NOR = {
					has_trait = callous
					has_trait = sadistic
					has_trait = compassionate
				}
			}
			random_list = {
				80 = { add_trait = compassionate }
				20 = { }
			}
		}
		
		if = {
			limit = {
				is_ai = yes
			}
			random_relation = {
				type = guardian
				trigger_event = child_personality.1143
			}
		}
	}

	option = {
		name = child_personality.0014.e
		ai_chance = {
			base = 1
			modifier = {
				add = 4
				has_trait = callous
			}
			modifier = {
				factor = 0 
				OR = {
					has_trait = compassionate
				}
			}
		}
		
		if = {
			limit = {
				is_ai = no
			}
			stress_impact = {
				compassionate = medium_stress_gain
				callous = medium_stress_loss
				sadistic = minor_stress_loss
			}
		}
		else = { }
	
		if = {
			limit = {
				exists = scope:friend
			}
			reverse_add_opinion = {
				modifier = disappointed_opinion
				target = scope:friend
				opinion = -30
			}
		}
	
		if = {
			limit = {
				NOR = {
					has_trait = callous
					has_trait = sadistic
					has_trait = compassionate
				}
			}
			random_list = {
				80 = { add_trait = callous }
				20 = { }
			}
		}
		
		if = {
			limit = {
				is_ai = yes
				NOT = { has_trait = sadistic }
			}
			random_relation = {
				type = guardian
				trigger_event = child_personality.1144
			}
		}
	}
}

#Scary stories
child_personality.0015 = {
	type = character_event
	title = child_personality.0015.t
	desc = child_personality.0015.desc
	theme = education
	override_background = {
		reference = dungeon
	}
	left_portrait = {
		character = root
		animation = worry
	}

	trigger = {
		is_available_child_allow_travel = yes
		age >= 9
		NOR = {
			has_character_flag = cp_0015
			has_character_flag = cp_700
		}
	}

	weight_multiplier = {
		base = 1
	}

	immediate = {
		save_scope_as = child
		add_character_flag = { flag = cp_0015 }
	}

	option = {
		name = child_personality.0015.a
		custom_tooltip = child_personality.0015.a_tt
		ai_chance = {
			base = 1
			modifier = {
				add = 4
				has_trait = trusting
			}
			modifier = {
				factor = 0
				has_trait = paranoid
			}
		}
		
		if = {
			limit = {
				is_ai = no
				NOT = { has_trait = trusting }
			}
			stress_impact = {
				base = minor_stress_loss
				paranoid = minor_stress_loss
				gregarious = minor_stress_gain
				shy = minor_stress_loss
			}
		}
		else_if = {
			limit = {
				is_ai = no
			}
			stress_impact = {
				trusting = medium_stress_loss
				gregarious = minor_stress_gain
			}
		}
		else = { }
		
		if = { 
			limit = {
				NOR = {
					has_trait = paranoid
					has_trait = trusting
				}
			}
			add_trait = trusting
		}
		else = { }
		

		if = {
			limit = {
				is_ai = yes
			}
			random_relation = {
				type = guardian
				trigger_event = child_personality.1151
			}
		}	
	}

	option = {
		name = child_personality.0015.b
		ai_chance = {
			base = 1
			modifier = {
				add = 4
				has_trait = gregarious
			}
			modifier = {
				factor = 0
				has_trait = shy
			}
		}
		
		if = {
			limit = {
				is_ai = no
				NOT = { has_trait = gregarious }
			}
			stress_impact = {
				honest = medium_stress_gain
				shy = minor_stress_gain
				deceitful = medium_stress_loss
			}
		}
		else_if = {
			limit = {
				is_ai = no
			}
			stress_impact = {
				gregarious = medium_stress_loss
				honest = minor_stress_gain
				deceitful = medium_stress_loss
			}
		}
		else = { }

		if = { 
			limit = {
				NOR = {
					has_trait = gregarious
					has_trait = shy
					has_trait = honest
					has_trait = deceitful
				}
			}
			random_list = {
				80 = { add_trait = gregarious }
				20 = { add_trait = deceitful }
			}
		}
		else_if = { 
			limit = {
				NOR = {
					has_trait = gregarious
					has_trait = shy
				}
			}
			add_trait = gregarious
		}
		else = { }
		

		if = {
			limit = {
				is_ai = yes
			}
			random_relation = {
				type = guardian
				trigger_event = child_personality.1152
			}
		}	
	}

	option = {
		name = child_personality.0015.c
		ai_chance = {
			base = 1
			modifier = {
				add = 4
				has_trait = shy
			}
			modifier = {
				factor = 0
				has_trait = gregarious
			}
		}
		
		if = {
			limit = {
				is_ai = no
				NOT = { has_trait = shy }
			}
			stress_impact = {
				base = minor_stress_loss
				honest = minor_stress_loss
				gregarious = minor_stress_gain
				deceitful = minor_stress_gain
			}
		}
		else_if = {
			limit = {
				is_ai = no
			}
			stress_impact = {
				shy = medium_stress_loss
				honest = minor_stress_loss
				deceitful = minor_stress_gain
			}
		}
		else = { }

		if = { 
			limit = {
				NOR = {
					has_trait = gregarious
					has_trait = shy
					has_trait = honest
					has_trait = deceitful
				}
			}
			random_list = {
				50 = { add_trait = honest }
				50 = { add_trait = shy }
			}
		}
		else_if = { 
			limit = {
				NOR = {
					has_trait = gregarious
					has_trait = shy
				}
			}
			add_trait = shy
		}
		else = { }
		
		if = {
			limit = {
				is_ai = yes
			}
			random_relation = {
				type = guardian
				trigger_event = child_personality.1153
			}
		}	
	}
	
	option = {
		name = child_personality.0015.d
		custom_tooltip = child_personality.0015.d_tt
		ai_chance = {
			base = 1
			modifier = {
				add = 4
				has_trait = paranoid
			}
			modifier = {
				factor = 0
				has_trait = trusting
			}
		}
		
		if = {
			limit = {
				is_ai = no
				NOT = { has_trait = paranoid }
			}
			stress_impact = {
				base = minor_stress_gain
				calm = minor_stress_gain
				patient = minor_stress_gain
			}
		}
		else_if = {
			limit = {
				is_ai = no
			}
			stress_impact = {
				paranoid = medium_stress_loss
			}
		}
		else = { }
		
		if = { 
			limit = {
				NOR = {
					has_trait = paranoid
					has_trait = trusting
				}
			}
			add_trait = paranoid
		}
		else = { }
		

		if = {
			limit = {
				is_ai = yes
			}
			random_relation = {
				type = guardian
				trigger_event = child_personality.1154
			}
		}	
	}
}

#Splitting reward
scripted_trigger child_personality_0016_friend_trigger = {
	is_ai = yes
	is_available_child_allow_travel = yes
	top_liege = root.top_liege
	NOT = { this = root }
}

child_personality.0016 = {
	type = character_event
	title = child_personality.0016.t
	desc = {
		first_valid = {
			triggered_desc = {
				trigger = {
					exists = scope:friend
				}
				desc =  child_personality.0016.desc_friend
			}
			desc = child_personality.0016.desc_fallback
		}
		random_valid = {
			desc = child_personality.0016.idea1
			desc = child_personality.0016.idea2
			desc = child_personality.0016.idea3
		}
		desc = child_personality.0016.end
	}
	
	theme = education
	
	left_portrait = {
		character = root
		animation = happiness
	}
	
	right_portrait = {
		character = scope:friend
		animation = admiration
	}
	
	trigger = {
		is_available_child_allow_travel = yes
		NOR = {
			has_character_flag = cp_0016
			has_character_flag = cp_700
		}
	}
	
	weight_multiplier = {
		base = 1
	}
	
	immediate = {
		save_scope_as = child
		add_character_flag = { flag = cp_0016 }
		random_relation = {
			type = friend
			limit = {
				child_personality_0016_friend_trigger = yes
			}
			save_scope_as = friend
		}
	}
	
	option = {
		name = child_personality.0016.a
		ai_chance = {
			base = 1
			modifier = {
				add = 4
				has_trait = temperate
			}
			modifier = {
				factor = 0 
				OR = {
					has_trait = gluttonous
				}
			}
		}
		if = {
			limit = {
				is_ai = no
			}
			stress_impact = {
				temperate = minor_stress_loss
				arbitrary = minor_stress_loss
				gregarious = minor_stress_loss
				greedy = medium_stress_gain
				gluttonous = medium_stress_gain
			}
		}
		else = { }
		
		if = {
			limit = {
				is_ai = no
			}
			add_character_modifier = {
				modifier = fun_friend_mod
				days = 2000
			}
		}

		if = {
			limit = { exists = scope:friend }
			reverse_add_opinion = {
				modifier = pleased_opinion
				target = scope:friend
				opinion = 20
			}
		}
	
		if = {
			limit = {
				AND = {
					NOR = {
						has_trait = temperate
						has_trait = gluttonous
					}
					is_ai = no
				}
			}
			random_list = {
				50 = { add_trait = temperate }
				50 = { }
			}
		}
		
		if = {
			limit = {
				AND = {
					NOR = {
						has_trait = temperate
						has_trait = gluttonous
					}
					is_ai = yes
				}
			}
			add_trait = temperate
		}
		
		if = {
			limit = {
				is_ai = yes
			}
			random_relation = {
				type = guardian
				trigger_event = child_personality.1161
			}
		}
	}
	
	option = {
		trigger = { exists = scope:friend }
		name = child_personality.0016.b_friend
		ai_chance = {
			base = 1
			modifier = {
				add = 4
				has_trait = generous
			}
			modifier = {
				factor = 0 
				OR = {
					has_trait = greedy
				}
			}
		}
		if = {
			limit = {
				is_ai = no
			}
			stress_impact = {
				generous = medium_stress_loss
				gregarious = minor_stress_loss
				greedy = medium_stress_gain
				gluttonous = minor_stress_gain
			}
		}
		else = { }
		
		if = {
			limit = { exists = scope:friend }
			reverse_add_opinion = {
				modifier = pleased_opinion
				target = scope:friend
				opinion = 15
			}
		}
	
		if = {
			limit = {
				NOR = {
					has_trait = generous
					has_trait = greedy
				}
			}
			add_trait = generous
		}
		
		if = {
			limit = {
				is_ai = yes
			}
			random_relation = {
				type = guardian
				trigger_event = child_personality.1162
			}
		}
	}
	
	option = {
		trigger = { NOT = { exists = scope:friend } }
		name = child_personality.0016.b_fallback
		ai_chance = {
			base = 1
			modifier = {
				add = 4
				has_trait = generous
			}
			modifier = {
				factor = 0 
				OR = {
					has_trait = greedy
				}
			}
		}
		if = {
			limit = {
				is_ai = no
			}
			stress_impact = {
				generous = medium_stress_loss
				gregarious = minor_stress_loss
				greedy = medium_stress_gain
				gluttonous = minor_stress_gain
			}
		}
		else = { }
	
		if = {
			limit = {
				NOR = {
					has_trait = generous
					has_trait = greedy
				}
			}
			add_trait = generous
		}
		
		if = {
			limit = {
				is_ai = yes
			}
			random_relation = {
				type = guardian
				trigger_event = child_personality.1162
			}
		}
	}
	
	option = {
		name = child_personality.0016.c
		ai_chance = {
			base = 1
			modifier = {
				add = 4
				has_trait = gluttonous
			}
			modifier = {
				factor = 0 
				OR = {
					has_trait = temperate
				}
			}
		}
		if = {
			limit = {
				is_ai = no
			}
			stress_impact = {
				base = minor_stress_loss
				temperate = minor_stress_gain
				gluttonous = medium_stress_loss
			}
		}
		else = { }
	
		if = {
			limit = {
				NOR = {
					has_trait = gluttonous
					has_trait = temperate
				}
			}
			add_trait = gluttonous
		}
		
		if = {
			limit = { exists = scope:friend }
			reverse_add_opinion = {
				modifier = pleased_opinion
				target = scope:friend
				opinion = 10
			}
		}
		
		if = {
			limit = {
				is_ai = yes
			}
			random_relation = {
				type = guardian
				trigger_event = child_personality.1163
			}
		}
	}
	
	option = {
		name = child_personality.0016.d
		ai_chance = {
			base = 1
			modifier = {
				add = 4
				has_trait = greedy
			}
			modifier = {
				factor = 0 
				OR = {
					has_trait = generous
				}
			}
		}
		if = {
			limit = {
				is_ai = no
			}
			stress_impact = {
				temperate = minor_stress_gain
				gluttonous = minor_stress_loss
				greedy = medium_stress_loss
				generous = medium_stress_gain
			}
		}
		else = { }
	
		if = {
			limit = {
				NOR = {
					has_trait = greedy
					has_trait = generous
				}
			}
			add_trait = greedy
		}
		
		if = {
			limit = { exists = scope:friend }
			reverse_add_opinion = {
				modifier = disappointed_opinion
				target = scope:friend
				opinion = -10
			}
		}
		
		if = {
			limit = {
				is_ai = yes
			}
			random_relation = {
				type = guardian
				trigger_event = child_personality.1164
			}
		}
	}
}


#####
# PERSONALITY GAIN IN PRISON
#####

#Gain lustful
child_personality.0021 = {
	type = character_event
	title = child_personality.0021.t
	desc = {
		desc = child_personality.0021.desc
		first_valid = {
			triggered_desc = {
				trigger = {
					exists = scope:boy
				}
				desc = child_personality.0021.servant_boy
			}
			triggered_desc = {
				trigger = {
					exists = scope:girl
				}
				desc = child_personality.0021.serving_wench
			}
			desc = child_personality.0021.desc_no_gender
		}
	}
	theme = education
	override_background = {
		trigger = { is_in_prison_type = house_arrest }
		reference = sitting_room
	}
	override_background = {
		trigger = { is_in_prison_type = dungeon }
		reference = dungeon
	}
	left_portrait = {
		character = root
		animation = flirtation
	}

	trigger = {
		is_imprisoned = yes
		age >= 13 #Because chaste/lustful are only given at age 13
		NOR = {
			has_trait = lustful
			has_trait = chaste
		}
		NOT = { has_trait = incapable }
	}

	weight_multiplier = {
		base = 1
		modifier = {
			add = -0.5
			has_sexuality = asexual
		}
	}

	immediate = {
		hidden_effect = {
			if = {
				limit = {
					has_sexuality = none
				}
				random_list = {
					0 = { #Heterosexual
						modifier = {
							add = heterosexuality_chance
						}
						save_scope_value_as = {
							name = heterosexual
							value = yes
						}
					}
					0 = { #Homosexual
						modifier = {
							add = homosexuality_chance
						}
						save_scope_value_as = {
							name = homosexual
							value = yes
						}
					}
					0 = { #Bisexual
						modifier = {
							add = bisexuality_chance
						}
						save_scope_value_as = {
							name = bisexual
							value = yes
						}
					}
					0 = { #Asexual
						modifier = {
							add = asexuality_chance
						}
						save_scope_value_as = {
							name = asexual
							value = yes
						}
					}
				}
			}
		}
		#To give tooltip
		if = {
			limit = {
				exists = scope:heterosexual
			}
			set_sexuality = heterosexual
		}
		else_if = {
			limit = {
				exists = scope:homosexual
			}
			set_sexuality = homosexual
		}
		else_if = {
			limit = {
				exists = scope:bisexual
			}
			set_sexuality = bisexual
		}
		else = {
			limit = {
				exists = scope:asexual
			}
			set_sexuality = asexual
		}
		hidden_effect = {
			if = {
				limit = {
					OR = {
						AND = {
							has_sexuality = homosexual
							is_female = no
						}
						AND = {
							is_female = yes
							has_sexuality = heterosexual
						}
					}
				}
				save_scope_value_as = {
					name = boy
					value = yes
				}
			}
			else_if = {
				limit = {
					OR = {
						AND = {
							has_sexuality = homosexual
							is_female = yes
						}
						AND = {
							is_female = no
							has_sexuality = heterosexual
						}
					}
				}
				save_scope_value_as = {
					name = girl
					value = yes
				}
			}
		}
	}

	option = {
		name = child_personality.0021.a
		add_trait = lustful
	}
}

#Gain chaste
child_personality.0022 = {
	type = character_event
	title = child_personality.0021.t
	desc = child_personality.0022.desc
	theme = education
	override_background = {
		trigger = { is_in_prison_type = house_arrest }
		reference = sitting_room
	}
	override_background = {
		trigger = { is_in_prison_type = dungeon }
		reference = dungeon
	}
	left_portrait = {
		character = root
		animation = dismissal
	}

	trigger = {
		is_imprisoned = yes
		age >= 13 #Because chaste/lustful are only given at age 13
		NOR = {
			has_trait = chaste
			has_trait = lustful
		}
		NOT = { has_trait = incapable }
	}

	option = {
		name = child_personality.0022.a
		add_trait = chaste
	}
}

#Gain gluttonous
child_personality.0023 = {
	type = character_event
	title = child_personality.0021.t
	desc = child_personality.0023.desc
	theme = education
	override_background = {
		trigger = { is_in_prison_type = house_arrest }
		reference = sitting_room
	}
	override_background = {
		trigger = { is_in_prison_type = dungeon }
		reference = dungeon
	}
	left_portrait = {
		character = root
		animation = personality_greedy
	}

	trigger = {
		is_imprisoned = yes
		NOR = {
			has_trait = gluttonous
			has_trait = temperate
		}
		NOT = { has_trait = incapable }
	}

	option = {
		name = child_personality.0023.a
		add_trait = gluttonous
	}
}

#Gain temperate
child_personality.0024 = {
	type = character_event
	title = child_personality.0021.t
	desc = child_personality.0024.desc
	theme = education
	override_background = {
		trigger = { is_in_prison_type = house_arrest }
		reference = sitting_room
	}
	override_background = {
		trigger = { is_in_prison_type = dungeon }
		reference = dungeon
	}
	left_portrait = {
		character = root
		animation = personality_content
	}

	trigger = {
		is_imprisoned = yes
		NOR = {
			has_trait = temperate
			has_trait = gluttonous
		}
		NOT = { has_trait = incapable }
	}

	option = {
		name = child_personality.0024.a
		add_trait = temperate
	}
}

#Gain greedy
child_personality.0025 = {
	type = character_event
	title = child_personality.0021.t
	desc = child_personality.0025.desc
	theme = education
	override_background = {
		trigger = { is_in_prison_type = house_arrest }
		reference = sitting_room
	}
	override_background = {
		trigger = { is_in_prison_type = dungeon }
		reference = dungeon
	}
	left_portrait = {
		character = root
		animation = personality_greedy
	}

	trigger = {
		is_imprisoned = yes
		NOR = {
			has_trait = greedy
			has_trait = generous
		}
		NOT = { has_trait = incapable }
	}

	option = {
		name = child_personality.0025.a
		add_trait = greedy
	}
}

#Gain generous
child_personality.0026 = {
	type = character_event
	title = child_personality.0021.t
	desc = child_personality.0026.desc
	theme = education
	override_background = {
		trigger = { is_in_prison_type = house_arrest }
		reference = sitting_room
	}
	override_background = {
		trigger = { is_in_prison_type = dungeon }
		reference = dungeon
	}
	left_portrait = {
		character = root
		animation = personality_compassionate
	}

	trigger = {
		is_imprisoned = yes
		NOR = {
			has_trait = greedy
			has_trait = generous
		}
		NOT = { has_trait = incapable }
	}

	option = {
		name = child_personality.0026.a
		add_trait = generous
	}
}

#Gain lazy
child_personality.0027 = {
	type = character_event
	title = child_personality.0021.t
	desc = child_personality.0027.desc
	theme = education
	override_background = {
		trigger = { is_in_prison_type = house_arrest }
		reference = sitting_room
	}
	override_background = {
		trigger = { is_in_prison_type = dungeon }
		reference = dungeon
	}
	left_portrait = {
		character = root
		animation = personality_content
	}

	trigger = {
		is_imprisoned = yes
		NOR = {
			has_trait = diligent
			has_trait = lazy
		}
		NOT = { has_trait = incapable }
	}

	option = {
		name = child_personality.0027.a
		add_trait = lazy
	}
}

#Gain diligent
child_personality.0028 = {
	type = character_event
	title = child_personality.0021.t
	desc = child_personality.0028.desc
	theme = education
	override_background = {
		trigger = { is_in_prison_type = house_arrest }
		reference = sitting_room
	}
	override_background = {
		trigger = { is_in_prison_type = dungeon }
		reference = dungeon
	}
	left_portrait = {
		character = root
		animation = personality_rational
	}

	trigger = {
		is_imprisoned = yes
		NOR = {
			has_trait = diligent
			has_trait = lazy
		}
		NOT = { has_trait = incapable }
	}

	option = {
		name = child_personality.0028.a
		add_trait = diligent
	}
}

#Gain wrathful
child_personality.0029 = {
	type = character_event
	title = child_personality.0021.t
	desc = child_personality.0029.desc
	theme = education
	override_background = {
		trigger = { is_in_prison_type = house_arrest }
		reference = sitting_room
	}
	override_background = {
		trigger = { is_in_prison_type = dungeon }
		reference = dungeon
	}
	left_portrait = {
		character = root
		animation = anger
	}
	right_portrait = scope:imprisoner

	trigger = {
		is_imprisoned = yes
		NOR = {
			has_trait = wrathful
			has_trait = calm
		}
		NOT = { has_trait = incapable }
	}

	immediate = {
		imprisoner = {
			save_scope_as = imprisoner
		}
	}

	option = {
		name = child_personality.0029.a
		add_trait = wrathful
	}
}

#Gain calm
child_personality.0030 = {
	type = character_event
	title = child_personality.0021.t
	desc = child_personality.0030.desc
	theme = education
	override_background = {
		trigger = { is_in_prison_type = house_arrest }
		reference = sitting_room
	}
	override_background = {
		trigger = { is_in_prison_type = dungeon }
		reference = dungeon
	}
	left_portrait = {
		character = root
		animation = personality_content
	}

	trigger = {
		is_imprisoned = yes
		NOR = {
			has_trait = wrathful
			has_trait = calm
		}
		NOT = { has_trait = incapable }
	}

	option = {
		name = child_personality.0030.a
		add_trait = calm
	}
}

#Gain patient
child_personality.0031 = {
	type = character_event
	title = child_personality.0021.t
	desc = child_personality.0031.desc
	theme = education
	override_background = {
		trigger = { is_in_prison_type = house_arrest }
		reference = sitting_room
	}
	override_background = {
		trigger = { is_in_prison_type = dungeon }
		reference = dungeon
	}
	left_portrait = {
		character = root
		animation = personality_content
	}

	trigger = {
		is_imprisoned = yes
		NOR = {
			has_trait = impatient
			has_trait = patient
		}
		NOT = { has_trait = incapable }
	}

	option = {
		name = child_personality.0031.a
		add_trait = patient
	}
}

#Gain impatient
child_personality.0032 = {
	type = character_event
	title = child_personality.0021.t
	desc = child_personality.0032.desc
	theme = education
	override_background = {
		trigger = { is_in_prison_type = house_arrest }
		reference = sitting_room
	}
	override_background = {
		trigger = { is_in_prison_type = dungeon }
		reference = dungeon
	}
	left_portrait = {
		character = root
		animation = anger
	}

	trigger = {
		is_imprisoned = yes
		NOR = {
			has_trait = impatient
			has_trait = patient
		}
		NOT = { has_trait = incapable }
	}

	option = {
		name = child_personality.0032.a
		add_trait = impatient
	}
}

#Gain arrogant
child_personality.0033 = {
	type = character_event
	title = child_personality.0021.t
	desc = child_personality.0033.desc
	theme = education
	override_background = {
		trigger = { is_in_prison_type = house_arrest }
		reference = sitting_room
	}
	override_background = {
		trigger = { is_in_prison_type = dungeon }
		reference = dungeon
	}
	left_portrait = {
		character = root
		animation = dismissal
	}

	trigger = {
		is_imprisoned = yes
		NOR = {
			has_trait = arrogant
			has_trait = humble
		}
		NOT = { has_trait = incapable }
	}

	option = {
		name = child_personality.0033.a
		add_trait = arrogant
	}
}

#Gain humble
child_personality.0034 = {
	type = character_event
	title = child_personality.0021.t
	desc = child_personality.0034.desc
	theme = education
	override_background = {
		trigger = { is_in_prison_type = house_arrest }
		reference = sitting_room
	}
	override_background = {
		trigger = { is_in_prison_type = dungeon }
		reference = dungeon
	}
	left_portrait = {
		character = root
		animation = shame
	}

	trigger = {
		is_imprisoned = yes
		NOR = {
			has_trait = arrogant
			has_trait = humble
		}
		NOT = { has_trait = incapable }
	}

	option = {
		name = child_personality.0034.a
		add_trait = humble
	}
}

#Gain deceitful
child_personality.0035 = {
	type = character_event
	title = child_personality.0021.t
	desc = child_personality.0035.desc
	theme = education
	override_background = {
		trigger = { is_in_prison_type = house_arrest }
		reference = sitting_room
	}
	override_background = {
		trigger = { is_in_prison_type = dungeon }
		reference = dungeon
	}
	left_portrait = {
		character = root
		animation = personality_dishonorable
	}

	trigger = {
		is_imprisoned = yes
		NOR = {
			has_trait = honest
			has_trait = deceitful
		}
		NOT = { has_trait = incapable }
	}

	option = {
		name = child_personality.0035.a
		add_trait = deceitful
	}
}

#Gain honest
child_personality.0036 = {
	type = character_event
	title = child_personality.0021.t
	desc = child_personality.0036.desc
	theme = education
	override_background = {
		trigger = { is_in_prison_type = house_arrest }
		reference = sitting_room
	}
	override_background = {
		trigger = { is_in_prison_type = dungeon }
		reference = dungeon
	}
	left_portrait = {
		character = root
		animation = personality_honorable
	}

	trigger = {
		is_imprisoned = yes
		NOR = {
			has_trait = honest
			has_trait = deceitful
		}
		NOT = { has_trait = incapable }
	}

	option = {
		name = child_personality.0036.a
		add_trait = honest
	}
}

#Gain craven
child_personality.0037 = {
	type = character_event
	title = child_personality.0021.t
	desc = child_personality.0037.desc
	theme = education
	override_background = {
		trigger = { is_in_prison_type = house_arrest }
		reference = sitting_room
	}
	override_background = {
		trigger = { is_in_prison_type = dungeon }
		reference = dungeon
	}
	left_portrait = {
		character = root
		animation = shame
	}

	trigger = {
		is_imprisoned = yes
		NOR = {
			has_trait = craven
			has_trait = brave
		}
		NOT = { has_trait = incapable }
	}

	option = {
		name = child_personality.0037.a
		add_trait = craven
	}
}

#Gain brave
child_personality.0038 = {
	type = character_event
	title = child_personality.0021.t
	desc = child_personality.0038.desc
	theme = education
	override_background = {
		trigger = { is_in_prison_type = house_arrest }
		reference = sitting_room
	}
	override_background = {
		trigger = { is_in_prison_type = dungeon }
		reference = dungeon
	}
	left_portrait = {
		character = root
		animation = personality_bold
	}

	trigger = {
		is_imprisoned = yes
		NOR = {
			has_trait = craven
			has_trait = brave
		}
		NOT = { has_trait = incapable }
	}

	immediate = {
		imprisoner = {
			save_scope_as = imprisoner
		}
	}

	option = {
		name = child_personality.0038.a
		add_trait = brave
	}
}

#Gain shy
child_personality.0039 = {
	type = character_event
	title = child_personality.0021.t
	desc = child_personality.0039.desc
	theme = education
	override_background = {
		trigger = { is_in_prison_type = house_arrest }
		reference = sitting_room
	}
	override_background = {
		trigger = { is_in_prison_type = dungeon }
		reference = dungeon
	}
	left_portrait = {
		character = root
		animation = shame
	}

	trigger = {
		is_imprisoned = yes
		NOR = {
			has_trait = gregarious
			has_trait = shy
		}
		NOT = { has_trait = incapable }
	}

	option = {
		name = child_personality.0039.a
		add_trait = shy
	}
}

#Gain gregarious
child_personality.0040 = {
	type = character_event
	title = child_personality.0021.t
	desc = child_personality.0040.desc
	theme = education
	override_background = {
		trigger = { is_in_prison_type = house_arrest }
		reference = sitting_room
	}
	override_background = {
		trigger = { is_in_prison_type = dungeon }
		reference = dungeon
	}
	left_portrait = {
		character = root
		animation = happiness
	}

	trigger = {
		is_imprisoned = yes
		NOR = {
			has_trait = gregarious
			has_trait = shy
		}
		NOT = { has_trait = incapable }
	}

	option = {
		name = child_personality.0040.a
		add_trait = gregarious
	}
}

#Gain ambitious
child_personality.0041 = {
	type = character_event
	title = child_personality.0021.t
	desc = child_personality.0041.desc
	theme = education
	override_background = {
		trigger = { is_in_prison_type = house_arrest }
		reference = sitting_room
	}
	override_background = {
		trigger = { is_in_prison_type = dungeon }
		reference = dungeon
	}
	left_portrait = {
		character = root
		animation = personality_greedy
	}

	trigger = {
		is_imprisoned = yes
		NOR = {
			has_trait = ambitious
			has_trait = content
		}
		NOT = { has_trait = incapable }
	}

	option = {
		name = child_personality.0041.a
		add_trait = ambitious
	}
}

#Gain content
child_personality.0042 = {
	type = character_event
	title = child_personality.0021.t
	desc = child_personality.0042.desc
	theme = education
	override_background = {
		trigger = { is_in_prison_type = house_arrest }
		reference = sitting_room
	}
	override_background = {
		trigger = { is_in_prison_type = dungeon }
		reference = dungeon
	}
	left_portrait = {
		character = root
		animation = boredom
	}

	trigger = {
		is_imprisoned = yes
		NOR = {
			has_trait = ambitious
			has_trait = content
		}
		NOT = { has_trait = incapable }
	}

	option = {
		name = child_personality.0042.a
		add_trait = content
	}
}

#Gain arbitrary
child_personality.0043 = {
	type = character_event
	title = child_personality.0021.t
	desc = child_personality.0043.desc
	theme = education
	override_background = {
		trigger = { is_in_prison_type = house_arrest }
		reference = sitting_room
	}
	override_background = {
		trigger = { is_in_prison_type = dungeon }
		reference = dungeon
	}
	left_portrait = {
		character = root
		animation = personality_irrational
	}

	trigger = {
		is_imprisoned = yes
		NOR = {
			has_trait = arbitrary
			has_trait = just
		}
		NOT = { has_trait = incapable }
	}

	option = {
		name = child_personality.0043.a
		add_trait = arbitrary
	}
}

#Gain just
child_personality.0044 = {
	type = character_event
	title = child_personality.0021.t
	desc = child_personality.0044.desc
	theme = education
	override_background = {
		trigger = { is_in_prison_type = house_arrest }
		reference = sitting_room
	}
	override_background = {
		trigger = { is_in_prison_type = dungeon }
		reference = dungeon
	}
	left_portrait = {
		character = root
		animation = personality_honorable
	}

	trigger = {
		is_imprisoned = yes
		NOR = {
			has_trait = arbitrary
			has_trait = just
		}
		NOT = { has_trait = incapable }
	}

	option = {
		name = child_personality.0044.a
		add_trait = just
	}
}

#Gain cynical
child_personality.0045 = {
	type = character_event
	title = child_personality.0021.t
	desc = child_personality.0045.desc
	theme = education
	override_background = {
		trigger = { is_in_prison_type = house_arrest }
		reference = sitting_room
	}
	override_background = {
		trigger = { is_in_prison_type = dungeon }
		reference = dungeon
	}
	left_portrait = {
		character = root
		animation = personality_callous
	}

	trigger = {
		is_imprisoned = yes
		NOR = {
			has_trait = cynical
			has_trait = zealous
		}
		NOT = { has_trait = incapable }
	}

	option = {
		name = child_personality.0045.a
		add_trait = cynical
	}
}

#Gain zealous
child_personality.0046 = {
	type = character_event
	title = child_personality.0021.t
	desc = child_personality.0046.desc
	theme = education
	override_background = {
		trigger = { is_in_prison_type = house_arrest }
		reference = sitting_room
	}
	override_background = {
		trigger = { is_in_prison_type = dungeon }
		reference = dungeon
	}
	left_portrait = {
		character = root
		animation = personality_zealous
	}

	trigger = {
		is_imprisoned = yes
		NOR = {
			has_trait = cynical
			has_trait = zealous
		}
		NOT = { has_trait = incapable }
	}

	option = {
		name = child_personality.0046.a
		add_trait = zealous
	}
}

#Gain paranoid
child_personality.0047 = {
	type = character_event
	title = child_personality.0021.t
	desc = child_personality.0047.desc
	theme = education
	override_background = {
		trigger = { is_in_prison_type = house_arrest }
		reference = sitting_room
	}
	override_background = {
		trigger = { is_in_prison_type = dungeon }
		reference = dungeon
	}
	left_portrait = {
		character = root
		animation = paranoia
	}

	trigger = {
		is_imprisoned = yes
		NOR = {
			has_trait = paranoid
			has_trait = trusting
		}
		NOT = { has_trait = incapable }
	}

	option = {
		name = child_personality.0047.a
		add_trait = paranoid
	}
}

#Gain trusting
child_personality.0048 = {
	type = character_event
	title = child_personality.0021.t
	desc = child_personality.0048.desc
	theme = education
	override_background = {
		trigger = { is_in_prison_type = house_arrest }
		reference = sitting_room
	}
	override_background = {
		trigger = { is_in_prison_type = dungeon }
		reference = dungeon
	}
	left_portrait = {
		character = root
		animation = personality_compassionate
	}

	trigger = {
		is_imprisoned = yes
		NOR = {
			has_trait = paranoid
			has_trait = trusting
		}
		NOT = { has_trait = incapable }
	}

	option = {
		name = child_personality.0048.a
		add_trait = trusting
	}
}

#Gain compassionate
child_personality.0049 = {
	type = character_event
	title = child_personality.0021.t
	desc = child_personality.0049.desc
	theme = education
	override_background = {
		trigger = { is_in_prison_type = house_arrest }
		reference = sitting_room
	}
	override_background = {
		trigger = { is_in_prison_type = dungeon }
		reference = dungeon
	}
	left_portrait = {
		character = root
		animation = personality_compassionate
	}

	trigger = {
		is_imprisoned = yes
		NOR = {
			has_trait = compassionate
			has_trait = callous
			has_trait = sadistic
		}
		NOT = { has_trait = incapable }
	}

	option = {
		name = child_personality.0049.a
		add_trait = compassionate
	}
}

#Gain callous
child_personality.0050 = {
	type = character_event
	title = child_personality.0021.t
	desc = child_personality.0050.desc
	theme = education
	override_background = {
		trigger = { is_in_prison_type = house_arrest }
		reference = sitting_room
	}
	override_background = {
		trigger = { is_in_prison_type = dungeon }
		reference = dungeon
	}
	left_portrait = {
		character = root
		animation = personality_callous
	}

	trigger = {
		is_imprisoned = yes
		NOR = {
			has_trait = compassionate
			has_trait = callous
			has_trait = sadistic
		}
		NOT = { has_trait = incapable }
	}

	option = {
		name = child_personality.0050.a
		add_trait = callous
	}
}

#Gain sadistic
child_personality.0051 = {
	type = character_event
	title = child_personality.0021.t
	desc = child_personality.0051.desc
	theme = education
	override_background = {
		trigger = { is_in_prison_type = house_arrest }
		reference = sitting_room
	}
	override_background = {
		trigger = { is_in_prison_type = dungeon }
		reference = dungeon
	}
	left_portrait = {
		character = root
		animation = schadenfreude
	}
	right_portrait = scope:imprisoner

	trigger = {
		is_imprisoned = yes
		NOR = {
			has_trait = sadistic
			has_trait = stubborn
			has_trait = callous
		}
		NOT = { has_trait = incapable }
	}

	immediate = {
		imprisoner = {
			save_scope_as = imprisoner
		}
	}

	option = {
		name = child_personality.0051.a
		add_trait = sadistic
	}
}

#Gain stubborn
child_personality.0052 = {
	type = character_event
	title = child_personality.0021.t
	desc = child_personality.0052.desc
	theme = education
	override_background = {
		trigger = { is_in_prison_type = house_arrest }
		reference = sitting_room
	}
	override_background = {
		trigger = { is_in_prison_type = dungeon }
		reference = dungeon
	}
	left_portrait = {
		character = root
		animation = personality_callous
	}

	trigger = {
		is_imprisoned = yes
		NOR = {
			has_trait = stubborn
			has_trait = fickle
		}
		NOT = { has_trait = incapable }
	}

	option = {
		name = child_personality.0052.a
		add_trait = stubborn
	}
}

#Gain fickle
child_personality.0053 = {
	type = character_event
	title = child_personality.0021.t
	desc = child_personality.0053.desc
	theme = education
	override_background = {
		trigger = { is_in_prison_type = house_arrest }
		reference = sitting_room
	}
	override_background = {
		trigger = { is_in_prison_type = dungeon }
		reference = dungeon
	}
	left_portrait = {
		character = root
		animation = personality_irrational
	}

	trigger = {
		is_imprisoned = yes
		NOR = {
			has_trait = stubborn
			has_trait = fickle
		}
		NOT = { has_trait = incapable }
	}

	option = {
		name = child_personality.0053.a
		add_trait = fickle
	}
}

#Gain vengeful
child_personality.0054 = {
	type = character_event
	title = child_personality.0021.t
	desc = child_personality.0054.desc
	theme = education
	override_background = {
		trigger = { is_in_prison_type = house_arrest }
		reference = sitting_room
	}
	override_background = {
		trigger = { is_in_prison_type = dungeon }
		reference = dungeon
	}
	left_portrait = {
		character = root
		animation = anger
	}
	right_portrait = scope:imprisoner

	trigger = {
		is_imprisoned = yes
		NOR = {
			has_trait = vengeful
			has_trait = forgiving
		}
		NOT = { has_trait = incapable }
	}

	immediate = {
		imprisoner = {
			save_scope_as = imprisoner
			if = {
				limit = {
					NOR = {
						has_relation_rival = root
						has_relation_potential_rival = root
					}
				}
				set_relation_potential_rival = root
			}
		}
	}

	option = {
		name = child_personality.0054.a
		add_trait = vengeful
	}
}

#Gain forgiving
child_personality.0055 = {
	type = character_event
	title = child_personality.0021.t
	desc = child_personality.0055.desc
	theme = education
	override_background = {
		trigger = { is_in_prison_type = house_arrest }
		reference = sitting_room
	}
	override_background = {
		trigger = { is_in_prison_type = dungeon }
		reference = dungeon
	}
	left_portrait = {
		character = root
		animation = personality_compassionate
	}

	trigger = {
		is_imprisoned = yes
		NOR = {
			has_trait = vengeful
			has_trait = forgiving
		}
		NOT = { has_trait = incapable }
	}

	option = {
		name = child_personality.0055.a
		add_trait = forgiving
	}
}


# Child may gain a propensity to drinking by watching their ward 
# By Bianca Savazzi 
child_personality.0061 = {
	type = character_event
	title = child_personality.0061.t
	desc = {
		desc = child_personality.0061.desc_opening
		first_valid = {
			triggered_desc = {
				trigger = {
					scope:guardian = {					
						has_trait = shy
					}
				}
				desc = child_personality.0061.desc_shy
			}
			triggered_desc = {
				trigger = {
					scope:guardian = {
						has_trait = gregarious
					}
				}
				desc = child_personality.0061.desc_gregarious
			}
			desc = child_personality.0061.desc_fallback
		}
		desc = child_personality.0061.desc_ending
	}
	left_portrait = {
		character = root
		animation = personality_rational
	}
	right_portrait = {
		character = scope:guardian
		animation = happiness
	}
	theme = education

	cooldown = { years = 20 }

	trigger = {
		is_ai = no
		is_available_child_allow_travel = yes
		age >= 11
		any_relation = {
			type = guardian
			is_available = yes
			OR = {
				has_trait = drunkard 
				has_trait = lifestyle_reveler
			}
		}
	}

	immediate = {
		if = {
			limit = {
				any_relation = { type = guardian count >= 1 }
			}
			random_relation = {
				type = guardian
				limit = {
					is_available = yes
					OR = {
						has_trait = drunkard 
						has_trait = lifestyle_reveler
					}
				}
				save_scope_as = guardian
			}
		}
	}

	option = {
		name = child_personality.0061.a
		custom_tooltip = child_personality.0061.a.tt

		ai_chance = {
			base = 10
		}
		if = {
			limit = { has_trait = shy } 
			random = {
				chance = 25
				remove_trait = shy
			}
		}
		hidden_effect = { #Progress in the reveler lifestyle
			if = {
				limit = { NOT = { has_variable = reveler_lifestyle_progress } }
				set_variable = {
					name = reveler_lifestyle_progress
					value = 1
				}
			}
			else = {
				change_variable = {
					name = reveler_lifestyle_progress
					add = 1
				}
			}
			random = {
				chance = 33
				change_variable = {
					name = reveler_lifestyle_progress
					add = 1
				}
			}
			random = {
				chance = 33
				add_diplomacy_skill = 1 
			}
		}
	}

	option = {
		name = child_personality.0061.b
		if = {
			limit = { 
				NOR = {
					has_trait = zealous
					has_trait = cynical
				}
			}
			add_trait = zealous
		}
		
		add_piety = minor_piety_gain
	}
}

####
# GUARDIAN EVENTS
# 1000-1999
####


#Responses to the bully dare
#0001

#Child has demonstrated cowardice
child_personality.1011 = {
	type = character_event
	title = child_personality.1011.t
	desc = {
		desc = child_personality.1011.desc
		triggered_desc = {
			trigger = {
				exists = scope:bully
			}
			desc = child_personality.101.desc_bully
		}
	}
	theme = education
	left_portrait = {
		character = scope:child
		animation = sadness
	}
	right_portrait = {
		character = scope:bully
		animation = schadenfreude
	}

	option = {
		name = child_personality.101.confirm_craven
		custom_tooltip = child_personality.keeps_craven_tt
		reverse_add_opinion = {
    		modifier = pleased_opinion
    		target = scope:child
    		opinion = 15
    	}
		stress_impact = {
			compassionate = minor_stress_loss
			craven = minor_stress_loss
			paranoid = minor_stress_loss
			brave = minor_stress_gain
			sadistic = minor_stress_gain
		}
		ai_chance = {
			base = 100
			ai_value_modifier = {
				ai_compassion = 0.5
				ai_boldness = -1
			}
			modifier = {
				factor = 3
				has_trait = craven
			}
		}
	}

	option = {
		name = child_personality.101.aggression
		stress_impact = {
			base = child_trait_change_stress_penalty
			compassionate = major_stress_gain
			just = minor_stress_gain
			sadistic = medium_stress_loss
			wrathful = minor_stress_loss
			callous = minor_stress_loss
		}
		
		reverse_add_opinion = {
			modifier = scared_opinion
			target = scope:child
			opinion = -30
		}
		
		random_list = {
			100 = {
				desc = child_personality.keeps_craven_tt
				send_interface_toast = {
					title = child_personality.keeps_craven_tt
					left_icon = scope:child
				}
			}
			50 = { 
				desc = child_personality.distrust_tt
				scope:child = {
					remove_trait = craven
				}
				modifier = {
					factor = 3
					scope:child = {
						OR = {
							has_trait = cynical
							has_trait = paranoid
						}
					}
				}
				if = {
					limit = {
						scope:child = {
							NOR = { 
								has_trait = zealous
								has_trait = cynical
							}
						}
					}
					send_interface_toast = {
						title = child_personality.distrust_tt
						left_icon = scope:child
						scope:child = {
							add_trait_force_tooltip = cynical
						}
					}
				}
				else_if = {
					limit = {
						scope:child = {
							NOT = { 
								has_trait = paranoid
							}
						}
					}
					scope:child = {
						remove_trait = trusting
					}
					send_interface_toast = {
						title = child_personality.distrust_tt
						left_icon = scope:child
						scope:child = {
							add_trait_force_tooltip = paranoid
						}
					}
				}
				else = {
					send_interface_toast = {
						title = child_personality.distrust_tt
						left_icon = scope:child
						scope:child = {
							add_intrigue_skill = 1
							add_diplomacy_skill = -2
						}
					}
				}
				
			}
			50 = { 
				desc = child_personality.hardened_tt
				scope:child = {
					remove_trait = craven
				}
				modifier = {
					factor = 3
					scope:child = {
						OR = {
							has_trait = wrathful
							has_trait = vengeful
						}
					}
				}
				if = {
					limit = {
						scope:child = {
							NOR = { 
								has_trait = calm
								has_trait = wrathful
							}
						}
					}
					send_interface_toast = {
						title = child_personality.hardened_tt
						left_icon = scope:child
						scope:child = {
							add_trait_force_tooltip = wrathful
						}
					}
				}
				else_if = {
					limit = {
						scope:child = {
							NOT = { 
								has_trait = vengeful
							}
						}
					}
					scope:child = {
						remove_trait = forgiving
					}
					send_interface_toast = {
						title = child_personality.hardened_tt
						left_icon = scope:child
						scope:child = {
							add_trait_force_tooltip = vengeful
						}
					}
				}
				else = {
					send_interface_toast = {
						title = child_personality.hardened_tt
						left_icon = scope:child
						scope:child = {
							add_martial_skill = 1
							add_diplomacy_skill = -2
						}
					}
				}
			}
		}	
		ai_chance = {
			base = 100
			ai_value_modifier = {
				ai_compassion = -1
				ai_honor =-1
			}
			modifier = {
				factor = 3
				has_trait = sadistic
			}
		}
	}

	option = {
		name = child_personality.101.stoicism
		stress_impact = {
			base = child_trait_change_stress_penalty
			wrathful = minor_stress_gain
		}

		random_list = {
			50 = {
				desc = child_personality.keeps_craven_tt
				send_interface_toast = {
					title = child_personality.keeps_craven_tt
					left_icon = scope:child
				}
			}
			100 = { 
				desc = child_personality.hold_tt
				modifier = {
					factor = 3
					scope:child = {
						OR = {
							has_trait = calm
							has_trait = stubborn
						}
					}
				}
				scope:child = {
					remove_trait = craven
				}
				if = {
					limit = {
						scope:child = {
							NOR = { 
								has_trait = wrathful
								has_trait = calm
							}
						}
					}
					send_interface_toast = {
						title = child_personality.hold_tt
						left_icon = scope:child
						scope:child = {
							add_trait_force_tooltip = calm
						}
					}
				}
				else_if = {
					limit = {
						scope:child = {
							NOT = { 
								has_trait = stubborn
							}
						}
					}
					scope:child = {
						remove_trait = fickle
					}
					send_interface_toast = {
						title = child_personality.hold_tt
						left_icon = scope:child
						scope:child = {
							add_trait_force_tooltip = stubborn
						}
					}
				}
				else = {
					send_interface_toast = {
						title = child_personality.hold_tt
						left_icon = scope:child
						scope:child = {
							add_stewardship_skill = 1
						}
					}
				}
			}
		}
			
		ai_chance = {
			base = 100
			ai_value_modifier = {
				ai_rationality = 1
			}
			modifier = {
				factor = 3
				has_trait = calm
			}
		}
	}
	
	option = {
		name = child_personality.101.bravery
		trigger = {
			has_trait = brave
		}
		stress_impact = {
			base = child_trait_change_stress_penalty
			wrathful = minor_stress_gain
		}
		custom_tooltip = child_personality.exchange_tt
	
		random_list = {
			30 = {
				modifier = {
					factor = 0.2
					OR = {
						root.diplomacy >= high_skill_rating
						root.prowess >= high_skill_rating
					}
				}
				desc = child_personality.keeps_craven_tt
				send_interface_toast = {
					title = child_personality.keeps_craven_tt
					left_icon = scope:child
				}
				
			}
			40 = {
				modifier = {
					factor = 3
					AND = {
						root.diplomacy >= medium_skill_rating
						root.diplomacy < high_skill_rating
						root.prowess >= medium_skill_rating
						root.prowess < high_skill_rating
					}
				}
				send_interface_toast = {
					title = child_personality.loses_craven_tt
					left_icon = scope:child
					scope:child = {
						remove_trait = craven
					}
				}
			}
			30 = {
				scope:child = {
					remove_trait = craven
				}
				send_interface_toast = {
					title = child_personality.gains_brave_tt
					left_icon = scope:child
					scope:child = {
						add_trait_force_tooltip = brave
					}
				}
				modifier = {
					factor = 6
					OR = {
						root.diplomacy >= high_skill_rating
						root.prowess >= high_skill_rating
					}
				}
			}
		}
		ai_chance = {
			base = 400
		}
	}
}



#Child has tried to become patient
child_personality.1012 = {
	type = character_event
	title = child_personality.1012.t
	desc = {
		desc = child_personality.1012.desc
		triggered_desc = {
			trigger = {
				exists = scope:bully
			}
			desc = child_personality.101.desc_bully
		}
		first_valid = {
			triggered_desc = {
				trigger = { 
					scope:child = { has_trait = patient } 
				}
				desc = child_personality.1012.desc.a
			}
			desc = child_personality.1012.desc.b
		}	
	}
	theme = education
	left_portrait = {
		character = scope:child
		animation = idle
	}
	right_portrait = {
		character = scope:bully
		animation = anger
	}

	option = {
		trigger = {
			scope:child = {
				has_trait = patient
			}
		}
		name = child_personality.101.confirm_patient
		custom_tooltip = child_personality.keeps_patient_tt
		ai_chance = {
			base = 100
			ai_value_modifier = {
				ai_rationality = 1
			}
			modifier = {
				factor = 3
				OR = {
					has_trait = patient
					has_trait = calm
				}
			}
		}
	}
	
	option = {
		trigger = {
			scope:child = {
				NOT = { has_trait = patient }
			}
		}
		name = child_personality.101.confirm_patient_alt
		custom_tooltip = child_personality.gains_patient_tt
		hidden_effect = {
			scope:child = {
				remove_trait = impatient
			}
		}
		scope:child = {
			add_trait_force_tooltip = patient
		}
		ai_chance = {
			base = 100
			ai_value_modifier = {
				ai_rationality = 1
			}
			modifier = {
				factor = 3
				OR = {
					has_trait = patient
					has_trait = calm
				}
			}
		}
	}

	option = {
		name = child_personality.101.aggression_alt
		stress_impact = {
			base = child_trait_change_stress_penalty
			compassionate = major_stress_gain
			just = minor_stress_gain
			sadistic = medium_stress_loss
			wrathful = minor_stress_loss
			callous = minor_stress_loss
			impatient = minor_stress_loss
		}
		
		reverse_add_opinion = {
			modifier = scared_opinion
			target = scope:child
			opinion = -30
		}
		random_list = {	
			25 = {
				desc = child_personality.stay_tt
				send_interface_toast = {
					title = child_personality.stay_tt
					left_icon = scope:child
				}
			}
			50 = { 
				desc = child_personality.distrust_tt
				scope:child = {
					remove_trait = patient
				}
				modifier = {
					factor = 3
					scope:child = {
						OR = {
							has_trait = cynical
							has_trait = stubborn
						}
					}
				}
				if = {
					limit = {
						scope:child = {
							NOR = { 
								has_trait = zealous
								has_trait = cynical
							}
						}
					}
					send_interface_toast = {
						title = child_personality.distrust_tt
						left_icon = scope:child
						scope:child = {
							add_trait_force_tooltip = cynical
						}
					}
				}
				else_if = {
					limit = {
						scope:child = {
							NOT = { 
								has_trait = stubborn
							}
						}
					}
					scope:child = {
						remove_trait = fickle
					}
					send_interface_toast = {
						title = child_personality.distrust_tt
						left_icon = scope:child
						scope:child = {
							add_trait_force_tooltip = stubborn
						}
					}
				}
				else = {
					send_interface_toast = {
						title = child_personality.distrust_tt
						left_icon = scope:child
						scope:child = {
							add_intrigue_skill = 1
							add_diplomacy_skill = -2
						}
					}
				}
				
			}
			50 = { 
				desc = child_personality.hardened_tt
				scope:child = {
					remove_trait = patient
				}
				modifier = {
					factor = 3
					scope:child = {
						OR = {
							has_trait = wrathful
							has_trait = vengeful
						}
					}
				}
				if = {
					limit = {
						scope:child = {
							NOR = { 
								has_trait = calm
								has_trait = wrathful
							}
						}
					}
					send_interface_toast = {
						title = child_personality.hardened_tt
						left_icon = scope:child
						scope:child = {
							add_trait_force_tooltip = wrathful
						}
					}
				}
				else_if = {
					limit = {
						scope:child = {
							NOT = { 
								has_trait = vengeful
							}
						}
					}
					scope:child = {
						remove_trait = forgiving
					}
					send_interface_toast = {
						title = child_personality.hardened_tt
						left_icon = scope:child
						scope:child = {
							add_trait_force_tooltip = vengeful
						}
					}
				}
				else = {
					send_interface_toast = {
						title = child_personality.hardened_tt
						left_icon = scope:child
						scope:child = {
							add_martial_skill = 1
							add_diplomacy_skill = -2
						}
					}
				}
			}
		}	
		ai_chance = {
			base = 100
			ai_value_modifier = {
				ai_compassion = -0.5
			}
			modifier = {
				factor = 3
				has_trait = sadistic
			}
		}
	}

	option = {
		name = child_personality.101.acting
		stress_impact = {
			base = child_trait_change_stress_penalty
			calm = minor_stress_gain
			patient = minor_stress_gain
			impatient = medium_stress_loss
			fickle = minor_stress_loss
		}
		
		random_list = {	
			50 = {
				desc = child_personality.stay_tt
				send_interface_toast = {
					title = child_personality.stay_tt
					left_icon = scope:child
				}
				modifier = {
					factor = 0.2
					scope:child = {
						NOT = { has_trait = patient }
					}
				}
			}
			25 = { 
				desc = child_personality.energy_tt
				scope:child = {
					remove_trait = patient
				}
				modifier = {
					factor = 4
					scope:child = {
						has_trait = brave
						has_trait = ambitious
					}
				}
				if = {
					limit = {
						scope:child = {
							NOR = { 
								has_trait = brave
								has_trait = craven
							}
						}
					}
					send_interface_toast = {
						title = child_personality.energy_tt
						left_icon = scope:child
						scope:child = {
							add_trait_force_tooltip = brave
						}
					}
				}
				else_if = {
					limit = {
						scope:child = {
							NOT = { 
								has_trait = ambitious
							}
						}
					}
					scope:child = {
						remove_trait = content
					}
					send_interface_toast = {
						title = child_personality.energy_tt
						left_icon = scope:child
						scope:child = {
							add_trait_force_tooltip = ambitious
						}
					}
				}
				else = {
					send_interface_toast = {
						title = child_personality.energy_tt
						left_icon = scope:child
						scope:child = {
							add_prowess_skill = 1
							add_martial_skill = 1
						}
					}
				}
			}
			100 = { 
				desc = child_personality.err_tt
				scope:child = {
					remove_trait = patient
				}
				if = {
					limit = {
						scope:child = {
							NOR = { 
								has_trait = arbitrary
								has_trait = just
							}
						}
					}
					send_interface_toast = {
						title = child_personality.err_tt
						left_icon = scope:child
						scope:child = {
							add_trait_force_tooltip = arbitrary
						}
					}
				}
				else_if = {
					limit = {
						scope:child = {
							NOT = { 
								has_trait = impatient
							}
						}
					}

					send_interface_toast = {
						title = child_personality.err_tt
						left_icon = scope:child
						scope:child = {
							add_trait_force_tooltip = impatient
						}
					}
				}
				else = {
					send_interface_toast = {
						title = child_personality.err_tt
						left_icon = scope:child
						scope:child = {
							add_intrigue_skill = 1
							add_stewardship_skill = -2
						}
					}
				}
			}
		}	
		ai_chance = {
			base = 100
			ai_value_modifier = {
				ai_energy = 0.5
			}
			modifier = {
				factor = 3
				has_trait = impatient
			}
		}
	}
}


#Child has withdrawn into themselves
child_personality.1013 = {
	type = character_event
	title = child_personality.1013.t
	desc = {
		desc = my_ward_or_child
		desc = child_personality.1013.desc
		triggered_desc = {
			trigger = {
				exists = scope:bully
			}
			desc = child_personality.101.desc_bully
		}
		first_valid = {
			triggered_desc = {
				trigger = { 
					scope:child = { has_trait = shy } 
				}
				desc = child_personality.1013.desc.a
			}
			desc = child_personality.1013.desc.b
		}
		
	}
	theme = education
	left_portrait = {
		character = scope:child
		animation = personality_shame
	}
	right_portrait = {
		character = scope:bully
		animation = anger
	}

	option = {
		trigger = {
			scope:child = {
				has_trait = shy
			}
		}
		name = child_personality.101.confirm_shy
		custom_tooltip = child_personality.keeps_shy_tt
		stress_impact = {
			compassionate = minor_stress_loss
			shy = minor_stress_loss
			gregarious = minor_stress_gain
			sadistic = minor_stress_gain
		}
		ai_chance = {
			base = 100
			ai_value_modifier = {
				ai_compassion = 0.5
				ai_sociability = -0.5
			}
			modifier = {
				factor = 3
				has_trait = shy
			}
		}
	}
	
	option = {
		trigger = {
			scope:child = {
				NOT = { has_trait = shy }
			}
		}
		stress_impact = {
			lazy = minor_stress_loss
			shy = minor_stress_loss
			gregarious = minor_stress_gain
			diligent = minor_stress_gain
			sadistic = minor_stress_gain
		}
		name = child_personality.101.confirm_shy_alt
		random_list = {
			50 = {
				desc = child_personality.1013.recover
				send_interface_toast ={
					title = child_personality.1013.recover
					left_icon = scope:child
				}
			}
			50 = {
				desc = child_personality.1013.nrecover
				send_interface_toast ={
					title = child_personality.1013.nrecover
					left_icon = scope:child
					if = {
						limit = {
							scope:child = {
								has_trait = gregarious
							}
						}
						scope:child = {
							remove_trait = gregarious
						}
					}
					else = {
						scope:child = {
							add_trait = shy
						}
					}
				}
			}
		}
		ai_chance = {
			base = 100
			ai_value_modifier = {
				ai_sociability = -0.5
			}
			modifier = {
				factor = 3
				OR = {
					has_trait = shy
					has_trait = lazy
				}
			}
		}
	}
	
	option = {
		name = child_personality.101.aggression_alt
		stress_impact = {
			base = child_trait_change_stress_penalty
			compassionate = major_stress_gain
			just = minor_stress_gain
			sadistic = medium_stress_loss
			wrathful = minor_stress_loss
			callous = minor_stress_loss
			impatient = minor_stress_loss
		}
		
		reverse_add_opinion = {
			modifier = scared_opinion
			target = scope:child
			opinion = -40
		}
		random_list = {	
			150 = {
				desc = child_personality.close_tt
				send_interface_toast = {
					title = child_personality.close_tt
					left_icon = scope:child
					scope:child = {
						remove_trait = gregarious
						remove_trait = brave
						add_trait_force_tooltip = craven
						add_trait_force_tooltip = shy
					}
				}
			}
			50 = { 
				desc = child_personality.distrust_tt
				modifier = {
					factor = 3
					scope:child = {
						OR = {
							has_trait = cynical
							has_trait = stubborn
						}
					}
				}
				if = {
					limit = {
						scope:child = {
							NOR = { 
								has_trait = zealous
								has_trait = cynical
							}
						}
					}
					send_interface_toast = {
						title = child_personality.distrust_tt
						left_icon = scope:child
						scope:child = {
							add_trait_force_tooltip = cynical
						}
					}
				}
				else_if = {
					limit = {
						scope:child = {
							NOT = { 
								has_trait = stubborn
							}
						}
					}
					scope:child = {
						remove_trait = fickle
					}
					send_interface_toast = {
						title = child_personality.distrust_tt
						left_icon = scope:child
						scope:child = {
							add_trait_force_tooltip = stubborn
						}
					}
				}
				else = {
					send_interface_toast = {
						title = child_personality.distrust_tt
						left_icon = scope:child
						scope:child = {
							add_intrigue_skill = 1
							add_diplomacy_skill = -2
						}
					}
				}
				
			}
			50 = { 
				desc = child_personality.hardened_tt
				scope:child = {
					remove_trait = shy
				}
				modifier = {
					factor = 3
					scope:child = {
						OR = {
							has_trait = wrathful
							has_trait = vengeful
						}
					}
				}
				if = {
					limit = {
						scope:child = {
							NOR = { 
								has_trait = calm
								has_trait = wrathful
							}
						}
					}
					send_interface_toast = {
						title = child_personality.hardened_tt
						left_icon = scope:child
						scope:child = {
							add_trait_force_tooltip = wrathful
						}
					}
				}
				else_if = {
					limit = {
						scope:child = {
							NOT = { 
								has_trait = vengeful
							}
						}
					}
					scope:child = {
						remove_trait = forgiving
					}
					send_interface_toast = {
						title = child_personality.hardened_tt
						left_icon = scope:child
						scope:child = {
							add_trait_force_tooltip = vengeful
						}
					}
				}
				else = {
					send_interface_toast = {
						title = child_personality.hardened_tt
						left_icon = scope:child
						scope:child = {
							add_martial_skill = 1
							add_diplomacy_skill = -2
						}
					}
				}
			}
		}	
		ai_chance = {
			base = 100
			ai_value_modifier = {
				ai_compassion = -0.5
			}
			modifier = {
				factor = 3
				has_trait = sadistic
			}
		}
	}
	
	option = {
		name = child_personality.101.talk
		stress_impact = {
			base = child_trait_change_stress_penalty
			shy = minor_stress_gain
			patient = minor_stress_loss
			compassionate = medium_stress_loss
			gregarious = minor_stress_loss
			sadistic = medium_stress_gain
			callous = minor_stress_gain
		}
		
		random_list = {	
			30 = {
				desc = child_personality.stay_tt
				send_interface_toast = {
					title = child_personality.stay_tt
					left_icon = scope:child
				}
				modifier = {
					factor = 0
					scope:child = {
						NOT = { has_trait = shy }
					}
				}
			}
			100 = { 
				desc = child_personality.open_tt
				scope:child = {
					remove_trait = shy
				}
				modifier = {
					factor = 2
					scope:child = {
						has_trait = trusting
					}
				}
				if = {
					limit = {
						scope:child = {
							NOR = { 
								has_trait = trusting
								has_trait = paranoid
							}
						}
					}
					send_interface_toast = {
						title = child_personality.open_tt
						left_icon = scope:child
						scope:child = {
							add_trait_force_tooltip = trusting
						}
					}
				}
				else_if = {
					limit = {
						scope:child = {
							NOT = { 
								has_trait = compassionate
							}
						}
					}
					scope:child = {
						remove_trait = sadistic
						remove_trait = callous
					}
					send_interface_toast = {
						title = child_personality.open_tt
						left_icon = scope:child
						scope:child = {
							add_trait_force_tooltip = compassionate
						}
					}
				}
				else = {
					send_interface_toast = {
						title = child_personality.open_tt
						left_icon = scope:child
						scope:child = {
							add_diplomacy_skill = 1
						}
					}
				}
				
			}
			100 = { 
				desc = child_personality.greg_tt
				if = {
					limit = {
						scope:child = {
							NOT = { 
								has_trait = shy
							}
						}
					}
					send_interface_toast = {
						title = child_personality.greg_tt
						left_icon = scope:child
						scope:child = {
							add_diplomacy_skill = 1
						}
					}
				}
				else = {
					send_interface_toast = {
						title = child_personality.greg_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = shy
						}
					}
				}
			}
		}	
		ai_chance = {
			base = 100
			ai_value_modifier = {
				ai_compassion = 0.5
			}
			modifier = {
				factor = 3
				has_trait = compassionate
			}
		}
	}
}




#Responses to Pillory event
#0002

#Child has demonstrated dismissal
child_personality.1021 = {
	type = character_event
	title = child_personality.1021.t
	desc = {
		desc = {
			first_valid = {
				triggered_desc = {
					trigger = {
						exists = scope:court_location
					}
					desc = child_personality.102.desc_court_location
				}
				desc = child_personality.102.desc
			}
		}
		desc = child_personality.102.pride
	}
	theme = education
	override_background = {
		reference = gallows
	}
	left_portrait = {
		character = scope:child
		animation = dismissal
	}
	right_portrait = {
		character = root
		animation = worry
	}

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

	option = {
		name = child_personality.102.confirm_pride
		custom_tooltip = child_personality.stay_tt
		reverse_add_opinion = {
    		modifier = pleased_opinion
    		target = scope:child
    		opinion = 10
    	}
		stress_impact = {
			compassionate = medium_stress_gain
			callous = minor_stress_loss
			arrogant = medium_stress_loss
		}
		ai_chance = {
			base = 100
			ai_value_modifier = {
				ai_compassion = -1
			}
			modifier = {
				factor = 3
				has_trait = arrogant
			}
		}
	}

	option = {
		name = child_personality.102.kindness
	
		ai_chance = {
			base = 100
			ai_value_modifier = {
				ai_compassion = 0.5
			}
			modifier = {
				factor = 3
				has_trait = compassionate
			}
		}
		stress_impact = {
			base = child_trait_change_stress_penalty
			compassionate = medium_stress_loss
			callous = medium_stress_gain
			sadistic = medium_stress_gain
			arrogant = minor_stress_gain
		}
		
		random_list = {	
			40 = {
				desc = child_personality.stay_tt
				send_interface_toast = {
					title = child_personality.stay_tt
					left_icon = scope:child
				}
			}
			60 = { 
				desc = child_personality.open_tt
				modifier = {
					factor = 2
					root.diplomacy >= medium_skill_rating
				}
				if = {
					limit = {
						scope:child = {
							has_trait = callous
							has_trait = sadistic
						}
					}
					send_interface_toast = {
						title = child_personality.open_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = callous
							remove_trait = sadistic
						}
					}
				}
				else = {
					send_interface_toast = {
						title = child_personality.open_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = arrogant
							add_trait_force_tooltip = compassionate
						}
					}
				}
				
			}
		}
	}

	option = {
		name = child_personality.102.reason
		ai_chance = {
			base = 100
			ai_value_modifier = {
				ai_rationality = 1
			}
			modifier = {
				factor = 3
				has_trait = just
			}
		}
		stress_impact = {
			base = child_trait_change_stress_penalty
			just = minor_stress_gain
			arbitrary = minor_stress_gain
		}
		
		random_list = {	
			50 = {
				desc = child_personality.stay_tt
				send_interface_toast = {
					title = child_personality.stay_tt
					left_icon = scope:child
				}
			}
			50 = { 
				desc = child_personality.under_tt
				modifier = {
					factor = 0.1
					scope:child = {
						OR = {
							has_trait = cynical
							has_trait = arbitrary
						}
					}
				}
				scope:child = {
					remove_trait = arrogant
					remove_trait = callous
					remove_trait = sadistic
				}

				if = {
					limit = {
						AND = {
							root = {
								has_trait = zealous
							}
							scope:child = {
								has_trait = arbitrary
								has_trait = cynical
							}
						}
					}
					send_interface_toast = {
						title = child_personality.under_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = arbitrary
							remove_trait = cynical
						}
					}
				}
				else_if = {
					limit = {
						AND = {
							root = {
								has_trait = zealous
							}
							scope:child = {
								has_trait = arbitrary
							}
						}
					}
					send_interface_toast = {
						title = child_personality.under_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = arbitrary
							add_trait_force_tooltip = zealous
						}
					}
				}
				else_if = {
					limit = {
						AND = {
							root = {
								has_trait = zealous
							}
							scope:child = {
								has_trait = cynical
							}
						}
					}
					send_interface_toast = {
						title = child_personality.under_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = cynical
							add_trait_force_tooltip = just
						}
					}
				}
				else_if = {
					limit = {
						root = {
							has_trait = zealous
						}
					}
					send_interface_toast = {
						title = child_personality.under_tt
						left_icon = scope:child
						scope:child = {
							add_trait_force_tooltip = zealous
						}
					}
				}
				else_if = {
					limit = {
						scope:child = {
							has_trait = arbitrary
						}
					}
					send_interface_toast = {
						title = child_personality.under_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = arbitrary
							add_stewardship_skill = 1
						}
					}
				}
				else_if = {
					limit = {
						scope:child = {
							has_trait = just
						}
					}
					send_interface_toast = {
						title = child_personality.under_tt
						left_icon = scope:child
						scope:child = {
							add_stewardship_skill = 2
						}
					}
				}
				else = {
					send_interface_toast = {
						title = child_personality.under_tt
						left_icon = scope:child
						scope:child = {
							add_trait_force_tooltip = just
						}
					}
				}
			}
			50 = {
				desc = child_personality.punder_tt
				if = {
					limit = {
						scope:child = {
							OR = {
								has_trait = callous
								has_trait = sadistic
							}
						}
					}
					scope:child = {
						remove_trait = callous
						remove_trait = sadistic
					}
				}
				else = {
					scope:child = {
						remove_trait = arrogant
					}
				}
				if = {
					limit = {
						root = {
							has_trait = zealous
						}
					}
					send_interface_toast = {
						title = child_personality.punder_tt
						left_icon = scope:child
						scope:child = {
							add_learning_skill = 1
							add_diplomacy_skill = -1
						}
					}
				}
				else = {
					send_interface_toast = {
						title = child_personality.punder_tt
						left_icon = scope:child
						scope:child = {
							add_stewardship_skill = 1
							add_diplomacy_skill = -1
						}
					}
				}
			}
		}
	}
	
	option = {
		name = child_personality.102.sadism
		ai_chance = {
			base = 100
			ai_value_modifier = {
				ai_honor = -2
			}
			modifier = {
				factor = 3
				has_trait = sadistic
			}
		}
		trigger = {
			OR = {
				has_trait = sadistic
				has_trait = torturer
			}	
		}
		stress_impact = {
			base = child_trait_change_stress_penalty
			sadistic = major_stress_loss
			just = medium_stress_gain
			wrathful = minor_stress_loss
		}
		
		random_list = {
			70 = {
				desc = child_personality.scared_tt
				modifier = {
					factor = 0
					scope:child = { has_trait = sadistic }
				}
				modifier = {
					factor = 0.2
					scope:child = { has_trait = callous }
				}
				if = {
					limit = {
						scope:child = {has_trait = callous }
					}
					scope:child = {
						remove_trait = callous
					}
				}

				send_interface_toast = {
					title = child_personality.scared_tt
					left_icon = scope:child
					reverse_add_opinion = {
						modifier = scared_opinion
						target = scope:child
						opinion = -40	
					}
					scope:child = {
						add_diplomacy_skill = -1
					}
				}
			}
			30 = {
				desc = child_personality.evil_tt
				if = {
					limit = {
						scope:child = {
							has_trait = sadistic
						}
					}
					send_interface_toast = {
						title = child_personality.evil_tt
						left_icon = scope:child
						scope:child = {
							add_intrigue_skill = 1
							add_diplomacy_skill = -1
						}
					}
				}
				else = {
					send_interface_toast = {
						title = child_personality.evil_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = callous
							add_trait_force_tooltip = sadistic
						}
					}
				}
			}
		}
	
	}
	
}

#Child has demonstrated compassion
child_personality.1022 = {
	type = character_event
	title = child_personality.1022.t
	desc = {
		desc = {
			first_valid = {
				triggered_desc = {
					trigger = {
						exists = scope:court_location
					}
					desc = child_personality.102.desc_court_location
				}
				desc = child_personality.102.desc
			}
		}
		desc = child_personality.102.compassionate
	}
	theme = education
	override_background = {
		reference = gallows
	}
	left_portrait = {
		character = scope:child
		animation = personality_compassionate
	}
	right_portrait = {
		character = root
		animation = personality_rational
	}

	immediate = {
		if = {
			limit = {
				exists = court_owner
				court_owner = {
					exists = capital_province
				}
			}
			court_owner = {
				capital_province = {
					barony = { save_scope_as = court_location }
				}
			}
		}
	}
	
	option = {
		name = child_personality.102.confirm_compassionate
		custom_tooltip = child_personality.keeps_compassionate_tt
		reverse_add_opinion = {
    		modifier = pleased_opinion
    		target = scope:child
    		opinion = 20
    	}
		stress_impact = {
			compassionate = medium_stress_loss
			callous = minor_stress_gain
			arrogant = minor_stress_gain
			sadistic = major_stress_gain
		}
		ai_chance = {
			base = 100
			ai_value_modifier = {
				ai_compassion = 1
			}
			modifier = {
				factor = 3
				has_trait = compassionate
			}
		}
	}
	
	option = {
		name = child_personality.102.dismiss
	
		ai_chance = {
			base = 100
			ai_value_modifier = {
				ai_compassion = -0.5
			}
			modifier = {
				factor = 3
				OR = {
					has_trait = callous
					has_trait = arrogant
				}
			}
		}
		
		stress_impact = {
			base = child_trait_change_stress_penalty
			compassionate = medium_stress_gain
			callous = medium_stress_loss
			arrogant = medium_stress_loss
		}
		
		random_list = {	
			60 = {
				desc = child_personality.keeps_compassionate_tt
				send_interface_toast = {
					title = child_personality.keeps_compassionate_tt
					left_icon = scope:child
				}
			}
			40 = { 
				desc = child_personality.think_tt
				modifier = {
					factor = 3
					root.diplomacy >= medium_skill_rating
				}
				send_interface_toast = {
					title = child_personality.think_tt
					left_icon = scope:child
					scope:child = {
						remove_trait = compassionate
					}
				}
			}
		}
	}
	
	option = {
		name = child_personality.102.reason_alt
		ai_chance = {
			base = 100
			ai_value_modifier = {
				ai_rationality = 1
			}
			modifier = {
				factor = 3
				has_trait = just
			}
		}
		stress_impact = {
			base = child_trait_change_stress_penalty
			just = minor_stress_loss
			zealous = minor_stress_loss
			arbitrary = minor_stress_gain
		}
		
		random_list = {	
			50 = {
				desc = child_personality.stay_tt
				send_interface_toast = {
					title = child_personality.stay_tt
					left_icon = scope:child
				}
			}
			50 = { 
				desc = child_personality.under_tt
				modifier = {
					factor = 0.1
					OR = {
						AND = {
							root = { has_trait = zealous }
							scope:child = { has_trait = cynical }
						}
						scope:child = {
							has_trait = arbitrary
						}
					}
					
				}
				
				scope:child = {
					remove_trait = compassionate
				}

				if = {
					limit = {
						AND = {
							root = {
								has_trait = zealous
							}
							scope:child = {
								has_trait = cynical
							}
						}
					}
					send_interface_toast = {
						title = child_personality.under_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = cynical
						}
					}
				}
				else_if = {
					limit = {
						AND = {
							root = {
								has_trait = zealous
							}
							scope:child = {
								NOT = { has_trait = zealous }
							}
						}
					}
					send_interface_toast = {
						title = child_personality.under_tt
						left_icon = scope:child
						scope:child = {
							add_trait_force_tooltip = zealous
						}
					}
				}
				else_if = {
					limit = {
						root = {
							has_trait = zealous
						}
					}
					send_interface_toast = {
						title = child_personality.under_tt
						left_icon = scope:child
						scope:child = {
							add_learning_skill = 2
						}
					}
				}
				else_if = {
					limit = {
						scope:child = {
							has_trait = arbitrary
						}
					}
					send_interface_toast = {
						title = child_personality.under_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = arbitrary
							add_stewardship_skill = 1
						}
					}
				}
				else_if = {
					limit = {
						scope:child = {
							has_trait = just
						}
					}
					send_interface_toast = {
						title = child_personality.under_tt
						left_icon = scope:child
						scope:child = {
							add_stewardship_skill = 2
						}
					}
				}
				else = {
					send_interface_toast = {
						title = child_personality.under_tt
						left_icon = scope:child
						scope:child = {
							add_trait_force_tooltip = just
						}
					}
				}
			}
			50 = {
				desc = child_personality.punder_tt
				scope:child = {
					remove_trait = compassionate
				}
				if = {
					limit = {
						root = {
							has_trait = zealous
						}
					}
					send_interface_toast = {
						title = child_personality.punder_tt
						left_icon = scope:child
						scope:child = {
							add_learning_skill = 1
							add_diplomacy_skill = -1
						}
					}
				}
				else = {
					send_interface_toast = {
						title = child_personality.punder_tt
						left_icon = scope:child
						scope:child = {
							add_stewardship_skill = 1
							add_diplomacy_skill = -1
						}
					}
				}
			}
		}
	}
	
	option = {
		name = child_personality.102.crit
		ai_chance = {
			base = 100
			ai_value_modifier = {
				ai_compassion = -1
			}
			modifier = {
				factor = 3
				OR = {
					has_trait = callous
					has_trait = sadistic
				}
			}
		}
		
		reverse_add_opinion = {
    		modifier = disappointed_opinion
    		target = scope:child
    		opinion = -15
    	}
		
		stress_impact = {
			base = child_trait_change_stress_penalty
			compassionate = medium_stress_gain
			callous = medium_stress_loss
			sadistic = medium_stress_loss
			arrogant = minor_stress_loss
		}
		
		random_list = {	
			25 = {
				modifier = {
					factor = 4
					scope:child = { has_trait = stubborn }
				}
				desc = child_personality.stay_tt
				send_interface_toast = {
					title = child_personality.stay_tt
					left_icon = scope:child
				}
			}
			50 = { 
				desc = child_personality.apathy_tt
				modifier = {
					factor = 2
					scope:child = { has_trait = humble }
				}
				send_interface_toast = {
					title = child_personality.apathy_tt
					left_icon = scope:child
					scope:child = {
						remove_trait = compassionate
						add_trait_force_tooltip = callous
					}
				}
			}
			50 = {
				desc = child_personality.disdain_tt
				scope:child = {
					remove_trait = compassionate
				}
				if = {
					limit = {
						scope:child = {
							has_trait = arrogant
							OR = {
								has_trait = wrathful
								has_trait = calm
							}
						}
					}
					send_interface_toast = {
						title = child_personality.disdain_tt
						left_icon = scope:child
						scope:child = {
							add_diplomacy_skill = -1
						}
					}
				}
				else_if = {
					limit = {
						scope:child = {
							has_trait = arrogant
						}
					}
					send_interface_toast = {
						title = child_personality.disdain_tt
						left_icon = scope:child
						scope:child = {
							add_trait_force_tooltip = wrathful
						}
					}
				}
				else = {
					send_interface_toast = {
						title = child_personality.disdain_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = humble
							add_trait_force_tooltip = arrogant
						}
					}
				}
			}
		}
	}
}

#Child has demonstrated just leanings
child_personality.1023 = {
	type = character_event
	title = child_personality.1023.t
	desc = {
		desc = {
			first_valid = {
				triggered_desc = {
					trigger = {
						exists = scope:court_location
					}
					desc = child_personality.102.desc_court_location
				}
				desc = child_personality.102.desc
			}
		}
		desc = child_personality.102.law
		desc = {
			first_valid = {
				triggered_desc = {
					trigger = {
						scope:child = { has_trait = just }
					}
					desc = child_personality.102.law.a
				}
				triggered_desc = {
					trigger = {
						scope:child = { has_trait = compassionate }
					}
					desc = child_personality.102.law.b
				}
				triggered_desc = {
					trigger = {
						scope:child = { has_trait = callous }
					}
					desc = child_personality.102.law.c
				}
				triggered_desc = {
					trigger = {
						scope:child = { has_trait = sadistic }
					}
					desc = child_personality.102.law.d
				}
			}
		}
	}
	theme = education
	override_background = {
		reference = gallows
	}
	left_portrait = {
		character = scope:child
		animation = personality_honorable
	}
	right_portrait = {
		character = root
		animation = personality_rational
	}

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

	option = {
		name = child_personality.102.confirm_just
		trigger = {
			scope:child = {
				has_trait = just
			}
		}
		custom_tooltip = child_personality.keeps_just_tt
		reverse_add_opinion = {
    		modifier = pleased_opinion
    		target = scope:child
    		opinion = 15
    	}
		stress_impact = {
			just = medium_stress_loss
			arbitrary = minor_stress_gain
			sadistic = minor_stress_gain
		}
		ai_chance = {
			base = 100
			ai_value_modifier = {
				ai_honor = 0.5
			}
			modifier = {
				factor = 3
				has_trait = just
			}
		}
	}
	
	option = {
		name = child_personality.102.confirm_just.bc
		trigger = {
			scope:child = {
				NOR = { 
					has_trait = sadistic
					has_trait = just
				}
			}
		}
		scope:child = {
			add_trait_force_tooltip = just
		}
		reverse_add_opinion = {
    		modifier = pleased_opinion
    		target = scope:child
    		opinion = 15
    	}
		stress_impact = {
			just = medium_stress_loss
			arbitrary = minor_stress_gain
			sadistic = minor_stress_gain
		}
		ai_chance = {
			base = 100
			ai_value_modifier = {
				ai_honor = 0.5
			}
			modifier = {
				factor = 3
				has_trait = just
			}
		}
	}
	
	option = {
		name = child_personality.102.confirm_just.d
		trigger = {
			scope:child = {
				AND = {
					has_trait = sadistic
					NOT = { has_trait = just }
				}
			}
		}
		scope:child = {
			remove_trait = sadistic
			add_trait = just
		}
		reverse_add_opinion = {
    		modifier = pleased_opinion
    		target = scope:child
    		opinion = 10
    	}
		stress_impact = {
			just = medium_stress_loss
			arbitrary = minor_stress_gain
			sadistic = minor_stress_gain
		}
		ai_chance = {
			base = 100
			ai_value_modifier = {
				ai_honor = 0.5
			}
			modifier = {
				factor = 3
				has_trait = just
			}
		}
	}
	
	option = {
		name = child_personality.102.kindness_alt
	
		ai_chance = {
			base = 100
			ai_value_modifier = {
				ai_compassion = 0.5
			}
			modifier = {
				factor = 3
				has_trait = compassionate
			}
		}
		stress_impact = {
			base = child_trait_change_stress_penalty
			compassionate = medium_stress_loss
			callous = medium_stress_gain
			sadistic = medium_stress_gain
			arrogant = minor_stress_gain
		}
		
		random_list = {	
			40 = {
				modifier = {
					factor = 10
					scope:child = {
						OR = {
							has_trait = callous
							has_trait = sadistic
						}
					}
				}
				desc = child_personality.calc_tt
				send_interface_toast = {
					title = child_personality.calc_tt
					left_icon = scope:child
				}
			}
			60 = {
				desc = child_personality.open_tt
				modifier = {
					factor = 2
					root.diplomacy >= medium_skill_rating
				}
				if = {
					limit = {
						scope:child = {
							has_trait = callous
							has_trait = sadistic
						}
					}
					send_interface_toast = {
						title = child_personality.open_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = callous
							remove_trait = sadistic
						}
					}
				}
				else_if = {
					limit = {
						scope:child = {
							has_trait = compassionate
						}
					}
					send_interface_toast = {
						title = child_personality.open_tt
						left_icon = scope:child
						scope:child = {
							add_diplomacy_skill = 2
							add_stewardship_skill = -1
						}
					}
				}
				else = {
					send_interface_toast = {
						title = child_personality.open_tt
						left_icon = scope:child
						scope:child = {
							add_trait_force_tooltip = compassionate
						}
					}
				}
				
			}
		}
	}
	
	option = {
		name = child_personality.102.dismiss_alt
	
		ai_chance = {
			base = 100
			ai_value_modifier = {
				ai_compassion = -0.5
			}
			modifier = {
				factor = 3
				OR = {
					has_trait = callous
					has_trait = arrogant
				}
			}
		}
		
		stress_impact = {
			base = child_trait_change_stress_penalty
			compassionate = medium_stress_gain
			callous = medium_stress_loss
			arrogant = medium_stress_loss
		}
		
		random_list = {	
			20 = {
				desc = child_personality.keeps_just_tt
				send_interface_toast = {
					title = child_personality.keeps_just_tt
					left_icon = scope:child
				}
			}
			40 = { 
				desc = child_personality.err_tt
				modifier = {
					factor = 0.3
					scope:child = {
						has_trait = just
					}
				}
				if = {
					limit = {
						scope:child = {
							has_trait = just
						}
					}
					send_interface_toast = {
						title = child_personality.disdain_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = just
						}
					}
				}
				else = {
					send_interface_toast = {
						title = child_personality.disdain_tt
						left_icon = scope:child
						scope:child = {
							add_trait_force_tooltip = arbitrary
						}
					}
				}
			}
			40 = {
				desc = child_personality.disdain_tt
				modifier = {
					factor = 0.1
					scope:child = {
						has_trait = compassionate
					}
				}
				scope:child = {
					remove_trait = just
				}
				if = {
					limit = {
						scope:child = {
							has_trait = arrogant
							OR = {
								has_trait = callous
								has_trait = sadistic
							}
						}
					}
					send_interface_toast = {
						title = child_personality.disdain_tt
						left_icon = scope:child
						scope:child = {
							add_diplomacy_skill = -1
						}
					}
				}
				else_if = {
					limit = {
						scope:child = {
							has_trait = arrogant
							has_trait = compassionate
						}
					}
					send_interface_toast = {
						title = child_personality.disdain_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = compassionate
						}
					}
				}
				else_if = {
					limit = {
						scope:child = {
							has_trait = arrogant
						}
					}
					send_interface_toast = {
						title = child_personality.disdain_tt
						left_icon = scope:child
						scope:child = {
							add_trait_force_tooltip = callous
						}
					}
				}
				else = {
					send_interface_toast = {
						title = child_personality.disdain_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = humble
							add_trait_force_tooltip = arrogant
						}
					}
				}
			}
		}
	}
	
	
	option = {
		name = child_personality.102.punish
		ai_chance = {
			base = 100
			ai_value_modifier = {
				ai_honor = -1
			}
			modifier = {
				factor = 3
				OR = {
					has_trait = sadistic
					has_trait = wrathful
					has_trait = torturer
				}
			}
		}
		stress_impact = {
			base = child_trait_change_stress_penalty
			sadistic = major_stress_loss
			just = minor_stress_gain
			compassionate = medium_stress_gain
			wrathful = medium_stress_loss
		}
		
		random_list = {
			30 = {
				desc = child_personality.scared_tt
				modifier = {
					factor = 0
					OR = {
						scope:child = { has_trait = sadistic }
						scope:child = { has_trait = callous } 
					}
				}

				send_interface_toast = {
					title = child_personality.scared_tt
					left_icon = scope:child
					reverse_add_opinion = {
						modifier = scared_opinion
						target = scope:child
						opinion = -20	
					}
					scope:child = {
						add_diplomacy_skill = -1
					}
				}
			}
			40 = {
				desc = child_personality.err_tt
				scope:child = {
					remove_trait = just
				}
				send_interface_toast = {
					title = child_personality.err_tt
					left_icon = scope:child
					scope:child = {
						add_trait_force_tooltip = arbitrary
					}
				}
			}
			30 = {
				desc = child_personality.evil_tt
				modifier = {
					factor = 0
					scope:child = { has_trait = compassionate }
				}
				scope:child = {
					remove_trait = just
				}
				if = {
					limit = {
						scope:child = {
							has_trait = sadistic
						}
					}
					send_interface_toast = {
						title = child_personality.evil_tt
						left_icon = scope:child
						scope:child = {
							add_intrigue_skill = 1
							add_diplomacy_skill = -1
						}
					}
				}
				else = {
					send_interface_toast = {
						title = child_personality.evil_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = callous
							add_trait_force_tooltip = sadistic
						}
					}
				}
			}
		}
	
	}

}

#Child has demonstrated willfulness
child_personality.1024 = {
	type = character_event
	title = child_personality.1024.t
	desc = {
		desc = {
			first_valid = {
				triggered_desc = {
					trigger = {
						exists = scope:court_location
					}
					desc = child_personality.102.desc_court_location
				}
				desc = child_personality.102.desc
			}
		}
		desc = child_personality.102.will
		desc = {
			first_valid = {
				triggered_desc = {
					trigger = {
						scope:child = { has_trait = arbitrary }
					}
					desc = child_personality.102.will.a
				}
				triggered_desc = {
					trigger = {
						scope:child = { has_trait = compassionate }
					}
					desc = child_personality.102.will.b
				}
			}
		}
	}
	theme = education
	override_background = {
		reference = gallows
	}
	left_portrait = {
		character = scope:child
		animation = personality_irrational
	}
	right_portrait = {
		character = root
		animation = worry
	}

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

	option = {
		name = child_personality.102.confirm_arbitrary
		trigger = {
			scope:child = {
				has_trait = arbitrary
			}
		}
		custom_tooltip = child_personality.keeps_arbitrary_tt
		reverse_add_opinion = {
    		modifier = pleased_opinion
    		target = scope:child
    		opinion = 25
    	}
		stress_impact = {
			just = medium_stress_gain
			arbitrary = medium_stress_loss
		}
		ai_chance = {
			base = 100
			ai_value_modifier = {
				ai_rationality = -0.5
			}
			modifier = {
				factor = 3
				has_trait = arbitrary
			}
		}
	}
	
	option = {
		name = child_personality.102.confirm_arbitrary_alt
		trigger = {
			scope:child = {
				NOT = { has_trait = arbitrary }
			}
		}
		reverse_add_opinion = {
    		modifier = pleased_opinion
    		target = scope:child
    		opinion = 25
    	}
		stress_impact = {
			just = medium_stress_gain
			arbitrary = medium_stress_loss
		}

		scope:child = {
			add_trait = arbitrary
		}
		ai_chance = {
			base = 100
			ai_value_modifier = {
				ai_rationality = -0.5
			}
			modifier = {
				factor = 3
				has_trait = arbitrary
			}
		}
	}
	
	option = {
		name = child_personality.102.confirm_compassionate_alt
		trigger = {
			scope:child = {
				NOT = { has_trait = arbitrary }
			}
		}
		custom_tooltip = child_personality.keeps_compassionate_tt
		reverse_add_opinion = {
    		modifier = pleased_opinion
    		target = scope:child
    		opinion = 15
    	}
		stress_impact = {
			callous = minor_stress_gain
			sadistic = medium_stress_gain
			compassionate = medium_stress_loss
		}
		ai_chance = {
			base = 100
			ai_value_modifier = {
				ai_compassion = 0.5
			}
			modifier = {
				factor = 3
				has_trait = compassionate
			}
		}
	}
	
	option = {
		name = child_personality.102.kindness_alt_alt
		trigger = {
			scope:child = {
				has_trait = arbitrary
			}
		}
		ai_chance = {
			base = 100
			ai_value_modifier = {
				ai_compassion = 0.5
			}
			modifier = {
				factor = 3
				has_trait = compassionate
			}
		}
		stress_impact = {
			base = child_trait_change_stress_penalty
			compassionate = medium_stress_loss
			callous = medium_stress_gain
			sadistic = medium_stress_gain
			arrogant = minor_stress_gain
		}
		
		random_list = {	
			40 = {
				modifier = {
					factor = 10
					scope:child = {
						OR = {
							has_trait = callous
							has_trait = sadistic
						}
					}
				}
				desc = child_personality.calc_tt
				send_interface_toast = {
					title = child_personality.calc_tt
					left_icon = scope:child
				}
			}
			60 = {
				desc = child_personality.open_tt
				modifier = {
					factor = 2
					root.diplomacy >= medium_skill_rating
				}
				scope:child = {
					remove_trait = arbitrary
				}
				if = {
					limit = {
						scope:child = {
							has_trait = callous
							has_trait = sadistic
						}
					}
					send_interface_toast = {
						title = child_personality.open_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = callous
							remove_trait = sadistic
						}
					}
				}
				else_if = {
					limit = {
						scope:child = {
							has_trait = compassionate
						}
					}
					send_interface_toast = {
						title = child_personality.open_tt
						left_icon = scope:child
						scope:child = {
							add_diplomacy_skill = 1
						}
					}
				}
				else = {
					send_interface_toast = {
						title = child_personality.open_tt
						left_icon = scope:child
						scope:child = {
							add_trait_force_tooltip = compassionate
						}
					}
				}
			}
		}
	}
	
	option = {
		name = child_personality.102.reason_alt_alt
		trigger = {
			scope:child = {
				has_trait = arbitrary
			}
		} 
		ai_chance = {
			base = 100
			ai_value_modifier = {
				ai_rationality = 1
			}
			modifier = {
				factor = 3
				has_trait = just
			}
		}
		stress_impact = {
			base = child_trait_change_stress_penalty
			just = minor_stress_loss
			zealous = minor_stress_loss
			arbitrary = minor_stress_gain
		}
		
		random_list = {	
			50 = {
				desc = child_personality.stay_tt
				send_interface_toast = {
					title = child_personality.stay_tt
					left_icon = scope:child
				}
			}
			10 = {
				if = {
					limit = {
						AND = {
							root = {
								has_trait = zealous
							}
							scope:child = {
								has_trait = cynical
							}
						}
					}
					send_interface_toast = {
						title = child_personality.under_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = arbitrary
							remove_trait = cynical
						}
					}
				}
				else_if = {
					limit = {
						AND = {
							root = {
								has_trait = zealous
							}
							scope:child = {
								NOT = { has_trait = zealous }
							}
						}
					}
					send_interface_toast = {
						title = child_personality.under_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = arbitrary
							add_trait_force_tooltip = zealous
						}
					}
				}
				else_if = {
					limit = {
						root = {
							has_trait = zealous
						}
					}
					send_interface_toast = {
						title = child_personality.under_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = arbitrary
							add_learning_skill = 2
						}
					}
				}
				else = {
					send_interface_toast = {
						title = child_personality.under_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = arbitrary
							add_stewardship_skill = 1
						}
					}
				}
			}
			30 = {
				desc = child_personality.punder_tt
				if = {
					limit = {
						root = {
							has_trait = zealous
						}
					}
					send_interface_toast = {
						title = child_personality.punder_tt
						left_icon = scope:child
						scope:child = {
							add_learning_skill = 1
							add_diplomacy_skill = -1
						}
					}
				}
				else = {
					send_interface_toast = {
						title = child_personality.punder_tt
						left_icon = scope:child
						scope:child = {
							add_stewardship_skill = 1
							add_diplomacy_skill = -1
						}
					}
				}
			}
		}
	}
	
	option = {
		name = child_personality.102.reason_alt_alt
		trigger = {
			scope:child = {
				NOT = { has_trait = arbitrary }
			}
		} 
		ai_chance = {
			base = 100
			ai_value_modifier = {
				ai_rationality = 1
			}
			modifier = {
				factor = 3
				has_trait = just
			}
		}
		stress_impact = {
			base = child_trait_change_stress_penalty
			just = minor_stress_loss
			zealous = minor_stress_loss
			arbitrary = minor_stress_gain
		}
		
		random_list = {	
			50 = {
				desc = child_personality.stay_tt
				send_interface_toast = {
					title = child_personality.stay_tt
					left_icon = scope:child
				}
			}
			50 = {
				desc = child_personality.under_tt
				modifier = {
					factor = 0.1
					AND = {
						root = { has_trait = zealous }
						scope:child = { has_trait = cynical }
					}
				}	
				if = {
					limit = {
						AND = {
							root = {
								has_trait = zealous
							}
							scope:child = {
								has_trait = cynical
							}
						}
					}
					send_interface_toast = {
						title = child_personality.under_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = compassionate
							remove_trait = cynical
						}
					}
				}
				else_if = {
					limit = {
						AND = {
							root = {
								has_trait = zealous
							}
							scope:child = {
								NOT = { has_trait = zealous }
							}
						}
					}
					send_interface_toast = {
						title = child_personality.under_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = compassionate
							add_trait_force_tooltip = zealous
						}
					}
				}
				else_if = {
					limit = {
						root = {
							has_trait = zealous
						}
					}
					send_interface_toast = {
						title = child_personality.under_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = compassionate
							add_learning_skill = 2
						}
					}
				}
				else = {
					send_interface_toast = {
						title = child_personality.under_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = compassionate
							add_trait_force_tooltip = just
						}
					}
				}
			}
			50 = {
				desc = child_personality.punder_tt
				if = {
					limit = {
						root = {
							has_trait = zealous
						}
					}
					send_interface_toast = {
						title = child_personality.punder_tt
						left_icon = scope:child
						scope:child = {
							add_learning_skill = 1
							add_diplomacy_skill = -1
						}
					}
				}
				else = {
					send_interface_toast = {
						title = child_personality.punder_tt
						left_icon = scope:child
						scope:child = {
							add_stewardship_skill = 1
							add_diplomacy_skill = -1
						}
					}
				}
			}
		}
	}
	
	option = {
		name = child_personality.102.dismiss_alt_alt
		trigger = {
			scope:child = {
				has_trait = arbitrary
			}
		} 
		ai_chance = {
			base = 100
			ai_value_modifier = {
				ai_compassion = -0.5
			}
			modifier = {
				factor = 3
				OR = {
					has_trait = callous
					has_trait = arrogant
				}
			}
		}
		
		stress_impact = {
			base = child_trait_change_stress_penalty
			compassionate = medium_stress_gain
			callous = medium_stress_loss
			arrogant = medium_stress_loss
		}
		
		random_list = {	
			60 = {
				desc = child_personality.stay_tt
				send_interface_toast = {
					title = child_personality.keeps_arbitrary_tt
					left_icon = scope:child
				}
			}
			40 = {
				desc = child_personality.disdain_tt
				modifier = {
					factor = 0.1
					scope:child = {
						has_trait = compassionate
					}
				}
				scope:child = {
					remove_trait = arbitrary
				}
				if = {
					limit = {
						scope:child = {
							has_trait = arrogant
							OR = {
								has_trait = callous
								has_trait = sadistic
							}
						}
					}
					send_interface_toast = {
						title = child_personality.disdain_tt
						left_icon = scope:child
						scope:child = {
							add_diplomacy_skill = -1
						}
					}
				}
				else_if = {
					limit = {
						scope:child = {
							has_trait = arrogant
							has_trait = compassionate
						}
					}
					send_interface_toast = {
						title = child_personality.disdain_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = compassionate
						}
					}
				}
				else_if = {
					limit = {
						scope:child = {
							has_trait = arrogant
						}
					}
					send_interface_toast = {
						title = child_personality.disdain_tt
						left_icon = scope:child
						scope:child = {
							add_trait_force_tooltip = callous
						}
					}
				}
				else = {
					send_interface_toast = {
						title = child_personality.disdain_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = humble
							add_trait_force_tooltip = arrogant
						}
					}
				}
			}
		}
	}
	
	option = {
		name = child_personality.102.dismiss_alt_alt
		trigger = {
			scope:child = {
				NOT = { has_trait = arbitrary }
			}
		} 
		ai_chance = {
			base = 100
			ai_value_modifier = {
				ai_compassion = -0.5
			}
			modifier = {
				factor = 3
				OR = {
					has_trait = callous
					has_trait = arrogant
				}
			}
		}
		
		stress_impact = {
			base = child_trait_change_stress_penalty
			compassionate = medium_stress_gain
			callous = medium_stress_loss
			arrogant = medium_stress_loss
		}
		
		random_list = {	
			40 = {
				desc = child_personality.stay_tt
				send_interface_toast = {
					title = child_personality.stay_tt
					left_icon = scope:child
				}
			}
			30 = { 
				desc = child_personality.err_tt
				send_interface_toast = {
					title = child_personality.disdain_tt
					left_icon = scope:child
					scope:child = {
						remove_trait = compassionate
						add_trait_force_tooltip = arbitrary
					}
				}
			}
			10 = {
				desc = child_personality.disdain_tt
				scope:child = {
					remove_trait = compassionate
				}
				if = {
					limit = {
						scope:child = {
							has_trait = arrogant
						}
					}
					send_interface_toast = {
						title = child_personality.disdain_tt
						left_icon = scope:child
						scope:child = {
							add_trait_force_tooltip = callous
						}
					}
				}
				else = {
					send_interface_toast = {
						title = child_personality.disdain_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = humble
							add_trait_force_tooltip = arrogant
						}
					}
				}
			}
		}
	}
	
	option = {
		name = child_personality.102.crit_alt
		trigger = {
			scope:child = {
				NOT = { has_trait = arbitrary }
			}
		} 
		ai_chance = {
			base = 100
			ai_value_modifier = {
				ai_compassion = -1
			}
			modifier = {
				factor = 3
				OR = {
					has_trait = callous
					has_trait = sadistic
				}
			}
		}
		
		reverse_add_opinion = {
    		modifier = disappointed_opinion
    		target = scope:child
    		opinion = -15
    	}
		
		stress_impact = {
			base = child_trait_change_stress_penalty
			compassionate = medium_stress_gain
			callous = medium_stress_loss
			sadistic = medium_stress_loss
			arrogant = minor_stress_loss
		}
		
		random_list = {	
			25 = {
				modifier = {
					factor = 4
					scope:child = { has_trait = stubborn }
				}
				desc = child_personality.stay_tt
				send_interface_toast = {
					title = child_personality.stay_tt
					left_icon = scope:child
				}
			}
			50 = { 
				desc = child_personality.apathy_tt
				modifier = {
					factor = 2
					scope:child = { has_trait = humble }
				}
				send_interface_toast = {
					title = child_personality.apathy_tt
					left_icon = scope:child
					scope:child = {
						remove_trait = compassionate
						add_trait_force_tooltip = callous
					}
				}
			}
			50 = {
				desc = child_personality.disdain_tt
				scope:child = {
					remove_trait = compassionate
				}
				if = {
					limit = {
						scope:child = {
							has_trait = arrogant
							OR = {
								has_trait = wrathful
								has_trait = calm
							}
						}
					}
					send_interface_toast = {
						title = child_personality.disdain_tt
						left_icon = scope:child
						scope:child = {
							add_diplomacy_skill = -1
						}
					}
				}
				else_if = {
					limit = {
						scope:child = {
							has_trait = arrogant
						}
					}
					send_interface_toast = {
						title = child_personality.disdain_tt
						left_icon = scope:child
						scope:child = {
							add_trait_force_tooltip = wrathful
						}
					}
				}
				else = {
					send_interface_toast = {
						title = child_personality.disdain_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = humble
							add_trait_force_tooltip = arrogant
						}
					}
				}
			}
		}
	}
}

#Child demonstrated sadism
child_personality.1025 = {
	type = character_event
	title = child_personality.1025.t
	desc = {
		desc = {
			first_valid = {
				triggered_desc = {
					trigger = {
						exists = scope:court_location
					}
					desc = child_personality.102.desc_court_location
				}
				desc = child_personality.102.desc
			}
		}
		desc = child_personality.102.sadistic
	}
	theme = education
	override_background = {
		reference = gallows
	}
	left_portrait = {
		character = scope:child
		animation = schadenfreude
	}
	right_portrait = {
		character = root
		animation = worry
	}

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

	option = {
		name = child_personality.102.confirm_sadistic
		custom_tooltip = child_personality.keeps_sadistic_tt
		reverse_add_opinion = {
    		modifier = pleased_opinion
    		target = scope:child
    		opinion = 25
    	}
		stress_impact = {
			compassionate = major_stress_gain
			callous = minor_stress_gain
			just = minor_stress_gain
			sadistic = medium_stress_loss
		}
		ai_chance = {
			base = 100
			ai_value_modifier = {
				ai_compassion = -0.5
			}
			modifier = {
				factor = 3
				has_trait = sadistic
			}
		}
	}
	
	option = {
		name = child_personality.102.dismiss
	
		ai_chance = {
			base = 100
			ai_value_modifier = {
				ai_compassion = -0.5
			}
			modifier = {
				factor = 3
				OR = {
					has_trait = callous
					has_trait = arrogant
				}
			}
		}
		
		stress_impact = {
			base = child_trait_change_stress_penalty
			compassionate = medium_stress_gain
			callous = medium_stress_loss
			arrogant = medium_stress_loss
		}
		
		random_list = {	
			60 = {
				desc = child_personality.keeps_sadistic_tt
				send_interface_toast = {
					title = child_personality.keeps_sadistic_tt
					left_icon = scope:child
				}
			}
			40 = { 
				desc = child_personality.think_tt
				modifier = {
					factor = 3
					root.diplomacy >= medium_skill_rating
				}
				send_interface_toast = {
					title = child_personality.think_tt
					left_icon = scope:child
					scope:child = {
						remove_trait = sadistic
						add_trait_force_tooltip = callous
					}
				}
			}
		}
	}
	
	option = {
		name = child_personality.102.reason_alt_alt_alt
		ai_chance = {
			base = 100
			ai_value_modifier = {
				ai_rationality = 1
			}
			modifier = {
				factor = 3
				has_trait = just
			}
		}
		stress_impact = {
			base = child_trait_change_stress_penalty
			just = minor_stress_loss
			zealous = minor_stress_loss
			arbitrary = minor_stress_gain
		}
		
		random_list = {	
			50 = {
				desc = child_personality.stay_tt
				send_interface_toast = {
					title = child_personality.stay_tt
					left_icon = scope:child
				}
			}
			50 = { 
				desc = child_personality.under_tt
				modifier = {
					factor = 0.1
					OR = {
						AND = {
							root = { has_trait = zealous }
							scope:child = { has_trait = cynical }
						}
						scope:child = {
							has_trait = arbitrary
						}
					}
					
				}
				
				scope:child = {
					remove_trait = sadistic
				}

				if = {
					limit = {
						AND = {
							root = {
								has_trait = zealous
							}
							scope:child = {
								has_trait = cynical
							}
						}
					}
					send_interface_toast = {
						title = child_personality.under_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = cynical
							add_trait_force_tooltip = callous
						}
					}
				}
				else_if = {
					limit = {
						AND = {
							root = {
								has_trait = zealous
							}
							scope:child = {
								NOT = { has_trait = zealous }
							}
						}
					}
					send_interface_toast = {
						title = child_personality.under_tt
						left_icon = scope:child
						scope:child = {
							add_trait_force_tooltip = zealous
							add_trait_force_tooltip = callous
						}
					}
				}
				else_if = {
					limit = {
						root = {
							has_trait = zealous
						}
					}
					send_interface_toast = {
						title = child_personality.under_tt
						left_icon = scope:child
						scope:child = {
							add_learning_skill = 2
							add_trait_force_tooltip = callous
						}
					}
				}
				else_if = {
					limit = {
						scope:child = {
							has_trait = arbitrary
						}
					}
					send_interface_toast = {
						title = child_personality.under_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = arbitrary
							add_stewardship_skill = 1
							add_trait_force_tooltip = callous
						}
					}
				}
				else_if = {
					limit = {
						scope:child = {
							has_trait = just
						}
					}
					send_interface_toast = {
						title = child_personality.under_tt
						left_icon = scope:child
						scope:child = {
							add_stewardship_skill = 2
							add_trait_force_tooltip = callous
						}
					}
				}
				else = {
					send_interface_toast = {
						title = child_personality.under_tt
						left_icon = scope:child
						scope:child = {
							add_trait_force_tooltip = just
							add_trait_force_tooltip = callous
						}
					}
				}
			}
			50 = {
				desc = child_personality.punder_tt
				scope:child = {
					remove_trait = sadistic
					add_trait_force_tooltip = callous
				}
				if = {
					limit = {
						root = {
							has_trait = zealous
						}
					}
					send_interface_toast = {
						title = child_personality.punder_tt
						left_icon = scope:child
						scope:child = {
							add_learning_skill = 1
							add_diplomacy_skill = -1
						}
					}
				}
				else = {
					send_interface_toast = {
						title = child_personality.punder_tt
						left_icon = scope:child
						scope:child = {
							add_stewardship_skill = 1
							add_diplomacy_skill = -1
						}
					}
				}
			}
		}
	}
	
	option = {
		name = child_personality.102.kindness_alt_alt_alt
	
		ai_chance = {
			base = 100
			ai_value_modifier = {
				ai_compassion = 0.5
			}
			modifier = {
				factor = 3
				has_trait = compassionate
			}
		}
		stress_impact = {
			base = child_trait_change_stress_penalty
			compassionate = medium_stress_loss
			callous = medium_stress_gain
			sadistic = medium_stress_gain
			arrogant = minor_stress_gain
		}
		
		random_list = {	
			30 = {
				desc = child_personality.stay_tt
				send_interface_toast = {
					title = child_personality.stay_tt
					left_icon = scope:child
				}
			}
			70 = { 
				desc = child_personality.open_tt
				modifier = {
					factor = 2
					root.diplomacy >= medium_skill_rating
				}
				send_interface_toast = {
					title = child_personality.open_tt
					left_icon = scope:child
					scope:child = {
						remove_trait = sadistic
					}
				}
			}	
		}
	}
	
}


#Responses to gift event
#0003

#Child has demonstrated honesty
child_personality.1031 = {
	type = character_event
	title = child_personality.1031.t
	desc = {
		desc = child_personality.103.desc
		desc = child_personality.1031.desc
	}
	theme = education
	left_portrait = {
		character = scope:child
		animation = personality_honorable
	}
	
	option = {
		name = child_personality.103.confirm_honest
		custom_tooltip = child_personality.keeps_honest_tt
		reverse_add_opinion = {
    		modifier = pleased_opinion
    		target = scope:child
    		opinion = 15
    	}
		stress_impact = {
			honest = medium_stress_loss
			deceitful = medium_stress_gain
		}
		ai_chance = {
			base = 100
			modifier = {
				factor = 3
				has_trait = honest
			}
			modifier = {
				factor = 0.5
				has_trait = deceitful
			}
		}
	}
	
	option = {
		name = child_personality.103.lie
		
		ai_chance = {
			base = 100
			modifier = {
				factor = 3
				has_trait = honest
			}
			modifier = {
				factor = 0.5
				has_trait = deceitful
			}
		}
		
		stress_impact = {
			base = child_trait_change_stress_penalty
			honest = medium_stress_gain
			deceitful = medium_stress_loss
			cynical = medium_stress_loss
		}
		
		reverse_add_opinion = {
			modifier = disappointed_opinion
			target = scope:child
			opinion = -10
		}
		
		random_list = {
			25 = {
				modifier = {
					factor = 3
					root.diplomacy < medium_skill_rating
				}
				desc = child_personality.keeps_honest_tt
				send_interface_toast = {
					title = child_personality.keeps_honest_tt
					left_icon = scope:child
				}
			}
			75 = { 
				desc = child_personality.distrust_tt
				scope:child = {
					remove_trait = honest
				}
				modifier = {
					factor = 2
					scope:child = {
						OR = {
							has_trait = cynical
							has_trait = paranoid
						}
					}
				}
				if = {
					limit = {
						scope:child = {
							NOR = { 
								has_trait = zealous
								has_trait = cynical
							}
						}
					}
					send_interface_toast = {
						title = child_personality.distrust_tt
						left_icon = scope:child
						scope:child = {
							add_trait_force_tooltip = cynical
						}
					}
				}
				else_if = {
					limit = {
						scope:child = {
							has_trait = cynical
						}
					}
					send_interface_toast = {
						title = child_personality.distrust_tt
						left_icon = scope:child
						scope:child = {
							add_trait_force_tooltip = deceitful
						}
					}
				}
				else = {
					send_interface_toast = {
						title = child_personality.distrust_tt
						left_icon = scope:child
						scope:child = {
							add_intrigue_skill = 1
							add_diplomacy_skill = -2
						}
					}
				}
				
			}
			100 = { 
				desc = child_personality.mask_tt
				
				send_interface_toast = {
					title = child_personality.mask_tt
					left_icon = scope:child
					scope:child = {
						remove_trait = honest
					}
				}
			}	
		}
	}
	
	option = {
		name = child_personality.103.punish
		
		ai_chance = {
			base = 100
			ai_value_modifier = {
				ai_honor = -1
			}
			modifier = {
				factor = 3
				OR = {
					has_trait = wrathful
					has_trait = sadistic
				}
			}
			modifier = {
				factor = 0
				OR = {
					has_trait = calm
					has_trait = compassionate
				}
			}
		}
		
		stress_impact = {
			wrathful = medium_stress_loss
			sadistic = medium_stress_loss
			calm = medium_stress_gain
			compassionate = medium_stress_gain
		}
		
		add_tyranny = medium_tyranny_gain
		
		random_list = {
			100 = { 
				desc = child_personality.scared_tt
				modifier = {
					factor = 0
					scope:child = {
						OR = {
							has_trait = wrathful
							has_trait = sadistic
							has_trait = callous
						}
					}
				}
				send_interface_toast = {
					title = child_personality.scared_tt
					left_icon = scope:child
					reverse_add_opinion = {
						modifier = scared_opinion
						target = scope:child
						opinion = -20
					}
					scope:child = {
						remove_trait = honest
					}
				}
			}
			30 = {
				desc = child_personality.evil_tt
				modifier = {
					factor = 0
					scope:child = {
						OR = {
							has_trait = compassionate
						}
					}
				}
				reverse_add_opinion = {
					modifier = pleased_opinion
					target = scope:child
					opinion = 20
				}
				if = {
					limit = {
						scope:child = {
							NOT = { 
								has_trait = sadistic
							}
						}
					}
					send_interface_toast = {
						title = child_personality.evil_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = callous
							add_trait_force_tooltip = sadistic
						}
					}
				}
				else_if = {
					limit = {
						scope:child = {
							NOT = { 
								has_trait = wrathful
							}
						}
					}
					scope:child = {
						remove_trait = calm
					}
					send_interface_toast = {
						title = child_personality.evil_tt
						left_icon = scope:child
						scope:child = {
							add_trait_force_tooltip = wrathful
						}
					}
				}
				else = {
					send_interface_toast = {
						title = child_personality.evil_tt
						left_icon = scope:child
						scope:child = {
							add_intrigue_skill = 1
							add_diplomacy_skill = -2
						}
					}
				}
			}	
		}
	}
	
	option = {
		name = child_personality.103.keeper
		ai_chance = {
			base = 100
			ai_value_modifier = {
				ai_greed = 1
			}
			modifier = {
				factor = 3
				has_trait = greedy
			}
		}
		
		stress_impact = {
			base = child_trait_change_stress_penalty
			greedy = medium_stress_loss
			generous = minor_stress_gain
			patient = minor_stress_loss
			impatient = minor_stress_loss
		}
		
		
		random_list = {
			30 = {
				desc = child_personality.keeps_honest_tt
				send_interface_toast = {
					title = child_personality.keeps_honest_tt
					left_icon = scope:child
				}
			}
			50 = { 
				desc = child_personality.under_tt
				modifier = {
					factor = 0.2
					scope:child = {
						OR = {
							has_trait = impatient
							has_trait = generous
						}
					}
				}
				scope:child = {
					remove_trait = honest
				}

				if = {
					limit = {
						AND = {
							root = {
								has_trait = patient
							}
							scope:child = {
								has_trait = impatient
							}
						}
					}
					send_interface_toast = {
						title = child_personality.under_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = impatient
						}
					}
				}
				else_if = {
					limit = {
						AND = {
							root = {
								has_trait = patient
							}
							scope:child = {
								NOT = { has_trait = patient }
							}
						}
					}
					send_interface_toast = {
						title = child_personality.under_tt
						left_icon = scope:child
						scope:child = {
							add_trait_force_tooltip = patient
						}
					}
				}
				else_if = {
					limit = {
						root = {
							has_trait = patient
						}
					}
					send_interface_toast = {
						title = child_personality.under_tt
						left_icon = scope:child
						scope:child = {
							add_diplomacy_skill = 2
						}
					}
				}
				else_if = {
					limit = {
						scope:child = {
							has_trait = generous
						}
					}
					send_interface_toast = {
						title = child_personality.under_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = generous
							add_stewardship_skill = 2
						}
					}
				}
				else_if = {
					limit = {
						scope:child = {
							has_trait = greedy
						}
					}
					send_interface_toast = {
						title = child_personality.under_tt
						left_icon = scope:child
						scope:child = {
							add_stewardship_skill = 1
						}
					}
				}
				else = {
					send_interface_toast = {
						title = child_personality.under_tt
						left_icon = scope:child
						scope:child = {
							add_trait_force_tooltip = greedy
						}
					}
				}
			}
			50 = {
				desc = child_personality.punder_tt
				if = {
					limit = {
						root = {
							has_trait = patient
						}
					}
					send_interface_toast = {
						title = child_personality.punder_tt
						left_icon = scope:child
						scope:child = {
							add_diplomacy_skill = 1
							add_stewardship_skill = -1
						}
					}
				}
				else = {
					send_interface_toast = {
						title = child_personality.punder_tt
						left_icon = scope:child
						scope:child = {
							add_diplomacy_skill = -1
							add_stewardship_skill = 1
						}
					}
				}
			}
		}
	}
}


#Child has demonstrated standard lies
child_personality.1032 = {
	type = character_event
	title = child_personality.1032.t
	desc = {
		desc = child_personality.103.desc
		desc = child_personality.1032.desc
	}
	theme = education
	left_portrait = {
		character = scope:child
		animation = boredom
	}
	
	option = {
		name = child_personality.103.confirm_deceitful
		custom_tooltip = child_personality.stay_tt
		reverse_add_opinion = {
    		modifier = pleased_opinion
    		target = scope:child
    		opinion = 15
    	}
		stress_impact = {
			honest = medium_stress_gain
			deceitful = medium_stress_loss
		}
		ai_chance = {
			base = 100
			modifier = {
				factor = 3
				has_trait = deceitful
			}
			modifier = {
				factor = 0.5
				has_trait = honest
			}
		}
	}
	
	option = {
		name = child_personality.103.assert
		
		ai_chance = {
			base = 100
			modifier = {
				factor = 3
				has_trait = honest
			}
			modifier = {
				factor = 0.5
				has_trait = deceitful
			}
		}
		
		stress_impact = {
			base = child_trait_change_stress_penalty
			honest = medium_stress_loss
			deceitful = medium_stress_gain
			impatient = minor_stress_loss
			arbitrary = minor_stress_loss
		}
		
		reverse_add_opinion = {
			modifier = pleased_opinion
			target = scope:child
			opinion = 15
		}
		
		random_list = {
			50 = {
				modifier = {
					factor = 0
					scope:child = {
						NOT = { has_trait = deceitful }
					}
				}
				desc = child_personality.stay_tt
				send_interface_toast = {
					title = child_personality.stay_tt
					left_icon = scope:child
				}
			}
			50 = {
				desc = child_personality.err_tt
				scope:child = {
					remove_trait = deceitful
				}
				modifier = {
					factor = 2
					scope:child = {
						OR = {
							has_trait = arbitrary
							has_trait = impatient
						}
					}
				}
				if = {
					limit = {
						scope:child = {
							NOR = { 
								has_trait = arbitrary
								has_trait = just
							}
						}
					}
					send_interface_toast = {
						title = child_personality.err_tt
						left_icon = scope:child
						scope:child = {
							add_trait_force_tooltip = arbitrary
						}
					}
				}
				else_if = {
					limit = {
						scope:child = {
							has_trait = just
						}
					}
					scope:child = {
						remove_trait = patient
					}
					send_interface_toast = {
						title = child_personality.err_tt
						left_icon = scope:child
						scope:child = {
							add_trait_force_tooltip = impatient
						}
					}
				}
				else = {
					send_interface_toast = {
						title = child_personality.distrust_tt
						left_icon = scope:child
						scope:child = {
							add_diplomacy_skill = 1
							add_learning_skill = -2
						}
					}
				}
				
			}
			100 = { 
				desc = child_personality.truth_tt
				modifier = {
					factor = 0.5
					scope:child = {
						has_trait = deceitful
					}
				}
				modifier = {
					factor = 2
					root.diplomacy >= medium_skill_rating
				}
				if = {
					limit = {
						scope:child = {
							has_trait = deceitful
						}
					}
					send_interface_toast = {
						title = child_personality.truth_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = deceitful
						}
					}
				}
				else = {
					send_interface_toast = {
						title = child_personality.truth_tt
						left_icon = scope:child
						scope:child = {
							add_trait_force_tooltip = honest
						}
					}
				}
			}	
		}
	}
	
	option = {
		name = child_personality.103.punish
		
		ai_chance = {
			base = 100
			ai_value_modifier = {
				ai_honor = -1
			}
			modifier = {
				factor = 3
				OR = {
					has_trait = wrathful
					has_trait = sadistic
				}
			}
			modifier = {
				factor = 0
				OR = {
					has_trait = calm
					has_trait = compassionate
				}
			}
		}
		
		stress_impact = {
			wrathful = medium_stress_loss
			sadistic = medium_stress_loss
			calm = medium_stress_gain
			compassionate = medium_stress_gain
		}
		
		add_tyranny = medium_tyranny_gain
		
		random_list = {
			100 = { 
				desc = child_personality.scared_tt
				modifier = {
					factor = 0
					scope:child = {
						OR = {
							has_trait = wrathful
							has_trait = sadistic
							has_trait = callous
						}
					}
				}
				send_interface_toast = {
					title = child_personality.scared_tt
					left_icon = scope:child
					reverse_add_opinion = {
						modifier = scared_opinion
						target = scope:child
						opinion = -20
					}
					scope:child = {
						add_trait = deceitful
					}
				}
			}
			30 = {
				desc = child_personality.evil_tt
				modifier = {
					factor = 0
					scope:child = {
						OR = {
							has_trait = compassionate
						}
					}
				}
				reverse_add_opinion = {
					modifier = pleased_opinion
					target = scope:child
					opinion = 20
				}
				if = {
					limit = {
						scope:child = {
							NOT = { 
								has_trait = sadistic
							}
						}
					}
					send_interface_toast = {
						title = child_personality.evil_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = callous
							add_trait_force_tooltip = sadistic
						}
					}
				}
				else_if = {
					limit = {
						scope:child = {
							NOT = { 
								has_trait = wrathful
							}
						}
					}
					scope:child = {
						remove_trait = calm
					}
					send_interface_toast = {
						title = child_personality.evil_tt
						left_icon = scope:child
						scope:child = {
							add_trait_force_tooltip = wrathful
						}
					}
				}
				else = {
					send_interface_toast = {
						title = child_personality.evil_tt
						left_icon = scope:child
						scope:child = {
							add_intrigue_skill = 1
							add_diplomacy_skill = -2
						}
					}
				}
			}	
		}
	}
	
	option = {
		name = child_personality.103.use
		ai_chance = {
			base = 100
			ai_value_modifier = {
				ai_energy = 0.5
			}
			modifier = {
				factor = 3
				has_trait = diligent
			}
		}
		
		stress_impact = {
			base = child_trait_change_stress_penalty
			lazy = medium_stress_loss
			diligent = minor_stress_gain
			patient = minor_stress_loss
			impatient = minor_stress_gain
		}
		
		
		random_list = {
			30 = {
				desc = child_personality.stay_tt
				send_interface_toast = {
					title = child_personality.stay_tt
					left_icon = scope:child
				}
			}
			50 = { 
				desc = child_personality.under_tt
				modifier = {
					factor = 0.2
					scope:child = {
						OR = {
							has_trait = lazy
							has_trait = greedy
						}
					}
				}
				scope:child = {
					remove_trait = deceitful
				}

				if = {
					limit = {
						AND = {
							root = {
								has_trait = generous
							}
							scope:child = {
								has_trait = greedy
							}
						}
					}
					send_interface_toast = {
						title = child_personality.under_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = greedy
						}
					}
				}
				else_if = {
					limit = {
						AND = {
							root = {
								has_trait = generous
							}
							scope:child = {
								NOT = { has_trait = greedy }
							}
						}
					}
					send_interface_toast = {
						title = child_personality.under_tt
						left_icon = scope:child
						scope:child = {
							add_trait_force_tooltip = generous
						}
					}
				}
				else_if = {
					limit = {
						root = {
							has_trait = generous
						}
					}
					send_interface_toast = {
						title = child_personality.under_tt
						left_icon = scope:child
						scope:child = {
							add_diplomacy_skill = 2
						}
					}
				}
				else_if = {
					limit = {
						scope:child = {
							has_trait = lazy
						}
					}
					send_interface_toast = {
						title = child_personality.under_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = lazy
							add_stewardship_skill = 2
						}
					}
				}
				else_if = {
					limit = {
						scope:child = {
							has_trait = diligent
						}
					}
					send_interface_toast = {
						title = child_personality.under_tt
						left_icon = scope:child
						scope:child = {
							add_stewardship_skill = 1
						}
					}
				}
				else = {
					send_interface_toast = {
						title = child_personality.under_tt
						left_icon = scope:child
						scope:child = {
							add_trait_force_tooltip = diligent
						}
					}
				}
			}
			50 = {
				desc = child_personality.punder_tt
				if = {
					limit = {
						root = {
							has_trait = generous
						}
					}
					send_interface_toast = {
						title = child_personality.punder_tt
						left_icon = scope:child
						scope:child = {
							add_diplomacy_skill = 1
							add_stewardship_skill = -1
						}
					}
				}
				else = {
					send_interface_toast = {
						title = child_personality.punder_tt
						left_icon = scope:child
						scope:child = {
							add_diplomacy_skill = -1
							add_stewardship_skill = 1
						}
					}
				}
			}
		}
	}
}
	

#Child has demonstrated greed
child_personality.1033 = {
	type = character_event
	title = child_personality.1033.t
	desc = {
		desc = child_personality.103.desc
		desc = child_personality.1033.desc
	}
	theme = education
	left_portrait = {
		character = scope:child
		animation = personality_greedy
	}
	
	option = {
		name = child_personality.103.confirm_greedy
		custom_tooltip = child_personality.keeps_greedy_tt
		reverse_add_opinion = {
    		modifier = pleased_opinion
    		target = scope:child
    		opinion = 15
    	}
		stress_impact = {
			generous = medium_stress_gain
			greedy = medium_stress_loss
			just = minor_stress_gain
			arbitrary = minor_stress_loss
		}
		ai_chance = {
			base = 100
			ai_value_modifier = {
				ai_greed = 0.5
			}
			modifier = {
				factor = 3
				has_trait = greedy
			}
		}
	}
	
	option = {
		name = child_personality.103.nice
		
		ai_chance = {
			base = 100
			modifier = {
				factor = 3
				OR = {
					has_trait = generous
					has_trait = just
				}
			}
			ai_value_modifier = {
				ai_greed = -0.5
				ai_honor = 0.5
			}
		}
		
		stress_impact = {
			base = child_trait_change_stress_penalty
			generous = medium_stress_loss
			greedy = medium_stress_gain
			just = minor_stress_loss
			arbitrary = minor_stress_gain
		}
		
		
		random_list = {
			50 = {
				modifier = {
					factor = 0.4
					root.diplomacy >= medium_skill_rating
				}
				desc = child_personality.keeps_greedy_tt
				send_interface_toast = {
					title = child_personality.keeps_greedy_tt
					left_icon = scope:child
				}
			}
			50 = {
				desc = child_personality.under_tt
				modifier = {
					factor = 0.2
					scope:child = {
						OR = {
							has_trait = arbitrary
							root = {
								has_trait = generous
							}
						}
					}
				}
				scope:child = {
					remove_trait = greedy
				}

				if = {
					limit = {
						AND = {
							root = {
								has_trait = generous
							}
						}
					}
					send_interface_toast = {
						title = child_personality.under_tt
						left_icon = scope:child
						scope:child = {
							add_trait_force_tooltip = generous
						}
					}
				}
				else_if = {
					limit = {
						scope:child = {
							has_trait = arbitrary
						}
					}
					send_interface_toast = {
						title = child_personality.under_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = arbitrary
							add_stewardship_skill = 1
						}
					}
				}
				else_if = {
					limit = {
						scope:child = {
							has_trait = just
						}
					}
					send_interface_toast = {
						title = child_personality.under_tt
						left_icon = scope:child
						scope:child = {
							add_stewardship_skill = 2
						}
					}
				}
				else = {
					send_interface_toast = {
						title = child_personality.under_tt
						left_icon = scope:child
						scope:child = {
							add_trait_force_tooltip = just
						}
					}
				}
			}
			50 = {
				desc = child_personality.punder_tt
				if = {
					limit = {
						root = {
							has_trait = generous
						}
					}
					send_interface_toast = {
						title = child_personality.punder_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = greedy
							add_diplomacy_skill = 1
						}
					}
				}
				else = {
					send_interface_toast = {
						title = child_personality.punder_tt
						left_icon = scope:child
						scope:child = {
							add_stewardship_skill = 1
						}
					}
				}
			}	
		}
	}
	
	option = {
		name = child_personality.103.reverse
		
		ai_chance = {
			base = 100
			ai_value_modifier = {
				ai_honor = -0.5
				ai_compassion = -0.5
			}
			modifier = {
				factor = 3
				OR = {
					has_trait = wrathful
					has_trait = sadistic
				}
			}
			modifier = {
				factor = 0
				OR = {
					has_trait = calm
					has_trait = compassionate
				}
			}
			modifier = {
				factor = 0.5
				has_trait = arrogant
			}
		}
		
		stress_impact = {
			wrathful = medium_stress_loss
			generous = minor_stress_loss
			greedy = minor_stress_gain
		}
		
		reverse_add_opinion = {
			modifier = disappointed_opinion
			target = scope:child
			opinion = -30
		}
		
		random_list = {
			100 = { 
				desc = child_personality.stay_tt
				send_interface_toast = {
					title = child_personality.stay_tt
					left_icon = scope:child
				}
			}
			30 = {
				desc = child_personality.hardened_tt
				modifier = {
					factor = 0.1
					scope:child = {
						OR = {
							has_trait = stubborn
						}
					}
				}
				if = {
					limit = {
						scope:child = {
							NOR = {
								has_trait = wrathful
								has_trait = calm
							}
						}
					}
					send_interface_toast = {
						title = child_personality.hardened_tt
						left_icon = scope:child
						scope:child = {
							add_trait_force_tooltip = wrathful
						}
					}
				}
				else_if = {
					limit = {
						scope:child = {
							NOT = { 
								has_trait = wrathful
							}
						}
					}
					send_interface_toast = {
						title = child_personality.hardened_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = calm
						}
					}
				}
				else = {
					send_interface_toast = {
						title = child_personality.hardened_tt
						left_icon = scope:child
						scope:child = {
							add_diplomacy_skill = 1
							add_stewardship_skill = -2
						}
					}
				}
			}	
		}
	}
}

#Child has demonstrated generosity
child_personality.1034 = {
	type = character_event
	title = child_personality.1034.t
	desc = {
		desc = child_personality.103.desc
		desc = child_personality.1034.desc
	}
	theme = education
	left_portrait = {
		character = scope:child
		animation = personality_content
	}
	
	option = {
		name = child_personality.103.confirm_generous
		custom_tooltip = child_personality.keeps_generous_tt
		reverse_add_opinion = {
    		modifier = pleased_opinion
    		target = scope:child
    		opinion = 15
    	}
		stress_impact = {
			generous = medium_stress_loss
			greedy = medium_stress_gain
		}
		ai_chance = {
			base = 100
			ai_value_modifier = {
				ai_greed = -0.5
			}
			modifier = {
				factor = 3
				has_trait = generous
			}
		}
	}
	
	option = {
		name = child_personality.103.master
		
		ai_chance = {
			base = 100
			modifier = {
				factor = 3
				OR = {
					has_trait = arbitrary
					has_trait = arrogant
				}
			}
			ai_value_modifier = {
				ai_honor = -0.2
			}
		}
		
		stress_impact = {
			base = child_trait_change_stress_penalty
			generous = medium_stress_gain
			arrogant = medium_stress_loss
			just = minor_stress_gain
			arbitrary = minor_stress_loss
		}
		
		
		random_list = {
			50 = {
				modifier = {
					factor = 0.4
					root.diplomacy >= medium_skill_rating
				}
				desc = child_personality.keeps_generous_tt
				send_interface_toast = {
					title = child_personality.keeps_generous_tt
					left_icon = scope:child
				}
			}
			50 = {
				desc = child_personality.under_tt
				modifier = {
					factor = 0.2
					scope:child = {
						has_trait = humble
					}
				}
				scope:child = {
					remove_trait = generous
				}

				if = {
					limit = {
						scope:child = {
							NOR = {
								has_trait = just
								has_trait = arbitrary
							}
						}
					}
					send_interface_toast = {
						title = child_personality.under_tt
						left_icon = scope:child
						scope:child = {
							add_trait_force_tooltip = arbitrary
						}
					}
				}
				else_if = {
					limit = {
						scope:child = {
							has_trait = just
						}
					}
					send_interface_toast = {
						title = child_personality.under_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = just
							add_stewardship_skill = 2
						}
					}
				}
				else = {
					scope:child = {
						remove_trait = humble
					}
					send_interface_toast = {
						title = child_personality.under_tt
						left_icon = scope:child
						scope:child = {
							add_trait_force_tooltip = arrogant
						}
					}
				}
			}
			50 = {
				desc = child_personality.punder_tt
				if = {
					limit = {
						root = {
							has_trait = arrogant
						}
					}
					send_interface_toast = {
						title = child_personality.punder_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = generous
							add_diplomacy_skill = 1
						}
					}
				}
				else = {
					send_interface_toast = {
						title = child_personality.punder_tt
						left_icon = scope:child
						scope:child = {
							add_stewardship_skill = 1
						}
					}
				}
			}	
		}
	}
	
	option = {
		name = child_personality.103.reverse_alt
		
		ai_chance = {
			base = 100
			ai_value_modifier = {
				ai_honor = -0.5
				ai_compassion = -0.5
			}
			modifier = {
				factor = 3
				OR = {
					has_trait = wrathful
					has_trait = sadistic
				}
			}
			modifier = {
				factor = 0
				OR = {
					has_trait = calm
					has_trait = compassionate
				}
			}
			modifier = {
				factor = 0
				has_trait = arrogant
			}
		}
		
		stress_impact = {
			wrathful = medium_stress_loss
			generous = medium_stress_gain
			greedy = minor_stress_loss
		}
		
		reverse_add_opinion = {
			modifier = disappointed_opinion
			target = scope:child
			opinion = -30
		}
		
		random_list = {
			100 = { 
				desc = child_personality.stay_tt
				send_interface_toast = {
					title = child_personality.stay_tt
					left_icon = scope:child
				}
			}
			30 = {
				desc = child_personality.hardened_tt
				modifier = {
					factor = 0.1
					scope:child = {
						OR = {
							has_trait = stubborn
						}
					}
				}
				scope:child = {
					remove_trait = generous
				}
				if = {
					limit = {
						scope:child = {
							NOR = {
								has_trait = wrathful
								has_trait = calm
							}
						}
					}
					send_interface_toast = {
						title = child_personality.hardened_tt
						left_icon = scope:child
						scope:child = {
							add_trait_force_tooltip = wrathful
						}
					}
				}
				else_if = {
					limit = {
						scope:child = {
							NOT = { 
								has_trait = wrathful
							}
						}
					}
					send_interface_toast = {
						title = child_personality.hardened_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = calm
						}
					}
				}
				else = {
					send_interface_toast = {
						title = child_personality.hardened_tt
						left_icon = scope:child
						scope:child = {
							add_diplomacy_skill = 1
							add_stewardship_skill = -2
						}
					}
				}
			}	
		}
	}
}


#Child has demonstrated sweet lies
child_personality.1035 = {
	type = character_event
	title = child_personality.1035.t
	desc = {
		desc = child_personality.103.desc
		desc = child_personality.1035.desc
	}
	theme = education
	left_portrait = {
		character = scope:child
		animation = personality_greedy
	}
	
	option = {
		name = child_personality.103.confirm_deceitful
		custom_tooltip = child_personality.keeps_deceitful_tt
		reverse_add_opinion = {
    		modifier = pleased_opinion
    		target = scope:child
    		opinion = 20
    	}
		stress_impact = {
			honest = medium_stress_gain
			deceitful = medium_stress_loss
		}
		ai_chance = {
			base = 100
			modifier = {
				factor = 3
				has_trait = deceitful
			}
			modifier = {
				factor = 0.5
				has_trait = honest
			}
		}
	}
	
	
	option = {
		name = child_personality.103.assert
		
		ai_chance = {
			base = 100
			modifier = {
				factor = 3
				has_trait = honest
			}
			modifier = {
				factor = 0.5
				has_trait = deceitful
			}
		}
		
		stress_impact = {
			base = child_trait_change_stress_penalty
			honest = medium_stress_loss
			deceitful = medium_stress_gain
			impatient = minor_stress_loss
			arbitrary = minor_stress_loss
		}
		
		reverse_add_opinion = {
			modifier = pleased_opinion
			target = scope:child
			opinion = 10
		}
		
		random_list = {
			50 = {
				desc = child_personality.stay_tt
				send_interface_toast = {
					title = child_personality.stay_tt
					left_icon = scope:child
				}
			}
			50 = {
				desc = child_personality.err_tt
				scope:child = {
					remove_trait = deceitful
				}
				modifier = {
					factor = 2
					scope:child = {
						OR = {
							has_trait = arbitrary
							has_trait = impatient
						}
					}
				}
				if = {
					limit = {
						scope:child = {
							NOR = { 
								has_trait = arbitrary
								has_trait = just
							}
						}
					}
					send_interface_toast = {
						title = child_personality.err_tt
						left_icon = scope:child
						scope:child = {
							add_trait_force_tooltip = arbitrary
						}
					}
				}
				else_if = {
					limit = {
						scope:child = {
							has_trait = just
						}
					}
					scope:child = {
						remove_trait = patient
					}
					send_interface_toast = {
						title = child_personality.err_tt
						left_icon = scope:child
						scope:child = {
							add_trait_force_tooltip = impatient
						}
					}
				}
				else = {
					send_interface_toast = {
						title = child_personality.distrust_tt
						left_icon = scope:child
						scope:child = {
							add_diplomacy_skill = 1
							add_learning_skill = -2
						}
					}
				}
				
			}
			50 = { 
				desc = child_personality.truth_tt
				modifier = {
					factor = 2
					root.diplomacy >= medium_skill_rating
				}

				send_interface_toast = {
					title = child_personality.truth_tt
					left_icon = scope:child
					scope:child = {
						remove_trait = deceitful
					}
				}
			}	
		}
	}
	
	option = {
		name = child_personality.103.master
		
		ai_chance = {
			base = 100
			modifier = {
				factor = 3
				OR = {
					has_trait = arbitrary
					has_trait = arrogant
				}
			}
			ai_value_modifier = {
				ai_honor = -0.5
			}
		}
		
		stress_impact = {
			base = child_trait_change_stress_penalty
			generous = medium_stress_gain
			arrogant = medium_stress_loss
			just = minor_stress_gain
			arbitrary = minor_stress_loss
		}
		
		
		random_list = {
			50 = {
				modifier = {
					factor = 0.4
					root.diplomacy >= medium_skill_rating
				}
				desc = child_personality.keeps_deceitful_tt
				send_interface_toast = {
					title = child_personality.keeps_deceitful_tt
					left_icon = scope:child
				}
			}
			50 = {
				desc = child_personality.under_tt
				modifier = {
					factor = 0.2
					scope:child = {
						has_trait = humble
					}
				}
				scope:child = {
					remove_trait = deceitful
				}

				if = {
					limit = {
						scope:child = {
							NOR = {
								has_trait = just
								has_trait = arbitrary
							}
						}
					}
					send_interface_toast = {
						title = child_personality.under_tt
						left_icon = scope:child
						scope:child = {
							add_trait_force_tooltip = arbitrary
						}
					}
				}
				else_if = {
					limit = {
						scope:child = {
							has_trait = just
						}
					}
					send_interface_toast = {
						title = child_personality.under_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = just
							add_stewardship_skill = 2
						}
					}
				}
				else = {
					scope:child = {
						remove_trait = humble
					}
					send_interface_toast = {
						title = child_personality.under_tt
						left_icon = scope:child
						scope:child = {
							add_trait_force_tooltip = arrogant
						}
					}
				}
			}
			50 = {
				desc = child_personality.punder_tt
				if = {
					limit = {
						root = {
							has_trait = arrogant
						}
					}
					send_interface_toast = {
						title = child_personality.punder_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = deceitful
							add_diplomacy_skill = 1
						}
					}
				}
				else = {
					send_interface_toast = {
						title = child_personality.punder_tt
						left_icon = scope:child
						scope:child = {
							add_stewardship_skill = 1
						}
					}
				}
			}	
		}
	}
	
	option = {
		name = child_personality.103.reverse_alt
		
		ai_chance = {
			base = 100
			ai_value_modifier = {
				ai_honor = -0.5
				ai_compassion = -0.5
			}
			modifier = {
				factor = 3
				OR = {
					has_trait = wrathful
					has_trait = sadistic
				}
			}
			modifier = {
				factor = 0
				OR = {
					has_trait = calm
					has_trait = compassionate
				}
			}
			modifier = {
				factor = 0
				has_trait = arrogant
			}
		}
		
		stress_impact = {
			wrathful = medium_stress_loss
			generous = medium_stress_gain
			greedy = minor_stress_loss
		}
		
		reverse_add_opinion = {
			modifier = disappointed_opinion
			target = scope:child
			opinion = -30
		}
		
		random_list = {
			100 = { 
				desc = child_personality.stay_tt
				send_interface_toast = {
					title = child_personality.stay_tt
					left_icon = scope:child
				}
			}
			30 = {
				desc = child_personality.hardened_tt
				modifier = {
					factor = 0.1
					scope:child = {
						OR = {
							has_trait = stubborn
						}
					}
				}
				scope:child = {
					remove_trait = generous
				}
				if = {
					limit = {
						scope:child = {
							NOR = {
								has_trait = wrathful
								has_trait = calm
							}
						}
					}
					send_interface_toast = {
						title = child_personality.hardened_tt
						left_icon = scope:child
						scope:child = {
							add_trait_force_tooltip = wrathful
						}
					}
				}
				else_if = {
					limit = {
						scope:child = {
							NOT = { 
								has_trait = wrathful
							}
						}
					}
					send_interface_toast = {
						title = child_personality.hardened_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = calm
						}
					}
				}
				else = {
					send_interface_toast = {
						title = child_personality.hardened_tt
						left_icon = scope:child
						scope:child = {
							add_diplomacy_skill = 1
							add_stewardship_skill = -2
						}
					}
				}
			}	
		}
	}
}



#Responses to child impressed by the court
#0004

#Child has demonstrated diligence
child_personality.1041 = {
	type = character_event
	title = child_personality.1041.t
	desc = {
		desc = child_personality.104.desc
		desc = child_personality.1041.desc
	}
	theme = education
	left_portrait = {
		character = scope:child
		animation = personality_honorable
	}
	
	option = {
		name = child_personality.104.confirm_diligent
		custom_tooltip = child_personality.keeps_diligent_tt
		reverse_add_opinion = {
    		modifier = pleased_opinion
    		target = scope:child
    		opinion = 10
    	}
		stress_impact = {
			diligent = medium_stress_loss
			lazy = medium_stress_gain
		}
		ai_chance = {
			base = 100
			ai_value_modifier = {
				ai_energy = 0.5
			}
			modifier = {
				factor = 3
				has_trait = diligent
			}
		}
	}
	
	option = {
		name = child_personality.104.chill
		
		ai_chance = {
			base = 100
			modifier = {
				factor = 3
				has_trait = lazy
			}
			ai_value_modifier = {
				ai_energy = -0.5
			}
		}
		
		stress_impact = {
			lazy = medium_stress_loss
			diligent = medium_stress_gain
			arrogant = minor_stress_loss
			patient = minor_stress_loss
		}
		
		reverse_add_opinion = {
    		modifier = pleased_opinion
    		target = scope:child
    		opinion = 15
    	}
		
		random_list = {
			50 = {
				modifier = {
					factor = 0.4
					root.diplomacy >= medium_skill_rating
				}
				desc = child_personality.keeps_diligent_tt
				send_interface_toast = {
					title = child_personality.keeps_diligent_tt
					left_icon = scope:child
				}
			}
			50 = {
				desc = child_personality.under_tt
				scope:child = {
					remove_trait = diligent
				}

				if = {
					limit = {
						scope:child = {
							NOR = {
								has_trait = patient
								has_trait = impatient
							}
						}
					}
					send_interface_toast = {
						title = child_personality.under_tt
						left_icon = scope:child
						scope:child = {
							add_trait_force_tooltip = patient
						}
					}
				}
				else_if = {
					limit = {
						scope:child = {
							has_trait = patient
						}
					}
					send_interface_toast = {
						title = child_personality.under_tt
						left_icon = scope:child
						scope:child = {
							add_learning_skill = 1
						}
					}
				}
				else = {
					send_interface_toast = {
						title = child_personality.under_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = impatient
							add_learning_skill = 1
						}
					}
				}
			}
			50 = {
				desc = child_personality.punder_tt
				send_interface_toast = {
					title = child_personality.punder_tt
					left_icon = scope:child
					scope:child = {
						remove_trait = diligent
						add_stewardship_skill = -1
						add_learning_skill = 1
					}
				}
			}	
		}
	}
	
	option = {
		name = child_personality.104.praise
		ai_chance = {
			base = 100
			ai_value_modifier = {
				ai_compassion = 0.2
			}
			modifier = {
				factor = 0
				OR = {
					has_trait = callous
					has_trait = sadistic
				}
			}
		}
		
		stress_impact = {
			lazy = minor_stress_gain
			diligent = minor_stress_gain
			arrogant = minor_stress_loss
			gregarious = minor_stress_loss
		}
		
		reverse_add_opinion = {
    		modifier = pleased_opinion
    		target = scope:child
    		opinion = 30
    	}
		
		random_list = {
			100 = { 
				desc = child_personality.stay_tt
				send_interface_toast = {
					title = child_personality.stay_tt
					left_icon = scope:child
				}
			}
			30 = {
				desc = child_personality.pride_tt
				modifier = {
					factor = 5
					scope:child = {
						OR = {
							has_trait = arrogant
						}
					}
				}
				if = {
					limit = {
						scope:child = {
							NOR = {
								has_trait = arrogant
								has_trait = humble
							}
						}
					}
					send_interface_toast = {
						title = child_personality.pride_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = diligent
							add_trait_force_tooltip = arrogant
						}
					}
				}
				else_if = {
					limit = {
						scope:child = { 
							has_trait = arrogant
						}
					}
					send_interface_toast = {
						title = child_personality.pride_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = diligent
						}
					}
				}
				else = {
					send_interface_toast = {
						title = child_personality.pride_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = humble
							add_diplomacy_skill = -1
						}
					}
				}
			}	
		}
	}
	
	option = {
		name = child_personality.104.curb
		custom_tooltip = child_personality.104.curb_tt
		ai_chance = {
			base = 100
			ai_value_modifier = {
				ai_honor = -0.5
				ai_compassion = -0.5
			}
			modifier = {
				factor = 3
				OR = {
					has_trait = callous
					has_trait = sadistic
				}
			}
			modifier = {
				factor = 0
				OR = {
					has_trait = compassionate
				}
			}
		}
		
		stress_impact = {
			wrathful = minor_stress_loss
			sadistic = medium_stress_loss
		}
		
		reverse_add_opinion = {
			modifier = disappointed_opinion
			target = scope:child
			opinion = -20
		}
		
		random_list = {
			50 = { 
				desc = child_personality.stay_tt
				send_interface_toast = {
					title = child_personality.stay_tt
					left_icon = scope:child
				}
			}
			100 = {
				desc = child_personality.sloth_tt
				modifier = {
					factor = 0.1
					scope:child = {
						OR = {
							has_trait = stubborn
						}
					}
				}
				scope:child = {
					remove_trait = diligent
				}

				send_interface_toast = {
					title = child_personality.sloth_tt
					left_icon = scope:child
					scope:child = {
						add_trait_force_tooltip = lazy
					}
				}

			}
			50 = { 
				desc = child_personality.err_tt
				scope:child = {
					remove_trait = diligent
				}
				if = {
					limit = {
						scope:child = {
							NOR = { 
								has_trait = arbitrary
								has_trait = just
							}
						}
					}
					send_interface_toast = {
						title = child_personality.err_tt
						left_icon = scope:child
						scope:child = {
							add_trait_force_tooltip = arbitrary
						}
					}
				}
				else_if = {
					limit = {
						scope:child = {
							NOT = { 
								has_trait = impatient
							}
						}
					}
					remove_trait = patient
					send_interface_toast = {
						title = child_personality.err_tt
						left_icon = scope:child
						scope:child = {
							add_trait_force_tooltip = impatient
						}
					}
				}
				else = {
					send_interface_toast = {
						title = child_personality.err_tt
						left_icon = scope:child
						scope:child = {
							add_stewardship_skill = -1
						}
					}
				}
			}
		}
	}
}

#Child has demonstrated ambition
child_personality.1042 = {
	type = character_event
	title = child_personality.1042.t
	desc = {
		desc = child_personality.104.desc
		desc = child_personality.1042.desc
	}
	theme = education
	left_portrait = {
		character = scope:child
		animation = personality_bold
	}
	
	option = {
		name = child_personality.104.confirm_ambitious
		custom_tooltip = child_personality.keeps_ambitious_tt
		reverse_add_opinion = {
    		modifier = pleased_opinion
    		target = scope:child
    		opinion = 15
    	}
		stress_impact = {
			ambitious = medium_stress_loss
			content = medium_stress_gain
			arrogant = minor_stress_loss
		}
		ai_chance = {
			base = 100
			ai_value_modifier = {
				ai_energy = 0.5
			}
			modifier = {
				factor = 3
				has_trait = ambitious
			}
		}
	}
	
	option = {
		name = child_personality.104.work
		
		ai_chance = {
			base = 100
			modifier = {
				factor = 3
				has_trait = diligent
			}
			ai_value_modifier = {
				ai_energy = 1
				ai_greed = -0.5
			}
		}
		
		stress_impact = {
			base = child_trait_change_stress_penalty
			diligent = medium_stress_loss
			lazy = medium_stress_gain
		}
		
		random_list = {
			50 = {
				desc = child_personality.keeps_ambitious_tt
				send_interface_toast = {
					title = child_personality.keeps_ambitious_tt
					left_icon = scope:child
				}
			}
			50 = {
				modifier = {
					factor = 2
					root.diplomacy >= medium_skill_rating
				}
				modifier = {
					factor = 2
					root.stewardship >= medium_skill_rating
				}
				desc = child_personality.under_tt
				if = {
					limit = {
						scope:child = {
							NOR = {
								has_trait = diligent
								has_trait = lazy
							}
						}
					}
					send_interface_toast = {
						title = child_personality.under_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = ambitious
							add_trait_force_tooltip = diligent
						}
					}
				}
				else_if = {
					limit = {
						scope:child = {
							has_trait = diligent
						}
					}
					send_interface_toast = {
						title = child_personality.under_tt
						left_icon = scope:child
						scope:child = {
							add_learning_skill = 2
						}
					}
				}
				else = {
					send_interface_toast = {
						title = child_personality.under_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = lazy
							add_learning_skill = 1
						}
					}
				}
			}
			50 = {
				desc = child_personality.punder_tt
				send_interface_toast = {
					title = child_personality.punder_tt
					left_icon = scope:child
					scope:child = {
						add_stewardship_skill = 2
						add_learning_skill = -1
					}
				}
			}	
		}
	}
	
	option = {
		name = child_personality.104.limit
		custom_tooltip = child_personality.104.limit_tt
		ai_chance = {
			base = 100
			ai_value_modifier = {
				ai_rationality = 1
				ai_energy = -0.5
			}
			modifier = {
				factor = 3
				OR = {
					has_trait = patient
					has_trait = calm
				}
			}
		}
		
		reverse_add_opinion = {
    		modifier = disappointed_opinion
    		target = scope:child
    		opinion = -10
    	}
		
		stress_impact = {
			base = child_trait_change_stress_penalty
			content = minor_stress_loss
			lazy = minor_stress_loss
			patient = minor_stress_loss
			calm = minor_stress_loss
			humble = minor_stress_loss
		}
		
		random_list = {
			50 = {			
				desc = child_personality.stay_tt
				send_interface_toast = {
					title = child_personality.stay_tt
					left_icon = scope:child
				}
			}
			50 = {
				desc = child_personality.base_tt
				modifier = {
					factor = 0.1
					scope:child = {
						OR = {
							has_trait = arrogant
							has_trait = stubborn
						}
					}
				}
				modifier = {
					factor = 2
					root.diplomacy >= medium_skill_rating
				}
				if = {
					limit = {
						scope:child = {
							NOR = {
								has_trait = patient
								has_trait = impatient
							}
						}
					}
					send_interface_toast = {
						title = child_personality.base_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = ambitious
							add_trait_force_tooltip = patient
							add_stewardship_skill = 1
						}
					}
				}
				else_if = {
					limit = {
						scope:child = { 
							has_trait = patient
						}
					}
					send_interface_toast = {
						title = child_personality.base_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = ambitious
							add_stewardship_skill = 1
							add_learning_skill = 1
						}
					}
				}
				else = {
					send_interface_toast = {
						title = child_personality.base_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = impatient
							add_stewardship_skill = -1
						}
					}
				}
			}	
		}
	}
	
	option = {
		name = child_personality.104.curb_alt
		custom_tooltip = child_personality.104.curb_alt_tt
		ai_chance = {
			base = 100
			ai_value_modifier = {
				ai_honor = -0.5
				ai_compassion = -0.5
			}
			modifier = {
				factor = 3
				OR = {
					has_trait = callous
					has_trait = sadistic
				}
			}
			modifier = {
				factor = 0
				OR = {
					has_trait = compassionate
				}
			}
		}
		
		stress_impact = {
			wrathful = minor_stress_loss
			sadistic = medium_stress_loss
		}
		
		reverse_add_opinion = {
			modifier = disappointed_opinion
			target = scope:child
			opinion = -20
		}
		
		random_list = {
			30 = { 
				desc = child_personality.stay_tt
				send_interface_toast = {
					title = child_personality.stay_tt
					left_icon = scope:child
				}
			}
			100 = {
				desc = child_personality.sloth_tt
				modifier = {
					factor = 0.1
					scope:child = {
						OR = {
							has_trait = stubborn
						}
					}
				}
				scope:child = {
					remove_trait = ambitious
				}

				send_interface_toast = {
					title = child_personality.sloth_tt
					left_icon = scope:child
					scope:child = {
						add_learning_skill = -1
					}
				}

			}
			50 = { 
			desc = child_personality.distrust_tt
				scope:child = {
					remove_trait = ambitious
				}
				modifier = {
					factor = 2
					scope:child = {
						OR = {
							has_trait = cynical
							has_trait = paranoid
						}
					}
				}
				if = {
					limit = {
						scope:child = {
							NOR = { 
								has_trait = zealous
								has_trait = cynical
							}
						}
					}
					send_interface_toast = {
						title = child_personality.distrust_tt
						left_icon = scope:child
						scope:child = {
							add_trait_force_tooltip = cynical
						}
					}
				}
				else_if = {
					limit = {
						scope:child = {
							has_trait = cynical
						}
					}
					send_interface_toast = {
						title = child_personality.distrust_tt
						left_icon = scope:child
						scope:child = {
							add_trait_force_tooltip = deceitful
						}
					}
				}
				else = {
					send_interface_toast = {
						title = child_personality.distrust_tt
						left_icon = scope:child
						scope:child = {
							add_intrigue_skill = 1
							add_diplomacy_skill = -2
						}
					}
				}
				
			}
		}
	}
}


#Child has demonstrated obedience to fate
child_personality.1043 = {
	type = character_event
	title = child_personality.1043.t
	desc = {
		desc = child_personality.104.desc
		desc = child_personality.1043.desc
	}
	theme = education
	left_portrait = {
		character = scope:child
		animation = personality_content
	}
	
	option = {
		name = child_personality.104.confirm_content
		custom_tooltip = child_personality.stay_tt
		reverse_add_opinion = {
    		modifier = pleased_opinion
    		target = scope:child
    		opinion = 15
    	}
		stress_impact = {
			ambitious = medium_stress_gain
			content = medium_stress_loss
			humble = minor_stress_loss
		}
		ai_chance = {
			base = 100
			ai_value_modifier = {
				ai_energy = -0.5
			}
			modifier = {
				factor = 3
				has_trait = content
			}
		}
	}
	
		
	option = {
		name = child_personality.104.encourage
		ai_chance = {
			base = 100
			ai_value_modifier = {
				ai_energy = 1
				ai_greed = 0.5
			}
			modifier = {
				factor = 3
				OR = {
					has_trait = ambitious
					has_trait = arrogant
				}
			}
		}
		
		reverse_add_opinion = {
    		modifier = pleased_opinion
    		target = scope:child
    		opinion = 10
    	}
		
		stress_impact = {
			base = child_trait_change_stress_penalty
			content = minor_stress_gain
			ambitious = medium_stress_loss
			arrogant = medium_stress_loss
			patient = minor_stress_gain
			humble = minor_stress_gain
		}
		
		random_list = {
			50 = {
				desc = child_personality.stay_tt
				send_interface_toast = {
					title = child_personality.stay_tt
					left_icon = scope:child
				}
				modifier = {
					factor = 0.2
					scope:child = {
						NOT = { has_trait = content }
					}
				}
			}
			50 = { 
				desc = child_personality.energy_tt
				scope:child = {
					remove_trait = content
				}
				modifier = {
					factor = 2
					scope:child = {
						has_trait = brave
						has_trait = arrogant
					}
				}
				if = {
					limit = {
						scope:child = {
							NOR = { 
								has_trait = brave
								has_trait = craven
							}
						}
					}
					send_interface_toast = {
						title = child_personality.energy_tt
						left_icon = scope:child
						scope:child = {
							add_trait_force_tooltip = brave
						}
					}
				}
				else_if = {
					limit = {
						scope:child = {
							NOT = { 
								has_trait = ambitious
							}
						}
					}
					send_interface_toast = {
						title = child_personality.energy_tt
						left_icon = scope:child
						scope:child = {
							add_trait_force_tooltip = ambitious
						}
					}
				}
				else = {
					send_interface_toast = {
						title = child_personality.energy_tt
						left_icon = scope:child
						scope:child = {
							add_learning_skill = 1
							add_stewardship_skill = 1
						}
					}
				}
			}
			50 = { 
				desc = child_personality.err_tt
				scope:child = {
					remove_trait = content
				}
				if = {
					limit = {
						scope:child = {
							NOR = { 
								has_trait = arbitrary
								has_trait = just
							}
						}
					}
					send_interface_toast = {
						title = child_personality.err_tt
						left_icon = scope:child
						scope:child = {
							add_trait_force_tooltip = arbitrary
						}
					}
				}
				else_if = {
					limit = {
						scope:child = {
							NOR = { 
								has_trait = impatient
								has_trait = patient
							}
						}
					}

					send_interface_toast = {
						title = child_personality.err_tt
						left_icon = scope:child
						scope:child = {
							add_trait_force_tooltip = impatient
						}
					}
				}
				else_if = {
					limit = {
						scope:child = {
							has_trait = patient
						}
					}

					send_interface_toast = {
						title = child_personality.err_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = patient
							add_stewardship_skill = 1
							add_learning_skill = -1
						}
					}
				}
				else = {
					send_interface_toast = {
						title = child_personality.err_tt
						left_icon = scope:child
						scope:child = {
							add_stewardship_skill = 1
							add_learning_skill = -2
						}
					}
				}
			}
		}
	}
	
	option = {
		name = child_personality.104.work_alt
		
		ai_chance = {
			base = 100
			modifier = {
				factor = 3
				has_trait = diligent
			}
			ai_value_modifier = {
				ai_energy = 1
				ai_greed = -0.5
			}
		}
		
		stress_impact = {
			base = child_trait_change_stress_penalty
			diligent = medium_stress_loss
			lazy = medium_stress_gain
		}
		
		random_list = {
			50 = {
				desc = child_personality.stay_tt
				send_interface_toast = {
					title = child_personality.stay_tt
					left_icon = scope:child
				}
			}
			50 = {
				modifier = {
					factor = 2
					root.diplomacy >= medium_skill_rating
				}
				modifier = {
					factor = 2
					root.stewardship >= medium_skill_rating
				}
				desc = child_personality.under_tt
				if = {
					limit = {
						scope:child = {
							NOR = {
								has_trait = diligent
								has_trait = lazy
							}
						}
					}
					send_interface_toast = {
						title = child_personality.under_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = content
							add_trait_force_tooltip = diligent
						}
					}
				}
				else_if = {
					limit = {
						scope:child = {
							has_trait = diligent
						}
					}
					send_interface_toast = {
						title = child_personality.under_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = content
							add_learning_skill = 1
						}
					}
				}
				else = {
					send_interface_toast = {
						title = child_personality.under_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = lazy
							add_learning_skill = 2
						}
					}
				}
			}
			50 = {
				desc = child_personality.punder_tt
				send_interface_toast = {
					title = child_personality.punder_tt
					left_icon = scope:child
					scope:child = {
						add_stewardship_skill = 2
						add_learning_skill = -1
					}
				}
			}	
		}
	}
	
	option = {
		name = child_personality.104.curb_alt_alt
		custom_tooltip = child_personality.104.curb_alt_alt_tt
		ai_chance = {
			base = 100
			ai_value_modifier = {
				ai_honor = -0.5
				ai_compassion = -0.5
			}
			modifier = {
				factor = 3
				OR = {
					has_trait = callous
					has_trait = sadistic
				}
			}
			modifier = {
				factor = 0
				OR = {
					has_trait = compassionate
				}
			}
		}
		
		stress_impact = {
			wrathful = minor_stress_loss
			sadistic = medium_stress_loss
		}
		
		reverse_add_opinion = {
			modifier = disappointed_opinion
			target = scope:child
			opinion = -20
		}
		
		random_list = {
			30 = { 
				desc = child_personality.stay_tt
				send_interface_toast = {
					title = child_personality.stay_tt
					left_icon = scope:child
				}
			}
			50 = {
				desc = child_personality.sloth_tt
				modifier = {
					factor = 0.1
					scope:child = {
						OR = {
							has_trait = stubborn
						}
					}
				}
				scope:child = {
					remove_trait = content
				}

				send_interface_toast = {
					title = child_personality.sloth_tt
					left_icon = scope:child
					scope:child = {
						add_learning_skill = -1
					}
				}

			}
			50 = { 
				desc = child_personality.sc_tt
				scope:child = {
					remove_trait = content
				}
				modifier = {
					factor = 2
					scope:child = {
						OR = {
							has_trait = arbitrary
							has_trait = arrogant
						}
					}
				}
				if = {
					limit = {
						scope:child = {
							NOR = { 
								has_trait = humble
								has_trait = arrogant
							}
						}
					}
					send_interface_toast = {
						title = child_personality.sc_tt
						left_icon = scope:child
						scope:child = {
							add_trait_force_tooltip = arrogant
						}
					}
				}
				else_if = {
					limit = {
						scope:child = {
							NOT = { has_trait = arbitrary }
						}
					}
					send_interface_toast = {
						title = child_personality.sc_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = just
							add_trait_force_tooltip = arbitrary
						}
					}
				}
				else = {
					send_interface_toast = {
						title = child_personality.sc_tt
						left_icon = scope:child
						scope:child = {
							add_learning_skill = -1
							add_diplomacy_skill = -1
						}
					}
				}
			}
		}
	}
}

#Child has demonstrated laziness
child_personality.1044 = {
	type = character_event
	title = child_personality.1044.t
	desc = {
		desc = child_personality.104.desc
		desc = child_personality.1044.desc
	}
	theme = education
	left_portrait = {
		character = scope:child
		animation = personality_content
	}
	
	option = {
		name = child_personality.104.confirm_lazy
		custom_tooltip = child_personality.stay_tt
		reverse_add_opinion = {
    		modifier = pleased_opinion
    		target = scope:child
    		opinion = 20
    	}
		stress_impact = {
			ambitious = medium_stress_gain
			diligent = medium_stress_gain
			content = medium_stress_loss
			compassionate = minor_stress_loss
		}
		ai_chance = {
			base = 100
			ai_value_modifier = {
				ai_energy = -0.5
			}
			modifier = {
				factor = 3
				has_trait = lazy
			}
		}
	}
	
		
	option = {
		name = child_personality.104.encourage_alt
		custom_tooltip = child_personality.104.encourage_alt_tt
		ai_chance = {
			base = 100
			ai_value_modifier = {
				ai_energy = 0.2
				ai_compassion = 0.5
			}
			modifier = {
				factor = 3
				has_trait = ambitious
			}
		}
		
		reverse_add_opinion = {
    		modifier = pleased_opinion
    		target = scope:child
    		opinion = 10
    	}
		
		stress_impact = {
			base = child_trait_change_stress_penalty
			ambitious = minor_stress_loss
			lazy = minor_stress_gain
			patient = minor_stress_loss
		}
		
		random_list = {
			20 = {
				desc = child_personality.stay_tt
				send_interface_toast = {
					title = child_personality.stay_tt
					left_icon = scope:child
				}
				modifier = {
					factor = 0.2
					scope:child = {
						NOT = { has_trait = lazy }
					}
				}
			}
			50 = { 
				desc = child_personality.under_tt
				scope:child = {
					remove_trait = lazy
				}
				modifier = {
					factor = 2
					root.diplomacy >= medium_skill_rating
				}
				if = {
					limit = {
						scope:child = {
							NOR = { 
								has_trait = ambitious
								has_trait = content
							}
						}
					}
					send_interface_toast = {
						title = child_personality.under_tt
						left_icon = scope:child
						scope:child = {
							add_trait_force_tooltip = ambitious
						}
					}
				}	
				else = {
					send_interface_toast = {
						title = child_personality.under_tt
						left_icon = scope:child
						scope:child = {
							add_learning_skill = 1
							add_stewardship_skill = 1
						}
					}
				}
			}
			50 = { 
				desc = child_personality.punder_tt
				send_interface_toast = {
					title = child_personality.punder_tt
					left_icon = scope:child
					scope:child = {
						add_stewardship_skill = 1
					}
				}	
			}
		}
	}
	
	option = {
		name = child_personality.104.work_alt_alt
		custom_tooltip = child_personality.104.work_alt_alt_tt
		ai_chance = {
			base = 100
			modifier = {
				factor = 3
				has_trait = diligent
			}
			ai_value_modifier = {
				ai_energy = 0.6
			}
		}
		
		stress_impact = {
			base = child_trait_change_stress_penalty
			diligent = medium_stress_loss
			lazy = medium_stress_gain
		}
		
		reverse_add_opinion = {
    		modifier = disappointed_opinion
    		target = scope:child
    		opinion = -10
    	}
		
		random_list = {
			50 = {
				desc = child_personality.stay_tt
				send_interface_toast = {
					title = child_personality.stay_tt
					left_icon = scope:child
				}
			}
			50 = {
				modifier = {
					factor = 2
					root.stewardship >= medium_skill_rating
				}
				modifier = {
					factor = 0.5
					scope:child = {
						has_trait = lazy
					}
				}
				desc = child_personality.energy_tt
				send_interface_toast = {
					title = child_personality.energy_tt
					left_icon = scope:child
					scope:child = {
						remove_trait = lazy
						add_trait_force_tooltip = diligent
					}
				}
			}	
		}
	}
	
	option = {
		name = child_personality.104.curb_alt_alt_alt
		custom_tooltip = child_personality.104.curb_alt_alt_alt_tt
		ai_chance = {
			base = 100
			ai_value_modifier = {
				ai_honor = -0.3
				ai_compassion = -0.3
			}
			modifier = {
				factor = 3
				OR = {
					has_trait = callous
					has_trait = sadistic
				}
			}
			modifier = {
				factor = 0
				OR = {
					has_trait = compassionate
				}
			}
		}
		
		stress_impact = {
			wrathful = minor_stress_loss
			sadistic = medium_stress_loss
		}
		
		reverse_add_opinion = {
			modifier = disappointed_opinion
			target = scope:child
			opinion = -25
		}
		
		random_list = {
			70 = { 
				desc = child_personality.stay_tt
				send_interface_toast = {
					title = child_personality.stay_tt
					left_icon = scope:child
				}
			}
			50 = {
				desc = child_personality.sloth_tt
				modifier = {
					factor = 0.1
					scope:child = {
						OR = {
							has_trait = stubborn
						}
					}
				}
				scope:child = {
					remove_trait = lazy
				}

				send_interface_toast = {
					title = child_personality.sloth_tt
					left_icon = scope:child
					scope:child = {
						add_stewardship_skill = -1
						add_learning_skill = -1
					}
				}

			}
			50 = { 
				desc = child_personality.hardened_tt
				modifier = {
					factor = 0.1
					scope:child = {
						OR = {
							has_trait = stubborn
						}
					}
				}
				scope:child = {
					remove_trait = lazy
				}
				if = {
					limit = {
						scope:child = {
							NOR = {
								has_trait = wrathful
								has_trait = calm
							}
						}
					}
					send_interface_toast = {
						title = child_personality.hardened_tt
						left_icon = scope:child
						scope:child = {
							add_trait_force_tooltip = wrathful
						}
					}
				}
				else_if = {
					limit = {
						scope:child = {
							NOT = { 
								has_trait = wrathful
							}
						}
					}
					send_interface_toast = {
						title = child_personality.hardened_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = calm
						}
					}
				}
				else = {
					send_interface_toast = {
						title = child_personality.hardened_tt
						left_icon = scope:child
						scope:child = {
							add_prowess_skill = 1
							add_stewardship_skill = -1
						}
					}
				}
			}
		}
	}
}


#Responses to child pushing
#0005


scripted_trigger child_available_for_nsp = {
	OR = {	
		exists = no
		is_landed = no
		top_liege = root
	}
}

#Child has demonstrated vengefulness
child_personality.1051 = {
	type = character_event
	title = child_personality.1051.t
	desc = {
		desc = child_personality.105.desc
		desc = child_personality.1051.desc
	}
	theme = education
	left_portrait = {
		character = scope:child
		animation = personality_vengeful
	}
	right_portrait = {
		character = scope:doing_push
		animation = anger
	}

	option = {
		name = child_personality.105.confirm_vengeful
		custom_tooltip = child_personality.stay_tt
		reverse_add_opinion = {
    		modifier = pleased_opinion
    		target = scope:child
    		opinion = 15
    	}
		stress_impact = {
			compassionate = minor_stress_gain
			forgiving = medium_stress_gain
			wrathful = minor_stress_loss
			vengeful = medium_stress_loss
			calm = minor_stress_gain
		}
		ai_chance = {
			base = 100
			ai_value_modifier = {
				ai_compassion = -0.5
				ai_vengefulness = 0.5
			}
			modifier = {
				factor = 3
				has_trait = vengeful
			}
		}
	}
	
	option = {
		name = child_personality.105.mercy
		trigger = {
			NOR = {
				has_trait = forgiving
				scope:child = {
					is_close_or_extended_family_of = scope:doing_push
				}
			}
		}
		stress_impact = {
			base = child_trait_change_stress_penalty
			compassionate = minor_stress_loss
			wrathful = minor_stress_gain
			vengeful = medium_stress_gain
			calm = medium_stress_loss
		}
		ai_chance = {
			base = 100
			ai_value_modifier = {
				ai_compassion = 0.5
				ai_vengefulness = -0.5
			}
			modifier = {
				factor = 3
				has_trait = calm
			}
		}
		
		random_list = {	
			50 = {
				desc = child_personality.stay_tt
				send_interface_toast = {
					title = child_personality.stay_tt
					left_icon = scope:child
				}
			}
			50 = { 
				desc = child_personality.neutral_tt
				modifier = {
					factor = 2
					root.diplomacy >= medium_skill_rating
				}
				if = {
					limit = {
						scope:child = {
							has_trait = wrathful
						}
					}
					send_interface_toast = {
						title = child_personality.neutral_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = wrathful
						}
					}
				}
				else = {
					send_interface_toast = {
						title = child_personality.neutral_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = vengeful
						}
					}
				}	
			}
		}
	}
	
	option = {
		name = child_personality.105.mercy_family
		trigger = {
			AND = {
				NOT = { has_trait = forgiving }
				scope:child = {
					is_close_or_extended_family_of = scope:doing_push
				}
			}
		}
		
		stress_impact = {
			base = child_trait_change_stress_penalty
			compassionate = minor_stress_loss
			wrathful = minor_stress_gain
			vengeful = medium_stress_gain
			calm = medium_stress_loss
			family_first = medium_stress_loss
		}
		ai_chance = {
			base = 100
			ai_value_modifier = {
				ai_compassion = 0.5
				ai_vengefulness = -0.5
			}
			modifier = {
				factor = 3
				OR = {
					has_trait = calm
					has_trait = family_first
				}	
			}
		}
		
		random_list = {	
			35 = {
				desc = child_personality.stay_tt
				send_interface_toast = {
					title = child_personality.stay_tt
					left_icon = scope:child
				}
			}
			65 = { 
				desc = child_personality.neutral_tt
				modifier = {
					factor = 2
					root.diplomacy >= medium_skill_rating
				}
				if = {
					limit = {
						scope:child = {
							has_trait = wrathful
						}
					}
					send_interface_toast = {
						title = child_personality.neutral_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = wrathful
						}
					}
				}
				else = {
					send_interface_toast = {
						title = child_personality.neutral_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = vengeful
						}
					}
				}	
			}
		}
	}

	option = {
		name = child_personality.105.punish_child
		stress_impact = {
			base = child_trait_change_stress_penalty
			compassionate = medium_stress_gain
			just = minor_stress_loss
			wrathful = minor_stress_loss
		}
		
		reverse_add_opinion = {
			modifier = disappointed_opinion
			target = scope:child
			opinion = -20
		}
		
		random_list = {
			100 = {
				desc = child_personality.stay_tt
				send_interface_toast = {
					title = child_personality.stay_tt
					left_icon = scope:child
				}
			}
			50 = { 
				desc = child_personality.distrust_tt
				scope:child = {
					remove_trait = vengeful
				}
				modifier = {
					factor = 3
					scope:child = {
						OR = {
							has_trait = cynical
							has_trait = paranoid
						}
					}
				}
				if = {
					limit = {
						scope:child = {
							NOR = { 
								has_trait = zealous
								has_trait = cynical
							}
						}
					}
					send_interface_toast = {
						title = child_personality.distrust_tt
						left_icon = scope:child
						scope:child = {
							add_trait_force_tooltip = cynical
						}
					}
				}
				else_if = {
					limit = {
						scope:child = {
							NOT = { 
								has_trait = paranoid
							}
						}
					}
					scope:child = {
						remove_trait = trusting
					}
					send_interface_toast = {
						title = child_personality.distrust_tt
						left_icon = scope:child
						scope:child = {
							add_trait_force_tooltip = paranoid
						}
					}
				}
				else = {
					send_interface_toast = {
						title = child_personality.distrust_tt
						left_icon = scope:child
						scope:child = {
							add_intrigue_skill = 1
							add_diplomacy_skill = -2
						}
					}
				}
				
			}
		}
				
		ai_chance = {
			base = 100
			ai_value_modifier = {
				ai_compassion = -0.2
				ai_rationality = -0.3
			}
		}
	}
	
	
	option = {
		trigger = {
			OR = {
				AND = {
					OR = {
						NOT = { exists = scope:push_father}
						scope:push_father = { child_available_for_nsp = yes }
					}
					OR = {
						NOT = { exists = scope:push_mother }
						scope:push_mother = { child_available_for_nsp = yes }
					}
				}
				scope:doing_push = {
					any_parent = { this = root }
				}
			}
		}
		name = child_personality.105.punish_other
		stress_impact = {
			arbitrary = medium_stress_loss
			wrathful = minor_stress_loss
		}
		
		reverse_add_opinion = {
			modifier = pleased_opinion
			target = scope:child
			opinion = 25
		}
		
		reverse_add_opinion = {
			modifier = scared_opinion
			target = scope:doing_push
			opinion = -20
		}
		
		if = {
			limit = {
				NOT = { 
					scope:doing_push = {
						any_parent = { this = root }
					}
				}
			}
			if = {
				limit = {
					exists = scope:push_mother
				}
				reverse_add_opinion = {
					modifier = angry_opinion
					target = scope:push_mother
					opinion = -30
				}
				scope:push_mother = {
					trigger_event = child_personality.2908
				}
			}
			if = {
				limit = {
					exists = scope:push_father
				}
				reverse_add_opinion = {
					modifier = angry_opinion
					target = scope:push_father
					opinion = -30
				}
				scope:push_father = {
					trigger_event = child_personality.2908
				}
			}
		}
		
		scope:doing_push = {
			trigger_event = child_personality.2907
		}
		
		ai_chance = {
			base = 100
			ai_value_modifier = {
				ai_compassion = -0.2
				ai_rationality = -0.3
				ai_vengefulness = 0.2
			}
			modifier = {
				factor = 3
				has_trait = arbitrary
			}
		}
	}
	

	option = {
		name = child_personality.105.hide
		stress_impact = {
			base = child_trait_change_stress_penalty
			wrathful = minor_stress_gain
			calm = minor_stress_loss
			patient = minor_stress_loss
			impatient = minor_stress_gain
		}

		random_list = {
			50 = {
				modifier = {
					factor = 0.4
					root.diplomacy >= medium_skill_rating
				}
				desc = child_personality.stay_tt
				send_interface_toast = {
					title = child_personality.stay_tt
					left_icon = scope:child
				}
			}
			50 = {
				desc = child_personality.under_tt
				modifier = {
					factor = 0.2
					scope:child = {
						has_trait = wrathful
					}
				}
				scope:child = {
					remove_trait = wrathful
				}

				if = {
					limit = {
						scope:child = {
							NOR = {
								has_trait = patient
								has_trait = impatient
							}
						}
					}
					send_interface_toast = {
						title = child_personality.under_tt
						left_icon = scope:child
						scope:child = {
							add_trait_force_tooltip = patient
						}
					}
				}
				else_if = {
					limit = {
						scope:child = {
							has_trait = patient
						}
					}
					send_interface_toast = {
						title = child_personality.under_tt
						left_icon = scope:child
						scope:child = {
							add_intrigue_skill = 2
						}
					}
				}
				else = {
					send_interface_toast = {
						title = child_personality.under_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = impatient
							add_intrigue_skill = 1
						}
					}
				}
			}
			50 = {
				desc = child_personality.punder_tt
				send_interface_toast = {
					title = child_personality.punder_tt
					left_icon = scope:child
					scope:child = {
						add_intrigue_skill = 1
					}
				}
			}	
		}
			
		ai_chance = {
			base = 100
			ai_value_modifier = {
				ai_rationality = 0.5
				ai_vengefulness = 0.2
			}
			modifier = {
				factor = 3
				has_trait = patient
			}
		}
	}
	
	option = {
		name = child_personality.105.forgiving_change
		trigger = {
			has_trait = forgiving
		}
		stress_impact = {
			base = child_trait_change_stress_penalty
			wrathful = minor_stress_gain
		}
		custom_tooltip = child_personality.exchange_tt
	
		random_list = {
			30 = {
				modifier = {
					factor = 0.2
					OR = {
						root.diplomacy >= high_skill_rating
					}
				}
				desc = child_personality.stay_tt
				send_interface_toast = {
					title = child_personality.stay_tt
					left_icon = scope:child
				}
				
			}
			40 = {
				modifier = {
					factor = 3
					AND = {
						root.diplomacy >= medium_skill_rating
						root.diplomacy < high_skill_rating
					}
				}
				send_interface_toast = {
					title = child_personality.loses_vengeful_tt
					left_icon = scope:child
					scope:child = {
						remove_trait = vengeful
					}
				}
			}
			30 = {
				scope:child = {
					remove_trait = vengeful
				}
				send_interface_toast = {
					title = child_personality.gains_forgiving_tt
					left_icon = scope:child
					scope:child = {
						add_trait_force_tooltip = forgiving
					}
				}
				modifier = {
					factor = 6
					OR = {
						root.diplomacy >= high_skill_rating
					}
				}
			}
		}
		ai_chance = {
			base = 400
		}
	}
}


#Child has demonstrated forgiving nature
child_personality.1052 = {
	type = character_event
	title = child_personality.1052.t
	desc = {
		desc = child_personality.105.desc
		desc = child_personality.1052.desc
	}
	theme = education
	left_portrait = {
		character = scope:child
		animation = personality_forgiving
	}
	right_portrait = {
		character = scope:doing_push
		animation = personality_content
	}
	
	option = {
		name = child_personality.105.confirm_forgiving
		custom_tooltip = child_personality.stay_tt
		reverse_add_opinion = {
    		modifier = pleased_opinion
    		target = scope:child
    		opinion = 15
    	}
		stress_impact = {
			forgiving = medium_stress_loss
			compassionate = minor_stress_loss
			vengeful = medium_stress_gain
			wrathful = minor_stress_gain
		}
		ai_chance = {
			base = 100
			ai_value_modifier = {
				ai_compassion = 0.5
			}
			modifier = {
				factor = 3
				has_trait = forgiving
			}
		}
	}
	
	option = {
		name = child_personality.105.borders
		custom_tooltip = child_personality.105.borders_tt
		ai_chance = {
			base = 100
			modifier = {
				factor = 3
				OR = {
					has_trait = paranoid
					has_trait = arrogant
				}
			}
			ai_value_modifier = {
				ai_rationality = 0.5
			}
		}
		
		stress_impact = {
			base = child_trait_change_stress_penalty
			forgiving = medium_stress_gain
			arrogant = medium_stress_loss
			paranoid = medium_stress_loss
			vengeful = minor_stress_loss
		}
		
		
		random_list = {
			50 = {
				modifier = {
					factor = 0.4
					root.diplomacy >= medium_skill_rating
				}
				desc = child_personality.stay_tt
				send_interface_toast = {
					title = child_personality.stay_tt
					left_icon = scope:child
				}
			}
			50 = {
				desc = child_personality.under_tt
				modifier = {
					factor = 0.2
					scope:child = {
						has_trait = forgiving
					}
				}

				send_interface_toast = {
					title = child_personality.under_tt
					left_icon = scope:child
					scope:child = {
						remove_trait = forgiving
						add_diplomacy_skill = 1
						add_intrigue_skill = 1
					}
				}
			}
			50 = {
				desc = child_personality.punder_tt
				if = {
					limit = {
						root = {
							has_trait = paranoid
						}
					}
					send_interface_toast = {
						title = child_personality.punder_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = trusting
							add_intrigue_skill = 1
						}
					}
				}
				else = {
					send_interface_toast = {
						title = child_personality.punder_tt
						left_icon = scope:child
						scope:child = {
							add_diplomacy_skill = 1
						}
					}
				}
			}	
		}
	}
	
	option = {
		name = child_personality.105.crit
		
		ai_chance = {
			base = 100
			ai_value_modifier = {
				ai_honor = -0.3
				ai_compassion = -0.3
			}
			modifier = {
				factor = 3
				OR = {
					has_trait = wrathful
					has_trait = sadistic
				}
			}
			modifier = {
				factor = 0
				OR = {
					has_trait = calm
					has_trait = compassionate
				}
			}
		}
		
		stress_impact = {
			base = child_trait_change_stress_penalty
			wrathful = medium_stress_loss
			forgiving = medium_stress_gain
			sadistic = minor_stress_loss
		}
		
		reverse_add_opinion = {
			modifier = disappointed_opinion
			target = scope:child
			opinion = -30
		}
		
		random_list = {
			50 = { 
				desc = child_personality.stay_tt
				send_interface_toast = {
					title = child_personality.stay_tt
					left_icon = scope:child
				}
			}
			50 = {
				desc = child_personality.hardened_tt
				modifier = {
					factor = 0.1
					scope:child = {
						OR = {
							has_trait = stubborn
						}
					}
				}
				scope:child = {
					remove_trait = forgiving
				}
				if = {
					limit = {
						scope:child = {
							NOR = {
								has_trait = wrathful
								has_trait = calm
							}
						}
					}
					send_interface_toast = {
						title = child_personality.hardened_tt
						left_icon = scope:child
						scope:child = {
							add_trait_force_tooltip = wrathful
						}
					}
				}
				else = {
					send_interface_toast = {
						title = child_personality.hardened_tt
						left_icon = scope:child
						scope:child = {
							add_trait_force_tooltip = vengeful
						}
					}
				}
			}
			
			50 = {
				desc = child_personality.close_tt
				scope:child = {
					remove_trait = forgiving
				}
				if = {
					limit = {
						scope:child = {
							NOR = {
								has_trait = shy
								has_trait = gregarious
							}
						}
					}
					send_interface_toast = {
						title = child_personality.close_tt
						left_icon = scope:child
						scope:child = {
							add_trait_force_tooltip = shy
						}
					}
				}
				else_if = {
					limit = {
						scope:child = {
							NOT = {
								has_trait = shy
							}
						}
					}
					send_interface_toast = {
						title = child_personality.close_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = gregarious
						}
					}
				}
				else = {
					send_interface_toast = {
						title = child_personality.close_tt
						left_icon = scope:child
						scope:child = {
							add_diplomacy_skill = -2
						}
					}
				}
			}
		}
	}
}

#Child has demonstrated fickle nature
child_personality.1053 = {
	type = character_event
	title = child_personality.1053.t
	desc = {
		desc = child_personality.105.desc
		desc = child_personality.1053.desc
	}
	theme = education
	left_portrait = {
		character = scope:child
		animation = personality_bold
	}
	right_portrait = {
		character = scope:doing_push
		animation = happiness
	}
	
	option = {
		name = child_personality.105.confirm_fickle
		custom_tooltip = child_personality.keeps_fickle_tt
		reverse_add_opinion = {
    		modifier = pleased_opinion
    		target = scope:child
    		opinion = 20
    	}
		stress_impact = {
			forgiving = medium_stress_loss
			compassionate = minor_stress_loss
			fickle = minor_stress_loss
			stubborn = minor_stress_gain
			vengeful = medium_stress_gain
			wrathful = minor_stress_gain
		}
		ai_chance = {
			base = 100
			ai_value_modifier = {
				ai_compassion = 0.2
				ai_vengefulness = -0.2
			}
			modifier = {
				factor = 3
				has_trait = fickle
			}
		}
	}
	
	option = {
		name = child_personality.105.consistent
		custom_tooltip = child_personality.105.consistent_tt
		ai_chance = {
			base = 100
			modifier = {
				factor = 3
				OR = {
					has_trait = stubborn
					has_trait = vengeful
				}
			}
			ai_value_modifier = {
				ai_rationality = 0.2
			}
		}
		
		stress_impact = {
			base = child_trait_change_stress_penalty
			forgiving = medium_stress_gain
			arrogant = minor_stress_loss
			stubborn = medium_stress_loss
			vengeful = minor_stress_loss
			fickle = minor_stress_gain
		}
		
		
		random_list = {
			50 = {
				modifier = {
					factor = 0.4
					root.diplomacy >= medium_skill_rating
				}
				desc = child_personality.keeps_fickle_tt
				send_interface_toast = {
					title = child_personality.keeps_fickle_tt
					left_icon = scope:child
				}
			}
			50 = {
				desc = child_personality.under_tt

				send_interface_toast = {
					title = child_personality.under_tt
					left_icon = scope:child
					scope:child = {
						remove_trait = fickle
						add_diplomacy_skill = 1
						add_stewardship_skill = 1
					}
				}
			}
			50 = {
				desc = child_personality.punder_tt

				send_interface_toast = {
					title = child_personality.punder_tt
					left_icon = scope:child
					scope:child = {
						remove_trait = fickle
						add_trait_force_tooltip = stubborn
					}
				}
			}	
		}
	}
	
	option = {
		name = child_personality.105.crit_alt
		
		ai_chance = {
			base = 100
			ai_value_modifier = {
				ai_honor = -0.3
				ai_compassion = -0.3
			}
			modifier = {
				factor = 3
				OR = {
					has_trait = wrathful
					has_trait = sadistic
				}
			}
			modifier = {
				factor = 0
				OR = {
					has_trait = calm
					has_trait = compassionate
				}
			}
		}
		
		stress_impact = {
			base = child_trait_change_stress_penalty
			wrathful = medium_stress_loss
			sadistic = minor_stress_loss
			compassionate = medium_stress_gain
			arrogant = minor_stress_loss
		}
		
		reverse_add_opinion = {
			modifier = disappointed_opinion
			target = scope:child
			opinion = -20
		}
		
		random_list = {
			50 = { 
				desc = child_personality.stay_tt
				send_interface_toast = {
					title = child_personality.stay_tt
					left_icon = scope:child
				}
			}
			50 = {
				desc = child_personality.hardened_tt
				scope:child = {
					remove_trait = fickle
				}
				if = {
					limit = {
						scope:child = {
							NOR = {
								has_trait = wrathful
								has_trait = calm
							}
						}
					}
					send_interface_toast = {
						title = child_personality.hardened_tt
						left_icon = scope:child
						scope:child = {
							add_trait_force_tooltip = wrathful
						}
					}
				}
				else = {
					send_interface_toast = {
						title = child_personality.hardened_tt
						left_icon = scope:child
						scope:child = {
							add_martial_skill = 1
							add_diplomacy_skill = -1
							add_stewardship_skill = -1
						}
					}
				}
			}
			
			50 = {
				desc = child_personality.close_tt
				scope:child = {
					remove_trait = fickle
				}
				if = {
					limit = {
						scope:child = {
							NOR = {
								has_trait = shy
								has_trait = gregarious
							}
						}
					}
					send_interface_toast = {
						title = child_personality.close_tt
						left_icon = scope:child
						scope:child = {
							add_trait_force_tooltip = shy
						}
					}
				}
				else_if = {
					limit = {
						scope:child = {
							NOT = {
								has_trait = shy
							}
						}
					}
					send_interface_toast = {
						title = child_personality.close_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = gregarious
						}
					}
				}
				else = {
					send_interface_toast = {
						title = child_personality.close_tt
						left_icon = scope:child
						scope:child = {
							add_diplomacy_skill = -2
						}
					}
				}
			}
		}
	}
}

#Child has demonstrated stubborn nature
child_personality.1054 = {
	type = character_event
	title = child_personality.1054.t
	desc = {
		desc = child_personality.105.desc
		desc = child_personality.1054.desc
	}
	theme = education
	left_portrait = {
		character = scope:child
		animation = anger
	}
	right_portrait = {
		character = scope:doing_push
		animation = personality_cynical
	}
	
	option = {
		name = child_personality.105.confirm_stubborn
		custom_tooltip = child_personality.keeps_stubborn_tt
		stress_impact = {
			forgiving = minor_stress_gain
			fickle = minor_stress_gain
			vengeful = minor_stress_gain
			wrathful = minor_stress_gain
		}
		ai_chance = {
			base = 100
		}
	}
	
	option = {
		name = child_personality.105.change
		stress_impact = {
			base = child_trait_change_stress_penalty
			compassionate = minor_stress_loss
			fickle = medium_stress_loss
			wrathful = minor_stress_gain
			vengeful = medium_stress_gain
			calm = medium_stress_loss
		}
		ai_chance = {
			base = 100
			ai_value_modifier = {
				ai_compassion = 0.5
				ai_vengefulness = -0.5
			}
			modifier = {
				factor = 3
				OR = {
					has_trait = calm
					has_trait = fickle
				}
			}
		}
		
		random_list = {	
			60 = {
				desc = child_personality.keeps_stubborn_tt
				send_interface_toast = {
					title = child_personality.keeps_stubborn_tt
					left_icon = scope:child
				}
			}
			40 = { 
				desc = child_personality.neutral_tt
				modifier = {
					factor = 2
					root.diplomacy >= medium_skill_rating
				}
				send_interface_toast = {
					title = child_personality.neutral_tt
					left_icon = scope:child
					scope:child = {
						remove_trait = stubborn
					}
				}
			}
		}
	}
	
	option = {
		trigger = {
			OR = {
				AND = {
					OR = {
						NOT = { exists = scope:push_father}
						scope:push_father = { child_available_for_nsp = yes }
					}
					OR = {
						NOT = { exists = scope:push_mother }
						scope:push_mother = { child_available_for_nsp = yes }
					}
				}
				scope:doing_push = {
					any_parent = { this = root }
				}
			}
		}
		name = child_personality.105.punish_other
		stress_impact = {
			arbitrary = medium_stress_loss
			wrathful = minor_stress_loss
		}
		
		reverse_add_opinion = {
			modifier = pleased_opinion
			target = scope:child
			opinion = 25
		}
		
		reverse_add_opinion = {
			modifier = scared_opinion
			target = scope:doing_push
			opinion = -20
		}
		
		if = {
			limit = {
				NOT = { 
					scope:doing_push = {
						any_parent = { this = root }
					}
				}
			}
			if = {
				limit = {
					exists = scope:push_mother
				}
				reverse_add_opinion = {
					modifier = angry_opinion
					target = scope:push_mother
					opinion = -30
				}
				scope:push_mother = {
					trigger_event = child_personality.2908
				}
			}
			if = {
				limit = {
					exists = scope:push_father
				}
				reverse_add_opinion = {
					modifier = angry_opinion
					target = scope:push_father
					opinion = -30
				}
				scope:push_father = {
					trigger_event = child_personality.2908
				}
			}
		}
		
		scope:doing_push = {
			trigger_event = child_personality.2907
		}
		
		ai_chance = {
			base = 100
			ai_value_modifier = {
				ai_compassion = -0.2
				ai_rationality = -0.3
				ai_vengefulness = 0.2
			}
			modifier = {
				factor = 3
				has_trait = arbitrary
			}
		}
	}
	
	option = {
		name = child_personality.105.act
		custom_tooltip = child_personality.105.act_tt
		ai_chance = {
			base = 100
			modifier = {
				factor = 3
				OR = {
					has_trait = vengeful
				}
			}
			ai_value_modifier = {
				ai_rationality = 0.2
			}
		}
		
		stress_impact = {
			base = child_trait_change_stress_penalty
			forgiving = medium_stress_gain
			arrogant = minor_stress_loss
			vengeful = medium_stress_loss
			compassionate = minor_stress_gain
		}
		
		
		random_list = {
			50 = {
				modifier = {
					factor = 0.4
					root.diplomacy >= medium_skill_rating
				}
				desc = child_personality.keeps_stubborn_tt
				send_interface_toast = {
					title = child_personality.keeps_stubborn_tt
					left_icon = scope:child
				}
			}
			50 = {
				desc = child_personality.under_tt

				send_interface_toast = {
					title = child_personality.under_tt
					left_icon = scope:child
					scope:child = {
						remove_trait = forgiving
						add_trait_force_tooltip = vengeful
						add_diplomacy_skill = 1
						add_stewardship_skill = 1
					}
				}
			}
			50 = {
				desc = child_personality.punder_tt

				send_interface_toast = {
					title = child_personality.punder_tt
					left_icon = scope:child
					scope:child = {
						remove_trait = forgiving
						add_intrigue_skill = 1
					}
				}
			}	
		}
	}
	
	
	option = {
		name = child_personality.105.crit
		
		ai_chance = {
			base = 100
			ai_value_modifier = {
				ai_honor = -0.3
				ai_compassion = -0.3
			}
			modifier = {
				factor = 3
				OR = {
					has_trait = wrathful
					has_trait = sadistic
				}
			}
			modifier = {
				factor = 0
				OR = {
					has_trait = calm
					has_trait = compassionate
				}
			}
		}
		
		stress_impact = {
			base = child_trait_change_stress_penalty
			wrathful = medium_stress_loss
			sadistic = minor_stress_loss
			compassionate = medium_stress_gain
		}
		
		reverse_add_opinion = {
			modifier = disappointed_opinion
			target = scope:child
			opinion = -30
		}
		
		random_list = {
			80 = { 
				desc = child_personality.stay_tt
				send_interface_toast = {
					title = child_personality.stay_tt
					left_icon = scope:child
				}
			}
			20 = {
				desc = child_personality.hardened_tt
				if = {
					limit = {
						scope:child = {
							NOR = {
								has_trait = wrathful
								has_trait = calm
							}
						}
					}
					send_interface_toast = {
						title = child_personality.hardened_tt
						left_icon = scope:child
						scope:child = {
							add_trait_force_tooltip = wrathful
						}
					}
				}
				else = {
					send_interface_toast = {
						title = child_personality.hardened_tt
						left_icon = scope:child
						scope:child = {
							add_martial_skill = 1
							add_diplomacy_skill = -1
							add_stewardship_skill = -1
						}
					}
				}
			}
			
		}
	}
}

#Responses to Child Crush Yanking Around
#0006

#Child has demonstrated anger

child_personality.1061 = {
	type = character_event
	title = child_personality.1061.t
	desc = {
		desc = my_ward_or_child
		first_valid = {
			triggered_desc = {
				trigger = {
					exists = scope:crush
				}
				desc = child_personality.106.desc_crush
			}
			desc = child_personality.106.desc
		}
		
		desc = child_personality.1061.desc
	}
	theme = education
	left_portrait = {
		character = scope:child
		animation = anger
	}
	right_portrait = {
		character = scope:crush
		animation = dismissal
	}

	
	option = {
		name = child_personality.106.confirm_wrathful
		custom_tooltip = child_personality.stay_tt
		reverse_add_opinion = {
    		modifier = pleased_opinion
    		target = scope:child
    		opinion = 10
    	}
		stress_impact = {
			compassionate = minor_stress_loss
			wrathful = minor_stress_loss
			callous = minor_stress_loss
		}
		ai_chance = {
			base = 100
			ai_value_modifier = {
				ai_compassion = -0.2
			}
			modifier = {
				factor = 3
				has_trait = wrathful
			}
		}
	}
	
	option = {
		name = child_personality.106.tips_dealing
		
		ai_chance = {
			base = 100
			modifier = {
				factor = 3
				OR = {
					has_trait = arrogant
					has_trait = calm
				}
			}
			ai_value_modifier = {
				ai_vengefulness = -0.5
				ai_sociability = 0.2
				ai_rationality = 0.2
			}
		}
		
		stress_impact = {
			base = child_trait_change_stress_penalty
			calm = medium_stress_loss
			arrogant = minor_stress_loss
			wrathful = minor_stress_gain
			sadistic = minor_stress_gain
		}
		
		reverse_add_opinion = {
    		modifier = pleased_opinion
    		target = scope:child
    		opinion = 10
    	}
		
		random_list = {
			50 = {
				modifier = {
					factor = 0.4
					root.diplomacy >= medium_skill_rating
				}
				desc = child_personality.stay_tt
				send_interface_toast = {
					title = child_personality.stay_tt
					left_icon = scope:child
				}
			}
			50 = {
				desc = child_personality.neutral_tt
				modifier = {
					factor = 0.5
					scope:child = {
						has_trait = wrathful
					}
				}

				if = {
					limit = {
						scope:child = {
							NOT = {
								has_trait = wrathful
							}
						}
					}
					send_interface_toast = {
						title = child_personality.neutral_tt
						left_icon = scope:child
						scope:child = {
							add_trait_force_tooltip = calm
						}
					}
				}
				else = {
					send_interface_toast = {
						title = child_personality.neutral_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = wrathful
						}
					}
				}
				
				if = {
					limit = {
						root = {
							has_trait = arrogant
						}
						exists = scope:crush
					}
					scope:child = {
						remove_relation_crush = scope:crush
					}
				}
			}		
		}
	}
	
	option = {
		name = child_personality.106.tips_love
		
		ai_chance = {
			base = 100
			modifier = {
				factor = 3
				OR = {
					has_trait = compassionate
				}
			}
			ai_value_modifier = {
				ai_vengefulness = -0.5
				ai_sociability = 0.2
				ai_compassion = 0.5
			}
		}
		
		stress_impact = {
			base = child_trait_change_stress_penalty
			arrogant = minor_stress_loss
			wrathful = minor_stress_gain
			sadistic = minor_stress_gain
			compassionate = medium_stress_loss
			gallant = medium_stress_loss
		}
		
	
		
		random_list = {
			50 = {
				modifier = {
					factor = 0.2
					root.diplomacy >= medium_skill_rating
				}
				desc = child_personality.minus_tt
				reverse_add_opinion = {
					modifier = disappointed_opinion
					target = scope:child
					opinion = -15
				}
				send_interface_toast = {
					title = child_personality.minus_tt
					left_icon = scope:child
				}
			}
			50 = {
				desc = child_personality.plus_tt
				modifier = {
					factor = 2
					has_trait = gallant
				}
				modifier = {
					add = 20
					has_trait = compassionate
				}
				reverse_add_opinion = {
					modifier = pleased_opinion
					target = scope:child
					opinion = 25
				}
				if = {
					limit = {
						scope:child = {
							has_trait = wrathful
						}
					}
					send_interface_toast = {
						title = child_personality.plus_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = wrathful
						}
					}
				}
				else = {
					send_interface_toast = {
						title = child_personality.plus_tt
						left_icon = scope:child
						scope:child = {
							add_diplomacy_skill = 1
						}
					}
				}
				
				if = {
					limit = {
						exists = scope:crush
					}
					scope:crush = {
						trigger_event = child_personality.2909
					}
				}
			}		
		}
	}
	
	option = {
		name = child_personality.106.payback
		custom_tooltip = child_personality.gains_vengeful_tt
		stress_impact = {
			compassionate = minor_stress_gain
			wrathful = minor_stress_loss
			sadistic = minor_stress_loss
			vengeful = medium_stress_loss
			paranoid = minor_stress_loss
		}
		ai_chance = {
			base = 70
			ai_value_modifier = {
				ai_vengefulness = 0.7
			}
			modifier = {
				factor = 3
				has_trait = vengeful
			}
		}
		scope:child = {
			remove_trait = forgiving
			add_trait_force_tooltip = vengeful
		}
		
		if = {
			limit = {
				exists = scope:crush
			}
			scope:child = {
				remove_relation_crush = scope:crush
			}
		}

	}
}

#Child has become chaste
child_personality.1062 = {
	type = character_event
	title = child_personality.1062.t
	desc = {
		desc = my_ward_or_child
		first_valid = {
			triggered_desc = {
				trigger = {
					exists = scope:crush
				}
				desc = child_personality.106.desc_crush
			}
			desc = child_personality.106.desc
		}
		
		desc = child_personality.1062.desc
	}
	theme = education
	left_portrait = {
		character = scope:child
		animation = sadness
	}
	

	right_portrait = {
		character = scope:crush
		animation = dismissal
	}
	
	option = {
		name = child_personality.106.confirm_chaste
		custom_tooltip = child_personality.keeps_chaste_tt
		stress_impact = {
			chaste = minor_stress_loss
			callous = minor_stress_loss
			arrogant = minor_stress_loss
		}
		ai_chance = {
			base = 100
			ai_value_modifier = {
				ai_compassion = -0.2
			}
			modifier = {
				factor = 3
				has_trait = chaste
			}
		}
	}
	
	option = {
		name = child_personality.106.feelings
		
		ai_chance = {
			base = 100
			modifier = {
				factor = 3
				OR = {
					has_trait = compassionate
					has_trait = calm
				}
			}
			ai_value_modifier = {
				ai_sociability = 0.2
				ai_compassion = 0.5
			}
		}
		
		stress_impact = {
			base = child_trait_change_stress_penalty
			calm = minor_stress_loss
			patient = minor_stress_loss
			compassionate = medium_stress_loss
			sadistic = minor_stress_gain
		}
		
		random_list = {
			40 = {
				modifier = {
					factor = 0.4
					root.diplomacy >= medium_skill_rating
				}
				desc = child_personality.stay_tt
				send_interface_toast = {
					title = child_personality.stay_tt
					left_icon = scope:child
				}
			}
			60 = {
				desc = child_personality.neutral_tt
				reverse_add_opinion = {
					modifier = pleased_opinion
					target = scope:child
					opinion = 15
				}
				send_interface_toast = {
					title = child_personality.neutral_tt
					left_icon = scope:child
					scope:child = {
						remove_trait = chaste
						add_diplomacy_skill = 1
					}
				}
			}		
		}
	}
	
	option = {
		name = child_personality.106.payback
		stress_impact = {
			base = child_trait_change_stress_penalty
			compassionate = medium_stress_gain
			wrathful = minor_stress_loss
			sadistic = minor_stress_loss
			vengeful = medium_stress_loss
			paranoid = minor_stress_loss
		}
		ai_chance = {
			base = 70
			ai_value_modifier = {
				ai_vengefulness = 0.6
			}
			modifier = {
				factor = 3
				has_trait = vengeful
			}
		}
		random_list = {
			40 = {
				modifier = {
					factor = 0.4
					root.intrigue >= medium_skill_rating
				}
				desc = child_personality.stay_tt
				send_interface_toast = {
					title = child_personality.stay_tt
					left_icon = scope:child
				}
			
			}
			60 = {
				desc = child_personality.gains_vengeful_tt
				send_interface_toast = {
					title = child_personality.gains_vengeful_tt
					left_icon = scope:child
					scope:child = {
						remove_trait = forgiving
						add_trait_force_tooltip = vengeful
					}
				}
			}
		}	
	}
}

#Child has become lustful
child_personality.1063 = {
	type = character_event
	title = child_personality.1063.t
	desc = {
		desc = my_ward_or_child
		first_valid = {
			triggered_desc = {
				trigger = {
					exists = scope:crush
				}
				desc = child_personality.106.desc_crush
			}
			desc = child_personality.106.desc
		}
		
		desc = child_personality.1063.desc
	}
	theme = education
	left_portrait = {
		character = scope:child
		animation = personality_irrational
	}
	
	right_portrait = {
		character = scope:crush
		animation = dismissal
	}
	
	option = {
		name = child_personality.106.confirm_lustful
		custom_tooltip = child_personality.keeps_lustful_tt
		stress_impact = {
			lustful = minor_stress_loss
			chaste = medium_stress_gain
			compassionate = minor_stress_loss
		}
		ai_chance = {
			base = 100
			modifier = {
				factor = 3
				has_trait = lustful
			}
		}
	}
	
	option = {
		name = child_personality.106.tips_dealing_alt
		
		ai_chance = {
			base = 100
			modifier = {
				factor = 3
				OR = {
					has_trait = compassionate
					has_trait = calm
				}
			}
			ai_value_modifier = {
				ai_sociability = 0.2
				ai_rationality = 0.2
			}
		}
		
		stress_impact = {
			base = child_trait_change_stress_penalty
			calm = minor_stress_loss
			patient = minor_stress_loss
			compassionate = medium_stress_loss
			sadistic = minor_stress_gain
		}
	
		
		random_list = {
			50 = {
				modifier = {
					factor = 0.4
					root.diplomacy >= medium_skill_rating
				}
				desc = child_personality.stay_tt
				send_interface_toast = {
					title = child_personality.stay_tt
					left_icon = scope:child
				}
			}
			50 = {
				desc = child_personality.neutral_tt
				reverse_add_opinion = {
					modifier = pleased_opinion
					target = scope:child
					opinion = 20
				}
				send_interface_toast = {
					title = child_personality.neutral_tt
					left_icon = scope:child
					scope:child = {
						remove_trait = lustful
						add_diplomacy_skill = 1
					}
				}
			}		
		}
	}
	
	option = {
		name = child_personality.106.payback
		stress_impact = {
			base = child_trait_change_stress_penalty
			compassionate = medium_stress_gain
			wrathful = minor_stress_loss
			sadistic = minor_stress_loss
			vengeful = medium_stress_loss
			paranoid = minor_stress_loss
		}
		ai_chance = {
			base = 70
			ai_value_modifier = {
				ai_vengefulness = 0.6
			}
			modifier = {
				factor = 3
				has_trait = vengeful
			}
		}
		random_list = {
			40 = {
				modifier = {
					factor = 0.4
					root.intrigue >= medium_skill_rating
				}
				desc = child_personality.stay_tt
				send_interface_toast = {
					title = child_personality.stay_tt
					left_icon = scope:child
				}
			
			}
			60 = {
				desc = child_personality.gains_vengeful_tt
				send_interface_toast = {
					title = child_personality.gains_vengeful_tt
					left_icon = scope:child
					scope:child = {
						remove_trait = forgiving
						add_trait_force_tooltip = vengeful
					}
				}
			}
		}	
	}
	
	option = {
		name = child_personality.106.bonk
		trigger = {
			has_trait = chaste
		}
		stress_impact = {
			base = child_trait_change_stress_penalty
			chaste = minor_stress_gain
		}
		custom_tooltip = child_personality.exchange_tt
	
		random_list = {
			30 = {
				modifier = {
					factor = 0.2
					OR = {
						root.diplomacy >= high_skill_rating
						root.learning >= high_skill_rating
					}
				}
				desc = child_personality.keeps_lustful_tt
				send_interface_toast = {
					title = child_personality.keeps_lustful_tt
					left_icon = scope:child
				}
				
			}
			40 = {
				modifier = {
					factor = 3
					AND = {
						root.diplomacy >= medium_skill_rating
						root.diplomacy < high_skill_rating
						root.learning >= medium_skill_rating
						root.learning < high_skill_rating
					}
				}
				send_interface_toast = {
					title = child_personality.loses_lustful_tt
					left_icon = scope:child
					scope:child = {
						remove_trait = lustful
					}
				}
			}
			30 = {
				scope:child = {
					remove_trait = lustful
				}
				send_interface_toast = {
					title = child_personality.gains_chaste_tt
					left_icon = scope:child
					scope:child = {
						add_trait_force_tooltip = chaste
					}
				}
				modifier = {
					factor = 6
					OR = {
						root.learning >= high_skill_rating
						root.diplomacy >= high_skill_rating
					}
				}
			}
		}
		ai_chance = {
			base = 600
		}
	}
}

#Child has demonstrated stubborness

child_personality.1064 = {
	type = character_event
	title = child_personality.1064.t
	desc = {
		desc = my_ward_or_child
		first_valid = {
			triggered_desc = {
				trigger = {
					exists = scope:crush
				}
				desc = child_personality.106.desc_crush
			}
			desc = child_personality.106.desc
		}
		
		desc = child_personality.1064.desc
	}
	theme = education
	left_portrait = {
		character = scope:child
		animation = personality_bold
	}
	
	right_portrait = {
		character = scope:crush
		animation = dismissal
	}
	
	option = {
		name = child_personality.106.confirm_stubborn
		custom_tooltip = child_personality.stay_tt
		stress_impact = {
			stubborn = minor_stress_loss
			lazy = minor_stress_gain
			ambitious = minor_stress_loss
			diligent = minor_stress_loss
		}
		ai_chance = {
			base = 100
			ai_value_modifier = {
				ai_energy = 0.2
				ai_rationality = -0.2
			}
			modifier = {
				factor = 3
				has_trait = stubborn
			}
		}
	}
	
	option = {
		name = child_personality.106.tips_dealing_alt_alt
		
		ai_chance = {
			base = 100
			modifier = {
				factor = 3
				OR = {
					has_trait = calm
				}
			}
			ai_value_modifier = {
				ai_rationality = 0.2
			}
		}
		
		stress_impact = {
			base = child_trait_change_stress_penalty
			calm = minor_stress_loss
			patient = minor_stress_loss
			chaste = minor_stress_loss
		}
	
		
		random_list = {
			50 = {
				modifier = {
					factor = 0.4
					root.diplomacy >= medium_skill_rating
				}
				modifier = {
					factor = 3
					scope:child = { has_trait = stubborn }
				}
				desc = child_personality.stay_tt
				reverse_add_opinion = {
					modifier = disappointed_opinion
					target = scope:child
					opinion = -10
				}
				send_interface_toast = {
					title = child_personality.stay_tt
					left_icon = scope:child
				}
			}
			50 = {
				desc = child_personality.neutral_tt
				reverse_add_opinion = {
					modifier = pleased_opinion
					target = scope:child
					opinion = 10
				}
				if = {
					limit = {
						scope:child = {
							NOT = {
								has_trait = stubborn
							}
						}
					}
					send_interface_toast = {
						title = child_personality.neutral_tt
						left_icon = scope:child
						scope:child = {
							add_diplomacy_skill = 1
						}
					}
				}
				else = {
					send_interface_toast = {
						title = child_personality.neutral_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = stubborn
							add_diplomacy_skill = 1
						}
					}
				}
			}		
		}
	}
	
	option = {
		name = child_personality.106.tips_love
		
		ai_chance = {
			base = 100
			modifier = {
				factor = 3
				OR = {
					has_trait = compassionate
				}
			}
			ai_value_modifier = {
				ai_vengefulness = -0.5
				ai_sociability = 0.2
				ai_compassion = 0.5
			}
		}
		
		stress_impact = {
			base = child_trait_change_stress_penalty
			arrogant = minor_stress_loss
			wrathful = minor_stress_gain
			sadistic = minor_stress_gain
		}
		
		random_list = {
			50 = {
				modifier = {
					factor = 0.2
					root.diplomacy >= medium_skill_rating
				}
				desc = child_personality.minus_tt
				reverse_add_opinion = {
					modifier = disappointed_opinion
					target = scope:child
					opinion = -15
				}
				send_interface_toast = {
					title = child_personality.minus_tt
					left_icon = scope:child
				}
			}
			50 = {
				desc = child_personality.plus_tt
				modifier = {
					factor = 2
					has_trait = gallant
				}
				modifier = {
					add = 20
					has_trait = compassionate
				}
				reverse_add_opinion = {
					modifier = pleased_opinion
					target = scope:child
					opinion = 25
				}
				send_interface_toast = {
					title = child_personality.plus_tt
					left_icon = scope:child
					scope:child = {
						add_diplomacy_skill = 1
					}
				}		
				if = {
					limit = {
						exists = scope:crush
					}
					scope:crush = {
						trigger_event = {
							id = child_personality.2910
							days = { 5 10 }
						}
					}
				}
			}		
		}
	}
	
	
	option = {
		name = child_personality.106.payback_alt
		custom_tooltip = child_personality.106.payback_alt_tt
		stress_impact = {
			base = child_trait_change_stress_penalty
			compassionate = medium_stress_gain
			wrathful = minor_stress_loss
			sadistic = medium_stress_loss
			callous = minor_stress_loss
			arrogant = minor_stress_loss
		}
		ai_chance = {
			base = 100
			ai_value_modifier = {
				ai_compassion = -0.7
			}
			modifier = {
				factor = 3
				has_trait = sadistic
			}
		}
		reverse_add_opinion = {
			modifier = disappointed_opinion
			target = scope:child
			opinion = -25
		}
		
		random_list = {
			70 = {
				modifier = {
					factor = 3
					scope:child = {
						has_trait = stubborn
					}
				}
				desc = child_personality.stay_tt
				send_interface_toast = {
					title = child_personality.stay_tt
					left_icon = scope:child
				}
			
			}
			30 = { 
				desc = child_personality.hardened_tt
				modifier = {
					factor = 3
					scope:child = {
						OR = {
							has_trait = wrathful
							has_trait = vengeful
						}
					}
				}
				if = {
					limit = {
						scope:child = {
							NOR = { 
								has_trait = calm
								has_trait = wrathful
							}
						}
					}
					send_interface_toast = {
						title = child_personality.hardened_tt
						left_icon = scope:child
						scope:child = {
							add_trait_force_tooltip = wrathful
						}
					}
				}
				else_if = {
					limit = {
						scope:child = {
							NOT = { 
								has_trait = vengeful
							}
						}
					}
					scope:child = {
						remove_trait = forgiving
					}
					send_interface_toast = {
						title = child_personality.hardened_tt
						left_icon = scope:child
						scope:child = {
							add_trait_force_tooltip = vengeful
						}
					}
				}
				else = {
					send_interface_toast = {
						title = child_personality.hardened_tt
						left_icon = scope:child
						scope:child = {
							add_martial_skill = 1
							add_diplomacy_skill = -2
						}
					}
				}
			}
		}	
	}
	
}



#Responses to Wilderness Flower event
#0007

#Child has demonstrated risking
child_personality.1071 = {
	type = character_event
	title = child_personality.1071.t
	desc = child_personality.1071.desc
	theme = education
	left_portrait = {
		character = scope:child
		animation = personality_bold
	}
	
	option = {
		name = child_personality.107.encourage
		reverse_add_opinion = {
    		modifier = pleased_opinion
    		target = scope:child
    		opinion = 20
    	}
		stress_impact = {
			brave = minor_stress_loss
			craven = medium_stress_gain
			paranoid = medium_stress_gain
			lazy = minor_stress_loss
		}
		
		if = {
			limit = {
				scope:child = {
					NOR = {
						has_trait = patient
						has_trait = calm
						has_trait = content
					}
				}
			}
			random_list = {
				50 = { 
					desc = child_personality.rightdir_tt
					send_interface_toast = {
						title = child_personality.rightdir_tt
						left_icon = scope:child
					}
				}
				50 = {
					desc = child_personality.wrongdir_tt
					modifier = {
						factor = 3
						scope:child = {
							OR = {
								has_trait = impatient
								has_trait = wrathful
								has_trait = ambitious
							}
						}
					}
					send_interface_toast = {
						title = child_personality.wrongdir_tt
						left_icon = scope:child
						scope:child = {
							add_prowess_skill = 1
							add_learning_skill = -1
							add_stewardship_skill = -1
							add_intrigue_skill = -1
						}
					}
				}
			}
		}
		else = {
			custom_tooltip = child_personality.rightdir_tt
		}
		ai_chance = {
			base = 100
			ai_value_modifier = {
				ai_energy = 0.2
				ai_rationality = -0.2
			}
			modifier = {
				factor = 3
				has_trait = brave
			}
		}
	}
	
	option = {
		name = child_personality.107.moderate
		
		ai_chance = {
			base = 100
			ai_value_modifier = {
				ai_rationality = 0.2
				ai_energy = -0.2
			}
			modifier = {
				factor = 3
				OR = {
					has_trait = diligent
					has_trait = zealous
				}
			}
		}
		
		stress_impact = {
			base = child_trait_change_stress_penalty
			diligent = minor_stress_loss
			lazy = minor_stress_gain
			zealous = minor_stress_loss
		}
		
		random_list = {
			50 = {
				desc = child_personality.stay_tt
				reverse_add_opinion = {
					modifier = disappointed_opinion
					target = scope:child
					opinion = -10
				}
				send_interface_toast = {
					title = child_personality.stay_tt
					left_icon = scope:child
				}
			}
			50 = { 
				desc = child_personality.under_tt
				modifier = {
					factor = 0.1
					scope:child = {
						OR = {
							has_trait = stubborn
							has_trait = lazy
							has_trait = cynical
						}
					}
				}
				modifier = {
					factor = 3
					OR = {
						root.learning >= medium_skill_rating
						root.stewardship >= medium_skill_rating
					}
				}
				reverse_add_opinion = {
					modifier = pleased_opinion
					target = scope:child
					opinion = 10
				}
				if = {
					limit = {
						AND = {
							scope:child = {
								has_trait = cynical
							}
							root = {
								has_trait = zealous
							}
						}
					}
					send_interface_toast = {
						title = child_personality.under_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = cynical
							add_learning_skill = 1
						}
					}
				}
				else_if = {
					limit = {
						AND = {
							scope:child = {
								has_trait = zealous
							}
							root = {
								has_trait = zealous
							}
						}
					}
					send_interface_toast = {
						title = child_personality.under_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = brave
							add_prowess_skill = 1
						}
					}
				}
				else_if = {
					limit = {
						root = {
							has_trait = zealous
						}
					}
					send_interface_toast = {
						title = child_personality.under_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = brave
							add_trait_force_tooltip = zealous
						}
					}
				}
				else_if = {
					limit = {
						scope:child = {
							has_trait = lazy
						}
					}
					send_interface_toast = {
						title = child_personality.under_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = lazy
							add_stewardship_skill = 1 
						}
					}
				}
				else_if = {
					limit = {
						scope:child = {
							has_trait = diligent
						}
					}
					send_interface_toast = {
						title = child_personality.under_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = brave
							add_prowess_skill = 1
						}
					}
				}
				else = {
					send_interface_toast = {
						title = child_personality.under_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = brave
							add_trait_force_tooltip = diligent
						}
					}
				}
			}
			50 = {
				desc = child_personality.punder_tt
				send_interface_toast = {
					title = child_personality.punder_tt
					left_icon = scope:child
					scope:child = {
						add_stewardship_skill = 1
						add_learning_skill = 1
						add_prowess_skill = -1
					}
				}
			}
		}
	}
	
	option = {
		name = child_personality.107.limit
		
		ai_chance = {
			base = 100
			ai_value_modifier = {
				ai_rationality = 0.2
				ai_boldness = -0.7
			}
			modifier = {
				factor = 3
				OR = {
					has_trait = paranoid
					has_trait = craven
				}
			}
		}
		
		stress_impact = {
			base = child_trait_change_stress_penalty
			brave = minor_stress_gain
			craven = minor_stress_loss
			compassionate = minor_stress_loss
			paranoid = minor_stress_loss
		}
		
		reverse_add_opinion = {
			modifier = disappointed_opinion
			target = scope:child
			opinion = -15
		}
		
		random_list = {
			50 = {
				desc = child_personality.stay_tt
				send_interface_toast = {
					title = child_personality.stay_tt
					left_icon = scope:child
				}
			}
			50 = { 
				desc = child_personality.calmdir_tt
				modifier = {
					factor = 0.1
					scope:child = {
						OR = {
							has_trait = stubborn
							has_trait = ambitious
						}
					}
				}
				modifier = {
					factor = 3
					OR = {
						root.diplomacy >= medium_skill_rating
						root.intrigue >= medium_skill_rating
					}
				}
				send_interface_toast = {
					title = child_personality.calmdir_tt
					left_icon = scope:child
					scope:child = {
						add_prowess_skill = 1
						remove_trait = brave
					}
				}	
			}
		}
	}
	
	
	option = {
		name = child_personality.107.angry
		
		ai_chance = {
			base = 100
			ai_value_modifier = {
				ai_compassion = -0.3
				ai_rationality = -0.2
			}
			modifier = {
				factor = 3
				has_trait = wrathful
			}
			modifier = {
				factor = 0
				OR = {
					has_trait = calm
					has_trait = compassionate
				}
			}
		}
		
		stress_impact = {
			base = child_trait_change_stress_penalty
			wrathful = medium_stress_loss
			sadistic = minor_stress_loss
			calm = medium_stress_gain
			compassionate = medium_stress_gain
		}	
		
		reverse_add_opinion = {
			modifier = disappointed_opinion
			target = scope:child
			opinion = -20
		}
		
		random_list = {
			50 = {
				modifier = {
					factor = 4
					scope:child = { has_trait = stubborn }
				}
				desc = child_personality.stay_tt
				send_interface_toast = {
					title = child_personality.stay_tt
					left_icon = scope:child
				}
			}
			50 = { 
				desc = child_personality.hardened_tt
				remove_trait = brave
				if = {
					limit = {
						scope:child = {
							NOR = {
								has_trait = wrathful
								has_trait = calm
							}
						}
					}
					send_interface_toast = {
						title = child_personality.hardened_tt
						left_icon = scope:child
						scope:child = {
							add_trait_force_tooltip = wrathful
						}
					}
				}
				else_if = {
					limit = {
						scope:child = {
							NOT = { 
								has_trait = wrathful
							}
						}
					}
					send_interface_toast = {
						title = child_personality.hardened_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = calm
						}
					}
				}
				else = {
					send_interface_toast = {
						title = child_personality.hardened_tt
						left_icon = scope:child
						scope:child = {
							add_prowess_skill = 1
							add_diplomacy_skill = -2
						}
					}
				}
			}
			100 = {
				desc = child_personality.wilddir_tt
				if = {
					limit = {
						scope:child = {
							NOR = {
								has_trait = gregarious
								has_trait = shy
							}
						}
					}
					send_interface_toast = {
						title = child_personality.wilddir_tt
						left_icon = scope:child
						scope:child = {
							add_trait_force_tooltip = shy
							add_intrigue_skill = 1
						}
					}
				}
				else_if = {
					limit = {
						scope:child = {
							NOR = { 
								has_trait = arbitrary
								has_trait = just
							}
						}
					}
					send_interface_toast = {
						title = child_personality.wilddir_tt
						left_icon = scope:child
						scope:child = {
							add_trait_force_tooltip = arbitrary
							add_learning_skill = -1
						}
					}
				}
				else = {
					send_interface_toast = {
						title = child_personality.wilddir_tt
						left_icon = scope:child
						scope:child = {
							add_learning_skill = -2
							add_diplomacy_skill = -2
						}
					}
				}
			}
		}
	}
}


#Child has demonstrated non-risking
child_personality.1072 = {
	type = character_event
	title = child_personality.1072.t
	desc = child_personality.1072.desc
	theme = education
	left_portrait = {
		character = scope:child
		animation = personality_eyeroll
	}
	
	option = {
		name = child_personality.107.prot
		trigger = {
			has_trait = compassionate
		}
		reverse_add_opinion = {
    		modifier = pleased_opinion
    		target = scope:child
    		opinion = 30
    	}
		stress_impact = {
			compassionate = medium_stress_loss
			brave = minor_stress_gain
			craven = medium_stress_loss
			paranoid = medium_stress_loss
		}
		

		random_list = {
			25 = { 
				desc = child_personality.olddir_tt
				send_interface_toast = {
					title = child_personality.olddir_tt
					left_icon = scope:child
				}
			}
			75 = {
				desc = child_personality.overdir_tt
				send_interface_toast = {
					title = child_personality.overdir_tt
					left_icon = scope:child
					scope:child = {
						add_diplomacy_skill = -1
						add_martial_skill = -1
						add_learning_skill = -1
						add_stewardship_skill = -1
						add_intrigue_skill = -1
					}
				}
			}
		}
		ai_chance = {
			base = 300
			ai_value_modifier = {
				ai_rationality = -0.5
			}
		}
	}
	
	option = {
		name = child_personality.107.fine
		custom_tooltip = child_personality.olddir_tt
		trigger = {
			NOT = { has_trait = compassionate }
		}
		reverse_add_opinion = {
    		modifier = pleased_opinion
    		target = scope:child
    		opinion = 20
    	}
		stress_impact = {
			brave = minor_stress_gain
			craven = medium_stress_loss
			paranoid = medium_stress_loss
			sadistic = minor_stress_gain
		}
		send_interface_toast = {
			title = child_personality.olddir_tt
			left_icon = scope:child
		}
		ai_chance = {
			base = 100
			ai_value_modifier = {
				ai_rationality = -0.5
			}
			modifier = {
				factor = 3
				OR = {
					has_trait = paranoid
				}
			}
		}
	}
	
	option = {
		name = child_personality.107.nococo
		trigger = {
			scope:child = {
				NOR = {
					has_trait = craven
					has_trait = content
				}
			}
		}
	
		stress_impact = {
			base = child_trait_change_stress_penalty
			brave = minor_stress_loss
			craven = minor_stress_gain
			lazy = minor_stress_gain
			diligent = minor_stress_loss
			callous = minor_stress_gain
			sadistic = minor_stress_gain
		}
		
		random_list = {
			50 = {
				desc = child_personality.stay_tt
				send_interface_toast = {
					title = child_personality.stay_tt
					left_icon = scope:child
				}
			}
			50 = { 
				desc = child_personality.under_tt
				modifier = {
					factor = 0.1
					scope:child = {
						has_trait = stubborn
					}
				}
				modifier = {
					factor = 4
					OR = {
						root.diplomacy >= medium_skill_rating
						root.martial >= medium_skill_rating
					}
				}
				send_interface_toast = {
					title = child_personality.under_tt
					left_icon = scope:child
					scope:child = {
						add_martial_skill = 1
						add_intrigue_skill = 1
						add_stewardship_skill = 1
						add_prowess_skill = 1
					}
				}
			}
			50 = {
				desc = child_personality.punder_tt
				send_interface_toast = {
					title = child_personality.punder_tt
					left_icon = scope:child
					scope:child = {
						add_prowess_skill = 2
					}
				}
			}
		}
		
		ai_chance = {
			base = 100
			ai_value_modifier = {
				ai_energy = 0.2
				ai_rationality = 0.2
			}
			modifier = {
				factor = 3
				has_trait = brave
			}
		}
	}
	
	option = {
		name = child_personality.107.cow
		trigger = {
			scope:child = {
				has_trait = craven
			}
		}
		
		reverse_add_opinion = {
    		modifier = pleased_opinion
    		target = scope:child
    		opinion = 10
    	}
		
		
		stress_impact = {
			base = child_trait_change_stress_penalty
			brave = medium_stress_loss
			compassionate = minor_stress_loss
			craven = minor_stress_gain
			lazy = minor_stress_gain
			diligent = minor_stress_loss
			callous = minor_stress_gain
			sadistic = minor_stress_gain
		}
		
		random_list = {
			50 = {
				desc = child_personality.stay_tt
				send_interface_toast = {
					title = child_personality.stay_tt
					left_icon = scope:child
				}
			}
			50 = { 
				desc = child_personality.under_tt
				modifier = {
					factor = 0.1
					scope:child = {
						has_trait = paranoid
					}
				}
				modifier = {
					factor = 4
					OR = {
						root.diplomacy >= medium_skill_rating
						root.martial >= medium_skill_rating
					}
				}
				if = {
					limit = {
						scope:child = {
							has_trait = paranoid
						}
					}
					send_interface_toast = {
						title = child_personality.under_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = paranoid
							add_diplomacy_skill = 1
							add_learning_skill = 1
						}
					}
				}
				else = {
					send_interface_toast = {
						title = child_personality.under_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = craven
							add_martial_skill = 1
							add_learning_skill = 1
						}
					}
				}
			}
			50 = {
				desc = child_personality.punder_tt
				send_interface_toast = {
					title = child_personality.punder_tt
					left_icon = scope:child
					scope:child = {
						add_martial_skill = 1
						add_intrigue_skill = 1
					}
				}
			}
		}
		
		ai_chance = {
			base = 100
			ai_value_modifier = {
				ai_energy = 0.3
				ai_rationality = 0.3
				ai_compassion = 0.5
			}
			modifier = {
				factor = 3
				has_trait = brave
			}
		}
	}
	
	option = {
		name = child_personality.107.con
		trigger = {
			scope:child = {
				AND = {
					has_trait = content
					NOT = { has_trait = craven }
				}
			}
		}
		
		stress_impact = {
			base = child_trait_change_stress_penalty
			lazy = minor_stress_gain
			diligent = minor_stress_loss
			callous = minor_stress_gain
			sadistic = minor_stress_gain
			ambitious = minor_stress_loss
		}
		
		random_list = {
			50 = {
				desc = child_personality.stay_tt
				send_interface_toast = {
					title = child_personality.stay_tt
					left_icon = scope:child
				}
			}
			50 = { 
				desc = child_personality.under_tt
				modifier = {
					factor = 4
					OR = {
						root.intrigue >= medium_skill_rating
						root.stewardship >= medium_skill_rating
						root.diplomacy >= medium_skill_rating
					}
				}

				send_interface_toast = {
					title = child_personality.under_tt
					left_icon = scope:child
					scope:child = {
						remove_trait = content
						add_stewardship_skill = 1
						add_intrigue_skill = 1
					}
				}
			}
			50 = {
				desc = child_personality.punder_tt
				send_interface_toast = {
					title = child_personality.punder_tt
					left_icon = scope:child
					scope:child = {
						add_diplomacy_skill = 1
						add_learning_skill = 1
					}
				}
			}
		}
		
		ai_chance = {
			base = 100
			ai_value_modifier = {
				ai_energy = 0.5
			}
			modifier = {
				factor = 3
				has_trait = ambitious
			}
		}
	}
	
	option = {
		name = child_personality.107.beat
		
		ai_chance = {
			base = 100
			ai_value_modifier = {
				ai_compassion = -0.7
			}
			modifier = {
				factor = 3
				has_trait = wrathful
			}
			modifier = {
				factor = 0
				OR = {
					has_trait = calm
					has_trait = compassionate
				}
			}
		}
		
		stress_impact = {
			base = child_trait_change_stress_penalty
			wrathful = minor_stress_loss
			sadistic = medium_stress_loss
			calm = medium_stress_gain
			compassionate = medium_stress_gain
		}	
		
		reverse_add_opinion = {
			modifier = disappointed_opinion
			target = scope:child
			opinion = -20
		}
		
		random_list = {
			50 = {
				modifier = {
					factor = 4
					scope:child = { has_trait = stubborn }
				}
				desc = child_personality.stay_tt
				send_interface_toast = {
					title = child_personality.stay_tt
					left_icon = scope:child
				}
			}
			50 = { 
				desc = child_personality.hardened_tt
				if = {
					limit = {
						scope:child = { has_trait = craven }
					}
					scope:child = { remove_trait = craven }
				}
				if = {
					limit = {
						scope:child = {
							NOR = {
								has_trait = wrathful
								has_trait = calm
							}
						}
					}
					send_interface_toast = {
						title = child_personality.hardened_tt
						left_icon = scope:child
						scope:child = {
							add_trait_force_tooltip = wrathful
						}
					}
				}
				else_if = {
					limit = {
						scope:child = {
							NOT = { 
								has_trait = wrathful
							}
						}
					}
					send_interface_toast = {
						title = child_personality.hardened_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = calm
						}
					}
				}
				else = {
					send_interface_toast = {
						title = child_personality.hardened_tt
						left_icon = scope:child
						scope:child = {
							add_prowess_skill = 1
							add_diplomacy_skill = -2
						}
					}
				}
			}
			100 = {
				desc = child_personality.close_tt
				if = {
					limit = {
						scope:child = {
							NOR = {
								has_trait = gregarious
								has_trait = shy
							}
						}
					}
					send_interface_toast = {
						title = child_personality.close_tt
						left_icon = scope:child
						scope:child = {
							add_trait_force_tooltip = shy
						}
					}
				}
				else_if = {
					limit = {
						scope:child = {
							NOT = { 
								has_trait = shy
							}
						}
					}
					send_interface_toast = {
						title = child_personality.close_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = gregarious
						}
					}
				}
				else = {
					send_interface_toast = {
						title = child_personality.close_tt
						left_icon = scope:child
						scope:child = {
							add_diplomacy_skill = -2
						}
					}
				}
			}
		}
	}
}

#Child has demonstrated capriciousness
child_personality.1073 = {
	type = character_event
	title = child_personality.1073.t
	desc = child_personality.1073.desc
	theme = education
	left_portrait = {
		character = scope:child
		animation = personality_irrational
	}
	
	option = {
		name = child_personality.107.agree
		reverse_add_opinion = {
    		modifier = pleased_opinion
    		target = scope:child
    		opinion = 20
    	}
		stress_impact = {
			compassionate = minor_stress_gain
			arrogant = minor_stress_loss
			humble = minor_stress_gain
			just = medium_stress_gain
			arbitrary = minor_stress_loss
			lazy = minor_stress_loss
		}
		

		if = {
			limit = {
				scope:child = {
					NOT = { has_trait = diligent }
				}
			}
			random_list = {
				50 = { 
					desc = child_personality.keepdir_tt
					send_interface_toast = {
						title = child_personality.keepdir_tt
						left_icon = scope:child
					}
				}
				50 = {
					desc = child_personality.muchdir_tt
					modifier = {
						factor = 3
						scope:child = {
							OR = {
								has_trait = lazy
								has_trait = arrogant
								has_trait = arbitrary
							}
						}
					}
					send_interface_toast = {
						title = child_personality.muchdir_tt
						left_icon = scope:child
						scope:child = {
							add_learning_skill = -1
							add_stewardship_skill = -1
						}
					}
				}
			}
		}
		else = {
			custom_tooltip = child_personality.keepdir_tt
		}
		ai_chance = {
			base = 100
			ai_value_modifier = {
				ai_energy = -0.7
				ai_rationality = -0.3
			}
			modifier = {
				factor = 3
				OR = {
					has_trait = arrogant
					has_trait = lazy
					has_trait = arbitrary
				}
			}
		}
	}
	
	option = {
		name = child_personality.107.shift
	
		stress_impact = {
			base = child_trait_change_stress_penalty
			just = minor_stress_loss
			diligent = minor_stress_loss
			callous = minor_stress_gain
			lazy = minor_stress_gain
		}
		
		random_list = {
			50 = {
				desc = child_personality.stay_tt
				send_interface_toast = {
					title = child_personality.stay_tt
					left_icon = scope:child
				}
				reverse_add_opinion = {
					modifier = disappointed_opinion
					target = scope:child
					opinion = -20
				}
			}
			50 = { 
				desc = child_personality.under_tt
				modifier = {
					factor = 0.1
					scope:child = {
						has_trait = stubborn
					}
				}
				modifier = {
					factor = 4
					OR = {
						root.diplomacy >= medium_skill_rating
						root.stewardship >= medium_skill_rating
					}
				}
				if = {
					limit = {
						scope:child = {
							has_trait = lazy
						}
					}
					send_interface_toast = {
						title = child_personality.under_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = lazy
							add_learning_skill = 1
							add_stewardship_skill = 1
						}
					}
				}
				else_if = {
					limit = {
						scope:child = {
							has_trait = arbitrary
						}
					}
					send_interface_toast = {
						title = child_personality.under_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = arbitrary
							add_learning_skill = 1
							add_stewardship_skill = 1
						}
					}
				}
				else = {
					send_interface_toast = {
						title = child_personality.under_tt
						left_icon = scope:child
						scope:child = {
							add_trait_force_tooltip = just
						}
					}
				}
			}
			50 = {
				if = {
					limit = {
						scope:child = {
							has_trait = lazy
						}
					}
					send_interface_toast = {
						title = child_personality.under_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = lazy
						}
					}
				}
				else = {
					send_interface_toast = {
						title = child_personality.punder_tt
						left_icon = scope:child
						scope:child = {
							add_stewardship_skill = 2
							add_diplomacy_skill = -1
						}
					}
				}
			}
		}
		
		ai_chance = {
			base = 100
			ai_value_modifier = {
				ai_honor = 0.5
				ai_rationality = 0.5
			}
			modifier = {
				factor = 3
				has_trait = just
			}
		}
	}
	
	option = {
		name = child_personality.107.humb
	
		stress_impact = {
			base = child_trait_change_stress_penalty
			compassionate = medium_stress_loss
			humble = minor_stress_loss
			arrogant = medium_stress_gain
			callous = medium_stress_gain
			sadistic = medium_stress_gain
		}
		
		random_list = {
			50 = {
				desc = child_personality.stay_tt
				reverse_add_opinion = {
					modifier = disappointed_opinion
					target = scope:child
					opinion = -10
				}
				send_interface_toast = {
					title = child_personality.stay_tt
					left_icon = scope:child
				}
			}
			50 = { 
				desc = child_personality.under_tt
				reverse_add_opinion = {
					modifier = pleased_opinion
					target = scope:child
					opinion = 10
				}
				modifier = {
					factor = 0.1
					scope:child = {
						OR = {
							has_trait = callous
							has_trait = sadistic
						}
					}
				}
				modifier = {
					factor = 0.1
					scope:child = {
						has_trait = arrogant
					}
				}
				modifier = {
					factor = 4
					OR = {
						root.diplomacy >= medium_skill_rating
						root.learning >= medium_skill_rating
					}
				}
				if = {
					limit = {
						scope:child = {
							AND = {
								has_trait = arrogant
								has_trait = callous
							}
						}
					}
					send_interface_toast = {
						title = child_personality.under_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = callous
							remove_trait = arrogant
							add_diplomacy_skill = 2
							add_learning_skill = 2
						}
					}
				}
				else_if = {
					limit = {
						scope:child = {
							AND = {
								has_trait = arrogant
								has_trait = sadistic
							}
						}
					}
					send_interface_toast = {
						title = child_personality.under_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = sadistic
							remove_trait = arrogant
							add_diplomacy_skill = 2
							add_learning_skill = 2
						}
					}
				}
				else_if = {
					limit = {
						scope:child = {
							has_trait = callous
						}
					}
					send_interface_toast = {
						title = child_personality.under_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = callous
							add_trait_force_tooltip = humble
						}
					}
				}
				else_if = {
					limit = {
						scope:child = {
							has_trait = sadistic
						}
					}
					send_interface_toast = {
						title = child_personality.under_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = sadistic
							add_trait_force_tooltip = humble
						}
					}
				}
				else_if = {
					limit = {
						scope:child = {
							has_trait = arrogant
						}
					}
					send_interface_toast = {
						title = child_personality.under_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = arrogant
							add_trait_force_tooltip = compassionate
						}
					}
				}
				else_if = {
					limit = {
						scope:child = {
							has_trait = compassionate
						}
					}
					send_interface_toast = {
						title = child_personality.under_tt
						left_icon = scope:child
						scope:child = {
							add_trait = humble
						}
					}
				}
				else = {
					send_interface_toast = {
						title = child_personality.under_tt
						left_icon = scope:child
						scope:child = {
							add_trait = compassionate
						}
					}
				}
			}
			50 = {
				desc = child_personality.punder_tt
				if = {
					limit = {
						scope:child = {
							has_trait = callous
						}
					}
					send_interface_toast = {
						title = child_personality.under_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = callous
						}
					}
				}
				else_if = {
					limit = {
						scope:child = {
							has_trait = sadistic
						}
					}
					send_interface_toast = {
						title = child_personality.under_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = sadistic
						}
					}
				}
				else = {
					send_interface_toast = {
						title = child_personality.punder_tt
						left_icon = scope:child
						scope:child = {
							add_diplomacy_skill = 1
							add_learning_skill = 1
						}
					}
				}
			}
		}
		
		ai_chance = {
			base = 100
			ai_value_modifier = {
				ai_compassion = 0.7
			}
			modifier = {
				factor = 3
				has_trait = compassionate
			}
			modifier = {
				factor = 0
				OR = {
					has_trait = arrogant
					has_trait = callous
					has_trait = sadistic
				}
			}
		}
	}
	
	option = {
		name = child_personality.107.fix
		
		ai_chance = {
			base = 100
			ai_value_modifier = {
				ai_compassion = -0.7
				ai_rationality = 0.2
			}
			modifier = {
				factor = 3
				has_trait = wrathful
			}
			modifier = {
				factor = 0
				OR = {
					has_trait = calm
					has_trait = compassionate
				}
			}
		}
		
		stress_impact = {
			base = child_trait_change_stress_penalty
			diligent = minor_stress_loss
			wrathful = minor_stress_loss
			sadistic = medium_stress_loss
			calm = medium_stress_gain
			compassionate = medium_stress_gain
		}	
		
		reverse_add_opinion = {
			modifier = disappointed_opinion
			target = scope:child
			opinion = -20
		}
		
		random_list = {
			50 = {
				modifier = {
					factor = 4
					scope:child = { has_trait = stubborn }
				}
				desc = child_personality.stay_tt
				send_interface_toast = {
					title = child_personality.stay_tt
					left_icon = scope:child
				}
			}
			50 = { 
				desc = child_personality.hardened_tt
				if = {
					limit = {
						scope:child = { has_trait = arbitrary }
					}
					scope:child = { remove_trait = arbitrary }
				}
				if = {
					limit = {
						scope:child = {
							NOR = {
								has_trait = wrathful
								has_trait = calm
							}
						}
					}
					send_interface_toast = {
						title = child_personality.hardened_tt
						left_icon = scope:child
						scope:child = {
							add_trait_force_tooltip = wrathful
						}
					}
				}
				else_if = {
					limit = {
						scope:child = {
							NOT = { 
								has_trait = wrathful
							}
						}
					}
					send_interface_toast = {
						title = child_personality.hardened_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = calm
						}
					}
				}
				else = {
					send_interface_toast = {
						title = child_personality.hardened_tt
						left_icon = scope:child
						scope:child = {
							add_prowess_skill = 1
							add_diplomacy_skill = -2
						}
					}
				}
			}
			50 = {
				desc = child_personality.aloof_tt
				if = {
					limit = {
						scope:child = { has_trait = arrogant }
					}
					scope:child = { remove_trait = arrogant }
				}
				if = {
					limit = {
						scope:child = {
							NOR = {
								has_trait = callous
								has_trait = sadistic
								has_trait = compassionate
							}
						}
					}
					send_interface_toast = {
						title = child_personality.aloof_tt
						left_icon = scope:child
						scope:child = {
							add_trait_force_tooltip = callous
						}
					}
				}
				else_if = {
					limit = {
						scope:child = {
							NOR = { 
								has_trait = callous
								has_trait = sadistic
							}
						}
					}
					send_interface_toast = {
						title = child_personality.aloof_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = compassionate
						}
					}
				}
				else = {
					send_interface_toast = {
						title = child_personality.aloof_tt
						left_icon = scope:child
						scope:child = {
							add_diplomacy_skill = -2
						}
					}
				}
			}
		}
	}
}

#Responses to Feast event
#0008

#Child has demonstrated eating
child_personality.1081 = {
	type = character_event
	title = child_personality.1081.t
	desc = {
		desc = my_ward_or_child
		desc = child_personality.108.desc_pos
		desc = child_personality.108.gluttonous
	}
	override_background = { reference = feast }
	theme = education
	left_portrait = {
		character = scope:child
		animation = personality_greedy
	}
	
	option = {
		name = child_personality.108.confirm_gluttonous
		custom_tooltip = child_personality.keeps_gluttonous_tt
		reverse_add_opinion = {
    		modifier = pleased_opinion
    		target = scope:child
    		opinion = 20
    	}
		stress_impact = {
			gluttonous = medium_stress_loss
			temperate = medium_stress_gain
		}
		ai_chance = {
			base = 100
			ai_value_modifier = {
				ai_greed = 0.2
			}
			modifier = {
				factor = 3
				has_trait = gluttonous
			}
		}
	}
	
	option = {
		name = child_personality.108.talk
		
		ai_chance = {
			base = 100
			ai_value_modifier = {
				ai_sociability = 0.5
			}
			modifier = {
				factor = 3
				has_trait = gregarious
			}
		}
		
		stress_impact = {
			base = child_trait_change_stress_penalty
			gregarious = medium_stress_loss
			shy = medium_stress_gain
			temperate = minor_stress_gain
		}
		
		reverse_add_opinion = {
			modifier = pleased_opinion
			target = scope:child
			opinion = 10
		}
		
		random_list = {
			50 = {
				desc = child_personality.stay_tt
				send_interface_toast = {
					title = child_personality.stay_tt
					left_icon = scope:child
				}
			}
			50 = { 
				desc = child_personality.under_tt
				modifier = {
					factor = 0.1
					scope:child = {
						OR = {
							has_trait = shy
							has_trait = arrogant
						}
					}
				}
				modifier = {
					factor = 3
					root.diplomacy >= medium_skill_rating
				}
				scope:child = {
					remove_trait = gluttonous
				}
				if = {
					limit = {
						scope:child = {
							has_trait = shy
						}
					}
					send_interface_toast = {
						title = child_personality.under_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = shy
							add_diplomacy_skill = 2
						}
					}
				}
				else_if = {
					limit = {
						scope:child = {
							has_trait = gregarious
						}
					}
					send_interface_toast = {
						title = child_personality.under_tt
						left_icon = scope:child
						scope:child = {
							add_diplomacy_skill = 1
						}
					}
				}
				else = {
					send_interface_toast = {
						title = child_personality.under_tt
						left_icon = scope:child
						scope:child = {
							add_trait_force_tooltip = gregarious
						}
					}
				}
			}
			50 = {
				desc = child_personality.punder_tt
				send_interface_toast = {
					title = child_personality.punder_tt
					left_icon = scope:child
					scope:child = {
						add_diplomacy_skill = 1
						add_stewardship_skill = -1
					}
				}
			}
		}
	}
	
	option = {
		name = child_personality.108.less
		
		ai_chance = {
			base = 100
			ai_value_modifier = {
				ai_energy = 0.5
			}
			modifier = {
				factor = 3
				OR = {
					has_trait = arrogant
					has_trait = temperate
				}
			}
		}
		
		stress_impact = {
			base = child_trait_change_stress_penalty
			gregarious = minor_stress_gain
			humble = minor_stress_gain
			gluttonous = minor_stress_gain
			arrogant = medium_stress_loss
			temperate = medium_stress_loss
		}
		
		reverse_add_opinion = {
			modifier = disappointed_opinion
			target = scope:child
			opinion = -10
		}
		
		random_list = {
			50 = {
				desc = child_personality.stay_tt
				send_interface_toast = {
					title = child_personality.stay_tt
					left_icon = scope:child
				}
			}
			50 = { 
				desc = child_personality.neutral_tt
				modifier = {
					factor = 0.4
					scope:child = {
						has_trait = arrogant
					}
				}
				modifier = {
					factor = 3
					OR = {
						root.diplomacy >= medium_skill_rating
						root.stewardship >= medium_skill_rating
					}
				}
				send_interface_toast = {
					title = child_personality.neutral_tt
					left_icon = scope:child
					scope:child = {
						add_stewardship_skill = 1
						remove_trait = gluttonous
					}
				}	
			}
		}
	}
	
	
	option = {
		name = child_personality.108.crit
		
		ai_chance = {
			base = 100
			ai_value_modifier = {
				ai_honor = -1
				ai_compassion = -0.3
			}
			modifier = {
				factor = 3
				has_trait = sadistic
			}
			modifier = {
				factor = 0
				OR = {
					has_trait = calm
					has_trait = compassionate
				}
			}
		}
		
		stress_impact = {
			base = child_trait_change_stress_penalty
			wrathful = minor_stress_loss
			sadistic = medium_stress_loss
			calm = medium_stress_gain
			compassionate = medium_stress_gain
		}	
		
		reverse_add_opinion = {
			modifier = disappointed_opinion
			target = scope:child
			opinion = -35
		}
		
		random_list = {
			50 = {
				modifier = {
					factor = 4
					scope:child = { has_trait = stubborn }
				}
				desc = child_personality.stay_tt
				send_interface_toast = {
					title = child_personality.stay_tt
					left_icon = scope:child
				}
			}
			50 = { 
				desc = child_personality.hardened_tt
				remove_trait = gluttonous
				if = {
					limit = {
						scope:child = {
							NOR = {
								has_trait = wrathful
								has_trait = calm
							}
						}
					}
					send_interface_toast = {
						title = child_personality.hardened_tt
						left_icon = scope:child
						scope:child = {
							add_trait_force_tooltip = wrathful
						}
					}
				}
				else_if = {
					limit = {
						scope:child = {
							NOT = { 
								has_trait = wrathful
							}
						}
					}
					send_interface_toast = {
						title = child_personality.hardened_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = calm
						}
					}
				}
				else = {
					send_interface_toast = {
						title = child_personality.hardened_tt
						left_icon = scope:child
						scope:child = {
							add_stewardship_skill = 1
							add_diplomacy_skill = -2
						}
					}
				}
			}
			100 = {
				desc = child_personality.close_tt
				if = {
					limit = {
						scope:child = {
							NOR = {
								has_trait = gregarious
								has_trait = shy
							}
						}
					}
					send_interface_toast = {
						title = child_personality.close_tt
						left_icon = scope:child
						scope:child = {
							add_trait_force_tooltip = shy
						}
					}
				}
				else_if = {
					limit = {
						scope:child = {
							NOT = { 
								has_trait = shy
							}
						}
					}
					send_interface_toast = {
						title = child_personality.close_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = gregarious
						}
					}
				}
				else = {
					send_interface_toast = {
						title = child_personality.close_tt
						left_icon = scope:child
						scope:child = {
							add_diplomacy_skill = -2
						}
					}
				}
			}
		}
	}
}

#Child has demonstrated talking
child_personality.1082 = {
	type = character_event
	title = child_personality.1082.t
	desc = {
		desc = my_ward_or_child
		desc = child_personality.108.desc_pos
		desc = child_personality.108.gregarious
	}
	override_background = { reference = feast }
	theme = education
	left_portrait = {
		character = scope:child
		animation = personality_compassionate
	}
	
	option = {
		name = child_personality.108.confirm_gregarious
		custom_tooltip = child_personality.keeps_gregarious_tt
		reverse_add_opinion = {
    		modifier = pleased_opinion
    		target = scope:child
    		opinion = 20
    	}
		stress_impact = {
			gregarious = medium_stress_loss
			shy = medium_stress_gain
		}
		ai_chance = {
			base = 100
			ai_value_modifier = {
				ai_sociability = 0.5
			}
			modifier = {
				factor = 3
				has_trait = gregarious
			}
		}
	}
	
	option = {
		name = child_personality.108.secrets
		custom_tooltip = child_personality.108.secrets_tt
		ai_chance = {
			base = 100
			ai_value_modifier = {
				ai_honor = -0.5
				ai_rationality = 0.3
			}
			modifier = {
				factor = 3
				has_trait = deceitful
			}
		}
		
		stress_impact = {
			base = child_trait_change_stress_penalty
			gregarious = minor_stress_gain
			shy = medium_stress_gain
			deceitful = medium_stress_loss
			honest = medium_stress_gain
			paranoid = medium_stress_loss
			trusting = minor_stress_gain
		}
	
		
		random_list = {
			50 = {
				desc = child_personality.stay_tt
				send_interface_toast = {
					title = child_personality.stay_tt
					left_icon = scope:child
				}
			}
			50 = { 
				desc = child_personality.neutral_tt
				modifier = {
					factor = 0.1
					scope:child = {
						OR = {
							has_trait = trusting
							has_trait = honest
						}
					}
				}
				modifier = {
					factor = 3
					root.intrigue >= medium_skill_rating
				}
				scope:child = {
					remove_trait = gregarious
				}
				if = {
					limit = {
						scope:child = {
							has_trait = honest
						}
					}
					send_interface_toast = {
						title = child_personality.neutral_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = honest
							add_intrigue_skill = 2
						}
					}
				}
				else_if = {
					limit = {
						scope:child = {
							has_trait = deceitful
						}
					}
					send_interface_toast = {
						title = child_personality.neutral_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = trusting
							add_intrigue_skill = 1
						}
					}
				}
				else = {
					send_interface_toast = {
						title = child_personality.neutral_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = trusting
							add_trait_force_tooltip = deceitful
						}
					}
				}
			}
			50 = {
				desc = child_personality.suspicion_tt
				modifier = {
					factor = 3
					scope:child = {
						OR = {
							has_trait = cynical
							has_trait = paranoid
						}
					}
				}
				scope:child = {
					remove_trait = gregarious
				}
				if = {
					limit = {
						scope:child = {
							has_trait = trusting
						}
					}
					send_interface_toast = {
						title = child_personality.suspicion_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = trusting
							add_intrigue_skill = 2
						}
					}
				}
				else_if = {
					limit = {
						scope:child = {
							NOT = { has_trait = paranoid }
						}
					}
					send_interface_toast = {
						title = child_personality.suspicion_tt
						left_icon = scope:child
						scope:child = {
							add_trait_force_tooltip = paranoid
						}
					}
				}
				else = {
					send_interface_toast = {
						title = child_personality.suspicion_tt
						left_icon = scope:child
						scope:child = {
							add_intrigue_skill = 1
							add_diplomacy_skill = -2
						}
					}
				}
			}
		}
	}
	
	option = {
		name = child_personality.108.less_alt
		
		ai_chance = {
			base = 100
			ai_value_modifier = {
				ai_energy = 0.5
				ai_sociability = -0.5
			}
			modifier = {
				factor = 3
				OR = {
					has_trait = arrogant
					has_trait = paranoid
				}
			}
		}
		
		stress_impact = {
			base = child_trait_change_stress_penalty
			gregarious = medium_stress_gain
			humble = minor_stress_gain
			trusting = minor_stress_gain
			arrogant = medium_stress_loss
			paranoid = medium_stress_loss
		}
		
		random_list = {
			50 = {
				desc = child_personality.stay_tt
				send_interface_toast = {
					title = child_personality.stay_tt
					left_icon = scope:child
					reverse_add_opinion = {
						modifier = disappointed_opinion
						target = scope:child
						opinion = -10
					}
				}
			}
			50 = { 
				desc = child_personality.under_tt
				modifier = {
					factor = 0.2
					scope:child = {
						OR = {
							has_trait = arbitrary
							has_trait = stubborn
						}
					}
				}
				modifier = {
					factor = 3
					OR = {
						root.diplomacy >= medium_skill_rating
						root.stewardship >= medium_skill_rating
					}
				}
				scope:child = {
					remove_trait = gregarious
				}
				reverse_add_opinion = {
					modifier = pleased_opinion
					target = scope:child
					opinion = 15
				}
				if = {
					limit = {
						scope:child = { has_trait = arrogant }
					}
					send_interface_toast = {
						title = child_personality.under_tt
						left_icon = scope:child
						scope:child = {
							add_stewardship_skill = 1
						}
					}					
				}
				else_if = {
					limit = {
						scope:child = { has_trait = humble }
					}
					send_interface_toast = {
						title = child_personality.under_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = humble
							add_stewardship_skill = 1
							add_diplomacy_skill = 1
						}
					}
				}
				else = {
					send_interface_toast = {
						title = child_personality.under_tt
						left_icon = scope:child
						scope:child = {
							add_diplomacy_skill = 1
							add_trait_force_tooltip = arrogant
						}
					}
				}
			}
			50 = {
				desc = child_personality.err_tt
				scope:child = {
					remove_trait = gregarious
				}
				if = {
					limit = {
						scope:child = { has_trait = arbitrary }
					}
					send_interface_toast = {
						title = child_personality.under_tt
						left_icon = scope:child
						scope:child = {
							add_diplomacy_skill = 1
							add_stewardship_skill = -2
						}
					}					
				}
				else_if = {
					limit = {
						scope:child = { has_trait = just }
					}
					send_interface_toast = {
						title = child_personality.err_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = just
							add_stewardship_skill = 1
							add_diplomacy_skill = 1
						}
					}
				}
				else = {
					send_interface_toast = {
						title = child_personality.err_tt
						left_icon = scope:child
						scope:child = {
							add_diplomacy_skill = 1
							add_trait_force_tooltip = arbitrary
						}
					}
				}
			}
		}
	}
	
	
	option = {
		name = child_personality.108.crit_alt
		
		ai_chance = {
			base = 100
			ai_value_modifier = {
				ai_honor = -1
				ai_compassion = -0.3
			}
			modifier = {
				factor = 3
				has_trait = sadistic
			}
			modifier = {
				factor = 0
				OR = {
					has_trait = calm
					has_trait = compassionate
				}
			}
		}
		
		stress_impact = {
			base = child_trait_change_stress_penalty
			wrathful = minor_stress_loss
			sadistic = medium_stress_loss
			calm = medium_stress_gain
			compassionate = medium_stress_gain
		}	
		
		reverse_add_opinion = {
			modifier = disappointed_opinion
			target = scope:child
			opinion = -30
		}
		
		random_list = {
			50 = {
				modifier = {
					factor = 4
					scope:child = { has_trait = stubborn }
				}
				desc = child_personality.stay_tt
				send_interface_toast = {
					title = child_personality.stay_tt
					left_icon = scope:child
				}
			}
			50 = { 
				desc = child_personality.hardened_tt
				scope:child = {
					remove_trait = gregarious
				}
				if = {
					limit = {
						scope:child = {
							NOR = {
								has_trait = wrathful
								has_trait = calm
							}
						}
					}
					send_interface_toast = {
						title = child_personality.hardened_tt
						left_icon = scope:child
						scope:child = {
							add_trait_force_tooltip = wrathful
						}
					}
				}
				else_if = {
					limit = {
						scope:child = {
							NOT = { 
								has_trait = wrathful
							}
						}
					}
					send_interface_toast = {
						title = child_personality.hardened_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = calm
						}
					}
				}
				else = {
					send_interface_toast = {
						title = child_personality.hardened_tt
						left_icon = scope:child
						scope:child = {
							add_stewardship_skill = 1
							add_diplomacy_skill = -2
						}
					}
				}
			}
			100 = {
				desc = child_personality.close_tt
				scope:child = {
					remove_trait = gregarious
				}
				send_interface_toast = {
					title = child_personality.close_tt
					left_icon = scope:child
					scope:child = {
						add_trait_force_tooltip = shy
					}
				}
			}
		}
	}
}

#Child has demonstrated not talking
child_personality.1083 = {
	type = character_event
	title = child_personality.1083.t
	desc = {
		desc = my_ward_or_child
		desc = child_personality.108.desc_neg
		desc = child_personality.108.shy
	}
	override_background = { reference = feast }
	theme = education
	left_portrait = {
		character = scope:child
		animation = worry
	}
	
	option = {
		name = child_personality.108.confirm_shy
		if = {
			limit = {
				scope:child = { has_trait = shy }
			}
			custom_tooltip = child_personality.keeps_shy_tt
		}
		else = {
			scope:child = { add_trait_force_tooltip = shy }
		}
		reverse_add_opinion = {
    		modifier = pleased_opinion
    		target = scope:child
    		opinion = 15
    	}
		stress_impact = {
			compassionate = medium_stress_loss
			sadistic = medium_stress_gain
			gregarious = minor_stress_gain
		}
		ai_chance = {
			base = 100
			ai_value_modifier = {
				ai_sociability = -0.5
				ai_compassion = 0.2
			}
			modifier = {
				factor = 3
				has_trait = shy
			}
		}
	}
	
	option = {
		name = child_personality.108.talk_alt
		
		ai_chance = {
			base = 100
			ai_value_modifier = {
				ai_sociability = 0.5
				ai_compassion = 0.2
			}
			modifier = {
				factor = 3
				has_trait = gregarious
			}
		}
		
		stress_impact = {
			base = child_trait_change_stress_penalty
			gregarious = medium_stress_loss
			shy = medium_stress_gain
			compassionate = minor_stress_loss
			sadistic = medium_stress_gain
			trusting = minor_stress_loss
		}
		
		reverse_add_opinion = {
			modifier = pleased_opinion
			target = scope:child
			opinion = 20
		}
		
		random_list = {
			50 = {
				desc = child_personality.stay_tt
				modifier = {
					factor = 1.5
					scope:child = {
						OR = {
							has_trait = shy
							has_trait = arrogant
						}
					}
				}
				send_interface_toast = {
					title = child_personality.stay_tt
					left_icon = scope:child
				}
			}
			50 = { 
				desc = child_personality.open_tt
				modifier = {
					factor = 4
					root.diplomacy >= medium_skill_rating
				}
				if = {
					limit = {
						scope:child = {
							has_trait = shy
							has_trait = paranoid
						}
					}
					send_interface_toast = {
						title = child_personality.open_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = shy
							add_diplomacy_skill = 1
						}
					}
				}
				else_if = {
					limit = {
						scope:child = {
							has_trait = shy
							has_trait = trusting
						}
					}
					send_interface_toast = {
						title = child_personality.open_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = shy
							add_stewardship_skill = 1
						}
					}
				}
				else_if = {
					limit = {
						scope:child = {
							has_trait = shy
						}
					}
					send_interface_toast = {
						title = child_personality.open_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = shy
							add_trait_force_tooltip = trusting
						}
					}
				}
				else = {
					send_interface_toast = {
						title = child_personality.open_tt
						left_icon = scope:child
						scope:child = {
							add_trait_force_tooltip = gregarious
						}
					}
				}
			}
		}
	}
	
	option = {
		name = child_personality.108.action
		
		ai_chance = {
			base = 100
			ai_value_modifier = {
				ai_energy = 0.5
				ai_sociability = -0.3
			}
			modifier = {
				factor = 3
				OR = {
					has_trait = impatient
					has_trait = fickle
				}
			}
		}
		
		stress_impact = {
			base = child_trait_change_stress_penalty
			calm = minor_stress_gain
			patient = minor_stress_gain
			impatient = medium_stress_loss
			fickle = minor_stress_loss
		}
		
		random_list = {	
			50 = {
				desc = child_personality.stay_tt
				send_interface_toast = {
					title = child_personality.stay_tt
					left_icon = scope:child
				}
				modifier = {
					factor = 0.2
					scope:child = {
						NOT = { has_trait = shy }
					}
				}
			}
			50 = { 
				desc = child_personality.err_tt
				scope:child = {
					remove_trait = shy
				}
				if = {
					limit = {
						scope:child = {
							NOR = { 
								has_trait = impatient
								has_trait = patient
							}
						}
					}
					send_interface_toast = {
						title = child_personality.err_tt
						left_icon = scope:child
						scope:child = {
							add_trait_force_tooltip = impatient
						}
					}
				}
				else_if = {
					limit = {
						scope:child = {
							NOT = { 
								has_trait = arbitrary
							}
						}
					}

					send_interface_toast = {
						title = child_personality.err_tt
						left_icon = scope:child
						scope:child = {
							add_trait_force_tooltip = arbitrary
						}
					}
				}
				else = {
					send_interface_toast = {
						title = child_personality.err_tt
						left_icon = scope:child
						scope:child = {
							add_stewardship_skill = 1
							add_diplomacy_skill = -2
						}
					}
				}
			}
		}
	}
	
	
	option = {
		name = child_personality.108.crit_alt_alt
		
		ai_chance = {
			base = 100
			ai_value_modifier = {
				ai_honor = -1
				ai_compassion = -0.3
			}
			modifier = {
				factor = 3
				has_trait = sadistic
			}
			modifier = {
				factor = 0
				OR = {
					has_trait = calm
					has_trait = compassionate
				}
			}
		}
		
		stress_impact = {
			base = child_trait_change_stress_penalty
			wrathful = minor_stress_loss
			sadistic = medium_stress_loss
			calm = medium_stress_gain
			compassionate = medium_stress_gain
		}	
		
		reverse_add_opinion = {
			modifier = disappointed_opinion
			target = scope:child
			opinion = -30
		}
		
		random_list = {	
			150 = {
				desc = child_personality.close_tt
				send_interface_toast = {
					title = child_personality.close_tt
					left_icon = scope:child
					scope:child = {
						add_diplomacy_skill = -2
						add_trait_force_tooltip = shy
					}
				}
			}
			50 = { 
				desc = child_personality.distrust_tt
				modifier = {
					factor = 3
					scope:child = {
						OR = {
							has_trait = cynical
							has_trait = stubborn
						}
					}
				}
				if = {
					limit = {
						scope:child = {
							NOR = { 
								has_trait = zealous
								has_trait = cynical
							}
						}
					}
					send_interface_toast = {
						title = child_personality.distrust_tt
						left_icon = scope:child
						scope:child = {
							add_trait_force_tooltip = cynical
						}
					}
				}
				else_if = {
					limit = {
						scope:child = {
							NOT = { 
								has_trait = stubborn
							}
						}
					}
					scope:child = {
						remove_trait = fickle
					}
					send_interface_toast = {
						title = child_personality.distrust_tt
						left_icon = scope:child
						scope:child = {
							add_trait_force_tooltip = stubborn
						}
					}
				}
				else = {
					send_interface_toast = {
						title = child_personality.distrust_tt
						left_icon = scope:child
						scope:child = {
							add_intrigue_skill = 1
							add_diplomacy_skill = -2
						}
					}
				}
				
			}
		}
	}
}


#Child has demonstrated not talking
child_personality.1084 = {
	type = character_event
	title = child_personality.1084.t
	desc = {
		desc = my_ward_or_child
		desc = child_personality.108.desc_neg
		desc = child_personality.108.temperate
	}
	override_background = { reference = feast }
	theme = education
	left_portrait = {
		character = scope:child
		animation = dismissal
	}
	
	option = {
		name = child_personality.108.confirm_temperate
		if = {
			limit = {
				scope:child = { has_trait = temperate }
			}
			custom_tooltip = child_personality.keeps_temperate_tt
		}
		else = {
			scope:child = { add_trait_force_tooltip = temperate }
		}
		reverse_add_opinion = {
    		modifier = pleased_opinion
    		target = scope:child
    		opinion = 15
    	}
		stress_impact = {
			temperate = medium_stress_loss
			humble = medium_stress_loss
			arrogant = minor_stress_gain
			gluttonous = medium_stress_gain
			greedy = medium_stress_gain
		}
		ai_chance = {
			base = 100
			ai_value_modifier = {
				ai_greed = -0.5
				ai_compassion = 0.2
			}
			modifier = {
				factor = 3
				has_trait = temperate
			}
		}
	}
	
	option = {
		name = child_personality.108.talk_alt_alt
		
		ai_chance = {
			base = 100
			ai_value_modifier = {
				ai_sociability = 0.5
				ai_compassion = 0.2
			}
			modifier = {
				factor = 3
				has_trait = gregarious
			}
		}
		
		stress_impact = {
			base = child_trait_change_stress_penalty
			gregarious = medium_stress_loss
			shy = medium_stress_gain
			trusting = minor_stress_loss
		}
		
		random_list = {
			50 = {
				desc = child_personality.stay_tt
				modifier = {
					factor = 2
					scope:child = {
						OR = {
							has_trait = temperate
							has_trait = shy
						}
					}
				}
				send_interface_toast = {
					title = child_personality.stay_tt
					left_icon = scope:child
				}
			}
			50 = { 
				desc = child_personality.neutral_tt
				modifier = {
					factor = 4
					root.diplomacy >= medium_skill_rating
				}
				if = {
					limit = {
						scope:child = {
							has_trait = shy
						}
					}
					send_interface_toast = {
						title = child_personality.neutral_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = shy
							add_diplomacy_skill = 1
						}
					}
				}
				else_if = {
					limit = {
						scope:child = {
							has_trait = temperate
						}
					}
					send_interface_toast = {
						title = child_personality.neutral_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = temperate
							add_diplomacy_skill = 2
						}
					}
				}
				else = {
					send_interface_toast = {
						title = child_personality.neutral_tt
						left_icon = scope:child
						scope:child = {
							add_trait_force_tooltip = gregarious
						}
					}
				}
			}
		}
	}
	
	option = {
		name = child_personality.108.more
		
		ai_chance = {
			base = 100
			ai_value_modifier = {
				ai_energy = 0.5
				ai_sociability = -0.3
			}
			modifier = {
				factor = 3
				OR = {
					has_trait = impatient
					has_trait = fickle
				}
			}
		}
		
		stress_impact = {
			base = child_trait_change_stress_penalty
			arrogant = medium_stress_loss
			greedy = medium_stress_loss
			gluttonous = minor_stress_loss
			temperate = medium_stress_gain
			humble = medium_stress_gain
			
		}
		
		random_list = {	
			50 = {
				desc = child_personality.stay_tt
				send_interface_toast = {
					title = child_personality.stay_tt
					left_icon = scope:child
				}
			}
			50 = { 
				desc = child_personality.under_tt
				modifier = {
					factor = 0.1
					scope:child = {
						OR = {
							has_trait = humble
							has_trait = stubborn
						}
					}
				}
				modifier = {
					factor = 3
					OR = {
						root.diplomacy >= medium_skill_rating
						root.stewardship >= medium_skill_rating
					}
				}
				scope:child = {
					remove_trait = temperate
				}
				if = {
					limit = {
						scope:child = {
							has_trait = content
						}
					}
					send_interface_toast = {
						title = child_personality.under_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = content
							add_stewardship_skill = 2
						}
					}
				}
				else_if = {
					limit = {
						scope:child = {
							has_trait = ambitious
						}
					}
					send_interface_toast = {
						title = child_personality.under_tt
						left_icon = scope:child
						scope:child = {
							add_diplomacy_skill = 1
						}
					}
				}
				else = {
					send_interface_toast = {
						title = child_personality.under_tt
						left_icon = scope:child
						scope:child = {
							add_trait_force_tooltip = ambitious
							add_diplomacy_skill = 1
							add_stewardship_skill = 1
						}
					}
				}
			}
			50 = {
				desc = child_personality.punder_tt
				send_interface_toast = {
					title = child_personality.punder_tt
					left_icon = scope:child
					scope:child = {
						add_stewardship_skill = -1
						add_diplomacy_skill = 1
					}
				}
			}
		}
	}
	
	
	option = {
		name = child_personality.108.crit_alt_alt_alt
		
		ai_chance = {
			base = 100
			ai_value_modifier = {
				ai_honor = -1
				ai_compassion = -0.3
			}
			modifier = {
				factor = 3
				has_trait = sadistic
				has_trait = wrathful
			}
			modifier = {
				factor = 0
				OR = {
					has_trait = calm
					has_trait = compassionate
				}
			}
		}
		
		stress_impact = {
			base = child_trait_change_stress_penalty
			wrathful = minor_stress_loss
			sadistic = medium_stress_loss
			calm = medium_stress_gain
			compassionate = medium_stress_gain
			just = minor_stress_gain
		}	
		
		reverse_add_opinion = {
			modifier = disappointed_opinion
			target = scope:child
			opinion = -30
		}
		
		random_list = {	
			150 = {
				desc = child_personality.close_tt
				send_interface_toast = {
					title = child_personality.close_tt
					left_icon = scope:child
					scope:child = {
						remove_trait = gregarious
						add_trait_force_tooltip = shy
					}
				}
			}
			50 = { 
				desc = child_personality.mask_tt
				modifier = {
					factor = 3
					scope:child = {
						OR = {
							has_trait = cynical
							has_trait = stubborn
							has_trait = deceitful
						}
					}
				}
				modifier = {
					factor = 0.1
					scope:child = {
						has_trait = honest
					}
				}
				
				if = {
					limit = {
						scope:child = {
							NOR = { 
								has_trait = deceitful
								has_trait = honest
							}
						}
					}
					send_interface_toast = {
						title = child_personality.mask_tt
						left_icon = scope:child
						scope:child = {
							add_trait_force_tooltip = deceitful
						}
					}
				}
				else_if = {
					limit = {
						scope:child = {
							has_trait = honest
						}
					}
					send_interface_toast = {
						title = child_personality.mask_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = honest
						}
					}
				}
				else = {
					send_interface_toast = {
						title = child_personality.mask_tt
						left_icon = scope:child
						scope:child = {
							add_intrigue_skill = 1
							add_diplomacy_skill = -2
						}
					}
				}
			}
		}
	}
}


#Responses to Preacher Child
#0009

#Child has demonstrated bravery and compassion
child_personality.1091 = {
	type = character_event
	title = child_personality.1091.t
	desc = {
		first_valid = {
			triggered_desc = {
				trigger = {
					exists = scope:child_preacher
				}
				desc = child_personality.109.desc
			}
			desc = child_personality.109.desc_fallback
		}
		first_valid = {
			triggered_desc = {
				trigger = {
					exists = scope:child_preacher
				}
				desc = child_personality.109.brave
			}
			desc = child_personality.109.brave_fallback
		}
	}
	theme = education
	left_portrait = {
		character = scope:child
		animation = personality_bold
	}

	right_portrait = {
		character = scope:child_preacher
		animation = personality_coward
	}
	
	option = {
		name = child_personality.109.palladin
		ai_chance = {
			base = 100
			ai_value_modifier = {
				ai_honor = 0.7
				ai_compassion = 0.3
			}
			modifier = {
				factor = 3
				has_trait = just
			}
		}
		stress_impact = {
			brave = medium_stress_loss
			just = minor_stress_loss
			compassionate = minor_stress_loss
			sadistic = medium_stress_gain
			callous = minor_stress_gain
		}
		custom_tooltip = child_personality.stay_tt
		reverse_add_opinion = {
    		modifier = pleased_opinion
    		target = scope:child
    		opinion = 15
    	}
	}

	option = {
		name = child_personality.109.negotiate
		
		ai_chance = {
			base = 100
			ai_value_modifier = {
				ai_sociability = 0.5
				ai_compassion = 0.3
				ai_honor = 0.3
			}
			modifier = {
				factor = 3
				has_trait = compassionate
			}
		}
		
		stress_impact = {
			base = child_trait_change_stress_penalty
			gregarious = medium_stress_loss
			shy = minor_stress_gain
			calm = medium_stress_loss
			wrathful = minor_stress_gain
			compassionate = medium_stress_loss
			sadistic = medium_stress_gain
			callous = minor_stress_gain
		}
		
		reverse_add_opinion = {
			modifier = pleased_opinion
			target = scope:child
			opinion = 10
		}
		
		random_list = {
			50 = {
				desc = child_personality.stay_tt
				send_interface_toast = {
					title = child_personality.stay_tt
					left_icon = scope:child
				}
			}
			50 = { 
				desc = child_personality.under_tt
				modifier = {
					factor = 0.1
					scope:child = {
						OR = {
							has_trait = stubborn
							has_trait = shy
						}
					}
				}
				modifier = {
					factor = 4
					root.diplomacy >= medium_skill_rating
				}
				if = {
					limit = {
						scope:child = {
							has_trait = brave
						}
					}
					send_interface_toast = {
						title = child_personality.under_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = brave
							add_diplomacy_skill = 2
							add_stewardship_skill = 1
						}
					}
				}
				else_if = {
					limit = {
						scope:child = {
							has_trait = wrathful
						}
					}
					send_interface_toast = {
						title = child_personality.under_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = wrathful
							add_diplomacy_skill = 2
						}
					}
				}
				else_if = {
					limit = {
						scope:child = {
							has_trait = calm
						}
					}
					send_interface_toast = {
						title = child_personality.under_tt
						left_icon = scope:child
						scope:child = {
							add_diplomacy_skill = 1
						}
					}
				}
				else = {
					send_interface_toast = {
						title = child_personality.under_tt
						left_icon = scope:child
						scope:child = {
							add_trait_force_tooltip = calm
						}
					}
				}
			}
			50 = {
				desc = child_personality.punder_tt
				send_interface_toast = {
					title = child_personality.punder_tt
					left_icon = scope:child
					scope:child = {
						add_diplomacy_skill = 1
						add_martial_skill = -1
					}
				}
			}
		}
	}
	
	option = {
		name = child_personality.109.fanatic
		custom_tooltip = child_personality.109.fanatic_tt
		trigger = { 
			scope:child = {
				has_faith = root.faith
			}
		}
		ai_chance = {
			base = 100
			ai_value_modifier = {
				ai_zeal = 0.7
			}
			modifier = {
				factor = 3
				has_trait = zealous
			}
		}
		
		stress_impact = {
			base = child_trait_change_stress_penalty
			zealous = major_stress_loss
			cynical = medium_stress_gain
		}

		
		random_list = {
			50 = {
				desc = child_personality.stay_tt
				send_interface_toast = {
					title = child_personality.stay_tt
					left_icon = scope:child
				}
			}
			50 = { 
				desc = child_personality.neutral_tt
				reverse_add_opinion = {
					modifier = pleased_opinion
					target = scope:child
					opinion = 10
				}
				scope:child = {
					remove_trait = compassionate
				}
				modifier = {
					factor = 0.1
					scope:child = {
						has_trait = cynical
					}
				}
				modifier = {
					factor = 3
					OR = {
						root.diplomacy >= medium_skill_rating
						root.learning >= medium_skill_rating
					}
				}
				if = {
					limit = {
						scope:child = {
							has_trait = zealous
						}
					}
					send_interface_toast = {
						title = child_personality.neutral_tt
						left_icon = scope:child
						scope:child = {
							add_learning_skill = 1
							add_martial_skill = 1
						}
					}
				}
				else = {
					send_interface_toast = {
						title = child_personality.neutral_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = cynical
							add_trait_force_tooltip = zealous
						}
					}
				}
			}
		}
	}
	
	option = {
		name = child_personality.109.wrong
		trigger = { 
			scope:child = {
				NOT = { has_faith = root.faith }
			}
			is_ai = no
		}
		ai_chance = {
			base = 100
			ai_value_modifier = {
				ai_zeal = 0.7
			}
			modifier = {
				factor = 3
				has_trait = zealous
			}
		}
		
		stress_impact = {
			base = child_trait_change_stress_penalty
			zealous = major_stress_loss
			cynical = medium_stress_gain
		}

		reverse_add_opinion = {
			modifier = disappointed_opinion
			target = scope:child
			opinion = -10
		}
		
		random_list = {
			150 = {
				desc = child_personality.stay_tt
				send_interface_toast = {
					title = child_personality.stay_tt
					left_icon = scope:child
				}
			}
			50 = { 
				desc = child_personality.neutral_tt
				
				modifier = {
					factor = 0.1
					scope:child = {
						has_trait = zealous
					}
				}
				modifier = {
					factor = 3
					OR = {
						root.diplomacy >= medium_skill_rating
						root.learning >= medium_skill_rating
					}
				}
				if = {
					limit = {
						scope:child = {
							has_trait = zealous
						}
					}
					scope:child = {
						remove_trait = zealous
					}
				}
				scope:child = { save_scope_as = recipient }
				custom_tooltip = demand_conversion_tt
				hidden_effect = { demand_conversion_interaction_effect = yes }
				send_interface_toast = {
					title = child_personality.neutral_tt
					left_icon = scope:child
				}
			}
		}
	}
	
	option = {
		name = child_personality.109.waste
		
		ai_chance = {
			base = 100
			ai_value_modifier = {
				ai_honor = -1
				ai_compassion = -1
			}
			modifier = {
				factor = 3
				has_trait = sadistic
				has_trait = callous
			}
			modifier = {
				factor = 0
				OR = {
					has_trait = compassionate
				}
			}
		}
		
		stress_impact = {
			base = child_trait_change_stress_penalty
			sadistic = medium_stress_loss
			callous = minor_stress_loss 
			compassionate = medium_stress_gain
		}	
		
		reverse_add_opinion = {
			modifier = disappointed_opinion
			target = scope:child
			opinion = -20
		}
		
		random_list = {
			50 = {
				modifier = {
					factor = 4
					scope:child = { has_trait = stubborn }
				}
				desc = child_personality.stay_tt
				send_interface_toast = {
					title = child_personality.stay_tt
					left_icon = scope:child
				}
			}
			50 = {
				desc = child_personality.disdain_tt
				scope:child = {
					remove_trait = compassionate
				}
				if = {
					limit = {
						scope:child = {
							has_trait = arrogant
							OR = {
								has_trait = wrathful
								has_trait = calm
							}
						}
					}
					send_interface_toast = {
						title = child_personality.disdain_tt
						left_icon = scope:child
						scope:child = {
							add_diplomacy_skill = -1
						}
					}
				}
				else_if = {
					limit = {
						scope:child = {
							has_trait = arrogant
						}
					}
					send_interface_toast = {
						title = child_personality.disdain_tt
						left_icon = scope:child
						scope:child = {
							add_trait_force_tooltip = wrathful
						}
					}
				}
				else = {
					send_interface_toast = {
						title = child_personality.disdain_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = humble
							add_trait_force_tooltip = arrogant
						}
					}
				}
			}
			50 = {
				desc = child_personality.hesitant_tt
				scope:child = {
					remove_trait = brave
				}
				if = {
					limit = {
						scope:child = {
							has_trait = ambitious
							OR = {
								has_trait = diligent
								has_trait = lazy
							}
						}
					}
					send_interface_toast = {
						title = child_personality.disdain_tt
						left_icon = scope:child
						scope:child = {
							add_martial_skill = -1
						}
					}
				}
				else_if = {
					limit = {
						scope:child = {
							has_trait = ambitious
						}
					}
					send_interface_toast = {
						title = child_personality.disdain_tt
						left_icon = scope:child
						scope:child = {
							add_trait_force_tooltip = lazy
						}
					}
				}
				else = {
					send_interface_toast = {
						title = child_personality.disdain_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = diligent
							add_trait_force_tooltip = lazy
						}
					}
				}
			}
		}
	}
}

#Child has demonstrated zeal
child_personality.1092 = {
	type = character_event
	title = child_personality.1092.t
	desc = {
		first_valid = {
			triggered_desc = {
				trigger = {
					exists = scope:child_preacher
				}
				desc = child_personality.109.desc
			}
			desc = child_personality.109.desc_fallback
		}
		desc = child_personality.109.zealous
	}
	theme = education
	left_portrait = {
		character = scope:child
		animation = personality_zealous
	}

	right_portrait = {
		character = scope:child_preacher
		animation = personality_coward
	}
	
	
	option = {
		name = child_personality.109.fanatic_alt
		trigger = { 
			scope:child = {
				has_faith = root.faith
			}
		}
		ai_chance = {
			base = 100
			ai_value_modifier = {
				ai_zeal = 0.7
			}
			modifier = {
				factor = 3
				has_trait = zealous
			}
		}
		stress_impact = {
			zealous = major_stress_loss
			cynical = medium_stress_gain
		}
		custom_tooltip = child_personality.keeps_zealous_tt
		reverse_add_opinion = {
    		modifier = pleased_opinion
    		target = scope:child
    		opinion = 20
    	}
	}
	
	option = {
		name = child_personality.109.wrong
		trigger = { 
			scope:child = {
				NOT = { has_faith = root.faith }
			}
			is_ai = no
		}
		ai_chance = {
			base = 100
			ai_value_modifier = {
				ai_zeal = 0.7
			}
			modifier = {
				factor = 3
				has_trait = zealous
			}
		}
		
		stress_impact = {
			base = child_trait_change_stress_penalty
			zealous = major_stress_loss
			cynical = medium_stress_gain
		}

		reverse_add_opinion = {
			modifier = disappointed_opinion
			target = scope:child
			opinion = -20
		}
		
		random_list = {
			150 = {
				desc = child_personality.stay_tt
				send_interface_toast = {
					title = child_personality.stay_tt
					left_icon = scope:child
				}
			}
			25 = { 
				desc = child_personality.neutral_tt
				modifier = {
					factor = 3
					OR = {
						root.diplomacy >= medium_skill_rating
						root.learning >= medium_skill_rating
					}
				}
				scope:child = {
					remove_trait = zealous
				}
				scope:child = { save_scope_as = recipient }
				custom_tooltip = demand_conversion_tt
				hidden_effect = { demand_conversion_interaction_effect = yes }
				send_interface_toast = {
					title = child_personality.neutral_tt
					left_icon = scope:child
				}
			}
		}
	}
	
	option = {
		name = child_personality.109.negotiate_alt
		
		ai_chance = {
			base = 100
			ai_value_modifier = {
				ai_sociability = 0.5
				ai_compassion = 0.3
				ai_honor = 0.3
			}
			modifier = {
				factor = 3
				has_trait = compassionate
			}
		}
		
		stress_impact = {
			base = child_trait_change_stress_penalty
			gregarious = medium_stress_loss
			shy = minor_stress_gain
			calm = medium_stress_loss
			wrathful = minor_stress_gain
			compassionate = medium_stress_loss
			sadistic = medium_stress_gain
			callous = minor_stress_gain
		}
		
		reverse_add_opinion = {
			modifier = pleased_opinion
			target = scope:child
			opinion = 10
		}
		
		random_list = {
			50 = {
				desc = child_personality.stay_tt
				send_interface_toast = {
					title = child_personality.stay_tt
					left_icon = scope:child
				}
			}
			50 = { 
				desc = child_personality.under_tt
				modifier = {
					factor = 0.1
					scope:child = {
						has_trait = wrathful
					}
				}
				modifier = {
					factor = 4
					root.diplomacy >= medium_skill_rating
				}
				scope:child = {
					remove_trait = zealous
				}
				if = {
					limit = {
						scope:child = {
							has_trait = calm
						}
					}
					send_interface_toast = {
						title = child_personality.under_tt
						left_icon = scope:child
						scope:child = {
							add_diplomacy_skill = 1
						}
					}
				}
				else_if = {
					limit = {
						scope:child = {
							has_trait = wrathful
						}
					}
					send_interface_toast = {
						title = child_personality.under_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = wrathful
							add_diplomacy_skill = 2
						}
					}
				}
				else = {
					send_interface_toast = {
						title = child_personality.under_tt
						left_icon = scope:child
						scope:child = {
							add_trait_force_tooltip = calm
						}
					}
				}
			}
			50 = {
				desc = child_personality.punder_tt
				send_interface_toast = {
					title = child_personality.punder_tt
					left_icon = scope:child
					scope:child = {
						add_diplomacy_skill = 2
						add_learning_skill = -1
					}
				}
			}
		}
	}
	
	option = {
		name = child_personality.109.truth
		custom_tooltip = child_personality.109.truth_tt
		ai_chance = {
			base = 100
			ai_value_modifier = {
				ai_zeal = -0.7
			}
			modifier = {
				factor = 3
				has_trait = cynical
			}
		}
		
		stress_impact = {
			base = child_trait_change_stress_penalty
			zealous = major_stress_gain
			cynical = medium_stress_loss
		}

		
		random_list = {
			100 = {
				desc = child_personality.stay_tt
				send_interface_toast = {
					title = child_personality.stay_tt
					left_icon = scope:child
				}
				reverse_add_opinion = {
					modifier = disappointed_opinion
					target = scope:child
					opinion = -10
				}
			}
			50 = { 
				desc = child_personality.neutral_tt
				reverse_add_opinion = {
					modifier = pleased_opinion
					target = scope:child
					opinion = 10
				}
				modifier = {
					factor = 0.1
					scope:child = {
						has_trait = stubborn
					}
				}
				modifier = {
					factor = 3
					OR = {
						root.diplomacy >= medium_skill_rating
						root.learning >= medium_skill_rating
					}
				}
				send_interface_toast = {
					title = child_personality.neutral_tt
					left_icon = scope:child
					scope:child = {
						remove_trait = zealous
						add_trait_force_tooltip = cynical
					}
				}
			}
		}
	}
	
	option = {
		name = child_personality.109.waste_alt
		
		ai_chance = {
			base = 100
			ai_value_modifier = {
				ai_honor = -1
				ai_compassion = -1
			}
			modifier = {
				factor = 3
				has_trait = sadistic
				has_trait = callous
			}
			modifier = {
				factor = 0
				OR = {
					has_trait = compassionate
				}
			}
		}
		
		stress_impact = {
			base = child_trait_change_stress_penalty
			sadistic = medium_stress_loss
			callous = minor_stress_loss 
			compassionate = medium_stress_gain
		}	
		
		reverse_add_opinion = {
			modifier = disappointed_opinion
			target = scope:child
			opinion = -20
		}
		
		random_list = {
			50 = {
				modifier = {
					factor = 4
					scope:child = { has_trait = stubborn }
				}
				desc = child_personality.stay_tt
				send_interface_toast = {
					title = child_personality.stay_tt
					left_icon = scope:child
				}
			}
			50 = {
				desc = child_personality.disdain_tt
				scope:child = {
					remove_trait = compassionate
				}
				if = {
					limit = {
						scope:child = {
							has_trait = arrogant
							OR = {
								has_trait = wrathful
								has_trait = calm
							}
						}
					}
					send_interface_toast = {
						title = child_personality.disdain_tt
						left_icon = scope:child
						scope:child = {
							add_diplomacy_skill = -1
						}
					}
				}
				else_if = {
					limit = {
						scope:child = {
							has_trait = arrogant
						}
					}
					send_interface_toast = {
						title = child_personality.disdain_tt
						left_icon = scope:child
						scope:child = {
							add_trait_force_tooltip = wrathful
						}
					}
				}
				else = {
					send_interface_toast = {
						title = child_personality.disdain_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = humble
							add_trait_force_tooltip = arrogant
						}
					}
				}
			}
			50 = {
				desc = child_personality.hesitant_tt
				scope:child = {
					remove_trait = zealous
				}
				if = {
					limit = {
						scope:child = {
							has_trait = ambitious
							OR = {
								has_trait = diligent
								has_trait = lazy
							}
						}
					}
					send_interface_toast = {
						title = child_personality.disdain_tt
						left_icon = scope:child
						scope:child = {
							add_martial_skill = -1
						}
					}
				}
				else_if = {
					limit = {
						scope:child = {
							has_trait = ambitious
						}
					}
					send_interface_toast = {
						title = child_personality.disdain_tt
						left_icon = scope:child
						scope:child = {
							add_trait_force_tooltip = lazy
						}
					}
				}
				else = {
					send_interface_toast = {
						title = child_personality.disdain_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = diligent
							add_trait_force_tooltip = lazy
						}
					}
				}
			}
		}
	}
}

#Child has demonstrated cynism
child_personality.1093 = {
	type = character_event
	title = child_personality.1093.t
	desc = {
		first_valid = {
			triggered_desc = {
				trigger = {
					exists = scope:child_preacher
				}
				desc = child_personality.109.desc
			}
			desc = child_personality.109.desc_fallback
		}
		desc = child_personality.109.cynical
	}
	theme = education
	left_portrait = {
		character = scope:child
		animation = personality_cynical
	}
	right_portrait = {
		character = scope:child_preacher
		animation = personality_coward
	}
	
	option = {
		name = child_personality.109.truth_alt
		ai_chance = {
			base = 100
			ai_value_modifier = {
				ai_zeal = -0.7
			}
			modifier = {
				factor = 3
				has_trait = cynical
			}
		}
		stress_impact = {
			zealous = major_stress_gain
			cynical = medium_stress_loss
		}
		custom_tooltip = child_personality.keeps_cynical_tt
		reverse_add_opinion = {
    		modifier = pleased_opinion
    		target = scope:child
    		opinion = 10
    	}
	}
	
	option = {
		name = child_personality.109.fanatic_alt_alt
		trigger = { 
			scope:child = {
				has_faith = root.faith
			}
		}
		ai_chance = {
			base = 100
			ai_value_modifier = {
				ai_zeal = 0.5
				ai_compassion = 0.2
			}
			modifier = {
				factor = 3
				has_trait = content
			}
		}
		
		stress_impact = {
			base = child_trait_change_stress_penalty
			zealous = major_stress_gain
			cynical = medium_stress_loss
		}

		
		random_list = {
			100 = {
				desc = child_personality.stay_tt
				send_interface_toast = {
					title = child_personality.stay_tt
					left_icon = scope:child
				}
			}
			50 = { 
				desc = child_personality.neutral_tt
				reverse_add_opinion = {
					modifier = pleased_opinion
					target = scope:child
					opinion = 20
				}
				modifier = {
					factor = 0.1
					scope:child = {
						has_trait = stubborn
					}
				}
				modifier = {
					factor = 3
					OR = {
						root.diplomacy >= medium_skill_rating
						root.learning >= medium_skill_rating
					}
				}
				send_interface_toast = {
					title = child_personality.neutral_tt
					left_icon = scope:child
					scope:child = {
						remove_trait = cynical
					}
				}
			}
		}
	}
	
	option = {
		name = child_personality.109.wrong_alt
		custom_tooltip = child_personality.109.wrong_alt_tt
		trigger = { 
			scope:child = {
				NOT = { has_faith = root.faith }
			}
			is_ai = no
		}
		ai_chance = {
			base = 100
			ai_value_modifier = {
				ai_zeal = 0.7
			}
			modifier = {
				factor = 3
				has_trait = zealous
			}
		}
		
		stress_impact = {
			base = child_trait_change_stress_penalty
			zealous = major_stress_loss
			cynical = medium_stress_gain
		}

		reverse_add_opinion = {
			modifier = disappointed_opinion
			target = scope:child
			opinion = -20
		}
		
		random_list = {
			150 = {
				desc = child_personality.stay_tt
				send_interface_toast = {
					title = child_personality.stay_tt
					left_icon = scope:child
				}
			}
			25 = { 
				desc = child_personality.neutral_tt
				modifier = {
					factor = 3
					OR = {
						root.diplomacy >= medium_skill_rating
						root.learning >= medium_skill_rating
					}
				}
				scope:child = {
					remove_trait = cynical
				}
				scope:child = { save_scope_as = recipient }
				custom_tooltip = demand_conversion_tt
				hidden_effect = { demand_conversion_interaction_effect = yes }
				send_interface_toast = {
					title = child_personality.neutral_tt
					left_icon = scope:child
				}
			}
		}
	}
	
	option = {
		name = child_personality.109.palladin_alt
		
		ai_chance = {
			base = 100
			ai_value_modifier = {
				ai_compassion = 0.3
				ai_honor = 0.7
			}
			modifier = {
				factor = 3
				has_trait = just
			}
		}
		
		stress_impact = {
			base = child_trait_change_stress_penalty
			brave = medium_stress_loss
			just = minor_stress_loss
			compassionate = minor_stress_loss
			sadistic = medium_stress_gain
			callous = minor_stress_gain
		}
		
		reverse_add_opinion = {
			modifier = pleased_opinion
			target = scope:child
			opinion = 10
		}
		
		random_list = {
			50 = {
				desc = child_personality.stay_tt
				send_interface_toast = {
					title = child_personality.stay_tt
					left_icon = scope:child
				}
			}
			50 = { 
				desc = child_personality.under_tt
				modifier = {
					factor = 0.1
					scope:child = {
						has_trait = craven
						has_trait = sadistic
						has_trait = callous
					}
				}
				modifier = {
					factor = 4
					OR = {
						root.diplomacy >= medium_skill_rating
						root.martial >= medium_skill_rating
					}
				}
				if = {
					limit = {
						scope:child = {
							OR = {
								has_trait = callous
								has_trait = sadistic
							}
							has_trait = craven
						}
					}
					send_interface_toast = {
						title = child_personality.under_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = callous
							remove_trait = sadistic
						}
						add_martial_skill = 1
					}
				}
				else_if = {
					limit = {
						scope:child = {
							has_trait = craven
						}
					}
					send_interface_toast = {
						title = child_personality.under_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = craven
							add_diplomacy_skill = 1
						}
					}
				}
				else = {
					send_interface_toast = {
						title = child_personality.under_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = cynical
							add_trait_force_tooltip = compassionate
							add_diplomacy_skill = 1
							add_martial_skill = 1
						}
					}
				}
			}
			50 = {
				desc = child_personality.punder_tt
				send_interface_toast = {
					title = child_personality.punder_tt
					left_icon = scope:child
					scope:child = {
						add_martial_skill = 1
						add_learning_skill = -1
					}
				}
			}
		}
	}
	
	option = {
		name = child_personality.109.heresy
		trigger = {
			scope:child = {
				has_faith = root.faith
			}
		}
		ai_chance = {
			base = 100
			ai_value_modifier = {
				ai_zeal = 0.7
				ai_compassion = -0.2
			}
			modifier = {
				factor = 3
				has_trait = zealous
			}
			modifier = {
				factor = 0
				OR = {
					has_trait = compassionate
				}
			}
		}
		
		stress_impact = {
			base = child_trait_change_stress_penalty
			zealous = medium_stress_loss
			cynical = medium_stress_gain
			compassionate = medium_stress_gain
		}	
		
		reverse_add_opinion = {
			modifier = scared_opinion
			target = scope:child
			opinion = -30
		}
		
		random_list = {
			50 = {
				modifier = {
					factor = 4
					scope:child = { has_trait = stubborn }
				}
				desc = child_personality.stay_tt
				send_interface_toast = {
					title = child_personality.stay_tt
					left_icon = scope:child
				}
			}
			50 = { 
				desc = child_personality.mask_tt
				modifier = {
					factor = 3
					scope:child = {
						has_trait = deceitful
					}
				}
				modifier = {
					factor = 0.1
					scope:child = {
						has_trait = honest
					}
				}
				
				if = {
					limit = {
						scope:child = {
							NOT = { 
								has_trait = deceitful
							}
						}
					}
					send_interface_toast = {
						title = child_personality.mask_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = honest
							add_trait_force_tooltip = deceitful
						}
					}
				}
				else = {
					send_interface_toast = {
						title = child_personality.mask_tt
						left_icon = scope:child
						scope:child = {
							add_intrigue_skill = 1
							add_diplomacy_skill = -2
						}
					}
				}
			}
		}
	}
}

#Child has demonstrated passiveness
child_personality.1094 = {
	type = character_event
	title = child_personality.1094.t
	desc = {
		first_valid = {
			triggered_desc = {
				trigger = {
					exists = scope:child_preacher
				}
				desc = child_personality.109.desc
			}
			desc = child_personality.109.desc_fallback
		}
		desc = child_personality.109.nothing
	}
	theme = education
	left_portrait = {
		character = scope:child
		animation = worry
	}

	right_portrait = {
		character = scope:child_preacher
		animation = personality_coward
	}
	
	option = {
		name = child_personality.109.tame
		ai_chance = {
			base = 100
			ai_value_modifier = {
				ai_energy = -0.5
			}
			modifier = {
				factor = 3
				has_trait = content
			}
		}
		stress_impact = {
			content = medium_stress_loss
			craven = medium_stress_loss
			cynical = minor_stress_loss
			callous = minor_stress_loss
			brave = minor_stress_gain
			ambitious = minor_stress_gain
		}
		reverse_add_opinion = {
    		modifier = pleased_opinion
    		target = scope:child
    		opinion = 10
    	}
		random_list = {
			90 = {
				desc = child_personality.stay_tt
				send_interface_toast = {
					title = child_personality.stay_tt
					left_icon = scope:child
				}
			}
			5 = {
				desc = child_personality.hesitant_tt
				send_interface_toast = {
					title = child_personality.hesitant_tt
					left_icon = scope:child
					if = {
						limit = {
							scope:child = { has_trait = craven }
						}
						add_diplomacy_skill = -1
					}
					else = {
						scope:child = {
							add_trait_force_tooltip = craven
						}
					}
				}
			}
			5 = {
				desc = child_personality.hesitant_tt
				send_interface_toast = {
					title = child_personality.hesitant_tt
					left_icon = scope:child
					if = {
						limit = {
							scope:child = { 
								OR = { 
									has_trait = callous
									has_trait = sadistic
									has_trait = compassionate
								}
							}	
						}
						scope:child = {
							add_martial_skill = -1
						}	
					}
					else = {
						scope:child = {
							add_trait = callous
						}	
					}
				}
			}
		}
	}
	
	option = {
		name = child_personality.109.palladin_alt_alt
		
		ai_chance = {
			base = 100
			ai_value_modifier = {
				ai_compassion = 0.3
				ai_honor = 0.7
			}
			modifier = {
				factor = 3
				has_trait = just
			}
		}
		
		stress_impact = {
			base = child_trait_change_stress_penalty
			brave = medium_stress_loss
			just = minor_stress_loss
			compassionate = minor_stress_loss
			sadistic = medium_stress_gain
			callous = minor_stress_gain
		}
		
		random_list = {
			50 = {
				desc = child_personality.stay_tt
				send_interface_toast = {
					title = child_personality.stay_tt
					left_icon = scope:child
				}
			}
			50 = { 
				desc = child_personality.under_tt
				modifier = {
					factor = 0.1
					scope:child = {
						has_trait = craven
						has_trait = sadistic
						has_trait = callous
					}
				}
				modifier = {
					factor = 4
					OR = {
						root.diplomacy >= medium_skill_rating
						root.martial >= medium_skill_rating
					}
				}
				if = {
					limit = {
						scope:child = {
							OR = {
								has_trait = callous
								has_trait = sadistic
							}
							has_trait = craven
						}
					}
					send_interface_toast = {
						title = child_personality.under_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = callous
							remove_trait = sadistic
						}
						add_martial_skill = 1
					}
				}
				else_if = {
					limit = {
						scope:child = {
							has_trait = craven
						}
					}
					send_interface_toast = {
						title = child_personality.under_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = craven
							add_diplomacy_skill = 1
						}
					}
				}
				else = {
					send_interface_toast = {
						title = child_personality.under_tt
						left_icon = scope:child
						scope:child = {
							add_trait = compassionate
							add_diplomacy_skill = 1
							add_martial_skill = 1
						}
					}
				}
			}
			50 = {
				desc = child_personality.punder_tt
				send_interface_toast = {
					title = child_personality.punder_tt
					left_icon = scope:child
					scope:child = {
						add_martial_skill = 1
						add_learning_skill = -1
					}
				}
			}
		}
	}
	
	option = {
		name = child_personality.109.fanatic
		custom_tooltip = child_personality.109.fanatic_tt
		trigger = { 
			scope:child = {
				has_faith = root.faith
			}
		}
		ai_chance = {
			base = 100
			ai_value_modifier = {
				ai_zeal = 0.7
			}
			modifier = {
				factor = 3
				has_trait = zealous
			}
		}
		
		stress_impact = {
			base = child_trait_change_stress_penalty
			zealous = major_stress_loss
			cynical = medium_stress_gain
		}

		
		random_list = {
			50 = {
				desc = child_personality.stay_tt
				send_interface_toast = {
					title = child_personality.stay_tt
					left_icon = scope:child
				}
			}
			50 = { 
				desc = child_personality.neutral_tt
				reverse_add_opinion = {
					modifier = pleased_opinion
					target = scope:child
					opinion = 10
				}
				modifier = {
					factor = 0.1
					scope:child = {
						has_trait = cynical
					}
				}
				modifier = {
					factor = 3
					OR = {
						root.diplomacy >= medium_skill_rating
						root.learning >= medium_skill_rating
					}
				}
				if = {
					limit = {
						scope:child = {
							has_trait = zealous
						}
					}
					send_interface_toast = {
						title = child_personality.neutral_tt
						left_icon = scope:child
						scope:child = {
							add_learning_skill = 1
							add_martial_skill = 1
						}
					}
				}
				else = {
					send_interface_toast = {
						title = child_personality.neutral_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = cynical
							add_trait_force_tooltip = zealous
						}
					}
				}
			}
		}
	}
	
	
	option = {
		name = child_personality.109.negotiate
		
		ai_chance = {
			base = 100
			ai_value_modifier = {
				ai_sociability = 0.5
				ai_compassion = 0.3
				ai_honor = 0.3
			}
			modifier = {
				factor = 3
				has_trait = compassionate
			}
		}
		
		stress_impact = {
			base = child_trait_change_stress_penalty
			gregarious = medium_stress_loss
			shy = minor_stress_gain
			calm = medium_stress_loss
			wrathful = minor_stress_gain
			compassionate = medium_stress_loss
			sadistic = medium_stress_gain
			callous = minor_stress_gain
		}
		
		reverse_add_opinion = {
			modifier = pleased_opinion
			target = scope:child
			opinion = 10
		}
		
		random_list = {
			50 = {
				desc = child_personality.stay_tt
				send_interface_toast = {
					title = child_personality.stay_tt
					left_icon = scope:child
				}
			}
			50 = { 
				desc = child_personality.under_tt
				modifier = {
					factor = 0.1
					scope:child = {
						OR = {
							has_trait = stubborn
							has_trait = shy
						}
					}
				}
				modifier = {
					factor = 4
					root.diplomacy >= medium_skill_rating
				}
				if = {
					limit = {
						scope:child = {
							has_trait = wrathful
						}
					}
					send_interface_toast = {
						title = child_personality.under_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = wrathful
							add_diplomacy_skill = 2
						}
					}
				}
				else_if = {
					limit = {
						scope:child = {
							has_trait = calm
						}
					}
					send_interface_toast = {
						title = child_personality.under_tt
						left_icon = scope:child
						scope:child = {
							add_diplomacy_skill = 1
						}
					}
				}
				else = {
					send_interface_toast = {
						title = child_personality.under_tt
						left_icon = scope:child
						scope:child = {
							add_trait_force_tooltip = calm
						}
					}
				}
			}
			50 = {
				desc = child_personality.punder_tt
				send_interface_toast = {
					title = child_personality.punder_tt
					left_icon = scope:child
					scope:child = {
						add_diplomacy_skill = 1
						add_martial_skill = -1
					}
				}
			}
		}
	}
	
	option = {
		name = child_personality.109.weak
		
		ai_chance = {
			base = 100
			ai_value_modifier = {
				ai_honor = -1
				ai_compassion = -1
			}
			modifier = {
				factor = 3
				has_trait = sadistic
			}
			modifier = {
				factor = 0
				has_trait = compassionate
			}
		}
		
		stress_impact = {
			sadistic = medium_stress_loss
			callous = minor_stress_loss 
			compassionate = medium_stress_gain
		}	
		
		reverse_add_opinion = {
			modifier = disappointed_opinion
			target = scope:child
			opinion = -30
		}
		
		random_list = {
			50 = {
				desc = child_personality.stay_tt
				send_interface_toast = {
					title = child_personality.stay_tt
					left_icon = scope:child
				}
			}
			50 = { 
				desc = child_personality.hardened_tt
				modifier = {
					factor = 2
					scope:child = { has_trait = stubborn }
				}
				if = {
					limit = {
						scope:child = {
							NOR = { 
								has_trait = calm
								has_trait = wrathful
							}
						}
					}
					send_interface_toast = {
						title = child_personality.hardened_tt
						left_icon = scope:child
						scope:child = {
							add_trait_force_tooltip = wrathful
						}
					}
				}
				else_if = {
					limit = {
						scope:child = {
							NOR = { 
								has_trait = callous
								has_trait = sadistic
							}
						}
					}
					scope:child = {
						remove_trait = compassionate
					}
					send_interface_toast = {
						title = child_personality.hardened_tt
						left_icon = scope:child
						scope:child = {
							add_trait_force_tooltip = callous
						}
					}
				}
				else = {
					send_interface_toast = {
						title = child_personality.hardened_tt
						left_icon = scope:child
						scope:child = {
							add_diplomacy_skill = -1
						}
					}
				}
			}
			50 = {
				desc = child_personality.insecure_tt
				send_interface_toast = {
					title = child_personality.insecure_tt
					left_icon = scope:child
					scope:child = {
						add_trait = craven
					}
				}
			}
		}	
	}
}

#Child has demonstrated bullying
child_personality.1095 = {
	type = character_event
	title = child_personality.1095.t
	desc = {
		first_valid = {
			triggered_desc = {
				trigger = {
					exists = scope:child_preacher
				}
				desc = child_personality.109.desc
			}
			desc = child_personality.109.desc_fallback
		}
		desc = child_personality.1095.start
		first_valid = {
			triggered_desc = {
				trigger = { 
					exists = scope:child_preacher
					scope:child_preacher = {
						has_relation_victim = scope:child 
					}
				}
				desc = child_personality.109.victim
			}
			desc = child_personality.109.bully
		}
	}
	theme = education
	left_portrait = {
		character = scope:child
		animation = rage
	}

	right_portrait = {
		character = scope:child_preacher
		animation = personality_coward
	}
	
	option = {
		name = child_personality.109.confirm_sadistic
		trigger = {
			NAND = {
				exists = scope:child_preacher
				scope:child_preacher = {
					has_relation_victim = scope:child 
				}
			}
		}
		ai_chance = {
			base = 100
			ai_value_modifier = {
				ai_honor = -0.5
				ai_compassion = -0.5
			}
			modifier = {
				factor = 3
				has_trait = sadistic
			}
		}
		stress_impact = {
			sadistic = minor_stress_loss
			arbitrary = minor_stress_loss
			just = medium_stress_gain
			compassionate = major_stress_gain
		}
		custom_tooltip = child_personality.stay_tt
		reverse_add_opinion = {
    		modifier = pleased_opinion
    		target = scope:child
    		opinion = 20
    	}
	}
	
	option = {
		name = child_personality.109.confirm_vengeful
		trigger = {
			AND = {
				exists = scope:child_preacher
				scope:child_preacher = {
					has_relation_victim = scope:child 
				}
			}
		}
		ai_chance = {
			base = 100
			ai_value_modifier = {
				ai_vengefulness = 1
				ai_compassion = -0.5
			}
			modifier = {
				factor = 3
				has_trait = vengeful
			}
		}
		stress_impact = {
			sadistic = minor_stress_loss
			arbitrary = minor_stress_loss
			just = medium_stress_gain
			compassionate = major_stress_gain
		}
		if = {
			limit = {
				scope:child = { has_trait = vengeful }
			}
			custom_tooltip = child_personality.stay_tt
		}
		else = {
			scope:child = {
				remove_trait = forgiving
				add_trait_force_tooltip = vengeful
			}
		}
		reverse_add_opinion = {
    		modifier = pleased_opinion
    		target = scope:child
    		opinion = 30
    	}
	}
	
	option = {
		name = child_personality.109.palladin_crit
		
		ai_chance = {
			base = 100
			ai_value_modifier = {
				ai_compassion = 0.5
				ai_honor = 0.5
			}
			modifier = {
				factor = 3
				OR = {
					has_trait = compassionate
				}
			}
		}
		
		stress_impact = {
			base = child_trait_change_stress_penalty
			brave = medium_stress_loss
			just = minor_stress_loss
			compassionate = minor_stress_loss
			sadistic = medium_stress_gain
			callous = minor_stress_gain
		}
		
		reverse_add_opinion = {
			modifier = disappointed_opinion
			target = scope:child
			opinion = -10
		}
		
		random_list = {
			50 = {
				desc = child_personality.stay_tt
				send_interface_toast = {
					title = child_personality.stay_tt
					left_icon = scope:child
				}
			}
			50 = { 
				desc = child_personality.under_tt
				modifier = {
					factor = 0.1
					OR = {
						scope:child = {
							has_trait = sadistic
						}
						AND = {
							exists = scope:child_preacher
							scope:child_preacher = {
								has_relation_victim = scope:child 
							}
						}
					}
				}
				modifier = {
					factor = 4
					OR = {
						root.diplomacy >= medium_skill_rating
					}
				}
				if = {
					limit = {
						scope:child = {
							OR = {
								has_trait = callous
								has_trait = sadistic
							}
						}
					}
					send_interface_toast = {
						title = child_personality.under_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = callous
							remove_trait = sadistic
							add_diplomacy_skill = 1
						}
					}
				}
				else = {
					send_interface_toast = {
						title = child_personality.under_tt
						left_icon = scope:child
						scope:child = {
							add_trait = compassionate
							add_diplomacy_skill = 1
							add_martial_skill = 1
						}
					}
				}
			}
			50 = {
				desc = child_personality.punder_tt
				send_interface_toast = {
					title = child_personality.punder_tt
					left_icon = scope:child
					remove_trait = sadistic
					scope:child = {
						add_diplomacy_skill = 1
						add_martial_skill = -1
					}
				}
			}
		}
	}
	
	option = {
		name = child_personality.109.heresy_crit
		trigger = {
			scope:child = {
				has_faith = root.faith
			}
		}
		ai_chance = {
			base = 100
			ai_value_modifier = {
				ai_zeal = 0.7
			}
			modifier = {
				factor = 3
				OR = {
					has_trait = zealous
				}
			}
		}
		
		stress_impact = {
			base = child_trait_change_stress_penalty
			zealous = medium_stress_loss
			cynical = medium_stress_gain
			compassionate = minor_stress_gain
		}	
		
		reverse_add_opinion = {
			modifier = disappointed_opinion
			target = scope:child
			opinion = -10
		}
		
		random_list = {
			50 = {
				desc = child_personality.stay_tt
				send_interface_toast = {
					title = child_personality.stay_tt
					left_icon = scope:child
				}
			}
			50 = { 
				desc = child_personality.neutral_tt
				modifier = {
					factor = 0.3
					scope:child = {
						OR = {
							has_trait = sadistic
							has_trait = cynical
						}
					}
				}

				modifier = {
					factor = 0.3
					AND = {
						exists = scope:child_preacher
						scope:child_preacher = {
							has_relation_victim = scope:child 
						}
					}
				}
				
				modifier = {
					factor = 4
					OR = {
						root.diplomacy >= medium_skill_rating
						root.learning >= medium_skill_rating
					}
				}
				if = {
					limit = {
						scope:child = {
							has_trait = sadistic
						}
					}
					send_interface_toast = {
						title = child_personality.neutral_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = sadistic
							add_trait = callous
							add_learning_skill = 1
						}
					}
				}
				else_if = {
					limit = {
						scope:child = {
							has_trait = cynical
						}
					}
					send_interface_toast = {
						title = child_personality.neutral_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = cynical
							add_learning_skill = 1
						}
					}
				}
				else = {
					send_interface_toast = {
						title = child_personality.neutral_tt
						left_icon = scope:child
						scope:child = {
							add_trait_force_tooltip = zealous
							add_learning_skill = 1
							add_martial_skill = 1
						}
					}
				}
			}
		}
	}
	
	option = {
		name = child_personality.109.wrong_crit
		custom_tooltip = child_personality.109.wrong_alt_tt
		trigger = { 
			scope:child = {
				NOT = { has_faith = root.faith }
			}
			is_ai = no
		}
		ai_chance = {
			base = 100
			ai_value_modifier = {
				ai_zeal = 0.7
			}
			modifier = {
				factor = 3
				has_trait = zealous
			}
		}
		
		stress_impact = {
			base = child_trait_change_stress_penalty
			zealous = major_stress_loss
			cynical = medium_stress_gain
		}
		
		random_list = {
			150 = {
				desc = child_personality.stay_tt
				send_interface_toast = {
					title = child_personality.stay_tt
					left_icon = scope:child
				}
			}
			25 = { 
				desc = child_personality.neutral_tt
				modifier = {
					factor = 3
					OR = {
						root.diplomacy >= medium_skill_rating
						root.learning >= medium_skill_rating
					}
				}
				scope:child = {
					remove_trait = zealous
				}
				scope:child = { save_scope_as = recipient }
				custom_tooltip = demand_conversion_tt
				hidden_effect = { demand_conversion_interaction_effect = yes }
				send_interface_toast = {
					title = child_personality.neutral_tt
					left_icon = scope:child
				}
			}
		}
	}
	
	option = {
		name = child_personality.109.punish
		stress_impact = {
			base = child_trait_change_stress_penalty
			compassionate = medium_stress_gain
			just = minor_stress_loss
			wrathful = minor_stress_loss
		}
		
		reverse_add_opinion = {
			modifier = disappointed_opinion
			target = scope:child
			opinion = -30
		}
		
		random_list = {
			100 = {
				desc = child_personality.stay_tt
				send_interface_toast = {
					title = child_personality.stay_tt
					left_icon = scope:child
				}
			}
			50 = { 
				desc = child_personality.distrust_tt
				modifier = {
					factor = 3
					scope:child = {
						OR = {
							has_trait = cynical
							has_trait = paranoid
						}
					}
				}
				if = {
					limit = {
						scope:child = {
							NOR = { 
								has_trait = zealous
								has_trait = cynical
							}
						}
					}
					send_interface_toast = {
						title = child_personality.distrust_tt
						left_icon = scope:child
						scope:child = {
							add_trait_force_tooltip = cynical
						}
					}
				}
				else_if = {
					limit = {
						scope:child = {
							NOT = { 
								has_trait = paranoid
							}
						}
					}
					scope:child = {
						remove_trait = trusting
					}
					send_interface_toast = {
						title = child_personality.distrust_tt
						left_icon = scope:child
						scope:child = {
							add_trait_force_tooltip = paranoid
						}
					}
				}
				else = {
					send_interface_toast = {
						title = child_personality.distrust_tt
						left_icon = scope:child
						scope:child = {
							add_intrigue_skill = 1
							add_diplomacy_skill = -2
						}
					}
				}
				
			}
		}
	}
}




#Responses to horse-like riding
#0010

#Child has become fimpatient
child_personality.1101 = {
	type = character_event
	title = child_personality.1101.t
	desc = {
		desc = child_personality.110.desc
		desc = child_personality.110.fimpatient
	}
	theme = education
	override_background = {
		reference = terrain
	}
	left_portrait = {
		character = scope:child
		animation = personality_irrational
	}
	right_portrait = {
		character = root
		animation = personality_rational
	}

	option = {
		name = child_personality.110.confirm_fimpatient
		ai_chance = {
			base = 100
			ai_value_modifier = {
				ai_rationality = -0.5
				ai_compassion = 0.2
			}
			modifier = {
				factor = 3
				OR = {
					has_trait = fickle
					has_trait = impatient
				}
			}
		}
		stress_impact = {
			patient = minor_stress_gain
			stubborn = minor_stress_gain
			impatient = minor_stress_loss
			fickle = minor_stress_loss
			compassionate = minor_stress_loss
		}
		custom_tooltip = child_personality.stay_tt
		reverse_add_opinion = {
    		modifier = pleased_opinion
    		target = scope:child
    		opinion = 10
    	}
	}

	option = {
		name = child_personality.110.fun
		ai_chance = {
			base = 100
			ai_value_modifier = {
				ai_compassion = 0.5
			}
			modifier = {
				factor = 3
				OR = {
					has_trait = compassionate
				}
			}
		}
		stress_impact = {
			base = child_trait_change_stress_penalty
			compassionate = medium_stress_loss
			sadistic = medium_stress_gain
			callous = minor_stress_gain
		}
		reverse_add_opinion = {
    		modifier = pleased_opinion
    		target = scope:child
    		opinion = 20
    	}
		
		random_list = {
			50 = {
				desc = child_personality.stay_tt
				send_interface_toast = {
					title = child_personality.stay_tt
					left_icon = scope:child
				}
			}
			50 = { 
				desc = child_personality.neutral_tt

				modifier = {
					factor = 3
					OR = {
						root.diplomacy >= medium_skill_rating
						root.intrigue >= medium_skill_rating
					}
				}
				if = {
					limit = {
						scope:child = {
							has_trait = fickle
						}
					}
					send_interface_toast = {
						title = child_personality.neutral_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = fickle
							add_learning_skill = 1
						}
					}
				}
				else = {
					send_interface_toast = {
						title = child_personality.neutral_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = impatient
							add_learning_skill = 1
						}
					}
				}
			}
		}
	}
	
	option = {
		name = child_personality.110.stay
		
		stress_impact = {
			base = child_trait_change_stress_penalty
			diligent = medium_stress_loss
			stubborn = minor_stress_loss
			lazy = medium_stress_gain
		}
		
		random_list = {
			50 = {
				desc = child_personality.stay_tt
				send_interface_toast = {
					title = child_personality.stay_tt
					left_icon = scope:child
				}
			}
			50 = { 
				desc = child_personality.under_tt
				modifier = {
					factor = 0.1
					scope:child = {
						OR = {
							AND = {
								has_trait = fickle
								has_trait = impatient
							}
							has_trait = lazy
						}
					}
				}
				modifier = {
					factor = 4
					OR = {
						root.diplomacy >= medium_skill_rating
						root.learning >= medium_skill_rating
						root.stewardship >= medium_skill_rating
					}
				}
				if = {
					limit = {
						scope:child = {
							AND = {
								has_trait = fickle
								has_trait = impatient
							}
						}
					}
					send_interface_toast = {
						title = child_personality.under_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = impatient
							remove_trait = fickle
							add_trait_force_tooltip = ambitious
						}
					}
				}
				else_if = {
					limit = {
						scope:child = {
							AND = {
								OR = {
									has_trait = fickle
									has_trait = impatient
								}
								has_trait = lazy
							}
						}
					}
					send_interface_toast = {
						title = child_personality.under_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = impatient
							remove_trait = fickle
							remove_trait = lazy
							add_stewardship_skill = 1
							add_learning_skill = 1
						}
					}
				}
				else_if = {
					limit = {
						scope:child = {
							AND = {
								OR = {
									has_trait = fickle
									has_trait = impatient
								}
								has_trait = diligent
							}
						}
					}
					send_interface_toast = {
						title = child_personality.under_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = impatient
							remove_trait = fickle
							add_trait = stubborn
						}
					}
				}
				else = {
					send_interface_toast = {
						title = child_personality.under_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = impatient
							remove_trait = fickle
							add_trait = diligent
						}
					}
				}
			}
			50 = {
				desc = child_personality.punder_tt
				send_interface_toast = {
					title = child_personality.punder_tt
					left_icon = scope:child
					scope:child = {
						add_learning_skill = 1
						add_stewardship_skill = -1
					}
				}
			}
		}
	}
	
	option = {
		name = child_personality.110.crit
		ai_chance = {
			base = 100
			ai_value_modifier = {
				ai_compassion = -0.5
			}
			modifier = {
				factor = 3
				OR = {
					has_trait = callous
					has_trait = sadistic
				}
			}
		}
		
		reverse_add_opinion = {
    		modifier = disappointed_opinion
    		target = scope:child
    		opinion = -20
    	}
		
		stress_impact = {
			base = child_trait_change_stress_penalty
			compassionate = medium_stress_gain
			callous = medium_stress_loss
			sadistic = medium_stress_loss
			wrathful = minor_stress_loss
		}
		
		random_list = {	
			50 = {
				desc = child_personality.stay_tt
				send_interface_toast = {
					title = child_personality.stay_tt
					left_icon = scope:child
				}
			}
			100 = {
				desc = child_personality.sloth_tt
				scope:child = {
					remove_trait = diligent
				}
				send_interface_toast = {
					title = child_personality.sloth_tt
					left_icon = scope:child
					scope:child = {
						add_trait_force_tooltip = lazy
						add_learning_skill = -1
					}
				}
			}
			50 = { 
				desc = child_personality.hardened_tt
				scope:child = {
					remove_trait = patient
					remove_trait = impatient
				}
				if = {
					limit = {
						scope:child = {
							NOR = {
								has_trait = wrathful
								has_trait = calm
							}
						}
					}
					send_interface_toast = {
						title = child_personality.hardened_tt
						left_icon = scope:child
						scope:child = {
							add_trait_force_tooltip = wrathful
						}
					}
				}
				else_if = {
					limit = {
						scope:child = {
							NOT = { 
								has_trait = wrathful
							}
						}
					}
					send_interface_toast = {
						title = child_personality.hardened_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = calm
						}
					}
				}
				else = {
					send_interface_toast = {
						title = child_personality.hardened_tt
						left_icon = scope:child
						scope:child = {
							add_prowess_skill = 1
							add_learning_skill = -1
						}
					}
				}
			}
		}
	}
}

#Child has become patient
child_personality.1102 = {
	type = character_event
	title = child_personality.1102.t
	desc = {
		desc = child_personality.110.desc
		desc = child_personality.110.patient
	}
	theme = education
	override_background = {
		reference = terrain
	}
	left_portrait = {
		character = scope:child
		animation = personality_forgiving
	}
	right_portrait = {
		character = root
		animation = personality_rational
	}

	option = {
		name = child_personality.110.confirm_patient
		ai_chance = {
			base = 100
			ai_value_modifier = {
				ai_rationality = 0.5
				ai_compassion = 0.2
			}
			modifier = {
				factor = 3
				has_trait = patient
			}
		}
		stress_impact = {
			patient = minor_stress_loss
			stubborn = minor_stress_loss
			impatient = minor_stress_gain
			fickle = minor_stress_gain
			compassionate = minor_stress_loss
		}
		custom_tooltip = child_personality.stay_tt
		reverse_add_opinion = {
    		modifier = pleased_opinion
    		target = scope:child
    		opinion = 10
    	}
	}
	
	option = {
		name = child_personality.110.work
		
		stress_impact = {
			base = child_trait_change_stress_penalty
			diligent = medium_stress_loss
			stubborn = minor_stress_loss
			lazy = medium_stress_gain
		}
		
		random_list = {
			50 = {
				desc = child_personality.stay_tt
				send_interface_toast = {
					title = child_personality.stay_tt
					left_icon = scope:child
				}
			}
			50 = { 
				desc = child_personality.under_tt
				modifier = {
					factor = 0.1
					scope:child = {
						has_trait = lazy
					}
				}
				modifier = {
					factor = 3
					OR = {
						root.diplomacy >= medium_skill_rating
						root.learning >= medium_skill_rating
						root.stewardship >= medium_skill_rating
					}
				}
				if = {
					limit = {
						scope:child = {
							has_trait = lazy
						}
					}
					send_interface_toast = {
						title = child_personality.under_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = lazy
							add_stewardship_skill = 1
							add_learning_skill = 1
						}
					}
				}
				else_if = {
					limit = {
						scope:child = {
							has_trait = diligent
							has_trait = fickle
						}
					}
					send_interface_toast = {
						title = child_personality.under_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = fickle
							add_learning_skill = 1
							add_stewardship_skill = 1
						}
					}
				}
				else_if = {
					limit = {
						scope:child = {
							has_trait = diligent
							has_trait = stubborn
						}
					}
					send_interface_toast = {
						title = child_personality.under_tt
						left_icon = scope:child
						scope:child = {
							add_learning_skill = 1
						}
					}
				}
				else_if = {
					limit = {
						scope:child = {
							has_trait = diligent
						}
					}
					send_interface_toast = {
						title = child_personality.under_tt
						left_icon = scope:child
						scope:child = {
							add_trait = stubborn
						}
					}
				}
				else = {
					send_interface_toast = {
						title = child_personality.under_tt
						left_icon = scope:child
						scope:child = {
							add_trait = diligent
						}
					}
				}
			}
			50 = {
				desc = child_personality.punder_tt
				send_interface_toast = {
					title = child_personality.punder_tt
					left_icon = scope:child
					scope:child = {
						add_stewardship_skill = 1
						add_learning_skill = -1
					}
				}
			}
		}
	}
	
	option = {
		name = child_personality.110.crit_alt
		ai_chance = {
			base = 100
			ai_value_modifier = {
				ai_compassion = -0.5
			}
			modifier = {
				factor = 3
				OR = {
					has_trait = callous
					has_trait = sadistic
				}
			}
		}
		
		reverse_add_opinion = {
    		modifier = disappointed_opinion
    		target = scope:child
    		opinion = -30
    	}
		
		stress_impact = {
			base = child_trait_change_stress_penalty
			compassionate = medium_stress_gain
			callous = medium_stress_loss
			sadistic = medium_stress_loss
			wrathful = minor_stress_loss
		}
		
		random_list = {	
			50 = {
				desc = child_personality.stay_tt
				send_interface_toast = {
					title = child_personality.stay_tt
					left_icon = scope:child
				}
			}
			100 = {
				desc = child_personality.sloth_tt
				scope:child = {
					remove_trait = diligent
				}
				send_interface_toast = {
					title = child_personality.sloth_tt
					left_icon = scope:child
					scope:child = {
						add_trait_force_tooltip = lazy
						add_learning_skill = -1
					}
				}
			}
			50 = { 
				desc = child_personality.hardened_tt
				scope:child = {
					remove_trait = patient
				}
				if = {
					limit = {
						scope:child = {
							NOR = {
								has_trait = wrathful
								has_trait = calm
							}
						}
					}
					send_interface_toast = {
						title = child_personality.hardened_tt
						left_icon = scope:child
						scope:child = {
							add_trait_force_tooltip = wrathful
						}
					}
				}
				else_if = {
					limit = {
						scope:child = {
							NOT = { 
								has_trait = wrathful
							}
						}
					}
					send_interface_toast = {
						title = child_personality.hardened_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = calm
						}
					}
				}
				else = {
					send_interface_toast = {
						title = child_personality.hardened_tt
						left_icon = scope:child
						scope:child = {
							add_prowess_skill = 1
							add_learning_skill = -1
						}
					}
				}
			}
		}
	}
}

#Child has become humble
child_personality.1103 = {
	type = character_event
	title = child_personality.1103.t
	desc = {
		desc = child_personality.110.desc
		desc = child_personality.110.patient
	}
	theme = education
	override_background = {
		reference = terrain
	}
	left_portrait = {
		character = scope:child
		animation = personality_content
	}
	right_portrait = {
		character = root
		animation = personality_rational
	}

	option = {
		name = child_personality.110.confirm_humble
		ai_chance = {
			base = 100
			ai_value_modifier = {
				ai_rationality = 0.3
				ai_compassion = 0.2
			}
			modifier = {
				factor = 3
				has_trait = humble
			}
		}
		stress_impact = {
			humble = minor_stress_loss
			content = minor_stress_loss
			patient = minor_stress_loss
			impatient = minor_stress_gain
			ambitious = minor_stress_gain
		}
		custom_tooltip = child_personality.stay_tt
		reverse_add_opinion = {
    		modifier = pleased_opinion
    		target = scope:child
    		opinion = 10
    	}
	}
	
	option = {
		name = child_personality.110.poten
		ai_chance = {
			base = 100
			ai_value_modifier = {
				ai_compassion = 0.5
			}
			modifier = {
				factor = 3
				OR = {
					has_trait = compassionate
				}
			}
		}
		stress_impact = {
			base = child_trait_change_stress_penalty
			compassionate = medium_stress_loss
			sadistic = medium_stress_gain
			callous = minor_stress_gain
		}
		reverse_add_opinion = {
    		modifier = pleased_opinion
    		target = scope:child
    		opinion = 20
    	}
		
		random_list = {
			50 = {
				desc = child_personality.stay_tt
				send_interface_toast = {
					title = child_personality.stay_tt
					left_icon = scope:child
				}
			}
			50 = { 
				desc = child_personality.neutral_tt

				modifier = {
					factor = 3
					OR = {
						root.diplomacy >= medium_skill_rating
						root.intrigue >= medium_skill_rating
					}
				}
				if = {
					limit = {
						scope:child = {
							has_trait = humble
						}
					}
					send_interface_toast = {
						title = child_personality.neutral_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = humble
							add_learning_skill = 1
						}
					}
				}
				else = {
					send_interface_toast = {
						title = child_personality.neutral_tt
						left_icon = scope:child
						scope:child = {
							add_stewardship_skill = 1
							add_learning_skill = 1
						}
					}
				}
			}
		}
	}

	option = {
		name = child_personality.110.stay
		
		stress_impact = {
			base = child_trait_change_stress_penalty
			diligent = medium_stress_loss
			stubborn = minor_stress_loss
			lazy = medium_stress_gain
		}
		
		random_list = {
			50 = {
				desc = child_personality.stay_tt
				send_interface_toast = {
					title = child_personality.stay_tt
					left_icon = scope:child
				}
			}
			50 = { 
				desc = child_personality.under_tt
				modifier = {
					factor = 0.1
					scope:child = {
						OR = {
							has_trait = humble
							has_trait = lazy
						}
					}
				}
				modifier = {
					factor = 3
					OR = {
						root.diplomacy >= medium_skill_rating
						root.learning >= medium_skill_rating
						root.stewardship >= medium_skill_rating
					}
				}
				if = {
					limit = {
						scope:child = {
							has_trait = lazy
						}
					}
					send_interface_toast = {
						title = child_personality.under_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = lazy
							add_stewardship_skill = 1
							add_learning_skill = 1
						}
					}
				}
				else_if = {
					limit = {
						scope:child = {
							AND = {
								has_trait = humble
								has_trait = diligent
							}
						}
					}
					send_interface_toast = {
						title = child_personality.under_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = humble
							add_learning_skill = 1
						}
					}
				}
				else_if = {
					limit = {
						scope:child = {
							has_trait = diligent
						}
					}
					send_interface_toast = {
						title = child_personality.under_tt
						left_icon = scope:child
						scope:child = {
							add_stewardship_skill = 1
							add_learning_skill = 1
						}
					}
				}
				else = {
					send_interface_toast = {
						title = child_personality.under_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = humble
							add_trait = diligent
						}
					}
				}
			}
			50 = {
				desc = child_personality.punder_tt
				send_interface_toast = {
					title = child_personality.punder_tt
					left_icon = scope:child
					scope:child = {
						add_learning_skill = 1
						add_stewardship_skill = -1
					}
				}
			}
		}
	}
	
	option = {
		name = child_personality.110.crit
		ai_chance = {
			base = 100
			ai_value_modifier = {
				ai_compassion = -0.5
			}
			modifier = {
				factor = 3
				OR = {
					has_trait = callous
					has_trait = sadistic
				}
			}
		}
		
		reverse_add_opinion = {
    		modifier = disappointed_opinion
    		target = scope:child
    		opinion = -20
    	}
		
		stress_impact = {
			base = child_trait_change_stress_penalty
			compassionate = medium_stress_gain
			callous = medium_stress_loss
			sadistic = medium_stress_loss
			wrathful = minor_stress_loss
		}
		
		random_list = {	
			50 = {
				desc = child_personality.stay_tt
				send_interface_toast = {
					title = child_personality.stay_tt
					left_icon = scope:child
				}
			}
			100 = {
				desc = child_personality.sloth_tt
				scope:child = {
					remove_trait = diligent
				}
				send_interface_toast = {
					title = child_personality.sloth_tt
					left_icon = scope:child
					scope:child = {
						add_trait_force_tooltip = lazy
						add_learning_skill = -1
					}
				}
			}
			50 = { 
				desc = child_personality.hardened_tt
				scope:child = {
					remove_trait = humble
				}
				if = {
					limit = {
						scope:child = {
							NOR = {
								has_trait = wrathful
								has_trait = calm
							}
						}
					}
					send_interface_toast = {
						title = child_personality.hardened_tt
						left_icon = scope:child
						scope:child = {
							add_trait_force_tooltip = wrathful
						}
					}
				}
				else_if = {
					limit = {
						scope:child = {
							NOT = { 
								has_trait = wrathful
							}
						}
					}
					send_interface_toast = {
						title = child_personality.hardened_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = calm
						}
					}
				}
				else = {
					send_interface_toast = {
						title = child_personality.hardened_tt
						left_icon = scope:child
						scope:child = {
							add_prowess_skill = 1
							add_learning_skill = -1
						}
					}
				}
			}
		}
	}
}

#Child has become stumbitious
child_personality.1104 = {
	type = character_event
	title = child_personality.1104.t
	desc = {
		desc = child_personality.110.desc
		desc = child_personality.110.stumbitious
	}
	theme = education
	override_background = {
		reference = terrain
	}
	left_portrait = {
		character = scope:child
		animation = personality_bold
	}
	right_portrait = {
		character = root
		animation = personality_rational
	}

	option = {
		name = child_personality.110.confirm_stumbitious
		ai_chance = {
			base = 100
			ai_value_modifier = {
				ai_rationality = -0.4
				ai_compassion = 0.3
			}
			modifier = {
				factor = 3
				has_trait = ambitious
			}
		}
		stress_impact = {
			humble = minor_stress_gain
			content = minor_stress_gain
			ambitious = minor_stress_loss
			stubborn = minor_stress_loss
			compassionate = minor_stress_loss
		}
		custom_tooltip = child_personality.stay_tt
		reverse_add_opinion = {
    		modifier = pleased_opinion
    		target = scope:child
    		opinion = 15
    	}
	}
	
	option = {
		name = child_personality.110.temper
		ai_chance = {
			base = 100
			ai_value_modifier = {
				ai_rationality = 0.5
			}
			modifier = {
				factor = 3
				OR = {
					has_trait = compassionate
					has_trait = calm
				}
			}
		}
		stress_impact = {
			base = child_trait_change_stress_penalty
			compassionate = medium_stress_loss
			sadistic = medium_stress_gain
			callous = minor_stress_gain
		}
		
		random_list = {
			50 = {
				desc = child_personality.stay_tt
				send_interface_toast = {
					title = child_personality.stay_tt
					left_icon = scope:child
				}
			}
			50 = { 
				desc = child_personality.neutral_tt

				modifier = {
					factor = 3
					OR = {
						root.diplomacy >= medium_skill_rating
						root.intrigue >= medium_skill_rating
					}
				}
				if = {
					limit = {
						scope:child = {
							has_trait = stubborn
						}
					}
					send_interface_toast = {
						title = child_personality.neutral_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = stubborn
							add_learning_skill = 1
							add_stewardship_skill = 1
						}
					}
				}
				else = {
					send_interface_toast = {
						title = child_personality.neutral_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = ambitious
							add_stewardship_skill = 1
							add_learning_skill = 1
						}
					}
				}
			}
		}
	}
	
	option = {
		name = child_personality.110.weak
		ai_chance = {
			base = 100
			ai_value_modifier = {
				ai_compassion = -0.5
			}
			modifier = {
				factor = 3
				OR = {
					has_trait = callous
					has_trait = sadistic
				}
			}
		}
		
		reverse_add_opinion = {
    		modifier = disappointed_opinion
    		target = scope:child
    		opinion = -20
    	}
		
		stress_impact = {
			base = child_trait_change_stress_penalty
			compassionate = medium_stress_gain
			callous = medium_stress_loss
			sadistic = medium_stress_loss
			wrathful = minor_stress_loss
		}
		
		random_list = {	
			50 = {
				desc = child_personality.stay_tt
				modifier = {
					factor = 4
					has_trait = stubborn
				}
				send_interface_toast = {
					title = child_personality.stay_tt
					left_icon = scope:child
				}
			}
			100 = {
				desc = child_personality.sloth_tt
				scope:child = {
					remove_trait = diligent
				}
				send_interface_toast = {
					title = child_personality.sloth_tt
					left_icon = scope:child
					scope:child = {
						add_trait_force_tooltip = lazy
						add_learning_skill = -1
					}
				}
			}
			50 = { 
				desc = child_personality.hardened_tt
				scope:child = {
					remove_trait = ambitious
				}
				if = {
					limit = {
						scope:child = {
							NOR = {
								has_trait = wrathful
								has_trait = calm
							}
						}
					}
					send_interface_toast = {
						title = child_personality.hardened_tt
						left_icon = scope:child
						scope:child = {
							add_trait_force_tooltip = wrathful
						}
					}
				}
				else_if = {
					limit = {
						scope:child = {
							NOT = { 
								has_trait = wrathful
							}
						}
					}
					send_interface_toast = {
						title = child_personality.hardened_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = calm
						}
					}
				}
				else = {
					send_interface_toast = {
						title = child_personality.hardened_tt
						left_icon = scope:child
						scope:child = {
							add_prowess_skill = 1
							add_learning_skill = -1
						}
					}
				}
			}
		}
	}
}

#Responses to new cook
#0011

#Child has demonstrated trust
child_personality.1111 = {
	type = character_event
	title = child_personality.1111.t
	desc = {
		random_valid = {
			desc = child_personality.111.rumor_1
			desc = child_personality.111.rumor_2
			desc = child_personality.111.rumor_3
			desc = child_personality.111.rumor_4
		}
		desc = child_personality.111.trusting
	}
	theme = education
	left_portrait = {
		character = scope:child
		animation = personality_compassionate
	}

	option = {
		name = child_personality.111.confirm_trusting
		custom_tooltip = child_personality.stay_tt
		reverse_add_opinion = {
    		modifier = pleased_opinion
    		target = scope:child
    		opinion = 10
    	}
		stress_impact = {
			compassionate = medium_stress_loss
			trusting = medium_stress_loss
			paranoid = medium_stress_gain
			callous = minor_stress_gain
			arrogant = minor_stress_gain
			sadistic = medium_stress_gain
		}
		ai_chance = {
			base = 100
			ai_value_modifier = {
				ai_compassion = 0.5
				ai_sociability = 0.5
			}
			modifier = {
				factor = 3
				has_trait = trusting
			}
		}
	}
	
	option = {
		name = child_personality.111.limit
		stress_impact = {
			base = child_trait_change_stress_penalty
			compassionate = minor_stress_gain
			wrathful = minor_stress_gain
			trusting = minor_stress_gain
			paranoid = minor_stress_loss
			calm = medium_stress_loss
		}
		ai_chance = {
			base = 100
			ai_value_modifier = {
				ai_rationality = 0.7
				ai_sociability = -0.2
			}
			modifier = {
				factor = 3
				has_trait = calm
			}
		}
		
		random_list = {	
			50 = {
				desc = child_personality.stay_tt
				send_interface_toast = {
					title = child_personality.stay_tt
					left_icon = scope:child
				}
				reverse_add_opinion = {
					modifier = disappointed_opinion
					target = scope:child
					opinion = -10
				}
			}
			50 = { 
				desc = child_personality.neutral_tt
				modifier = {
					factor = 2
					OR = {
						root.diplomacy >= medium_skill_rating
						root.intrigue >= medium_skill_rating
					}
				}
				if = {
					limit = {
						scope:child = {
							has_trait = trusting
						}
					}
					send_interface_toast = {
						title = child_personality.neutral_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = trusting
						}
					}
				}
				else_if = {
					limit = {
						scope:child = {
							NOR = {
								has_trait = calm
								has_trait = wrathful
							}
						}
					}
					send_interface_toast = {
						title = child_personality.neutral_tt
						left_icon = scope:child
						scope:child = {
							add_trait = calm
						}
					}
				}
				else = {
					send_interface_toast = {
						title = child_personality.neutral_tt
						left_icon = scope:child
						scope:child = {
							add_diplomacy_skill = 1
							add_intrigue_skill = 1
						}
					}
				}	
			}
		}
	}
	
	option = {
		name = child_personality.111.high
		stress_impact = {
			base = child_trait_change_stress_penalty
			arrogant = medium_stress_loss
			compassionate = minor_stress_gain
			trusting = minor_stress_gain
			humble = minor_stress_gain
			callous = minor_stress_loss
		}

		random_list = {
			50 = {
				modifier = {
					factor = 0.4
					root.diplomacy >= medium_skill_rating
				}
				desc = child_personality.stay_tt
				send_interface_toast = {
					title = child_personality.stay_tt
					left_icon = scope:child
				}
			}
			100 = {
				desc = child_personality.under_tt
				modifier = {
					factor = 0.2
					scope:child = {
						OR = {
							has_trait = trusting
							has_trait = humble
						}
					}
				}
				scope:child = {
					remove_trait = trusting
				}

				if = {
					limit = {
						scope:child = {
							NOR = {
								has_trait = humble
								has_trait = arrogant
							}
						}
					}
					send_interface_toast = {
						title = child_personality.under_tt
						left_icon = scope:child
						scope:child = {
							add_trait_force_tooltip = arrogant
						}
					}
				}
				else_if = {
					limit = {
						scope:child = {
							has_trait = arrogant
						}
					}
					send_interface_toast = {
						title = child_personality.under_tt
						left_icon = scope:child
						scope:child = {
							add_diplomacy_skill = 1
						}
					}
				}
				else = {
					send_interface_toast = {
						title = child_personality.under_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = humble
							add_intrigue_skill = 1
						}
					}
				}
			}
			50 = {
				desc = child_personality.punder_tt
				send_interface_toast = {
					title = child_personality.punder_tt
					left_icon = scope:child
					scope:child = {
						add_stewardship_skill = 1
					}
				}
			}	
		}
			
		ai_chance = {
			base = 100
			ai_value_modifier = {
				ai_rationality = -0.3
				ai_greed = 0.3
				ai_honor = -0.2
			}
			modifier = {
				factor = 3
				has_trait = arrogant
			}
		}
	}
	
	option = {
		name = child_personality.111.crit
		ai_chance = {
			base = 100
			ai_value_modifier = {
				ai_compassion = -0.5
				ai_honor = -0.5
			}
			modifier = {
				factor = 3
				OR = {
					has_trait = sadistic
				}
			}
		}
		
		reverse_add_opinion = {
    		modifier = disappointed_opinion
    		target = scope:child
    		opinion = -25
    	}
		
		stress_impact = {
			base = child_trait_change_stress_penalty
			compassionate = medium_stress_gain
			trusting = minor_stress_gain
			sadistic = medium_stress_loss
			arrogant = minor_stress_loss
		}
		
		random_list = {	
			25 = {
				desc = child_personality.stay_tt
				send_interface_toast = {
					title = child_personality.stay_tt
					left_icon = scope:child
				}
			}
			50 = { 
				desc = child_personality.dte_tt
				modifier = {
					factor = 4
					scope:child = { has_trait = stubborn }
				}
				scope:child = {
					remove_trait = trusting
				}
				send_interface_toast = {
					title = child_personality.dte_tt
					left_icon = scope:child
					scope:child = {
						remove_trait = arrogant
						add_trait_force_tooltip = humble
					}
				}
			}
			50 = {
				desc = child_personality.disdain_tt
				scope:child = {
					remove_trait = trusting
				}
				if = {
					limit = {
						scope:child = {
							has_trait = arrogant
							OR = {
								has_trait = wrathful
								has_trait = calm
							}
						}
					}
					send_interface_toast = {
						title = child_personality.disdain_tt
						left_icon = scope:child
						scope:child = {
							add_diplomacy_skill = -1
						}
					}
				}
				else_if = {
					limit = {
						scope:child = {
							has_trait = arrogant
						}
					}
					send_interface_toast = {
						title = child_personality.disdain_tt
						left_icon = scope:child
						scope:child = {
							add_trait_force_tooltip = wrathful
						}
					}
				}
				else = {
					send_interface_toast = {
						title = child_personality.disdain_tt
						left_icon = scope:child
						scope:child = {
							add_diplomacy_skill = -2
							add_stewardship_skill = 1
						}
					}
				}
			}
		}
	}
	
	option = {
		name = child_personality.111.paran
		trigger = {
			has_trait = paranoid
		}
		stress_impact = {
			base = child_trait_change_stress_penalty
			calm = minor_stress_gain
		}
		custom_tooltip = child_personality.exchange_tt
	
		random_list = {
			30 = {
				modifier = {
					factor = 0.2
					OR = {
						root.diplomacy >= high_skill_rating
						root.intrigue >= high_skill_rating
					}
				}
				desc = child_personality.stay_tt
				send_interface_toast = {
					title = child_personality.stay_tt
					left_icon = scope:child
				}
				
			}
			40 = {
				modifier = {
					factor = 3
					AND = {
						root.diplomacy >= medium_skill_rating
						root.diplomacy < high_skill_rating
						root.intrigue >= medium_skill_rating
						root.intrigue < high_skill_rating
					}
				}
				send_interface_toast = {
					title = child_personality.loses_trusting_tt
					left_icon = scope:child
					scope:child = {
						remove_trait = trusting
						add_intrigue_skill = 1
					}
				}
			}
			30 = {
				scope:child = {
					remove_trait = trusting
				}
				send_interface_toast = {
					title = child_personality.gains_paranoid_tt
					left_icon = scope:child
					scope:child = {
						add_trait_force_tooltip = paranoid
					}
				}
				modifier = {
					factor = 6
					OR = {
						root.diplomacy >= high_skill_rating
						root.intrigue >= high_skill_rating
					}
				}
			}
		}
		ai_chance = {
			base = 400
		}
	}
}

#Child has demonstrated reason
child_personality.1112 = {
	type = character_event
	title = child_personality.1112.t
	desc = {
		random_valid = {
			desc = child_personality.111.rumor_1
			desc = child_personality.111.rumor_2
			desc = child_personality.111.rumor_3
			desc = child_personality.111.rumor_4
		}
		desc = child_personality.111.calm
	}
	theme = education
	left_portrait = {
		character = scope:child
		animation = personality_rational
	}

	option = {
		name = child_personality.111.confirm_calm
		custom_tooltip = child_personality.stay_tt
		reverse_add_opinion = {
    		modifier = pleased_opinion
    		target = scope:child
    		opinion = 10
    	}
		stress_impact = {
			compassionate = medium_stress_loss
			trusting = medium_stress_loss
			paranoid = medium_stress_gain
			callous = minor_stress_gain
			arrogant = minor_stress_gain
			sadistic = medium_stress_gain
		}
		ai_chance = {
			base = 100
			ai_value_modifier = {
				ai_rationality = 0.7
			}
			modifier = {
				factor = 3
				has_trait = calm
			}
		}
	}
	
	option = {
		name = child_personality.111.kind
		stress_impact = {
			base = child_trait_change_stress_penalty
			compassionate = medium_stress_loss
			trusting = medium_stress_loss
			paranoid = medium_stress_gain
			callous = minor_stress_gain
			arrogant = minor_stress_gain
			sadistic = medium_stress_gain
		}
		ai_chance = {
			base = 100
			ai_value_modifier = {
				ai_compassion = 0.5
				ai_sociability = 0.3
			}
			modifier = {
				factor = 3
				has_trait = compassionate
			}
		}
		random_list = {
			50 = {
				modifier = {
					factor = 0.4
					root.diplomacy >= medium_skill_rating
				}
				desc = child_personality.stay_tt
				send_interface_toast = {
					title = child_personality.stay_tt
					left_icon = scope:child
				}
			}
			100 = {
				desc = child_personality.under_tt
				modifier = {
					factor = 0.2
					scope:child = {
						OR = {
							has_trait = arrogant
							has_trait = callous
							has_trait = sadistic
						}
					}
				}
				
				if = {
					limit = {
						scope:child = {
							NOR = {
								has_trait = compassionate
								has_trait = callous
								has_trait = sadistic
							}
						}
					}
					send_interface_toast = {
						title = child_personality.under_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = calm
							add_trait_force_tooltip = compassionate
						}
					}
				}
				else_if = {
					limit = {
						scope:child = {
							has_trait = compassionate
						}
					}
					send_interface_toast = {
						title = child_personality.under_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = arrogant
							add_trait_force_tooltip = humble
						}
					}
				}
				else = {
					send_interface_toast = {
						title = child_personality.under_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = sadistic
							remove_trait = callous
							add_diplomacy_skill = 1
						}
					}
				}
			}
			50 = {
				desc = child_personality.punder_tt
				send_interface_toast = {
					title = child_personality.punder_tt
					left_icon = scope:child
					scope:child = {
						add_diplomacy_skill = 1
					}
				}
			}
		}
	}
	
	option = {
		name = child_personality.111.high_alt
		stress_impact = {
			base = child_trait_change_stress_penalty
			arrogant = medium_stress_loss
			compassionate = minor_stress_gain
			trusting = minor_stress_gain
			humble = minor_stress_gain
			callous = minor_stress_loss
		}

		random_list = {	
			50 = {
				desc = child_personality.stay_tt
				send_interface_toast = {
					title = child_personality.stay_tt
					left_icon = scope:child
				}
			}
			50 = { 
				desc = child_personality.neutral_tt
				modifier = {
					factor = 2
					OR = {
						root.diplomacy >= medium_skill_rating
						root.intrigue >= medium_skill_rating
					}
				}
				if = {
					limit = {
						scope:child = {
							NOR = {
								has_trait = compassionate
								has_trait = callous
								has_trait = sadistic
							}
						}
					}
					send_interface_toast = {
						title = child_personality.neutral_tt
						left_icon = scope:child
						scope:child = {
							add_trait = callous
						}
					}
				}
				else_if = {
					limit = {
						scope:child = {
							has_trait = compassionate
						}
					}
					send_interface_toast = {
						title = child_personality.neutral_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = compassionate
						}
					}
				}
				else_if = {
					limit = {
						scope:child = {
							has_trait = arrogant
						}
					}
					send_interface_toast = {
						title = child_personality.neutral_tt
						left_icon = scope:child
						scope:child = {
							add_stewardship_skill = 1
						}
					}
				}
				else = {
					send_interface_toast = {
						title = child_personality.neutral_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = humble
							add_trait_force_tooltip = arrogant
						}
					}
				}	
			}
		}
	}
	
	option = {
		name = child_personality.111.paran
		trigger = {
			has_trait = paranoid
		}
		stress_impact = {
			base = child_trait_change_stress_penalty
			calm = minor_stress_gain
		}
		custom_tooltip = child_personality.exchange_tt
		reverse_add_opinion = {
    		modifier = disappointed_opinion
    		target = scope:child
    		opinion = -10
    	}
		random_list = {
			30 = {
				modifier = {
					factor = 0.2
					OR = {
						root.diplomacy >= high_skill_rating
						root.intrigue >= high_skill_rating
					}
				}
				desc = child_personality.stay_tt
				send_interface_toast = {
					title = child_personality.stay_tt
					left_icon = scope:child
				}
				
			}
			40 = {
				modifier = {
					factor = 3
					AND = {
						root.diplomacy >= medium_skill_rating
						root.diplomacy < high_skill_rating
						root.intrigue >= medium_skill_rating
						root.intrigue < high_skill_rating
					}
				}
				send_interface_toast = {
					title = child_personality.loses_calm_tt
					left_icon = scope:child
					scope:child = {
						remove_trait = trusting
						remove_trait = calm
						add_intrigue_skill = 1
					}
				}
			}
			30 = {
				scope:child = {
					remove_trait = trusting
				}
				send_interface_toast = {
					title = child_personality.gains_paranoid_tt
					left_icon = scope:child
					scope:child = {
						remove_trait = calm
						add_trait_force_tooltip = paranoid
					}
				}
				modifier = {
					factor = 6
					OR = {
						root.diplomacy >= high_skill_rating
						root.intrigue >= high_skill_rating
					}
				}
			}
		}
		ai_chance = {
			base = 400
		}
	}
}

#Child has demonstrated wrathbitrariness
child_personality.1113 = {
	type = character_event
	title = child_personality.1113.t
	desc = {
		random_valid = {
			desc = child_personality.111.rumor_1
			desc = child_personality.111.rumor_2
			desc = child_personality.111.rumor_3
			desc = child_personality.111.rumor_4
		}
		desc = child_personality.111.wrathbitrary
	}
	theme = education
	left_portrait = {
		character = scope:child
		animation = anger
	}

	option = {
		name = child_personality.111.confirm_wrathbitrary
		custom_tooltip = child_personality.stay_tt
		reverse_add_opinion = {
    		modifier = pleased_opinion
    		target = scope:child
    		opinion = 15
    	}
		stress_impact = {
			compassionate = minor_stress_loss
			paranoid = minor_stress_loss
			callous = minor_stress_gain
			arrogant = minor_stress_loss
			sadistic = minor_stress_gain
			arbitrary = minor_stress_loss
			just = minor_stress_gain
		}
		
		add_tyranny = minor_tyranny_gain
		
		ai_chance = {
			base = 100
			ai_value_modifier = {
				ai_rationality = -0.5
				ai_honor = -0.5 
			}
			modifier = {
				factor = 3
				has_trait = arbitrary
			}
		}
	}
	
	option = {
		name = child_personality.111.confirm_wrathbitrary_alt
		custom_tooltip = child_personality.111.confirm_wrathbitrary_alt_tt
		
		stress_impact = {
			deceitful = minor_stress_loss
			honest = medium_stress_gain
			arbitrary = minor_stress_loss
			just = minor_stress_loss
		}
		
		duel = {
			skills = { stewardship intrigue }
			value = average_skill_rating
			8 = {
				custom_tooltip = child_personality.111.success
				compare_modifier = {
					value = scope:duel_value
					multiplier = 0.5
				}
				send_interface_toast = {
					left_icon = scope:child
					title = child_personality.111.success
					reverse_add_opinion = {
						modifier = pleased_opinion
						target = scope:child
						opinion = 15
					}
				}
			}
			12 = {
				custom_tooltip = child_personality.111.fail
				compare_modifier = {
					value = scope:duel_value
					multiplier = -0.5
					min = -11
				}
				send_interface_toast = {
					left_icon = scope:child
					title = child_personality.111.fail
					scope:child = {
						remove_trait = trusting
						add_trait_force_tooltip = paranoid
					}
					reverse_add_opinion = {
						modifier = disappointed_opinion
						target = scope:child
						opinion = -25
					}
				}
			}
		}
		
		ai_chance = {
			base = 100
			ai_value_modifier = {
				ai_rationality = 0.5
				ai_compassion = 0.2
				ai_honor = -0.5
			}
			modifier = {
				factor = 3
				has_trait = deceitful
			}
		}
	}
	
	option = {
		name = child_personality.111.kind
		stress_impact = {
			base = child_trait_change_stress_penalty
			compassionate = medium_stress_loss
			trusting = medium_stress_loss
			paranoid = medium_stress_gain
			callous = minor_stress_gain
			arrogant = minor_stress_gain
			sadistic = medium_stress_gain
		}
		ai_chance = {
			base = 100
			ai_value_modifier = {
				ai_compassion = 0.5
				ai_sociability = 0.3
			}
			modifier = {
				factor = 3
				has_trait = compassionate
			}
		}
		random_list = {
			50 = {
				modifier = {
					factor = 0.4
					root.diplomacy >= medium_skill_rating
				}
				desc = child_personality.stay_tt
				send_interface_toast = {
					title = child_personality.stay_tt
					left_icon = scope:child
				}
			}
			100 = {
				desc = child_personality.under_tt
				modifier = {
					factor = 0.2
					scope:child = {
						OR = {
							has_trait = arbitrary
							has_trait = arrogant
							has_trait = callous
							has_trait = sadistic
						}
					}
				}
				
				if = {
					limit = {
						scope:child = {
							NOR = {
								has_trait = compassionate
								has_trait = callous
								has_trait = sadistic
							}
						}
					}
					send_interface_toast = {
						title = child_personality.under_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = wrathful
							add_trait_force_tooltip = compassionate
						}
					}
				}
				else_if = {
					limit = {
						scope:child = {
							has_trait = compassionate
						}
					}
					send_interface_toast = {
						title = child_personality.under_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = arbitrary
							remove_trait = wrathful
							add_trait_force_tooltip = calm
						}
					}
				}
				else = {
					send_interface_toast = {
						title = child_personality.under_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = sadistic
							remove_trait = callous
							add_diplomacy_skill = 1
						}
					}
				}
			}
			50 = {
				desc = child_personality.punder_tt
				send_interface_toast = {
					title = child_personality.punder_tt
					left_icon = scope:child
					scope:child = {
						remove_trait = wrathful
						add_diplomacy_skill = 1
					}
				}
			}
		}
	}
	
	option = {
		name = child_personality.111.high_alt
		stress_impact = {
			base = child_trait_change_stress_penalty
			arrogant = medium_stress_loss
			compassionate = minor_stress_gain
			trusting = minor_stress_gain
			humble = minor_stress_gain
			callous = minor_stress_loss
		}

		random_list = {	
			50 = {
				desc = child_personality.stay_tt
				send_interface_toast = {
					title = child_personality.stay_tt
					left_icon = scope:child
				}
			}
			50 = { 
				desc = child_personality.neutral_tt
				modifier = {
					factor = 2
					OR = {
						root.diplomacy >= medium_skill_rating
						root.intrigue >= medium_skill_rating
					}
				}
				if = {
					limit = {
						scope:child = {
							NOR = {
								has_trait = compassionate
								has_trait = callous
								has_trait = sadistic
							}
						}
					}
					send_interface_toast = {
						title = child_personality.neutral_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = wrathful
							add_trait = callous
						}
					}
				}
				else_if = {
					limit = {
						scope:child = {
							has_trait = compassionate
						}
					}
					send_interface_toast = {
						title = child_personality.neutral_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = compassionate
						}
					}
				}
				else_if = {
					limit = {
						scope:child = {
							has_trait = arrogant
						}
					}
					send_interface_toast = {
						title = child_personality.neutral_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = wrathful
							add_stewardship_skill = 1
						}
					}
				}
				else = {
					send_interface_toast = {
						title = child_personality.neutral_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = humble
							add_trait_force_tooltip = arrogant
						}
					}
				}	
			}
		}
	}
	
	option = {
		name = child_personality.111.crit_alt
		ai_chance = {
			base = 100
			ai_value_modifier = {
				ai_compassion = -0.5
				ai_honor = -0.5
			}
			modifier = {
				factor = 3
				OR = {
					has_trait = sadistic
					has_trait = wrathful
				}
			}
		}
		
		reverse_add_opinion = {
    		modifier = disappointed_opinion
    		target = scope:child
    		opinion = -20
    	}
		
		stress_impact = {
			base = child_trait_change_stress_penalty
			compassionate = medium_stress_gain
			sadistic = medium_stress_loss
			arrogant = minor_stress_loss
			wrathful = medium_stress_loss
		}
		
		random_list = {	
			40 = {
				desc = child_personality.stay_tt
				send_interface_toast = {
					title = child_personality.stay_tt
					left_icon = scope:child
				}
			}
			60 = { 
				desc = child_personality.err_tt
				if = {
					limit = {
						scope:child = {
							NOT = { has_trait = arbitrary }
						}
					}
					send_interface_toast = {
						title = child_personality.err_tt
						left_icon = scope:child
						scope:child = {
							add_trait = arbitrary
						}
					}
				}
				else_if = {
					limit = {
						scope:child = {
							NOR = { 
								has_trait = stubborn
								has_trait = fickle
							}
						}
					}
					send_interface_toast = {
						title = child_personality.err_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = wrathful
							add_trait = stubborn
						}
					}
				}
				else = {
					send_interface_toast = {
						title = child_personality.err_tt
						left_icon = scope:child
						scope:child = {
							add_stewardship_skill = -1
						}
					}
				}
			}
		}
	}
}

#Child has demonstrated paranoia
child_personality.1114 = {
	type = character_event
	title = child_personality.1114.t
	desc = {
		random_valid = {
			desc = child_personality.111.rumor_1
			desc = child_personality.111.rumor_2
			desc = child_personality.111.rumor_3
			desc = child_personality.111.rumor_4
		}
		desc = child_personality.111.paranoid
	}
	theme = education
	left_portrait = {
		character = scope:child
		animation = worry
	}

	option = {
		name = child_personality.111.confirm_paranoid
		custom_tooltip = child_personality.stay_tt
		reverse_add_opinion = {
    		modifier = pleased_opinion
    		target = scope:child
    		opinion = 15
    	}
		stress_impact = {
			compassionate = minor_stress_loss
			paranoid = minor_stress_loss
			callous = minor_stress_gain
			sadistic = minor_stress_gain
			arbitrary = minor_stress_loss
			just = minor_stress_gain
		}
		
		add_tyranny = minor_tyranny_gain
		
		ai_chance = {
			base = 100
			ai_value_modifier = {
				ai_rationality = -0.5
				ai_honor = -0.5 
			}
			modifier = {
				factor = 3
				has_trait = paranoid
			}
		}
	}
	
	option = {
		name = child_personality.111.kind_alt
		stress_impact = {
			base = child_trait_change_stress_penalty
			compassionate = medium_stress_loss
			trusting = medium_stress_loss
			paranoid = medium_stress_gain
			callous = minor_stress_gain
			arrogant = minor_stress_gain
			sadistic = medium_stress_gain
		}
		ai_chance = {
			base = 100
			ai_value_modifier = {
				ai_compassion = 0.5
				ai_sociability = 0.3
			}
			modifier = {
				factor = 3
				has_trait = compassionate
			}
		}
		random_list = {
			50 = {
				modifier = {
					factor = 0.4
					root.diplomacy >= medium_skill_rating
				}
				desc = child_personality.stay_tt
				send_interface_toast = {
					title = child_personality.stay_tt
					left_icon = scope:child
				}
			}
			100 = {
				desc = child_personality.under_tt
				modifier = {
					factor = 0.2
					scope:child = {
						OR = {
							has_trait = paranoid
							has_trait = sadistic
						}
					}
				}
				
				if = {
					limit = {
						scope:child = {
							NOR = {
								has_trait = compassionate
								has_trait = callous
								has_trait = sadistic
							}
						}
					}
					send_interface_toast = {
						title = child_personality.under_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = paranoid
							add_trait_force_tooltip = compassionate
						}
					}
				}
				else_if = {
					limit = {
						scope:child = {
							has_trait = compassionate
						}
					}
					send_interface_toast = {
						title = child_personality.under_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = paranoid
							add_trait_force_tooltip = trusting
						}
					}
				}
				else = {
					send_interface_toast = {
						title = child_personality.under_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = paranoid
							add_diplomacy_skill = 1
						}
					}
				}
			}
			50 = {
				desc = child_personality.punder_tt
				send_interface_toast = {
					title = child_personality.punder_tt
					left_icon = scope:child
					scope:child = {
						add_diplomacy_skill = 1
					}
				}
			}
		}
	}
	
	option = {
		name = child_personality.111.limit_alt
		stress_impact = {
			base = child_trait_change_stress_penalty
			calm = minor_stress_loss
			patient = minor_stress_loss
			callous = minor_stress_loss
			paranoid = medium_stress_gain
		}

		random_list = {	
			50 = {
				desc = child_personality.stay_tt
				send_interface_toast = {
					title = child_personality.stay_tt
					left_icon = scope:child
				}
			}
			50 = { 
				desc = child_personality.neutral_tt
				modifier = {
					factor = 2
					OR = {
						root.diplomacy >= medium_skill_rating
						root.intrigue >= medium_skill_rating
					}
				}
				if = {
					limit = {
						scope:child = {
							has_trait = paranoid
						}
					}
					send_interface_toast = {
						title = child_personality.neutral_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = paranoid
						}
					}
				}
				else = {
					send_interface_toast = {
						title = child_personality.neutral_tt
						left_icon = scope:child
						scope:child = {
							add_learning_skill = 1
						}
					}
				}	
			}
		}
	}
	
	option = {
		name = child_personality.111.crit_alt_alt
		ai_chance = {
			base = 100
			ai_value_modifier = {
				ai_compassion = -0.5
				ai_honor = -0.5
			}
			modifier = {
				factor = 3
				OR = {
					has_trait = sadistic
					has_trait = wrathful
				}
			}
		}
		
		reverse_add_opinion = {
    		modifier = disappointed_opinion
    		target = scope:child
    		opinion = -30
    	}
		
		stress_impact = {
			base = child_trait_change_stress_penalty
			compassionate = medium_stress_gain
			sadistic = medium_stress_loss
			arrogant = minor_stress_loss
			wrathful = medium_stress_loss
		}
		
		random_list = {	
			50 = {
				desc = child_personality.stay_tt
				send_interface_toast = {
					title = child_personality.stay_tt
					left_icon = scope:child
				}
			}
			100 = { 
				desc = child_personality.close_tt
				send_interface_toast = {
					title = child_personality.close_tt
					left_icon = scope:child
					scope:child = {
						remove_trait = gregarious
						add_trait_force_tooltip = shy
					}
				}
			}
			50 = { 
				desc = child_personality.hardened_tt
				scope:child = {
					remove_trait = paranoid
				}
				modifier = {
					factor = 3
					scope:child = {
						OR = {
							has_trait = wrathful
							has_trait = vengeful
						}
					}
				}
				if = {
					limit = {
						scope:child = {
							NOR = { 
								has_trait = calm
								has_trait = wrathful
							}
						}
					}
					send_interface_toast = {
						title = child_personality.hardened_tt
						left_icon = scope:child
						scope:child = {
							add_trait_force_tooltip = wrathful
						}
					}
				}
				else_if = {
					limit = {
						scope:child = {
							NOT = { 
								has_trait = vengeful
							}
						}
					}
					scope:child = {
						remove_trait = forgiving
					}
					send_interface_toast = {
						title = child_personality.hardened_tt
						left_icon = scope:child
						scope:child = {
							add_trait_force_tooltip = vengeful
						}
					}
				}
				else = {
					send_interface_toast = {
						title = child_personality.hardened_tt
						left_icon = scope:child
						scope:child = {
							add_intrigue_skill = 1
							add_diplomacy_skill = -2
						}
					}
				}
			}
		}
	}
}

#Responses to Worldview Events
#0012

#Child has demonstrated humility
child_personality.1121 = {
	type = character_event
	title = child_personality.1121.t
	desc = {
		desc = child_personality.112.desc
		desc = child_personality.1121.desc
	}
	theme = education
	left_portrait = {
		character = scope:child
		animation = personality_compassionate
	}
	
	option = {
		name = child_personality.112.confirm_humble
		custom_tooltip = child_personality.keeps_humble_tt
		reverse_add_opinion = {
    		modifier = pleased_opinion
    		target = scope:child
    		opinion = 10
    	}
		stress_impact = {
			base = minor_stress_loss
		}
		ai_chance = {
			base = 100
			ai_value_modifier = {
				ai_rationality = 1
			}
			modifier = {
				factor = 3
				has_trait = arrogant
			}
		}
	}
	
	option = {
		name = child_personality.112.religion
		trigger = { 
			scope:child = {
				NOT = { has_faith = root.faith }
			}
			is_ai = no
		}
		
		stress_impact = {
			base = child_trait_change_stress_penalty
			zealous = medium_stress_loss
			cynical = medium_stress_gain
		}
		
		random_list = {
			50 = {
				desc = child_personality.stay_tt
				send_interface_toast = {
					title = child_personality.stay_tt
					left_icon = scope:child
				}
			}
			50 = { 
				desc = child_personality.neutral_tt
				
				modifier = {
					factor = 0.1
					scope:child = {
						has_trait = zealous
					}
				}
				modifier = {
					factor = 3
					OR = {
						root.diplomacy >= medium_skill_rating
						root.learning >= medium_skill_rating
					}
				}
				if = {
					limit = {
						scope:child = {
							has_trait = zealous
						}
					}
					scope:child = {
						remove_trait = zealous
					}
				}
				scope:child = { save_scope_as = recipient }
				custom_tooltip = demand_conversion_tt
				hidden_effect = { demand_conversion_interaction_effect = yes }
				send_interface_toast = {
					title = child_personality.neutral_tt
					left_icon = scope:child
				}
			}
		}
	}
	
	option = {
		name = child_personality.112.religion
		trigger = { 
			scope:child = {
				has_faith = root.faith
			}
		}
		ai_chance = {
			base = 100
			ai_value_modifier = {
				ai_zeal = 1
			}
			modifier = {
				factor = 3
				has_trait = zealous
			}
		}
		
		stress_impact = {
			base = child_trait_change_stress_penalty
			zealous = medium_stress_loss
			cynical = medium_stress_gain
		}

		
		random_list = {
			50 = {
				desc = child_personality.stay_tt
				send_interface_toast = {
					title = child_personality.stay_tt
					left_icon = scope:child
				}
			}
			50 = { 
				desc = child_personality.neutral_tt
				modifier = {
					factor = 0.1
					scope:child = {
						has_trait = cynical
					}
				}
				modifier = {
					factor = 3
					OR = {
						root.diplomacy >= medium_skill_rating
						root.learning >= medium_skill_rating
					}
				}
				if = {
					limit = {
						scope:child = {
							has_trait = zealous
						}
					}
					send_interface_toast = {
						title = child_personality.neutral_tt
						left_icon = scope:child
						scope:child = {
							add_learning_skill = 2
						}
					}
				}
				else_if = {
					limit = {
						scope:child = {
							has_trait = cynical
						}
					}
					send_interface_toast = {
						title = child_personality.neutral_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = cynical
							add_learning_skill = 2
							add_diplomacy_skill = 1
						}
					}
				}
				else = {
					send_interface_toast = {
						title = child_personality.neutral_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = humble
							add_trait_force_tooltip = zealous
						}
					}
				}
			}
		}
	}
	
	option = {
		name = child_personality.112.selfworth
		
		ai_chance = {
			base = 100
			ai_value_modifier = {
				ai_sociability = 0.5
				ai_energy = 0.5
				ai_zeal = -0.5
			}
			modifier = {
				factor = 3
				has_trait = diligent
			}
		}
		
		stress_impact = {
			base = child_trait_change_stress_penalty
			diligent = medium_stress_loss
			shy = minor_stress_gain
			gregarious = minor_stress_loss
			compassionate = minor_stress_loss
			sadistic = medium_stress_gain
			callous = minor_stress_gain
		}
		
		reverse_add_opinion = {
			modifier = pleased_opinion
			target = scope:child
			opinion = 10
		}
		
		random_list = {
			50 = {
				desc = child_personality.stay_tt
				send_interface_toast = {
					title = child_personality.stay_tt
					left_icon = scope:child
				}
			}
			50 = { 
				desc = child_personality.under_tt
				modifier = {
					factor = 0.1
					scope:child = {
						OR = {
							has_trait = shy
						}
					}
				}
				modifier = {
					factor = 4
					root.diplomacy >= medium_skill_rating
				}
				if = {
					limit = {
						scope:child = {
							has_trait = shy
						}
					}
					send_interface_toast = {
						title = child_personality.under_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = shy
							add_diplomacy_skill = 2
						}
					}
				}
				else = {
					send_interface_toast = {
						title = child_personality.under_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = humble
							add_diplomacy_skill = 2
							add_learning_skill = 2
						}
					}
				}
			}
			50 = {
				desc = child_personality.punder_tt
				send_interface_toast = {
					title = child_personality.punder_tt
					left_icon = scope:child
					scope:child = {
						add_diplomacy_skill = 1
						add_learning_skill = 1
					}
				}
			}
		}
	}
	
	option = {
		name = child_personality.112.no
		custom_tooltip = child_personality.112.no_tt
		ai_chance = {
			base = 100
			ai_value_modifier = {
				ai_honor = -1
				ai_compassion = -1
			}
			modifier = {
				factor = 3
				OR = {
					has_trait = callous
					has_trait = sadistic
					has_trait = arrogant
				}
			}
			modifier = {
				factor = 0
				OR = {
					has_trait = compassionate
				}
			}
		}
		
		stress_impact = {
			base = child_trait_change_stress_penalty
			wrathful = minor_stress_loss
			arrogant = major_stress_loss
			sadistic = medium_stress_loss
		}
		
		random_list = {
			50 = { 
				desc = child_personality.stay_tt
				reverse_add_opinion = {
					modifier = disappointed_opinion
					target = scope:child
					opinion = -10
				}
				send_interface_toast = {
					title = child_personality.stay_tt
					left_icon = scope:child
				}
			}
			100 = {
				desc = child_personality.fearful_tt
				modifier = {
					factor = 0.1
					scope:child = {
						OR = {
							has_trait = brave
						}
					}
				}
				
				reverse_add_opinion = {
					modifier = scared_opinion
					target = scope:child
					opinion = -30
				}
				
				scope:child = {
					remove_trait = humble
				}
				
				if = {
					limit = {
						scope:child = {
							has_trait = brave
						}
					}
					send_interface_toast = {
						title = child_personality.fearful_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = brave
						}
					}
				}
				else_if = {
					limit = {
						scope:child = {
							has_trait = craven
						}
					}
					send_interface_toast = {
						title = child_personality.fearful_tt
						left_icon = scope:child
						scope:child = {
							add_diplomacy_skill = -1
							add_learning_skill = -2
						}
					}
				}
				else = {
					send_interface_toast = {
						title = child_personality.fearful_tt
						left_icon = scope:child
						scope:child = {
							add_trait = craven
						}
					}
				}
			}
			50 = { 
				desc = child_personality.respect_tt
				scope:child = {
					remove_trait = humble
				}
				reverse_add_opinion = {
					modifier = respect_opinion
					target = scope:child
					opinion = 20
				}
				send_interface_toast = {
					title = child_personality.respect_tt
					left_icon = scope:child
					scope:child = {
						add_learning_skill = -1
					}
				}
			}
		}
	}
}

#Child has demonstrated praying
child_personality.1122 = {
	type = character_event
	title = child_personality.1122.t
	desc = {
		desc = child_personality.112.desc
		desc = child_personality.1122.desc
	}
	theme = education
	left_portrait = {
		character = scope:child
		animation = personality_zealous
	}
	
	option = {
		trigger = { 
			scope:child = {
				has_faith = root.faith
			}
		}
		name = child_personality.112.confirm_zealous
		custom_tooltip = child_personality.keeps_zealous_tt
		reverse_add_opinion = {
    		modifier = pleased_opinion
    		target = scope:child
    		opinion = 10
    	}
		stress_impact = {
			zealous = medium_stress_loss
			cynical = medium_stress_gain
		}
		ai_chance = {
			base = 100
			ai_value_modifier = {
				ai_zeal = 1
			}
			modifier = {
				factor = 3
				has_trait = zealous
			}
		}
	}
	
	option = {
		name = child_personality.112.badreligion
		trigger = { 
			scope:child = {
				NOT = { has_faith = root.faith }
			}
			is_ai = no
		}
		
		stress_impact = {
			base = child_trait_change_stress_penalty
			zealous = medium_stress_loss
			cynical = medium_stress_gain
		}
		
		random_list = {
			150 = {
				desc = child_personality.stay_tt
				send_interface_toast = {
					title = child_personality.stay_tt
					left_icon = scope:child
				}
			}
			30 = { 
				desc = child_personality.neutral_tt
				
				modifier = {
					factor = 3
					OR = {
						root.diplomacy >= medium_skill_rating
						root.learning >= medium_skill_rating
					}
				}
				if = {
					limit = {
						scope:child = {
							has_trait = zealous
						}
					}
					scope:child = {
						remove_trait = zealous
					}
				}
				scope:child = { save_scope_as = recipient }
				custom_tooltip = demand_conversion_tt
				hidden_effect = { demand_conversion_interaction_effect = yes }
				send_interface_toast = {
					title = child_personality.neutral_tt
					left_icon = scope:child
				}
			}
		}
	}
	
	option = {
		name = child_personality.112.authority

		ai_chance = {
			base = 100
			ai_value_modifier = {
				ai_zeal = -0.5
				ai_rationality = 0.5
			}
			modifier = {
				factor = 3
				has_trait = just
			}
		}
		
		stress_impact = {
			base = child_trait_change_stress_penalty
			zealous = medium_stress_gain
			cynical = minor_stress_loss
			just = minor_stress_gain
			arrogant = minor_stress_loss
		}

		
		random_list = {
			50 = {
				desc = child_personality.stay_tt
				send_interface_toast = {
					title = child_personality.stay_tt
					left_icon = scope:child
				}
			}
			50 = { 
				desc = child_personality.under_tt
				scope:child = {
					remove_trait = zealous
				}
				modifier = {
					factor = 3
					OR = {
						root.diplomacy >= medium_skill_rating
						root.learning >= medium_skill_rating
					}
				}
				if = {
					limit = {
						scope:child = {
							has_trait = just
						}
					}
					send_interface_toast = {
						title = child_personality.under_tt
						left_icon = scope:child
						scope:child = {
							add_stewardship_skill = 1
							add_diplomacy_skill = 1
						}
					}
				}
				else_if = {
					limit = {
						scope:child = {
							has_trait = arbitrary
						}
					}
					send_interface_toast = {
						title = child_personality.under_tt
						left_icon = scope:child
						scope:child = {
							add_stewardship_skill = 2
							add_diplomacy_skill = 1
						}
					}
				}
				else = {
					send_interface_toast = {
						title = child_personality.under_tt
						left_icon = scope:child
						scope:child = {
							add_trait_force_tooltip = just
						}
					}
				}
			}
			50 = {
				desc = child_personality.punder_tt
				send_interface_toast = {
					title = child_personality.punder_tt
					left_icon = scope:child
					scope:child = {
						add_stewardship_skill = 2
						add_learning_skill = -1
					}
				}
			}
		}
	}
	
	option = {
		name = child_personality.112.selfworth_alt
		
		ai_chance = {
			base = 100
			ai_value_modifier = {
				ai_sociability = 0.5
				ai_energy = 0.5
				ai_zeal = -0.5
			}
			modifier = {
				factor = 3
				has_trait = diligent
			}
		}
		
		stress_impact = {
			base = child_trait_change_stress_penalty
			diligent = medium_stress_loss
			shy = minor_stress_gain
			gregarious = minor_stress_loss
			calm = medium_stress_loss
			compassionate = minor_stress_loss
			sadistic = medium_stress_gain
			callous = minor_stress_gain
			cynical = minor_stress_loss
		}
		
		random_list = {
			50 = {
				desc = child_personality.stay_tt
				send_interface_toast = {
					title = child_personality.stay_tt
					left_icon = scope:child
				}
			}
			50 = { 
				desc = child_personality.under_tt
				modifier = {
					factor = 0.1
					scope:child = {
						OR = {
							has_trait = shy
						}
					}
				}
				modifier = {
					factor = 4
					root.diplomacy >= medium_skill_rating
				}
				if = {
					limit = {
						scope:child = {
							has_trait = shy
						}
					}
					send_interface_toast = {
						title = child_personality.under_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = shy
							add_learning_skill = 2
						}
					}
				}
				else = {
					send_interface_toast = {
						title = child_personality.under_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = zealous
							add_diplomacy_skill = 2
							add_learning_skill = 2
						}
					}
				}
			}
			50 = {
				desc = child_personality.punder_tt
				send_interface_toast = {
					title = child_personality.punder_tt
					left_icon = scope:child
					scope:child = {
						add_diplomacy_skill = 1
						add_learning_skill = 1
					}
				}
			}
		}
	}
	
	option = {
		name = child_personality.112.curb
		
		ai_chance = {
			base = 100
			ai_value_modifier = {
				ai_honor = -0.5
				ai_compassion = -0.5
				ai_zeal = -1
			}
			modifier = {
				factor = 3
				OR = {
					has_trait = callous
					has_trait = cynical
				}
			}
			modifier = {
				factor = 0
				OR = {
					has_trait = compassionate
				}
			}
		}
		
		stress_impact = {
			base = child_trait_change_stress_penalty
			zealous = minor_stress_gain
			callous = medium_stress_loss
			cynical = medium_stress_loss
		}
		
		random_list = {
			50 = { 
				desc = child_personality.stay_tt
				reverse_add_opinion = {
					modifier = disappointed_opinion
					target = scope:child
					opinion = -20
				}
				send_interface_toast = {
					title = child_personality.stay_tt
					left_icon = scope:child
				}
			}
			
			50 = {
				desc = child_personality.disil_tt
				
				modifier = {
					factor = 0.1
					scope:child = {
						OR = {
							has_trait = stubborn
						}
					}
				}
				
				reverse_add_opinion = {
					modifier = disappointed_opinion
					target = scope:child
					opinion = -10
				}
				
				send_interface_toast = {
					title = child_personality.disil_tt
					left_icon = scope:child
					scope:child = {
						remove_trait = zealous
						add_trait_force_tooltip = cynical
					}
				}

			}
			50 = { 
				desc = child_personality.close_tt
				reverse_add_opinion = {
					modifier = scared_opinion
					target = scope:child
					opinion = -30
				}
				if = {
					limit = {
						scope:child = {
							NOR = {
								has_trait = shy
								has_trait = gregarious
							}
						}
					}
					send_interface_toast = {
						title = child_personality.close_tt
						left_icon = scope:child
						scope:child = {
							add_trait_force_tooltip = shy
						}
					}
				}
				else_if = {
					limit = {
						scope:child = {
							NOT = {
								has_trait = shy
							}
						}
					}
					send_interface_toast = {
						title = child_personality.close_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = gregarious
						}
					}
				}
				else = {
					send_interface_toast = {
						title = child_personality.close_tt
						left_icon = scope:child
						scope:child = {
							add_diplomacy_skill = -2
						}
					}
				}
			}
		}
	}
}

#Child has demonstrated pessimism
child_personality.1123 = {
	type = character_event
	title = child_personality.1123.t
	desc = {
		desc = child_personality.112.desc
		desc = child_personality.1123.desc
	}
	theme = education
	left_portrait = {
		character = scope:child
		animation = personality_cynical
	}
	
	option = {
		name = child_personality.112.confirm_cynical
		
		reverse_add_opinion = {
    		modifier = pleased_opinion
    		target = scope:child
    		opinion = 10
    	}
		if = {
			limit = {
				scope:child = { has_trait = cynical }
			}
			custom_tooltip = child_personality.keeps_cynical_tt
		}
		else = {
			scope:child = { add_trait = cynical }
		}
		stress_impact = {
			zealous = medium_stress_gain
			cynical = medium_stress_loss
			callous = minor_stress_loss
		}
		ai_chance = {
			base = 100
			ai_value_modifier = {
				ai_zeal = -1
			}
			modifier = {
				factor = 3
				has_trait = cynical
			}
		}
	}
	
		
	option = {
		name = child_personality.112.challenge
		
		ai_chance = {
			base = 100
			ai_value_modifier = {
				ai_sociability = 0.5
				ai_energy = 0.5
			}
			modifier = {
				factor = 3
				has_trait = compassionate
			}
		}
		
		stress_impact = {
			base = child_trait_change_stress_penalty
			compassionate = medium_stress_loss
			gregarious = minor_stress_loss
			sadistic = medium_stress_gain
			callous = minor_stress_gain
			cynical = minor_stress_gain
		}
		
		random_list = {
			50 = {
				desc = child_personality.stay_tt
				send_interface_toast = {
					title = child_personality.stay_tt
					left_icon = scope:child
				}
			}
			50 = { 
				desc = child_personality.under_tt
				modifier = {
					factor = 0.4
					scope:child = {
						OR = {
							has_trait = cynical
						}
					}
				}
				modifier = {
					factor = 3
					OR = {	
						root.diplomacy >= medium_skill_rating
						root.intrigue >= medium_skill_rating
					}
				}
				if = {
					limit = {
						scope:child = {
							has_trait = cynical
						}
					}
					send_interface_toast = {
						title = child_personality.under_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = cynical
							add_learning_skill = 2
						}
					}
				}
				else = {
					send_interface_toast = {
						title = child_personality.under_tt
						left_icon = scope:child
						scope:child = {
							add_diplomacy_skill = 1
							add_stewardship_skill = 1
							add_learning_skill = 2
						}
					}
				}
			}
			50 = {
				desc = child_personality.punder_tt
				send_interface_toast = {
					title = child_personality.punder_tt
					left_icon = scope:child
					scope:child = {
						add_diplomacy_skill = 1
						add_learning_skill = -1
					}
				}
			}
		}
	}
	
	option = {
		name = child_personality.112.religion_alt
		trigger = { 
			scope:child = {
				NOT = { has_faith = root.faith }
			}
			is_ai = no
		}
		custom_tooltip = child_personality.112.religion_alt_tt
		
		stress_impact = {
			base = child_trait_change_stress_penalty
			zealous = medium_stress_loss
			cynical = medium_stress_gain
		}
		
		random_list = {
			50 = {
				desc = child_personality.stay_tt
				send_interface_toast = {
					title = child_personality.stay_tt
					left_icon = scope:child
				}
			}
			50 = { 
				desc = child_personality.neutral_tt
				modifier = {
					factor = 0.2
					scope:child = { has_trait = cynical }
				}
				if = {
					limit = {
						scope:child = { has_trait = cynical }
					}
					scope:child = { remove_trait = cynical }
				}
				modifier = {
					factor = 3
					OR = {
						root.diplomacy >= medium_skill_rating
						root.learning >= medium_skill_rating
					}
				}
				scope:child = { save_scope_as = recipient }
				custom_tooltip = demand_conversion_tt
				hidden_effect = { demand_conversion_interaction_effect = yes }
				send_interface_toast = {
					title = child_personality.neutral_tt
					left_icon = scope:child
				}
			}
		}
	}
	
	option = {
		name = child_personality.112.religion_alt
		custom_tooltip = child_personality.112.religion_alt_tt
		trigger = { 
			scope:child = {
				has_faith = root.faith
			}
		}
		ai_chance = {
			base = 100
			ai_value_modifier = {
				ai_zeal = 1
			}
			modifier = {
				factor = 3
				has_trait = zealous
			}
		}
		
		stress_impact = {
			base = child_trait_change_stress_penalty
			zealous = medium_stress_loss
			cynical = medium_stress_gain
		}

		
		random_list = {
			50 = {
				desc = child_personality.stay_tt
				send_interface_toast = {
					title = child_personality.stay_tt
					left_icon = scope:child
				}
			}
			50 = { 
				desc = child_personality.neutral_tt
				modifier = {
					factor = 0.2
					scope:child = { has_trait = cynical }
				}
				modifier = {
					factor = 3
					OR = {
						root.diplomacy >= medium_skill_rating
						root.learning >= medium_skill_rating
					}
				}
				if = {
					limit = {
						scope:child = {
							has_trait = cynical
						}
					}
					send_interface_toast = {
						title = child_personality.neutral_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = cynical
							add_learning_skill = 1
							add_diplomacy_skill = 1
						}
					}
				}
				else = {
					send_interface_toast = {
						title = child_personality.neutral_tt
						left_icon = scope:child
						scope:child = {
							add_trait_force_tooltip = zealous
						}
					}
				}
			}
		}
	}


	
	option = {
		name = child_personality.112.curb_alt
		custom_tooltip = child_personality.112.curb_alt_tt
		ai_chance = {
			base = 100
			ai_value_modifier = {
				ai_honor = -0.5
				ai_compassion = -0.5
				ai_zeal = 0.2
			}
			modifier = {
				factor = 3
				OR = {
					has_trait = wrathful
					has_trait = sadistic
				}
			}
			modifier = {
				factor = 0
				OR = {
					has_trait = compassionate
				}
			}
		}
		
		stress_impact = {
			base = child_trait_change_stress_penalty
			wrathful = minor_stress_loss
			arrogant = minor_stress_loss
			sadistic = medium_stress_loss
		}
		
		random_list = {
			50 = { 
				desc = child_personality.mask_tt
				modifier = {
					factor = 0.5
					scope:child = {
						has_trait = honest
					}
				}
				if = {
					limit = {
						scope:child = {
							NOT = { 
								has_trait = deceitful
							}
						}
					}
					send_interface_toast = {
						title = child_personality.mask_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = honest
							add_trait_force_tooltip = deceitful
						}
					}
				}
				else = {
					send_interface_toast = {
						title = child_personality.mask_tt
						left_icon = scope:child
						scope:child = {
							add_intrigue_skill = 1
							add_diplomacy_skill = -2
						}
					}
				}
			}
			50 = { 
				desc = child_personality.hardened_tt
				reverse_add_opinion = {
					modifier = disappointed_opinion
					target = scope:child
					opinion = -10
				}
				if = {
					limit = {
						scope:child = {
							NOR = {
								has_trait = wrathful
								has_trait = calm
							}
						}
					}
					send_interface_toast = {
						title = child_personality.hardened_tt
						left_icon = scope:child
						scope:child = {
							add_trait_force_tooltip = wrathful
						}
					}
				}
				else_if = {
					limit = {
						scope:child = {
							NOT = { 
								has_trait = wrathful
							}
						}
					}
					send_interface_toast = {
						title = child_personality.hardened_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = calm
						}
					}
				}
				else = {
					send_interface_toast = {
						title = child_personality.hardened_tt
						left_icon = scope:child
						scope:child = {
							add_prowess_skill = 1
							add_learning_skill = -1
						}
					}
				}
			}
			
			50 = { 
				desc = child_personality.close_tt
				reverse_add_opinion = {
					modifier = scared_opinion
					target = scope:child
					opinion = -30
				}
				if = {
					limit = {
						scope:child = {
							NOR = {
								has_trait = shy
								has_trait = gregarious
							}
						}
					}
					send_interface_toast = {
						title = child_personality.close_tt
						left_icon = scope:child
						scope:child = {
							add_trait_force_tooltip = shy
						}
					}
				}
				else_if = {
					limit = {
						scope:child = {
							NOT = {
								has_trait = shy
							}
						}
					}
					send_interface_toast = {
						title = child_personality.close_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = gregarious
						}
					}
				}
				else = {
					send_interface_toast = {
						title = child_personality.close_tt
						left_icon = scope:child
						scope:child = {
							add_diplomacy_skill = -2
						}
					}
				}
			}
		}
	}
}


#Child has demonstrated pride
child_personality.1124 = {
	type = character_event
	title = child_personality.1124.t
	desc = {
		desc = child_personality.112.desc
		desc = child_personality.1124.desc
	}
	theme = education
	left_portrait = {
		character = scope:child
		animation = personality_bold
	}
	
	option = {
		name = child_personality.112.confirm_arrogant
		
		reverse_add_opinion = {
    		modifier = pleased_opinion
    		target = scope:child
    		opinion = 20
    	}
		if = {
			limit = {
				scope:child = { has_trait = arrogant }
			}
			custom_tooltip = child_personality.keeps_arrogant_tt
		}
		else = {
			scope:child = { add_trait = arrogant }
		}
		stress_impact = {
			arbitrary = medium_stress_loss
			lazy = minor_stress_loss
			just = medium_stress_gain
			zealous = medium_stress_gain
			cynical = minor_stress_loss
		}
		
		ai_chance = {
			base = 100
			ai_value_modifier = {
				ai_honor = -0.5
			}
			modifier = {
				factor = 3
				has_trait = arbitrary
			}
		}
	}
	
		
	option = {
		name = child_personality.112.challenge_alt
		
		ai_chance = {
			base = 100
			ai_value_modifier = {
				ai_honor = 0.5
				ai_zeal = 0.5
			}
			modifier = {
				factor = 3
				has_trait = just
			}
		}
		
		stress_impact = {
			base = child_trait_change_stress_penalty
			just = medium_stress_loss
			arrogant = minor_stress_loss
		}
		
		random_list = {
			50 = {
				desc = child_personality.stay_tt
				send_interface_toast = {
					title = child_personality.stay_tt
					left_icon = scope:child
				}
			}
			50 = { 
				desc = child_personality.under_tt
				modifier = {
					factor = 0.4
					scope:child = {
						OR = {
							has_trait = arrogant
						}
					}
				}
				modifier = {
					factor = 3
					OR = {
						root.diplomacy >= medium_skill_rating
						root.intrigue >= medium_skill_rating
					}
				}
				if = {
					limit = {
						scope:child = {
							has_trait = arrogant
						}
					}
					send_interface_toast = {
						title = child_personality.under_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = arrogant
							add_learning_skill = 1
							add_stewardship_skill = 1
						}
					}
				}
				else = {
					send_interface_toast = {
						title = child_personality.under_tt
						left_icon = scope:child
						scope:child = {
							add_stewardship_skill = 2
							add_learning_skill = 2
						}
					}
				}
			}
			50 = {
				desc = child_personality.punder_tt
				send_interface_toast = {
					title = child_personality.punder_tt
					left_icon = scope:child
					scope:child = {
						add_diplomacy_skill = -1
						add_learning_skill = 1
					}
				}
			}
		}
	}
	
	option = {
		name = child_personality.112.religion_alt
		trigger = { 
			scope:child = {
				NOT = { has_faith = root.faith }
			}
			is_ai = no
		}
		custom_tooltip = child_personality.112.religion_alt_tt
		
		stress_impact = {
			base = child_trait_change_stress_penalty
			zealous = medium_stress_loss
			cynical = medium_stress_gain
		}
		
		random_list = {
			50 = {
				desc = child_personality.stay_tt
				send_interface_toast = {
					title = child_personality.stay_tt
					left_icon = scope:child
				}
			}
			50 = { 
				desc = child_personality.neutral_tt
				modifier = {
					factor = 0.1
					scope:child = { has_trait = cynical }
				}
				if = {
					limit = {
						scope:child = { has_trait = cynical }
					}
					scope:child = { remove_trait = cynical }
				}
				else_if = {
					limit = {
						scope:child = { has_trait = arrogant }
					}
					scope:child = { remove_trait = arrogant }
				}
				else = { }
				modifier = {
					factor = 3
					OR = {
						root.diplomacy >= medium_skill_rating
						root.learning >= medium_skill_rating
					}
				}
				scope:child = { save_scope_as = recipient }
				custom_tooltip = demand_conversion_tt
				hidden_effect = { demand_conversion_interaction_effect = yes }
				send_interface_toast = {
					title = child_personality.neutral_tt
					left_icon = scope:child
				}
			}
		}
	}
	
	option = {
		name = child_personality.112.religion_alt
		custom_tooltip = child_personality.112.religion_alt_tt
		trigger = { 
			scope:child = {
				has_faith = root.faith
			}
		}
		ai_chance = {
			base = 100
			ai_value_modifier = {
				ai_zeal = 1
			}
			modifier = {
				factor = 3
				has_trait = zealous
			}
		}
		
		stress_impact = {
			base = child_trait_change_stress_penalty
			zealous = medium_stress_loss
			cynical = medium_stress_gain
		}

		
		random_list = {
			50 = {
				desc = child_personality.stay_tt
				send_interface_toast = {
					title = child_personality.stay_tt
					left_icon = scope:child
				}
			}
			50 = { 
				desc = child_personality.neutral_tt
				modifier = {
					factor = 0.1
					scope:child = { has_trait = cynical }
				}
				modifier = {
					factor = 3
					OR = {
						root.diplomacy >= medium_skill_rating
						root.learning >= medium_skill_rating
					}
				}
				if = {
					limit = {
						scope:child = {
							has_trait = cynical
						}
					}
					send_interface_toast = {
						title = child_personality.neutral_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = cynical
							add_learning_skill = 1
							add_diplomacy_skill = 1
						}
					}
				}
				else_if = {
					limit = {
						scope:child = {
							has_trait = arrogant
						}
					}
					send_interface_toast = {
						title = child_personality.neutral_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = arrogant
							add_learning_skill = 1
							add_diplomacy_skill = 1
						}
					}
				}
				else = {
					send_interface_toast = {
						title = child_personality.neutral_tt
						left_icon = scope:child
						scope:child = {
							add_trait_force_tooltip = zealous
						}
					}
				}
			}
		}
	}


	
	option = {
		name = child_personality.112.no_alt
		custom_tooltip = child_personality.112.no_tt
		ai_chance = {
			base = 100
			ai_value_modifier = {
				ai_honor = -0.5
				ai_compassion = -0.5
			}
			modifier = {
				factor = 3
				OR = {
					has_trait = wrathful
					has_trait = sadistic
					has_trait = arrogant
				}
			}
			modifier = {
				factor = 0
				OR = {
					has_trait = compassionate
				}
			}
		}
		
		stress_impact = {
			base = child_trait_change_stress_penalty
			wrathful = medium_stress_loss
			arrogant = major_stress_loss
			sadistic = minor_stress_loss
		}
		
		random_list = {
			50 = { 
				desc = child_personality.stay_tt
				reverse_add_opinion = {
					modifier = disappointed_opinion
					target = scope:child
					opinion = -10
				}
				send_interface_toast = {
					title = child_personality.stay_tt
					left_icon = scope:child
				}
			}
			100 = {
				desc = child_personality.fearful_tt
				modifier = {
					factor = 0.1
					scope:child = {
						OR = {
							has_trait = brave
						}
					}
				}
				
				reverse_add_opinion = {
					modifier = scared_opinion
					target = scope:child
					opinion = -30
				}
				
				scope:child = {
					remove_trait = arrogant
				}
				
				if = {
					limit = {
						scope:child = {
							has_trait = brave
						}
					}
					send_interface_toast = {
						title = child_personality.fearful_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = brave
						}
					}
				}
				else_if = {
					limit = {
						scope:child = {
							has_trait = craven
						}
					}
					send_interface_toast = {
						title = child_personality.fearful_tt
						left_icon = scope:child
						scope:child = {
							add_diplomacy_skill = -1
							add_learning_skill = -2
						}
					}
				}
				else = {
					send_interface_toast = {
						title = child_personality.fearful_tt
						left_icon = scope:child
						scope:child = {
							add_trait = craven
						}
					}
				}
			}
			50 = { 
				desc = child_personality.respect_tt
				scope:child = {
					remove_trait = arrogant
				}
				reverse_add_opinion = {
					modifier = respect_opinion
					target = scope:child
					opinion = 10
				}
				send_interface_toast = {
					title = child_personality.respect_tt
					left_icon = scope:child
					scope:child = {
						add_learning_skill = 1
						add_diplomacy_skill = -1				
					}
				}
			}
		}
	}
}

#Responses to Rules Events
#0013

#Child has demonstrated arbitrariness
child_personality.1131 = {
	type = character_event
	title = child_personality.1131.t
	desc = {
		desc = child_personality.113.desc
		desc = child_personality.1131.desc
	}
	theme = education
	left_portrait = {
		character = scope:child
		animation = personality_irrational
	}
	right_portrait = {
		character = root
		animation = personality_rational
	}

	option = {
		name = child_personality.113.confirm_arbitrary
		custom_tooltip = child_personality.keeps_arbitrary_tt
		reverse_add_opinion = {
    		modifier = pleased_opinion
    		target = scope:child
    		opinion = 20
    	}
		stress_impact = {
			just = medium_stress_gain
			arrogant = medium_stress_loss
			stubborn = minor_stress_loss
			arbitrary = medium_stress_loss
		}
		ai_chance = {
			base = 100
			ai_value_modifier = {
				ai_rationality = -0.7
			}
			modifier = {
				factor = 3
				has_trait = arbitrary
			}
		}
	}

	option = {
		name = child_personality.113.talk
	
		ai_chance = {
			base = 100
			ai_value_modifier = {
				ai_compassion = 0.5
				ai_rationality = 0.5
			}
			modifier = {
				factor = 3
				has_trait = compassionate
			}
		}
		stress_impact = {
			base = child_trait_change_stress_penalty
			compassionate = minor_stress_loss
			just = minor_stress_loss
			sadistic = medium_stress_gain
			callous = minor_stress_gain
		}
		
		random_list = {	
			40 = {
				desc = child_personality.stay_tt
				send_interface_toast = {
					title = child_personality.stay_tt
					left_icon = scope:child
				}
			}
			60 = { 
				desc = child_personality.neutral_tt
				modifier = {
					factor = 2
					OR = {
						root.diplomacy >= medium_skill_rating
						root.learning >= medium_skill_rating
					}
				}
				reverse_add_opinion = {
					modifier = pleased_opinion
					target = scope:child
					opinion = 10
				}
				send_interface_toast = {
					title = child_personality.neutral_tt
					left_icon = scope:child
					scope:child = {
						remove_trait = arbitrary
						add_learning_skill = 1
					}
				}	
			}
		}
	}

	option = {
		name = child_personality.113.low
		ai_chance = {
			base = 100
			ai_value_modifier = {
				ai_rationality = 0.5
				ai_compassion = -0.5
			}
			modifier = {
				factor = 0.5
				scope:child = {
					is_heir_of = root
				}
			}
			modifier = {
				factor = 3
				has_trait = callous
			}
		}
		stress_impact = {
			base = child_trait_change_stress_penalty
			just = minor_stress_loss
			arbitrary = minor_stress_gain
			callous = minor_stress_loss
			arrogant = minor_stress_loss
			compassionate = medium_stress_gain
			sadistic = minor_stress_loss
		}
		reverse_add_opinion = {
    		modifier = disappointed_opinion
    		target = scope:child
    		opinion = -20
    	}
		random_list = {	
			50 = {
				desc = child_personality.stay_tt
				send_interface_toast = {
					title = child_personality.stay_tt
					left_icon = scope:child
				}
			}
			50 = { 
				desc = child_personality.restrict_tt
				modifier = {
					factor = 0.1
					scope:child = {
						OR = {
							has_trait = arrogant
							has_trait = ambitious
						}
					}
				}
				if = {
					limit = {
						scope:child = {
							has_trait = arrogant
							has_trait = ambitious
						}
					}
					send_interface_toast = {
						title = child_personality.restrict_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = arbitrary
							remove_trait = ambitious
							add_trait = fickle
						}
					}
				}
				else_if = {
					limit = {
						scope:child = {
							has_trait = arrogant
						}
					}
					send_interface_toast = {
						title = child_personality.restrict_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = arrogant
							add_learning_skill = 1
							add_stewardship_skill = -1
							add_intrigue_skill = -1
						}
					}
				}
				else_if = {
					limit = {
						scope:child = {
							has_trait = ambitious
						}
					}
					send_interface_toast = {
						title = child_personality.restrict_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = arrogant
							add_learning_skill = 1
							add_stewardship_skill = -1
							add_intrigue_skill = -1
						}
					}
				}
				else_if = {
					limit = {
						scope:child = {
							NOT = {
								has_trait = humble
							}
						}
					}
					send_interface_toast = {
						title = child_personality.restrict_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = arbitrary
							add_trait_force_tooltip = humble
						}
					}
				}
				else_if = {
					limit = {
						scope:child = {
							has_trait = humble
							NOT = { has_trait = content }
						}
					}
					send_interface_toast = {
						title = child_personality.restrict_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = arbitrary
							add_trait_force_tooltip = content
						}
					}
				}
				else = {
					send_interface_toast = {
						title = child_personality.restrict_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = arbitrary
							add_trait_force_tooltip = calm
						}
					}
				}
			}
			150 = {
				desc = child_personality.disil_tt
				if = {
					limit = {
						scope:child = {
							NOR = {
								has_trait = cynical
								has_trait = zealous
							}
						}
					}
					send_interface_toast = {
						title = child_personality.restrict_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = arbitrary
							add_trait_force_tooltip = cynical
						}
					}
				}
				else = {
					send_interface_toast = {
						title = child_personality.restrict_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = arbitrary
							add_learning_skill = 1
							add_stewardship_skill = -2
						}
					}
				}
			}
		}
	}
}


#Child has demonstrated junderstanding
child_personality.1132 = {
	type = character_event
	title = child_personality.1132.t
	desc = {
		desc = child_personality.113.desc
		desc = child_personality.1132.desc
	}
	theme = education
	left_portrait = {
		character = scope:child
		animation = personality_rational
	}
	right_portrait = {
		character = root
		animation = chancellor
	}

	option = {
		name = child_personality.113.confirm_just
		custom_tooltip = child_personality.keeps_just_tt
		reverse_add_opinion = {
    		modifier = pleased_opinion
    		target = scope:child
    		opinion = 10
    	}
		stress_impact = {
			just = medium_stress_loss
			arrogant = minor_stress_loss
			sadistic = minor_stress_gain
			calm = minor_stress_loss
			patient = minor_stress_loss
		}
		ai_chance = {
			base = 100
			ai_value_modifier = {
				ai_honor = 0.5
				ai_rationality = 0.5
			}
			modifier = {
				factor = 3
				has_trait = just
			}
		}
	}

	option = {
		name = child_personality.113.high
	
		ai_chance = {
			base = 100
			ai_value_modifier = {
				ai_compassion = 0.5
				ai_rationality = -0.5
			}
			modifier = {
				factor = 3
				has_trait = compassionate
			}
		}
		stress_impact = {
			base = child_trait_change_stress_penalty
			compassionate = minor_stress_loss
			arbitrary = minor_stress_loss
			just = minor_stress_gain
			sadistic = medium_stress_gain
			callous = minor_stress_gain
		}
		
		reverse_add_opinion = {
    		modifier = pleased_opinion
    		target = scope:child
    		opinion = 20
    	}
		
		random_list = {	
			50 = {
				desc = child_personality.stay_tt
				send_interface_toast = {
					title = child_personality.stay_tt
					left_icon = scope:child
				}
			}
			50 = { 
				desc = child_personality.sc_tt
				modifier = {
					factor = 2
					scope:child = {
						has_trait = arrogant
					}
				}
				modifier = {
					factor = 0.4
					scope:child = {
						has_trait = humble
					}
				}
				if = {
					limit = {
						scope:child = {
							NOR = { 
								has_trait = humble
								has_trait = arrogant
							}
						}
					}
					send_interface_toast = {
						title = child_personality.sc_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = just
							add_trait_force_tooltip = arrogant
						}
					}
				}
				else_if = {
					limit = {
						scope:child = {
							has_trait = humble
						}
					}
					send_interface_toast = {
						title = child_personality.sc_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = humble
						}
					}
				}
				else = {
					send_interface_toast = {
						title = child_personality.sc_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = just
							add_trait_force_tooltip = arbitrary
						}
					}
				}
			}
		}
	}

	option = {
		name = child_personality.113.low_alt
		ai_chance = {
			base = 100
			ai_value_modifier = {
				ai_rationality = 0.2
				ai_compassion = -0.5
			}
			modifier = {
				factor = 0.1
				scope:child = {
					is_heir_of = root
				}
			}
			modifier = {
				factor = 3
				has_trait = callous
			}
		}
		stress_impact = {
			base = child_trait_change_stress_penalty
			just = minor_stress_loss
			callous = minor_stress_loss
			arrogant = minor_stress_loss
			compassionate = medium_stress_gain
			sadistic = minor_stress_loss
		}
		reverse_add_opinion = {
    		modifier = disappointed_opinion
    		target = scope:child
    		opinion = -10
    	}
		random_list = {	
			50 = {
				desc = child_personality.stay_tt
				send_interface_toast = {
					title = child_personality.stay_tt
					left_icon = scope:child
				}
			}
			50 = { 
				desc = child_personality.restrict_tt
				modifier = {
					factor = 0.1
					scope:child = {
						OR = {
							has_trait = arrogant
							has_trait = ambitious
						}
					}
				}
				if = {
					limit = {
						scope:child = {
							has_trait = arrogant
							has_trait = ambitious
						}
					}
					send_interface_toast = {
						title = child_personality.restrict_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = arbitrary
							remove_trait = ambitious
							add_trait = fickle
						}
					}
				}
				else_if = {
					limit = {
						scope:child = {
							has_trait = arrogant
						}
					}
					send_interface_toast = {
						title = child_personality.restrict_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = arrogant
							add_learning_skill = 1
							add_stewardship_skill = -1
							add_intrigue_skill = -1
						}
					}
				}
				else_if = {
					limit = {
						scope:child = {
							has_trait = ambitious
						}
					}
					send_interface_toast = {
						title = child_personality.restrict_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = arrogant
							add_learning_skill = 1
							add_stewardship_skill = -1
							add_intrigue_skill = -1
						}
					}
				}
				else_if = {
					limit = {
						scope:child = {
							NOT = {
								has_trait = content
							}
						}
					}
					send_interface_toast = {
						title = child_personality.restrict_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = just
							add_trait_force_tooltip = content
						}
					}
				}
				else_if = {
					limit = {
						scope:child = {
							has_trait = content
							NOT = { has_trait = humble }
						}
					}
					send_interface_toast = {
						title = child_personality.restrict_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = just
							add_trait_force_tooltip = humble
						}
					}
				}
				else = {
					send_interface_toast = {
						title = child_personality.restrict_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = just
							add_trait_force_tooltip = calm
						}
					}
				}
			}
		}
	}
}

#Child has demonstrated impatience
child_personality.1133 = {
	type = character_event
	title = child_personality.1133.t
	desc = {
		desc = child_personality.113.desc
		desc = child_personality.1133.desc
	}
	theme = education
	left_portrait = {
		character = scope:child
		animation = personality_irrational
	}
	right_portrait = {
		character = root
		animation = personality_rational
	}

	option = {
		name = child_personality.113.confirm_impatient
		custom_tooltip = child_personality.keeps_impatient_tt
		reverse_add_opinion = {
    		modifier = pleased_opinion
    		target = scope:child
    		opinion = 20
    	}
		stress_impact = {
			sadistic = minor_stress_gain
			arbitrary = medium_stress_loss
			impatient = minor_stress_loss
			compassionate = minor_stress_loss
		}
		ai_chance = {
			base = 100
			ai_value_modifier = {
				ai_rationality = -0.7
				ai_compassion = 0.3
			}
			modifier = {
				factor = 3
				has_trait = arbitrary
			}
		}
	}

	option = {
		name = child_personality.113.chill
		custom_tooltip = child_personality.113.chill_tt
	
		ai_chance = {
			base = 100
			ai_value_modifier = {
				ai_compassion = 0.5
				ai_rationality = 0.5
			}
			modifier = {
				factor = 3
				has_trait = patient
			}
		}
		stress_impact = {
			base = child_trait_change_stress_penalty
			patient = minor_stress_loss
			compassionate = minor_stress_loss
			calm = minor_stress_gain
			sadistic = medium_stress_gain
			callous = minor_stress_gain
		}
		
		random_list = {	
			40 = {
				desc = child_personality.stay_tt
				send_interface_toast = {
					title = child_personality.stay_tt
					left_icon = scope:child
				}
			}
			60 = { 
				desc = child_personality.neutral_tt
				modifier = {
					factor = 2
					OR = {
						root.diplomacy >= medium_skill_rating
						root.learning >= medium_skill_rating
					}
				}
				reverse_add_opinion = {
					modifier = pleased_opinion
					target = scope:child
					opinion = 10
				}
				send_interface_toast = {
					title = child_personality.neutral_tt
					left_icon = scope:child
					scope:child = {
						remove_trait = impatient
						add_learning_skill = 1
					}
				}	
			}
		}
	}

	option = {
		name = child_personality.113.low_alt_alt
		ai_chance = {
			base = 100
			ai_value_modifier = {
				ai_rationality = 0.5
				ai_compassion = -0.5
			}
			modifier = {
				factor = 0.5
				scope:child = {
					is_heir_of = root
				}
			}
			modifier = {
				factor = 3
				has_trait = callous
			}
		}
		stress_impact = {
			base = child_trait_change_stress_penalty
			callous = minor_stress_loss
			arrogant = minor_stress_loss
			compassionate = medium_stress_gain
			sadistic = minor_stress_loss
		}
		reverse_add_opinion = {
    		modifier = disappointed_opinion
    		target = scope:child
    		opinion = -20
    	}
		random_list = {	
			50 = {
				desc = child_personality.stay_tt
				send_interface_toast = {
					title = child_personality.stay_tt
					left_icon = scope:child
				}
			}
			50 = { 
				desc = child_personality.restrict_tt
				modifier = {
					factor = 0.1
					scope:child = {
						OR = {
							has_trait = arrogant
							has_trait = ambitious
						}
					}
				}
				if = {
					limit = {
						scope:child = {
							has_trait = arrogant
							has_trait = ambitious
						}
					}
					send_interface_toast = {
						title = child_personality.restrict_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = arbitrary
							remove_trait = ambitious
							add_trait = fickle
						}
					}
				}
				else_if = {
					limit = {
						scope:child = {
							has_trait = arrogant
						}
					}
					send_interface_toast = {
						title = child_personality.restrict_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = arrogant
							add_learning_skill = 1
							add_stewardship_skill = -1
							add_intrigue_skill = -1
						}
					}
				}
				else_if = {
					limit = {
						scope:child = {
							has_trait = ambitious
						}
					}
					send_interface_toast = {
						title = child_personality.restrict_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = arrogant
							add_learning_skill = 1
							add_stewardship_skill = -1
							add_intrigue_skill = -1
						}
					}
				}
				else_if = {
					limit = {
						scope:child = {
							NOT = {
								has_trait = humble
							}
						}
					}
					send_interface_toast = {
						title = child_personality.restrict_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = impatient
							add_trait_force_tooltip = humble
						}
					}
				}
				else_if = {
					limit = {
						scope:child = {
							has_trait = humble
							NOT = { has_trait = content }
						}
					}
					send_interface_toast = {
						title = child_personality.restrict_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = impatient
							add_trait_force_tooltip = content
						}
					}
				}
				else = {
					send_interface_toast = {
						title = child_personality.restrict_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = impatient
							add_trait_force_tooltip = patient
						}
					}
				}
			}
			150 = {
				desc = child_personality.err_tt
				if = {
					limit = {
						scope:child = {
							NOR = {
								has_trait = arbitrary
								has_trait = just
							}
						}
					}
					send_interface_toast = {
						title = child_personality.err_tt
						left_icon = scope:child
						scope:child = {
							add_trait_force_tooltip = arbitrary
						}
					}
				}
				else = {
					send_interface_toast = {
						title = child_personality.err_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = arbitrary
							add_learning_skill = -1
							add_stewardship_skill = -1
						}
					}
				}
			}
		}
	}
}

#Child has demonstrated patience
child_personality.1134 = {
	type = character_event
	title = child_personality.1134.t
	desc = {
		desc = child_personality.113.desc
		desc = child_personality.1134.desc
	}
	theme = education
	left_portrait = {
		character = scope:child
		animation = personality_rational
	}
	right_portrait = {
		character = root
		animation = chancellor
	}

	option = {
		name = child_personality.113.confirm_patient
		custom_tooltip = child_personality.keeps_patient_tt
		reverse_add_opinion = {
    		modifier = pleased_opinion
    		target = scope:child
    		opinion = 10
    	}
		stress_impact = {
			just = medium_stress_loss
			sadistic = minor_stress_gain
			calm = minor_stress_loss
			patient = minor_stress_loss
		}
		ai_chance = {
			base = 100
			ai_value_modifier = {
				ai_honor = 0.5
				ai_rationality = 0.5
			}
			modifier = {
				factor = 3
				has_trait = patient
			}
		}
	}

	option = {
		name = child_personality.113.chill_alt
		custom_tooltip = child_personality.113.chill_tt
		ai_chance = {
			base = 100
			ai_value_modifier = {
				ai_compassion = 0.5
				ai_rationality = -0.5
			}
			modifier = {
				factor = 3
				has_trait = compassionate
			}
		}
		stress_impact = {
			base = child_trait_change_stress_penalty
			compassionate = medium_stress_loss
			arbitrary = minor_stress_loss
			just = minor_stress_gain
			sadistic = medium_stress_gain
			callous = minor_stress_gain
			impatient = minor_stress_loss
		}
		
		reverse_add_opinion = {
    		modifier = pleased_opinion
    		target = scope:child
    		opinion = 20
    	}
		
		random_list = {	
			50 = {
				desc = child_personality.stay_tt
				send_interface_toast = {
					title = child_personality.stay_tt
					left_icon = scope:child
				}
			}
			50 = { 
				desc = child_personality.neutral_tt
				modifier = {
					factor = 3
					OR = {
						root.diplomacy >= medium_skill_rating
						root.learning >= medium_skill_rating
					}
				}
				send_interface_toast = {
					title = child_personality.sc_tt
					left_icon = scope:child
					scope:child = {
						remove_trait = just
						add_trait_force_tooltip = arrogant
					}
				}

			}
		}
	}

	option = {
		name = child_personality.113.double
		ai_chance = {
			base = 100
			ai_value_modifier = {
				ai_rationality = 0.2
				ai_compassion = -0.5
			}
			modifier = {
				factor = 0.1
				scope:child = {
					is_heir_of = root
				}
			}
			modifier = {
				factor = 3
				has_trait = callous
			}
		}
		stress_impact = {
			base = child_trait_change_stress_penalty
			just = minor_stress_loss
			callous = minor_stress_loss
			arrogant = minor_stress_loss
			compassionate = medium_stress_gain
			sadistic = minor_stress_loss
		}
		reverse_add_opinion = {
    		modifier = disappointed_opinion
    		target = scope:child
    		opinion = -10
    	}
		random_list = {	
			50 = {
				desc = child_personality.stay_tt
				send_interface_toast = {
					title = child_personality.stay_tt
					left_icon = scope:child
				}
			}
			50 = { 
				desc = child_personality.restrict_tt
				modifier = {
					factor = 0.1
					scope:child = {
						OR = {
							has_trait = arrogant
							has_trait = ambitious
						}
					}
				}
				if = {
					limit = {
						scope:child = {
							has_trait = arrogant
							has_trait = ambitious
						}
					}
					send_interface_toast = {
						title = child_personality.restrict_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = arbitrary
							remove_trait = ambitious
							add_trait = fickle
						}
					}
				}
				else_if = {
					limit = {
						scope:child = {
							has_trait = arrogant
						}
					}
					send_interface_toast = {
						title = child_personality.restrict_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = arrogant
							add_learning_skill = 1
							add_stewardship_skill = -1
							add_intrigue_skill = -1
						}
					}
				}
				else_if = {
					limit = {
						scope:child = {
							has_trait = ambitious
						}
					}
					send_interface_toast = {
						title = child_personality.restrict_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = arrogant
							add_learning_skill = 1
							add_stewardship_skill = -1
							add_intrigue_skill = -1
						}
					}
				}
				else_if = {
					limit = {
						scope:child = {
							NOT = {
								has_trait = content
							}
						}
					}
					send_interface_toast = {
						title = child_personality.restrict_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = patient
							add_trait_force_tooltip = content
						}
					}
				}
				else_if = {
					limit = {
						scope:child = {
							has_trait = content
							NOT = { has_trait = humble }
						}
					}
					send_interface_toast = {
						title = child_personality.restrict_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = patient
							add_trait_force_tooltip = humble
						}
					}
				}
				else = {
					send_interface_toast = {
						title = child_personality.restrict_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = patient
							add_trait_force_tooltip = calm
						}
					}
				}
			}
		}
	}
	option = {
		name = child_personality.113.force_alt
		ai_chance = {
			base = 100
			ai_value_modifier = {
				ai_compassion = -0.5
			}
			modifier = {
				factor = 3
				OR = {
					has_trait = sadistic
				}
			}
		}
		
		reverse_add_opinion = {
    		modifier = disappointed_opinion
    		target = scope:child
    		opinion = -30
    	}
		
		stress_impact = {
			base = child_trait_change_stress_penalty
			compassionate = medium_stress_gain
			callous = medium_stress_loss
			sadistic = medium_stress_loss
			wrathful = minor_stress_loss
		}
		
		random_list = {	
			50 = {
				desc = child_personality.stay_tt
				send_interface_toast = {
					title = child_personality.stay_tt
					left_icon = scope:child
				}
			}
			100 = {
				desc = child_personality.sloth_tt
				scope:child = {
					remove_trait = diligent
				}
				send_interface_toast = {
					title = child_personality.sloth_tt
					left_icon = scope:child
					scope:child = {
						add_trait_force_tooltip = lazy
						add_learning_skill = -1
					}
				}
			}
			50 = { 
				desc = child_personality.hardened_tt
				scope:child = {
					remove_trait = patient
				}
				if = {
					limit = {
						scope:child = {
							NOR = {
								has_trait = wrathful
								has_trait = calm
							}
						}
					}
					send_interface_toast = {
						title = child_personality.hardened_tt
						left_icon = scope:child
						scope:child = {
							add_trait_force_tooltip = wrathful
						}
					}
				}
				else_if = {
					limit = {
						scope:child = {
							NOT = { 
								has_trait = wrathful
							}
						}
					}
					send_interface_toast = {
						title = child_personality.hardened_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = calm
						}
					}
				}
				else = {
					send_interface_toast = {
						title = child_personality.hardened_tt
						left_icon = scope:child
						scope:child = {
							add_prowess_skill = 1
							add_learning_skill = -1
						}
					}
				}
			}
		}
	}
}


#Child has become chaste
child_personality.1141 = {
	type = character_event
	title = child_personality.1141.t
	desc = {
		desc = my_ward_or_child
		desc = child_personality.1141.desc
	}
	
	theme = education
	left_portrait = {
		character = scope:child
		animation = personality_honorable
	}
	
	option = {
		name = child_personality.114.confirm_callous
		if = {
			limit = {
				scope:child = { has_trait = chaste }
			}
			custom_tooltip = child_personality.keeps_chaste_tt
		}
		else = {
			scope:child = {
				add_trait_force_tooltip = chaste
			}
		}
		stress_impact = {
			chaste = minor_stress_loss
			callous = minor_stress_loss
			arrogant = minor_stress_loss
		}
		reverse_add_opinion = {
			modifier = pleased_opinion
			target = scope:child
			opinion = 10
		}
		ai_chance = {
			base = 100
			ai_value_modifier = {
				ai_rationality = 0.2
			}
			modifier = {
				factor = 3
				has_trait = chaste
			}
		}
	}
	
	option = {
		name = child_personality.114.talk
		
		ai_chance = {
			base = 100
			modifier = {
				factor = 3
				OR = {
					has_trait = compassionate
				}
			}
			ai_value_modifier = {
				ai_compassion = 0.5
			}
		}
		
		stress_impact = {
			base = child_trait_change_stress_penalty
			calm = minor_stress_loss
			patient = minor_stress_loss
			compassionate = medium_stress_loss
			sadistic = minor_stress_gain
		}
		
		random_list = {
			40 = {
				modifier = {
					factor = 0.4
					root.diplomacy >= medium_skill_rating
				}
				desc = child_personality.stay_tt
				send_interface_toast = {
					title = child_personality.stay_tt
					left_icon = scope:child
				}
			}
			60 = {
				desc = child_personality.neutral_tt
				reverse_add_opinion = {
					modifier = pleased_opinion
					target = scope:child
					opinion = 15
				}
				send_interface_toast = {
					title = child_personality.neutral_tt
					left_icon = scope:child
					scope:child = {
						remove_trait = chaste
						add_diplomacy_skill = 1
					}
				}
			}		
		}
	}
	
	option = {
		name = child_personality.114.shake
		custom_tooltip = child_personality.114.shake_tt
		
		ai_chance = {
			base = 100
			modifier = {
				factor = 3
				OR = {
					has_trait = impatient
					has_trait = arbitrary
				}
			}
			ai_value_modifier = {
				ai_sociability = 0.7
			}
		}
		
		stress_impact = {
			base = child_trait_change_stress_penalty
			impatient = minor_stress_loss
			gregarious = minor_stress_loss
			arbitrary = minor_stress_loss
			sadistic = minor_stress_gain
		}
		
		random_list = {
			25 = {
				modifier = {
					factor = 0.1
					scope:child = {
						has_trait = chaste
					}
				}
				reverse_add_opinion = {
					modifier = pleased_opinion
					target = scope:child
					opinion = 15
				}
				desc = child_personality.114.plusplus
				send_interface_toast = {
					title = child_personality.114.plusplus
					left_icon = scope:child
					scope:child = {
						remove_trait = chaste
						add_trait_force_tooltip = lustful
					}
				}
			}
			50 = {
				desc = child_personality.114.plus
				reverse_add_opinion = {
					modifier = pleased_opinion
					target = scope:child
					opinion = 15
				}
				modifier = {
					factor = 0.5
					scope:child = {
						has_trait = chaste
					}
				}
				if = {
					limit = {
						scope:child = { has_trait = shy }
					}
					send_interface_toast = {
						title = child_personality.114.plus
						left_icon = scope:child
						scope:child = {
							remove_trait = shy
							add_diplomacy_skill = 1
						}
					}
				}
				else_if = {
					limit = {
						scope:child = { has_trait = gregarious }
					}
					send_interface_toast = {
						title = child_personality.114.plus
						left_icon = scope:child
						scope:child = {
							remove_trait = chaste
							add_diplomacy_skill = 1
						}
					}
				}
				else = {
					send_interface_toast = {
						title = child_personality.114.plus
						left_icon = scope:child
						scope:child = {
							remove_trait = chaste
							add_trait_force_tooltip = gregarious
						}
					}
				}
			}
			50 = {
				desc = child_personality.114.minus
				send_interface_toast = {
					title = child_personality.114.minus
					left_icon = scope:child
				}
			}
			25 = {
				desc = child_personality.114.minusminus
				modifier = {
					factor = 0.4
					OR = {
						root.diplomacy >= medium_skill_rating
						root.intrigue >= medium_skill_rating
					}
				}
				reverse_add_opinion = {
					modifier = disappointed_opinion
					target = scope:child
					opinion = -15
				}
				if = {
					limit = {
						scope:child = { has_trait = gregarious }
					}
					send_interface_toast = {
						title = child_personality.114.minusminus
						left_icon = scope:child
						scope:child = {
							remove_trait = gregarious
						}
					}
				}
				else_if = {
					limit = {
						scope:child = { has_trait = shy }
					}
					send_interface_toast = {
						title = child_personality.114.minusminus
						left_icon = scope:child
						scope:child = {
							add_diplomacy_skill = -2
						}
					}
				}
				else = {
					send_interface_toast = {
						title = child_personality.114.minusminus
						left_icon = scope:child
						scope:child = {
							add_trait_force_tooltip = shy
						}
					}
				}
			}
		}
	}
	
	option = {
		name = child_personality.114.crit
		custom_tooltip = child_personality.114.crit_tt
		ai_chance = {
			base = 100
			ai_value_modifier = {
				ai_compassion = -0.5
			}
			modifier = {
				factor = 3
				OR = {
					has_trait = callous
					has_trait = sadistic
				}
			}
			modifier = {
				factor = 0
				OR = {
					has_trait = compassionate
				}
			}
		}
		
		reverse_add_opinion = {
    		modifier = disappointed_opinion
    		target = scope:child
    		opinion = -25
    	}
		
		stress_impact = {
			base = child_trait_change_stress_penalty
			compassionate = medium_stress_gain
			callous = medium_stress_loss
			sadistic = medium_stress_loss
		}
		
		random_list = {	
			25 = {
				modifier = {
					factor = 4
					scope:child = { has_trait = stubborn }
				}
				desc = child_personality.stay_tt
				send_interface_toast = {
					title = child_personality.stay_tt
					left_icon = scope:child
				}
			}
			
			50 = {
				desc = child_personality.close_tt
				if = {
					limit = {
						scope:child = {
							NOR = {
								has_trait = shy
								has_trait = gregarious
							}
						}
					}
					send_interface_toast = {
						title = child_personality.close_tt
						left_icon = scope:child
						scope:child = {
							add_trait_force_tooltip = shy
						}
					}
				}
				else_if = {
					limit = {
						scope:child = {
							NOT = {
								has_trait = shy
							}
						}
					}
					send_interface_toast = {
						title = child_personality.close_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = gregarious
						}
					}
				}
				else = {
					send_interface_toast = {
						title = child_personality.close_tt
						left_icon = scope:child
						scope:child = {
							add_diplomacy_skill = -2
						}
					}
				}
			}
			
			50 = {
				desc = child_personality.disdain_tt
				scope:child = {
					remove_trait = chaste
				}
				if = {
					limit = {
						scope:child = {
							has_trait = arrogant
							OR = {
								has_trait = wrathful
								has_trait = calm
							}
						}
					}
					send_interface_toast = {
						title = child_personality.disdain_tt
						left_icon = scope:child
						scope:child = {
							add_diplomacy_skill = -1
						}
					}
				}
				else_if = {
					limit = {
						scope:child = {
							has_trait = arrogant
						}
					}
					send_interface_toast = {
						title = child_personality.disdain_tt
						left_icon = scope:child
						scope:child = {
							add_trait_force_tooltip = wrathful
						}
					}
				}
				else = {
					send_interface_toast = {
						title = child_personality.disdain_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = humble
							add_trait_force_tooltip = arrogant
						}
					}
				}
			}
		}
	}
}

#Child has become lustful
child_personality.1142 = {
	type = character_event
	title = child_personality.1142.t
	desc = {
		desc = my_ward_or_child
		desc = child_personality.1142.desc
	}
	
	theme = education
	left_portrait = {
		character = scope:child
		animation = flirtation
	}
	
	option = {
		name = child_personality.114.confirm_lustful
		custom_tooltip = child_personality.keeps_lustful_tt
		
		stress_impact = {
			lustful = minor_stress_loss
			lazy = minor_stress_loss
			arbitrary = minor_stress_loss
		}
		reverse_add_opinion = {
			modifier = pleased_opinion
			target = scope:child
			opinion = 10
		}
		ai_chance = {
			base = 100
			ai_value_modifier = {
				ai_sociability = 0.5
			}
		}
	}
	
	option = {
		name = child_personality.114.talk
		
		ai_chance = {
			base = 100
			modifier = {
				factor = 3
				OR = {
					has_trait = calm
					has_trait = compassionate
				}
			}
			ai_value_modifier = {
				ai_compassion = 0.5
			}
		}
		
		stress_impact = {
			base = child_trait_change_stress_penalty
			calm = minor_stress_loss
			patient = minor_stress_loss
			compassionate = medium_stress_loss
			sadistic = minor_stress_gain
			chaste = minor_stress_gain
		}
		
		random_list = {
			40 = {
				modifier = {
					factor = 0.4
					root.diplomacy >= medium_skill_rating
				}
				desc = child_personality.stay_tt
				send_interface_toast = {
					title = child_personality.stay_tt
					left_icon = scope:child
				}
			}
			60 = {
				desc = child_personality.neutral_tt
				reverse_add_opinion = {
					modifier = pleased_opinion
					target = scope:child
					opinion = 15
				}
				send_interface_toast = {
					title = child_personality.neutral_tt
					left_icon = scope:child
					scope:child = {
						remove_trait = lustful
						add_diplomacy_skill = 1
					}
				}
			}		
		}
	}
	
	option = {
		name = child_personality.114.crit_alt
		custom_tooltip = child_personality.114.crit_tt
		ai_chance = {
			base = 100
			ai_value_modifier = {
				ai_compassion = -0.5
			}
			modifier = {
				factor = 3
				OR = {
					has_trait = callous
					has_trait = sadistic
				}
			}
			modifier = {
				factor = 0
				OR = {
					has_trait = compassionate
				}
			}
		}
		
		reverse_add_opinion = {
    		modifier = disappointed_opinion
    		target = scope:child
    		opinion = -25
    	}
		
		stress_impact = {
			base = child_trait_change_stress_penalty
			compassionate = medium_stress_gain
			callous = medium_stress_loss
			sadistic = medium_stress_loss
			chaste = minor_stress_loss
		}
		
		random_list = {	
			50 = {
				modifier = {
					factor = 4
					scope:child = { has_trait = stubborn }
				}
				desc = child_personality.stay_tt
				send_interface_toast = {
					title = child_personality.stay_tt
					left_icon = scope:child
				}
			}
			
			50 = {
				desc = child_personality.disdain_tt
				scope:child = {
					remove_trait = lustful
				}
				if = {
					limit = {
						scope:child = {
							has_trait = arrogant
							OR = {
								has_trait = wrathful
								has_trait = calm
							}
						}
					}
					send_interface_toast = {
						title = child_personality.disdain_tt
						left_icon = scope:child
						scope:child = {
							add_diplomacy_skill = -1
						}
					}
				}
				else_if = {
					limit = {
						scope:child = {
							has_trait = arrogant
						}
					}
					send_interface_toast = {
						title = child_personality.disdain_tt
						left_icon = scope:child
						scope:child = {
							add_trait_force_tooltip = wrathful
						}
					}
				}
				else = {
					send_interface_toast = {
						title = child_personality.disdain_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = humble
							add_trait_force_tooltip = arrogant
						}
					}
				}
			}
		}
	}
}

#Child has become compassionate
child_personality.1143 = {
	type = character_event
	title = child_personality.1143.t
	desc = {
		desc = my_ward_or_child
		desc = child_personality.1143.desc
	}
	
	theme = education
	left_portrait = {
		character = scope:child
		animation = personality_compassionate
	}
	
	option = {
		name = child_personality.114.confirm_compassionate
		if = {
			limit = {
				scope:child = { has_trait = compassionate }
			}
			custom_tooltip = child_personality.keeps_compassionate_tt
		}
		else = {
			scope:child = {
				add_trait_force_tooltip = compassionate
			}
		}
		stress_impact = {
			compassionate = medium_stress_loss
			callous = minor_stress_gain
			arrogant = minor_stress_gain
			sadistic = medium_stress_gain
			humble = minor_stress_loss
		}
		reverse_add_opinion = {
			modifier = pleased_opinion
			target = scope:child
			opinion = 10
		}
		ai_chance = {
			base = 100
			ai_value_modifier = {
				ai_compassion = 0.5
			}
			modifier = {
				factor = 3
				has_trait = compassionate
			}
		}
	}
	
	option = {
		name = child_personality.114.talk_alt
		custom_tooltip = child_personality.114.talk_alt_tt
		ai_chance = {
			base = 100
			modifier = {
				factor = 3
				OR = {
					has_trait = calm
					has_trait = just
				}
			}
			ai_value_modifier = {
				ai_compassion = 0.5
				ai_rationality = 0.5
			}
		}
		
		stress_impact = {
			base = child_trait_change_stress_penalty
			calm = minor_stress_loss
			patient = minor_stress_loss
			compassionate = minor_stress_loss
			just = minor_stress_loss
		}
		
		random_list = {
			40 = {
				modifier = {
					factor = 0.4
					root.diplomacy >= medium_skill_rating
				}
				desc = child_personality.stay_tt
				send_interface_toast = {
					title = child_personality.stay_tt
					left_icon = scope:child
				}
			}
			60 = {
				modifier = {
					factor = 0.5
					scope:child = {
						has_trait = compassionate
					}
				}
				desc = child_personality.neutral_tt
				if = {
					limit = {
						scope:child = {
							has_trait = compassionate
						}
					}
					send_interface_toast = {
						title = child_personality.neutral_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = compassionate
							add_diplomacy_skill = 1
						}
					}
				}
				else = {
					send_interface_toast = {
						title = child_personality.neutral_tt
						left_icon = scope:child
						scope:child = {
							add_diplomacy_skill = 1
							add_learning_skill = 1
						}
					}
				}
			}		
		}
	}
	
	
	option = {
		name = child_personality.114.high
		stress_impact = {
			base = child_trait_change_stress_penalty
			arrogant = medium_stress_loss
			compassionate = minor_stress_gain
			humble = minor_stress_gain
			ambitious = minor_stress_loss
			content = minor_stress_gain
			just = minor_stress_gain
		}

		random_list = {
			50 = {
				modifier = {
					factor = 0.4
					root.diplomacy >= medium_skill_rating
				}
				desc = child_personality.stay_tt
				send_interface_toast = {
					title = child_personality.stay_tt
					left_icon = scope:child
				}
			}
			100 = {
				desc = child_personality.under_tt
				modifier = {
					factor = 0.3
					scope:child = {
						OR = {
							has_trait = compassionate
						}
					}
				}
				if = {
					limit = {
						scope:child = {
							NOR = {
								has_trait = humble
								has_trait = arrogant
							}
						}
					}
					send_interface_toast = {
						title = child_personality.under_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = compassionate
							add_trait_force_tooltip = arrogant
						}
					}
				}
				else_if = {
					limit = {
						scope:child = {
							has_trait = arrogant
						}
					}
					send_interface_toast = {
						title = child_personality.under_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = compassionate
							add_diplomacy_skill = 1
						}
					}
				}
				else = {
					send_interface_toast = {
						title = child_personality.under_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = humble
							add_intrigue_skill = 1
						}
					}
				}
			}
			50 = {
				desc = child_personality.punder_tt
				send_interface_toast = {
					title = child_personality.punder_tt
					left_icon = scope:child
					scope:child = {
						add_intrigue_skill = 1
					}
				}
			}	
		}
			
		ai_chance = {
			base = 100
			ai_value_modifier = {
				ai_rationality = -0.3
				ai_greed = 0.3
				ai_honor = -0.2
			}
			modifier = {
				factor = 3
				has_trait = arrogant
			}
		}
	}
	
	option = {
		name = child_personality.114.low
		stress_impact = {
			base = child_trait_change_stress_penalty
			compassionate = medium_stress_gain
			callous = minor_stress_loss
			sadistic = minor_stress_loss
		}
		reverse_add_opinion = {
			modifier = disappointed_opinion
			target = scope:child
			opinion = -10
		}
		random_list = {
			50 = {
				modifier = {
					factor = 0.4
					root.diplomacy >= medium_skill_rating
				}
				desc = child_personality.stay_tt
				send_interface_toast = {
					title = child_personality.stay_tt
					left_icon = scope:child
				}
			}
			100 = {
				desc = child_personality.mall_tt
				modifier = {
					factor = 0.3
					scope:child = {
						OR = {
							has_trait = ambitious
							has_trait = arrogant
						}
					}
				}
				if = {
					limit = {
						scope:child = {
							NOR = {
								has_trait = content
								has_trait = ambitious
							}
						}
					}
					send_interface_toast = {
						title = child_personality.mall_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = compassionate
							add_trait_force_tooltip = content
						}
					}
				}
				else_if = {
					limit = {
						scope:child = {
							has_trait = compassionate
						}
					}
					send_interface_toast = {
						title = child_personality.mall_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = compassionate
							add_diplomacy_skill = 1
							add_stewardship_skill = 1
						}
					}
				}
				else = {
					send_interface_toast = {
						title = child_personality.mall_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = ambitious
							add_diplomacy_skill = 1
							add_stewardship_skill = 1
						}
					}
				}
			}
		}
			
		ai_chance = {
			base = 100
			ai_value_modifier = {
				ai_rationality = 0.5
				ai_honor = -0.5
			}
			modifier = {
				factor = 0
				scope:child = {
					is_heir_of = root
				}
			}
			modifier = {
				factor = 3
				has_trait = callous
			}
		}
	}
}

#Child has become callous
child_personality.1144 = {
	type = character_event
	title = child_personality.1144.t
	desc = {
		desc = my_ward_or_child
		desc = child_personality.1144.desc
	}
	
	theme = education
	left_portrait = {
		character = scope:child
		animation = personality_dismissal
	}
	
	option = {
		name = child_personality.114.confirm_compassionate
		if = {
			limit = {
				scope:child = { has_trait = compassionate }
			}
			custom_tooltip = child_personality.keeps_callous_tt
		}
		else = {
			scope:child = {
				add_trait_force_tooltip = callous
			}
		}
		stress_impact = {
			compassionate = medium_stress_gain
			callous = minor_stress_loss
			arrogant = minor_stress_loss
			calm = minor_stress_loss
			wrathful = minor_stress_gain
		}
		reverse_add_opinion = {
			modifier = pleased_opinion
			target = scope:child
			opinion = 5
		}
		ai_chance = {
			base = 100
			ai_value_modifier = {
				ai_rationality = 0.5
				ai_compassion = -0.5
			}
			modifier = {
				factor = 3
				has_trait = callous
			}
		}
	}
	
	option = {
		name = child_personality.114.talk_alt_alt
		ai_chance = {
			base = 100
			modifier = {
				factor = 3
				OR = {
					has_trait = compassionate
				}
			}
			ai_value_modifier = {
				ai_compassion = 0.5
				ai_rationality = 0.5
			}
		}
		
		stress_impact = {
			base = child_trait_change_stress_penalty
			calm = minor_stress_loss
			patient = minor_stress_loss
			compassionate = medium_stress_loss
			just = minor_stress_loss
			callous = minor_stress_gain
			sadistic = minor_stress_gain
		}
		
		random_list = {
			40 = {
				modifier = {
					factor = 0.4
					root.diplomacy >= medium_skill_rating
				}
				desc = child_personality.stay_tt
				send_interface_toast = {
					title = child_personality.stay_tt
					left_icon = scope:child
				}
			}
			60 = {
				modifier = {
					factor = 0.2
					scope:child = {
						has_trait = callous
					}
				}
				desc = child_personality.neutral_tt
				if = {
					limit = {
						scope:child = {
							has_trait = callous
						}
					}
					send_interface_toast = {
						title = child_personality.neutral_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = callous
							add_intrigue_skill = 1
						}
					}
				}
				else = {
					send_interface_toast = {
						title = child_personality.neutral_tt
						left_icon = scope:child
						scope:child = {
							add_intrigue_skill = 1
							add_learning_skill = 1
						}
					}
				}
			}		
		}
	}
	
	option = {
		name = child_personality.114.shake_alt
		custom_tooltip = child_personality.114.shake_tt
		
		ai_chance = {
			base = 100
			modifier = {
				factor = 3
				OR = {
					has_trait = impatient
					has_trait = arbitrary
				}
			}
			ai_value_modifier = {
				ai_sociability = 0.7
			}
		}
		
		stress_impact = {
			base = child_trait_change_stress_penalty
			impatient = minor_stress_loss
			gregarious = minor_stress_loss
			arbitrary = minor_stress_loss
			sadistic = minor_stress_gain
		}
		
		random_list = {
			25 = {
				modifier = {
					factor = 0.1
					scope:child = {
						OR = {
							has_trait = chaste
							has_trait = callous
						}
					}
				}
				reverse_add_opinion = {
					modifier = pleased_opinion
					target = scope:child
					opinion = 15
				}
				desc = child_personality.114.plusplus
				send_interface_toast = {
					title = child_personality.114.plusplus
					left_icon = scope:child
					scope:child = {
						remove_trait = callous
						remove_trait = chaste
						add_trait_force_tooltip = lustful
					}
				}
			}
			50 = {
				desc = child_personality.114.plus
				reverse_add_opinion = {
					modifier = pleased_opinion
					target = scope:child
					opinion = 15
				}
				modifier = {
					factor = 0.5
					scope:child = {
						has_trait = callous
					}
				}
				if = {
					limit = {
						scope:child = { has_trait = shy }
					}
					send_interface_toast = {
						title = child_personality.114.plus
						left_icon = scope:child
						scope:child = {
							remove_trait = shy
							add_diplomacy_skill = 1
						}
					}
				}
				else_if = {
					limit = {
						scope:child = { has_trait = gregarious }
					}
					send_interface_toast = {
						title = child_personality.114.plus
						left_icon = scope:child
						scope:child = {
							remove_trait = callous
							add_diplomacy_skill = 1
						}
					}
				}
				else = {
					send_interface_toast = {
						title = child_personality.114.plus
						left_icon = scope:child
						scope:child = {
							remove_trait = callous
							add_trait_force_tooltip = gregarious
						}
					}
				}
			}
			50 = {
				desc = child_personality.114.minus
				send_interface_toast = {
					title = child_personality.114.minus
					left_icon = scope:child
				}
			}
			25 = {
				desc = child_personality.114.minusminus
				modifier = {
					factor = 0.4
					OR = {
						root.diplomacy >= medium_skill_rating
						root.intrigue >= medium_skill_rating
					}
				}
				reverse_add_opinion = {
					modifier = disappointed_opinion
					target = scope:child
					opinion = -15
				}
				if = {
					limit = {
						scope:child = { has_trait = gregarious }
					}
					send_interface_toast = {
						title = child_personality.114.minusminus
						left_icon = scope:child
						scope:child = {
							remove_trait = gregarious
						}
					}
				}
				else_if = {
					limit = {
						scope:child = { has_trait = shy }
					}
					send_interface_toast = {
						title = child_personality.114.minusminus
						left_icon = scope:child
						scope:child = {
							add_diplomacy_skill = -2
						}
					}
				}
				else = {
					send_interface_toast = {
						title = child_personality.114.minusminus
						left_icon = scope:child
						scope:child = {
							add_trait_force_tooltip = shy
						}
					}
				}
			}
		}
	}
	
	option = {
		name = child_personality.114.crit_alt_alt
		custom_tooltip = child_personality.114.crit_tt
		ai_chance = {
			base = 100
			ai_value_modifier = {
				ai_compassion = -0.5
			}
			modifier = {
				factor = 3
				OR = {
					has_trait = callous
					has_trait = sadistic
				}
			}
			modifier = {
				factor = 0
				OR = {
					has_trait = compassionate
				}
			}
		}
		
		reverse_add_opinion = {
    		modifier = disappointed_opinion
    		target = scope:child
    		opinion = -15
    	}
		
		stress_impact = {
			base = child_trait_change_stress_penalty
			compassionate = medium_stress_gain
			sadistic = medium_stress_loss
			wrathful = medium_stress_loss
		}
		
		random_list = {	
			25 = {
				modifier = {
					factor = 4
					scope:child = { has_trait = stubborn }
				}
				desc = child_personality.stay_tt
				send_interface_toast = {
					title = child_personality.stay_tt
					left_icon = scope:child
				}
			}
			
			50 = {
				desc = child_personality.close_tt
				if = {
					limit = {
						scope:child = {
							NOR = {
								has_trait = shy
								has_trait = gregarious
							}
						}
					}
					send_interface_toast = {
						title = child_personality.close_tt
						left_icon = scope:child
						scope:child = {
							add_trait_force_tooltip = shy
						}
					}
				}
				else_if = {
					limit = {
						scope:child = {
							NOT = {
								has_trait = shy
							}
						}
					}
					send_interface_toast = {
						title = child_personality.close_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = gregarious
						}
					}
				}
				else = {
					send_interface_toast = {
						title = child_personality.close_tt
						left_icon = scope:child
						scope:child = {
							add_diplomacy_skill = -2
						}
					}
				}
			}
			
			50 = {
				desc = child_personality.disdain_tt
				scope:child = {
					remove_trait = callous
				}
				if = {
					limit = {
						scope:child = {
							has_trait = arrogant
							OR = {
								has_trait = wrathful
								has_trait = calm
							}
						}
					}
					send_interface_toast = {
						title = child_personality.disdain_tt
						left_icon = scope:child
						scope:child = {
							add_diplomacy_skill = -1
						}
					}
				}
				else_if = {
					limit = {
						scope:child = {
							has_trait = arrogant
						}
					}
					send_interface_toast = {
						title = child_personality.disdain_tt
						left_icon = scope:child
						scope:child = {
							add_trait_force_tooltip = wrathful
						}
					}
				}
				else = {
					send_interface_toast = {
						title = child_personality.disdain_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = humble
							add_trait_force_tooltip = arrogant
						}
					}
				}
			}
		}
	}
}

#Responses to Tales Events
#0015

#Child has demonstrated overreliance
child_personality.1151 = {
	type = character_event
	title = child_personality.1151.t
	desc = {
		desc = my_ward_or_child
		desc = child_personality.1151.desc
	}
	theme = education
	left_portrait = {
		character = scope:child
		animation = personality_compassionate
	}
	
	option = {
		name = child_personality.115.confirm_trusting
		custom_tooltip = child_personality.keeps_trusting_tt
		reverse_add_opinion = {
    		modifier = pleased_opinion
    		target = scope:child
    		opinion = 10
    	}
		stress_impact = {
			base = minor_stress_loss
			paranoid = medium_stress_gain
			compassionate = minor_stress_loss
			trusting = minor_stress_loss
		}
		random_list = {
			50 = { 
				desc = child_personality.115.plus
				send_interface_toast = {
					title = child_personality.115.plus
					scope:child = {
						add_learning_skill = 1
					}
					left_icon = scope:child
				}
			}
			50 = {
				desc = child_personality.115.minus
				send_interface_toast = {
					title = child_personality.115.minus
					left_icon = scope:child
					scope:child = {
						add_diplomacy_skill = 1
						add_intrigue_skill = -2
					}
				}
			}
		}
		ai_chance = {
			base = 100
			ai_value_modifier = {
				ai_rationality = -0.5
				ai_honor = 0.2
			}
			modifier = {
				factor = 3
				has_trait = trusting
			}
		}
	}
	
	
	option = {
		name = child_personality.115.limit
		custom_tooltip = child_personality.115.limit_tt
		ai_chance = {
			base = 100
			ai_value_modifier = {
				ai_rationality = 0.5
				ai_honor = -0.2
			}
			modifier = {
				factor = 3
				has_trait = deceitful
			}
		}
		
		stress_impact = {
			base = child_trait_change_stress_penalty
			paranoid = minor_stress_loss
			deceitful = minor_stress_loss
			calm = minor_stress_loss
		}
		
		random_list = {
			50 = {
				desc = child_personality.stay_tt
				send_interface_toast = {
					title = child_personality.stay_tt
					left_icon = scope:child
				}
			}
			50 = { 
				desc = child_personality.under_tt
				modifier = {
					factor = 3
					OR = {
						root.diplomacy >= medium_skill_rating
						root.intrigue >= medium_skill_rating
					}
				}
				send_interface_toast = {
					title = child_personality.under_tt
					left_icon = scope:child
					scope:child = {
						remove_trait = trusting
						add_intrigue_skill = 2
						add_learning_skill = 2
					}
				}
			}
			50 = {
				desc = child_personality.punder_tt
				send_interface_toast = {
					title = child_personality.punder_tt
					left_icon = scope:child
					scope:child = {
						add_diplomacy_skill = 1
						add_intrigue_skill = 1
					}
				}
			}
		}
	}
	
	option = {
		name = child_personality.115.dangers
		custom_tooltip = child_personality.115.dangers_tt
		ai_chance = {
			base = 100
			ai_value_modifier = {
				ai_rationality = -0.5
				ai_honor = -0.2
			}
			modifier = {
				factor = 3
				has_trait = paranoid
			}
		}
		
		stress_impact = {
			base = child_trait_change_stress_penalty
			paranoid = medium_stress_loss
			deceitful = minor_stress_loss
			arbitrary = minor_stress_loss
		}
		
		random_list = {
			100 = {
				desc = child_personality.stay_tt
				send_interface_toast = {
					title = child_personality.stay_tt
					left_icon = scope:child
				}
			}
			50 = { 
				desc = child_personality.115.oneeighty
				modifier = {
					factor = 3
					OR = {
						root.diplomacy >= medium_skill_rating
						root.intrigue >= medium_skill_rating
					}
				}
				send_interface_toast = {
					title = child_personality.115.oneeighty
					left_icon = scope:child
					scope:child = {
						remove_trait = trusting
						add_trait_force_tooltip = paranoid
					}
				}
			}
			50 = {
				desc = child_personality.115.ninety
				send_interface_toast = {
					title = child_personality.115.ninety
					left_icon = scope:child
					scope:child = {
						remove_trait = trusting
						add_intrigue_skill = 2
					}
				}
			}
		}
	}
	
	option = {
		name = child_personality.115.low
		custom_tooltip = child_personality.112.no_tt
		ai_chance = {
			base = 100
			ai_value_modifier = {
				ai_compassion = -1
			}
			modifier = {
				factor = 3
				OR = {
					has_trait = callous
					has_trait = sadistic
					has_trait = arrogant
				}
			}
			modifier = {
				factor = 0
				OR = {
					has_trait = compassionate
				}
			}
		}
		
		stress_impact = {
			base = child_trait_change_stress_penalty
			wrathful = minor_stress_loss
			arrogant = major_stress_loss
			sadistic = medium_stress_loss
		}
		
		random_list = {
			50 = { 
				desc = child_personality.stay_tt
				reverse_add_opinion = {
					modifier = disappointed_opinion
					target = scope:child
					opinion = -10
				}
				send_interface_toast = {
					title = child_personality.stay_tt
					left_icon = scope:child
				}
			}
			100 = {
				desc = child_personality.fearful_tt
				modifier = {
					factor = 0.1
					scope:child = {
						OR = {
							has_trait = brave
						}
					}
				}
				
				reverse_add_opinion = {
					modifier = scared_opinion
					target = scope:child
					opinion = -30
				}
				
				scope:child = {
					remove_trait = trusting
				}
				
				if = {
					limit = {
						scope:child = {
							has_trait = brave
						}
					}
					send_interface_toast = {
						title = child_personality.fearful_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = brave
						}
					}
				}
				else_if = {
					limit = {
						scope:child = {
							has_trait = craven
						}
					}
					send_interface_toast = {
						title = child_personality.fearful_tt
						left_icon = scope:child
						scope:child = {
							add_diplomacy_skill = -1
							add_learning_skill = -2
						}
					}
				}
				else = {
					send_interface_toast = {
						title = child_personality.fearful_tt
						left_icon = scope:child
						scope:child = {
							add_trait = craven
						}
					}
				}
			}
			50 = { 
				desc = child_personality.respect_tt
				scope:child = {
					remove_trait = trusting
				}
				reverse_add_opinion = {
					modifier = respect_opinion
					target = scope:child
					opinion = 20
				}
				send_interface_toast = {
					title = child_personality.respect_tt
					left_icon = scope:child
					scope:child = {
						add_learning_skill = -1
					}
				}
			}
		}
	}
}

#Child has demonstrated talking a lot
child_personality.1152 = {
	type = character_event
	title = child_personality.1152.t
	desc = {
		desc = my_ward_or_child
		desc = child_personality.1152.desc
	}
	theme = education
	left_portrait = {
		character = scope:child
		animation = admiration
	}
	
	option = {
		name = child_personality.115.confirm_talk
		custom_tooltip = child_personality.stay_tt
		reverse_add_opinion = {
    		modifier = pleased_opinion
    		target = scope:child
    		opinion = 20
    	}
		stress_impact = {
			honest = minor_stress_gain
			compassionate = minor_stress_loss
			trusting = minor_stress_loss
			gregarious = minor_stress_loss
		}
		ai_chance = {
			base = 100
			ai_value_modifier = {
				ai_sociability = 0.7
			}
			modifier = {
				factor = 3
				has_trait = gregarious
			}
		}
	}
	
	
	option = {
		name = child_personality.115.facts
		trigger = {
			scope:child = { NOT = { has_trait = honest } }
		}
		ai_chance = {
			base = 100
			ai_value_modifier = {
				ai_honor = 0.7
			}
			modifier = {
				factor = 3
				has_trait = honest
			}
		}
		
		stress_impact = {
			base = child_trait_change_stress_penalty
			honest = medium_stress_loss
			deceitful = minor_stress_gain
		}
		
		random_list = {
			50 = {
				desc = child_personality.stay_tt
				send_interface_toast = {
					title = child_personality.stay_tt
					left_icon = scope:child
				}
			}
			50 = { 
				desc = child_personality.under_tt
				modifier = {
					factor = 3
					OR = {
						root.diplomacy >= medium_skill_rating
						root.intrigue >= medium_skill_rating
					}
				}
				modifier = {
					factor = 0.2
					scope:child = {
						has_trait = deceitful
					}
				}
				if = {
					limit = {
						scope:child = { has_trait = deceitful }
					}
					send_interface_toast = {
						title = child_personality.under_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = deceitful
							add_diplomacy_skill = 1
							add_learning_skill = 2
						}
					}
				}
				else = {
					send_interface_toast = {
						title = child_personality.under_tt
						left_icon = scope:child
						scope:child = {
							add_trait = honest
						}
					}
				}
			}
			50 = {
				desc = child_personality.punder_tt
				send_interface_toast = {
					title = child_personality.punder_tt
					left_icon = scope:child
					scope:child = {
						add_diplomacy_skill = 1
						add_intrigue_skill = -1
					}
				}
			}
		}
	}
	
	option = {
		name = child_personality.115.no
		ai_chance = {
			base = 100
			ai_value_modifier = {
				ai_rationality = 0.5
				ai_sociability = -0.2
			}
			modifier = {
				factor = 3
				has_trait = calm
			}
		}
		reverse_add_opinion = {
    		modifier = disappointed_opinion
    		target = scope:child
    		opinion = -10
    	}
		stress_impact = {
			base = child_trait_change_stress_penalty
			gregarious = medium_stress_gain
			callous = minor_stress_loss
			calm = minor_stress_loss
		}
		
		random_list = {
			50 = {
				desc = child_personality.stay_tt
				modifier = {
					factor = 3
					scope:child = {
						OR = {
							has_trait = honest
							has_trait = stubborn
						}
					}
				}
				send_interface_toast = {
					title = child_personality.stay_tt
					left_icon = scope:child
				}
			}
			50 = { 
				desc = child_personality.restrict_tt
				modifier = {
					factor = 2
					OR = {
						root.diplomacy >= medium_skill_rating
						root.intrigue >= medium_skill_rating
					}
				}
				if = {
					limit = {
						scope:child = { 
							AND = {
								has_trait = wrathful 
								has_trait = deceitful
								NOR = { 
									has_trait = forgiving 
									has_trait = vengeful
								}
							}
						}
					}
					send_interface_toast = {
						title = child_personality.restrict_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = wrathful
							remove_trait = deceitful
							add_trait_force_tooltip = vengeful
						}
					}
				}
				else_if = {
					limit = {
						scope:child = { 
							AND = {
								has_trait = wrathful 
								has_trait = deceitful
							}
						}
					}
					send_interface_toast = {
						title = child_personality.restrict_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = deceitful
							add_diplomacy_skill = 1
							add_learning_skill = 1
						}
					}
				}
				else_if = {
					limit = {
						scope:child = { 
							has_trait = wrathful 
						}
					}
					send_interface_toast = {
						title = child_personality.restrict_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = wrathful
							add_diplomacy_skill = 1
							add_learning_skill = 1
						}
					}
				}
				else_if = {
					limit = {
						scope:child = { 
							AND = {
								has_trait = calm
								has_trait = deceitful
							}
						}
					}
					send_interface_toast = {
						title = child_personality.restrict_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = deceitful
							add_diplomacy_skill = 1
							add_learning_skill = 1
						}
					}
				}
				else_if = {
					limit = {
						scope:child = { 
							AND = {
								has_trait = calm
								has_trait = gregarious
							}
						}
					}
					send_interface_toast = {
						title = child_personality.restrict_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = gregarious
							add_diplomacy_skill = 1
							add_learning_skill = 1
						}
					}
				}
				else_if = {
					limit = {
						scope:child = { 
							has_trait = gregarious
						}
					}
					send_interface_toast = {
						title = child_personality.restrict_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = gregarious
							add_trait = calm
						}
					}
				}
				else = {
					send_interface_toast = {
						title = child_personality.restrict_tt
						left_icon = scope:child
						scope:child = {
							add_trait = calm
						}
					}
				}
			}
			50 = {
				desc = child_personality.mask_tt
				modifier = {
					factor = 3
					scope:child = {
						has_trait = deceitful
					}
				}
				if = {
					limit = {
						scope:child = {
							AND = {
								has_trait = deceitful
								has_trait = gregarious
							}
						}
					}
					send_interface_toast = {
						title = child_personality.mask_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = gregarious
							add_intrigue_skill = 2
						}
					}
				}
				else_if = {
					limit = {
						scope:child = {
							has_trait = deceitful
						}
					}
					send_interface_toast = {
						title = child_personality.mask_tt
						left_icon = scope:child
						scope:child = {
							add_diplomacy_skill = -1
							add_intrigue_skill = 2
						}
					}
				}
				else_if = {
					limit = {
						scope:child = {
							AND = {
								has_trait = honest
								has_trait = gregarious
							}
						}
					}
					send_interface_toast = {
						title = child_personality.mask_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = gregarious
							add_trait_force_tooltip = shy 
						}
					}
				}
				else = {
					send_interface_toast = {
						title = child_personality.mask_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = gregarious
							add_trait_force_tooltip = deceitful
						}
					}
				}
			}
		}
	}
	
	option = {
		name = child_personality.115.curb
		ai_chance = {
			base = 100
			ai_value_modifier = {
				ai_compassion = -0.5
				ai_honor = -0.5
			}
			modifier = {
				factor = 3
				OR = {
					has_trait = wrathful
					has_trait = sadistic
					has_trait = arrogant
				}
			}
			modifier = {
				factor = 0
				OR = {
					has_trait = compassionate
				}
			}
		}
		
		stress_impact = {
			base = child_trait_change_stress_penalty
			wrathful = medium_stress_loss
			arrogant = medium_stress_loss
			sadistic = medium_stress_loss
		}
		
		reverse_add_opinion = {
			modifier = scared_opinion
			target = scope:child
			opinion = -20
		}
		random_list = {
			50 = { 
				desc = child_personality.stay_tt
				send_interface_toast = {
					title = child_personality.stay_tt
					left_icon = scope:child
				}
			}
			100 = {
				desc = child_personality.fearful_tt
				modifier = {
					factor = 0.1
					scope:child = {
						OR = {
							has_trait = brave
						}
					}
				}
				
				if = {
					limit = {
						scope:child = {
							has_trait = brave
						}
					}
					send_interface_toast = {
						title = child_personality.fearful_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = brave
						}
					}
				}
				else_if = {
					limit = {
						scope:child = {
							has_trait = craven
						}
					}
					send_interface_toast = {
						title = child_personality.fearful_tt
						left_icon = scope:child
						scope:child = {
							add_diplomacy_skill = -1
							add_learning_skill = -2
						}
					}
				}
				else = {
					send_interface_toast = {
						title = child_personality.fearful_tt
						left_icon = scope:child
						scope:child = {
							add_trait = craven
						}
					}
				}
			}
			50 = { 
				desc = child_personality.close_tt
				if = {
					limit = {
						scope:child = {
							NOR = {
								has_trait = shy
								has_trait = gregarious
							}
						}
					}
					send_interface_toast = {
						title = child_personality.close_tt
						left_icon = scope:child
						scope:child = {
							add_trait_force_tooltip = shy
						}
					}
				}
				else_if = {
					limit = {
						scope:child = {
							NOT = {
								has_trait = shy
							}
						}
					}
					send_interface_toast = {
						title = child_personality.close_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = gregarious
						}
					}
				}
				else = {
					send_interface_toast = {
						title = child_personality.close_tt
						left_icon = scope:child
						scope:child = {
							add_diplomacy_skill = -2
						}
					}
				}
			}
		}
	}
}

#Child has demonstrated aloof directness
child_personality.1153 = {
	type = character_event
	title = child_personality.1153.t
	desc = {
		desc = my_ward_or_child
		desc = child_personality.1153.desc
	}
	theme = education
	left_portrait = {
		character = scope:child
		animation = disapproval
	}
	
	option = {
		name = child_personality.115.confirm_notalk
		custom_tooltip = child_personality.stay_tt
		reverse_add_opinion = {
    		modifier = pleased_opinion
    		target = scope:child
    		opinion = 10
    	}
		stress_impact = {
			honest = minor_stress_loss
			compassionate = minor_stress_loss
			deceitful = minor_stress_gain
			arrogant = minor_stress_gain
			humble = minor_stress_loss
		}
		ai_chance = {
			base = 100
			ai_value_modifier = {
				ai_sociability = -0.5
			}
			modifier = {
				factor = 3
				OR = {
					has_trait = honest
					has_trait = shy
				}
			}
		}
	}
	
	
	option = {
		name = child_personality.115.out

		ai_chance = {
			base = 100
			ai_value_modifier = {
				ai_sociability = 0.7
			}
			modifier = {
				factor = 3
				has_trait = gregarious
			}
		}
		
		stress_impact = {
			base = child_trait_change_stress_penalty
			gregarious = medium_stress_loss
			compassionate = minor_stress_loss
			callous = minor_stress_gain
			sadistic = minor_stress_gain
		}
		
		random_list = {
			50 = {
				desc = child_personality.stay_tt
				send_interface_toast = {
					title = child_personality.stay_tt
					left_icon = scope:child
				}
			}
			50 = {
				desc = child_personality.under_tt
				modifier = {
					factor = 3
					OR = {
						root.diplomacy >= medium_skill_rating
						root.intrigue >= medium_skill_rating
					}
				}
				modifier = {
					factor = 0.5
					scope:child = {
						has_trait = shy
					}
				}
				reverse_add_opinion = {
					modifier = pleased_opinion
					target = scope:child
					opinion = 20
				}
				if = {
					limit = {
						scope:child = { has_trait = shy }
					}
					send_interface_toast = {
						title = child_personality.under_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = shy
							add_diplomacy_skill = 1
							add_learning_skill = 1
						}
					}
				}
				else = {
					send_interface_toast = {
						title = child_personality.under_tt
						left_icon = scope:child
						scope:child = {
							add_trait = gregarious
						}
					}
				}
			}
			50 = {
				desc = child_personality.punder_tt
				send_interface_toast = {
					title = child_personality.punder_tt
					left_icon = scope:child
					scope:child = {
						add_diplomacy_skill = 1
						add_intrigue_skill = -1
					}
				}
			}
		}
	}
	
	option = {
		name = child_personality.115.mask
		ai_chance = {
			base = 100
			ai_value_modifier = {
				ai_rationality = 0.5
				ai_sociability = -0.2
			}
			modifier = {
				factor = 3
				OR = {
					has_trait = calm
					has_trait = deceitful
				}
			}
		}
		reverse_add_opinion = {
    		modifier = pleased_opinion
    		target = scope:child
    		opinion = -10
    	}
		stress_impact = {
			base = child_trait_change_stress_penalty
			gregarious = medium_stress_gain
			callous = minor_stress_loss
			calm = minor_stress_loss
		}
		
		random_list = {
			50 = {
				desc = child_personality.stay_tt

				send_interface_toast = {
					title = child_personality.stay_tt
					left_icon = scope:child
				}
			}
			50 = { 
				desc = child_personality.115.ninety
				modifier = {
					factor = 0.2
					scope:child = {
						OR = {
							has_trait = honest
							has_trait = stubborn
						}
					}
				}
				modifier = {
					factor = 3
					OR = {
						root.diplomacy >= medium_skill_rating
						root.intrigue >= medium_skill_rating
					}
				}
				if = {
					limit = {
						scope:child = { 
							has_trait = wrathful 
						}
					}
					send_interface_toast = {
						title = child_personality.115.ninety
						left_icon = scope:child
						scope:child = {
							remove_trait = wrathful
							add_trait = vengeful
							add_diplomacy_skill = 1
						}
					}
				}
				else_if = {
					limit = {
						scope:child = { 
							AND = {
								has_trait = calm
								has_trait = honest
							}
						}
					}
					send_interface_toast = {
						title = child_personality.115.ninety
						left_icon = scope:child
						scope:child = {
							remove_trait = honest
							add_diplomacy_skill = 1
							add_intrigue_skill = 1
						}
					}
				}
				else_if = {
					limit = {
						scope:child = { 
							AND = {
								has_trait = calm
							}
						}
					}
					send_interface_toast = {
						title = child_personality.115.ninety
						left_icon = scope:child
						scope:child = {
							add_diplomacy_skill = 1
							add_intrigue_skill = 2
						}
					}
				}
				else_if = {
					limit = {
						scope:child = { 
							has_trait = honest
						}
					}
					send_interface_toast = {
						title = child_personality.115.ninety
						left_icon = scope:child
						scope:child = {
							remove_trait = honest
							add_trait = calm
						}
					}
				}
				else = {
					send_interface_toast = {
						title = child_personality.115.ninety
						left_icon = scope:child
						scope:child = {
							add_trait = calm
						}
					}
				}
			}
			50 = {
				desc = child_personality.mask_tt
				modifier = {
					factor = 3
					scope:child = {
						has_trait = deceitful
					}
				}
				if = {
					limit = {
						scope:child = {
							has_trait = deceitful
						}
					}
					send_interface_toast = {
						title = child_personality.mask_tt
						left_icon = scope:child
						scope:child = {
							add_learning_skill = -1
							add_intrigue_skill = 1
							add_diplomacy_skill = 1
						}
					}
				}
				else_if = {
					limit = {
						scope:child = {
							has_trait = honest
							NOT = { has_trait = shy }
						}
					}
					send_interface_toast = {
						title = child_personality.mask_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = honest
							add_trait_force_tooltip = shy
						}
					}
				}
				else_if = {
					limit = {
						scope:child = {
							has_trait = honest
						}
					}
					send_interface_toast = {
						title = child_personality.mask_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = honest
							add_intrigue_skill = 2
						}
					}
				}
				else = {
					send_interface_toast = {
						title = child_personality.mask_tt
						left_icon = scope:child
						scope:child = {
							add_trait_force_tooltip = deceitful
						}
					}
				}
			}
		}
	}
	
	option = {
		name = child_personality.115.low_alt
		ai_chance = {
			base = 100
			ai_value_modifier = {
				ai_compassion = -0.5
				ai_honor = -0.5
			}
			modifier = {
				factor = 3
				OR = {
					has_trait = wrathful
					has_trait = sadistic
					has_trait = arrogant
				}
			}
			modifier = {
				factor = 0
				OR = {
					has_trait = compassionate
				}
			}
		}
		
		stress_impact = {
			base = child_trait_change_stress_penalty
			wrathful = medium_stress_loss
			arrogant = medium_stress_loss
			sadistic = medium_stress_loss
		}
		
		reverse_add_opinion = {
			modifier = scared_opinion
			target = scope:child
			opinion = -20
		}
		
		random_list = {
			50 = { 
				desc = child_personality.stay_tt
				send_interface_toast = {
					title = child_personality.stay_tt
					left_icon = scope:child
				}
			}
			100 = {
				desc = child_personality.fearful_tt
				modifier = {
					factor = 0.1
					scope:child = {
						OR = {
							has_trait = brave
						}
					}
				}
				
				if = {
					limit = {
						scope:child = {
							has_trait = brave
						}
					}
					send_interface_toast = {
						title = child_personality.fearful_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = brave
						}
					}
				}
				else_if = {
					limit = {
						scope:child = {
							has_trait = craven
						}
					}
					send_interface_toast = {
						title = child_personality.fearful_tt
						left_icon = scope:child
						scope:child = {
							add_diplomacy_skill = -1
							add_learning_skill = -2
						}
					}
				}
				else = {
					send_interface_toast = {
						title = child_personality.fearful_tt
						left_icon = scope:child
						scope:child = {
							add_trait = craven
						}
					}
				}
			}
			50 = { 
				desc = child_personality.close_tt
				if = {
					limit = {
						scope:child = {
							NOR = {
								has_trait = shy
								has_trait = gregarious
							}
						}
					}
					send_interface_toast = {
						title = child_personality.close_tt
						left_icon = scope:child
						scope:child = {
							add_trait_force_tooltip = shy
						}
					}
				}
				else_if = {
					limit = {
						scope:child = {
							NOT = {
								has_trait = shy
							}
						}
					}
					send_interface_toast = {
						title = child_personality.close_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = gregarious
						}
					}
				}
				else = {
					send_interface_toast = {
						title = child_personality.close_tt
						left_icon = scope:child
						scope:child = {
							add_diplomacy_skill = -2
						}
					}
				}
			}
		}
	}
}

#Child has demonstrated startlingness
child_personality.1154 = {
	type = character_event
	title = child_personality.1154.t
	desc = {
		desc = my_ward_or_child
		desc = child_personality.1154.desc
	}
	theme = education
	left_portrait = {
		character = scope:child
		animation = paranoia
	}
	
	option = {
		name = child_personality.115.confirm_paranoid
		custom_tooltip = child_personality.keeps_paranoid_tt
		reverse_add_opinion = {
    		modifier = pleased_opinion
    		target = scope:child
    		opinion = 15
    	}
		stress_impact = {
			compassionate = minor_stress_loss
			brave = minor_stress_gain
			trusting = minor_stress_loss
			paranoid = medium_stress_loss
		}
		ai_chance = {
			base = 100
			ai_value_modifier = {
				ai_sociability = -0.2
				ai_rationality = -0.4
				ai_compassion = 0.4
			}
			modifier = {
				factor = 3
				OR = {
					has_trait = paranoid
					has_trait = trusting
					has_trait = compassionate
				}
			}
		}
	}
	
	
	option = {
		name = child_personality.115.fear

		ai_chance = {
			base = 100
			ai_value_modifier = {
				ai_energy = 0.5
				ai_boldness = 0.5
			}
			modifier = {
				factor = 3
				has_trait = brave
			}
		}
		
		stress_impact = {
			base = child_trait_change_stress_penalty
			brave = medium_stress_loss
			craven = medium_stress_gain
			compassionate = minor_stress_loss
		}
		
		random_list = {
			50 = {
				desc = child_personality.fail_tt
				send_interface_toast = {
					title = child_personality.fail_tt
					left_icon = scope:child
					scope:child = {
						add_martial_skill = -1
						add_learning_skill = -1
					}
				}
			}
			50 = {
				desc = child_personality.under_tt
				modifier = {
					factor = 2
					OR = {
						root.diplomacy >= medium_skill_rating
						root.martial >= medium_skill_rating
					}
				}
				modifier = {
					factor = 0.2
					scope:child = {
						has_trait = craven
					}
				}
				reverse_add_opinion = {
					modifier = pleased_opinion
					target = scope:child
					opinion = 20
				}
				if = {
					limit = {
						scope:child = { has_trait = craven }
					}
					send_interface_toast = {
						title = child_personality.under_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = craven
							add_martial_skill = 1
							add_learning_skill = 1
						}
					}
				}
				else_if = {
					limit = {
						scope:child = { has_trait = brave }
					}
					send_interface_toast = {
						title = child_personality.under_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = paranoid
							add_intrigue_skill = 1
						}
					}
				}
				else = {
					send_interface_toast = {
						title = child_personality.under_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = paranoid
							add_trait = brave
						}
					}
				}
			}
			50 = {
				desc = child_personality.punder_tt
				send_interface_toast = {
					title = child_personality.punder_tt
					left_icon = scope:child
					scope:child = {
						add_martial_skill = 2
						add_intrigue_skill = -2
					}
				}
			}
		}
	}
	
	option = {
		name = child_personality.115.social
		custom_tooltip = child_personality.115.social_tt
		ai_chance = {
			base = 100
			ai_value_modifier = {
				ai_rationality = 0.4
				ai_sociability = 0.7
			}
			modifier = {
				factor = 3
				OR = {
					has_trait = gregarious
					has_trait = patient
					has_trait = compassionate
				}
			}
		}
		reverse_add_opinion = {
    		modifier = pleased_opinion
    		target = scope:child
    		opinion = -10
    	}
		stress_impact = {
			base = child_trait_change_stress_penalty
			gregarious = medium_stress_loss
			patient = medium_stress_loss
			compassionate = medium_stress_loss
		}
		
		random_list = {
			50 = {
				desc = child_personality.stay_tt

				send_interface_toast = {
					title = child_personality.stay_tt
					left_icon = scope:child
				}
			}
			50 = { 
				desc = child_personality.neutral_tt
				modifier = {
					factor = 3
					OR = {
						root.diplomacy >= medium_skill_rating
						root.intrigue >= medium_skill_rating
					}
				}
				send_interface_toast = {
					title = child_personality.neutral_tt
					left_icon = scope:child
					scope:child = {
						remove_trait = paranoid
						add_diplomacy_skill = 1
						add_intrigue_skill = 1
					}
				}	
			}
		}
	}
	
	option = {
		name = child_personality.115.curb_alt
		ai_chance = {
			base = 100
			ai_value_modifier = {
				ai_compassion = -0.5
				ai_honor = -0.5
			}
			modifier = {
				factor = 3
				OR = {
					has_trait = callous
					has_trait = sadistic
					has_trait = arrogant
				}
			}
			modifier = {
				factor = 0
				OR = {
					has_trait = compassionate
				}
			}
		}
		
		stress_impact = {
			base = child_trait_change_stress_penalty
			callous = medium_stress_loss
			arrogant = medium_stress_loss
			sadistic = medium_stress_loss
		}
		
		reverse_add_opinion = {
			modifier = disappointed_opinion
			target = scope:child
			opinion = -15
		}
		
		random_list = {
			50 = { 
				desc = child_personality.stay_tt
				send_interface_toast = {
					title = child_personality.stay_tt
					left_icon = scope:child
				}
			}
			100 = {
				desc = child_personality.close_tt
				if = {
					limit = {
						scope:child = {
							NOR = {
								has_trait = shy
								has_trait = gregarious
							}
						}
					}
					send_interface_toast = {
						title = child_personality.close_tt
						left_icon = scope:child
						scope:child = {
							add_trait_force_tooltip = shy
						}
					}
				}
				else_if = {
					limit = {
						scope:child = {
							NOT = {
								has_trait = shy
							}
						}
					}
					send_interface_toast = {
						title = child_personality.close_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = gregarious
						}
					}
				}
				else = {
					send_interface_toast = {
						title = child_personality.close_tt
						left_icon = scope:child
						scope:child = {
							add_diplomacy_skill = -2
						}
					}
				}
			}
			50 = {
				desc = child_personality.calmdir_tt
				modifier = {
					factor = 0.1
					scope:child = {
						OR = {
							has_trait = stubborn
						}
					}
				}
				send_interface_toast = {
					title = child_personality.calmdir_tt
					left_icon = scope:child
					scope:child = {
						remove_trait = paranoid
						add_diplomacy_skill = -1
						add_learning_skill = 1
					}
				}
			}
		}
	}
}

#Responses to Last Events
#0016

#Child has demonstrated noneating
child_personality.1161 = {
	type = character_event
	title = child_personality.1161.t
	desc = {
		first_valid = {
			triggered_desc = {
				trigger = {
					exists = scope:friend
				}
				desc = child_personality.1161.desc_friend
			}
			desc = child_personality.1161.desc_fallback
		}
	}
	theme = education
	left_portrait = {
		character = scope:child
		animation = personality_content
	}
	
	right_portrait = {
		character = scope:friend
		animation = sadness
	}
	
	override_background = {
		reference = feast
	}
	
	option = {
		name = child_personality.116.confirm_temperate
		custom_tooltip = child_personality.keeps_temperate_tt
		reverse_add_opinion = {
    		modifier = pleased_opinion
    		target = scope:child
    		opinion = 10
    	}
		stress_impact = {
			compassionate = minor_stress_loss
			temperate = minor_stress_loss
			generous = minor_stress_loss
			sadistic = minor_stress_gain
			callous = minor_stress_gain
			greedy = minor_stress_gain
		}
		ai_chance = {
			base = 100
			ai_value_modifier = {
				ai_greed = -0.5
				ai_compassion = 0.5
			}
		}
	}
	
	
	option = {
		name = child_personality.116.more

		ai_chance = {
			base = 100
			ai_value_modifier = {
				ai_greed = -1
				ai_compassion = 1
			}
			modifier = {
				factor = 3
				has_trait = generous
			}
		}
		
		stress_impact = {
			base = child_trait_change_stress_penalty
			compassionate = medium_stress_loss
			generous = medium_stress_loss
			sadistic = medium_stress_gain
			callous = medium_stress_gain
			greedy = medium_stress_gain
		}
		
		random_list = {
			50 = {
				desc = child_personality.stay_tt
				send_interface_toast = {
					title = child_personality.stay_tt
					left_icon = scope:child
				}
			}
			50 = {
				desc = child_personality.neutral_tt
				modifier = {
					factor = 3
					OR = {
						root.diplomacy >= medium_skill_rating
						root.stewardship >= medium_skill_rating
					}
				}
				modifier = {
					factor = 0.1
					scope:child = {
						OR = {
							has_trait = callous
							has_trait = greedy
							has_trait = sadistic
						}
					}
				}
				reverse_add_opinion = {
					modifier = pleased_opinion
					target = scope:child
					opinion = 10
				}
				if = {
					limit = {
						scope:child = { has_trait = greedy }
					}
					send_interface_toast = {
						title = child_personality.neutral_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = greedy
							add_diplomacy_skill = 1
						}
					}
				}
				else_if = {
					limit = {
						scope:child = { 
							AND = {
								has_trait = generous 
								has_trait = callous
							}
						}
					}
					send_interface_toast = {
						title = child_personality.neutral_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = callous
							add_diplomacy_skill = 1
						}
					}
				}
				else_if = {
					limit = {
						scope:child = { 
							AND = {
								has_trait = generous 
								has_trait = sadistic
							}
						}
					}
					send_interface_toast = {
						title = child_personality.neutral_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = sadistic
							add_diplomacy_skill = 1
						}
					}
				}
				else_if = {
					limit = {
						scope:child = { 
							AND = {
								has_trait = generous 
								has_trait = compassionate
							}
						}
					}
					send_interface_toast = {
						title = child_personality.neutral_tt
						left_icon = scope:child
						scope:child = {
							add_diplomacy_skill = 2
						}
					}
				}
				else_if = {
					limit = {
						scope:child = { 
							has_trait = generous 
						}
					}
					send_interface_toast = {
						title = child_personality.neutral_tt
						left_icon = scope:child
						scope:child = {
							add_trait = compassionate
						}
					}
				}
				else = {
					send_interface_toast = {
						title = child_personality.neutral_tt
						left_icon = scope:child
						scope:child = {
							add_trait = generous
						}
					}
				}
			}
		}
	}
	
	option = {
		name = child_personality.116.no
		custom_tooltip = child_personality.116.no_tt
		ai_chance = {
			base = 100
			ai_value_modifier = {
				ai_greed = 0.5
				ai_rationality = 0.5
			}
			modifier = {
				factor = 3
				OR = {
					has_trait = gluttonous
				}
			}
		}
		
		stress_impact = {
			base = child_trait_change_stress_penalty
			gluttonous = medium_stress_loss
			generous = minor_stress_gain
			greedy = minor_stress_loss
		}
		
		random_list = {
			50 = {
				desc = child_personality.stay_tt
				send_interface_toast = {
					title = child_personality.stay_tt
					left_icon = scope:child
				}
			}
			50 = { 
				desc = child_personality.under_tt
				modifier = {
					factor = 3
					OR = {
						root.diplomacy >= medium_skill_rating
						root.intrigue >= medium_skill_rating
					}
				}
				send_interface_toast = {
					title = child_personality.under_tt
					left_icon = scope:child
					scope:child = {
						remove_trait = temperate
						add_learning_skill = 1
						add_stewardship_skill = 1
					}
				}	
			}
			50 = {
				desc = child_personality.punder_tt
				send_interface_toast = {
					title = child_personality.punder_tt
					left_icon = scope:child
					scope:child = {
						add_learning_skill = 2
						add_stewardship_skill = -1
					}
				}
			}
		}
	}
	
	option = {
		name = child_personality.116.curb
		ai_chance = {
			base = 100
			ai_value_modifier = {
				ai_compassion = -1
				ai_honor = -1
			}
			modifier = {
				factor = 3
				OR = {
					has_trait = sadistic
					has_trait = arrogant
					has_trait = wrathful
				}
			}
			modifier = {
				factor = 0
				OR = {
					has_trait = compassionate
					has_trait = generous
				}
			}
		}
		
		stress_impact = {
			base = child_trait_change_stress_penalty
			wrathful = medium_stress_loss
			arrogant = medium_stress_loss
			sadistic = medium_stress_loss
		}
		
		reverse_add_opinion = {
			modifier = disappointed_opinion
			target = scope:child
			opinion = -15
		}
		
		random_list = {
			50 = { 
				desc = child_personality.stay_tt
				send_interface_toast = {
					title = child_personality.stay_tt
					left_icon = scope:child
				}
			}
			
			50 = { 
				desc = child_personality.mask_tt
				modifier = {
					factor = 3
					scope:child = {
						OR = {
							has_trait = cynical
							has_trait = stubborn
							has_trait = deceitful
						}
					}
				}
				modifier = {
					factor = 0.1
					scope:child = {
						has_trait = honest
					}
				}
				
				if = {
					limit = {
						scope:child = {
							NOR = { 
								has_trait = deceitful
								has_trait = honest
							}
						}
					}
					send_interface_toast = {
						title = child_personality.mask_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = honest
							add_trait_force_tooltip = deceitful
						}
					}
				}
				else_if = {
					limit = {
						scope:child = {
							has_trait = honest
						}
					}
					send_interface_toast = {
						title = child_personality.mask_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = honest
						}
					}
				}
				else = {
					send_interface_toast = {
						title = child_personality.mask_tt
						left_icon = scope:child
						scope:child = {
							add_intrigue_skill = 1
							add_diplomacy_skill = -2
						}
					}
				}
			}
		}
	}
}

#Child has demonstrated gifting
child_personality.1162 = {
	type = character_event
	title = child_personality.1162.t
	desc = {
		first_valid = {
			triggered_desc = {
				trigger = {
					exists = scope:friend
				}
				desc = child_personality.1162.desc_friend
			}
			desc = child_personality.1162.desc_fallback
		}
	}
	theme = education
	left_portrait = {
		character = scope:child
		animation = personality_content
	}
	
	right_portrait = {
		character = scope:friend
		animation = sadness
	}
	
	override_background = {
		reference = feast
	}
	
	option = {
		name = child_personality.116.confirm_generous
		custom_tooltip = child_personality.keeps_generous_tt
		reverse_add_opinion = {
    		modifier = pleased_opinion
    		target = scope:child
    		opinion = 10
    	}
		stress_impact = {
			compassionate = minor_stress_loss
			temperate = minor_stress_loss
			generous = minor_stress_loss
			sadistic = minor_stress_gain
			callous = minor_stress_gain
			greedy = minor_stress_gain
		}
		ai_chance = {
			base = 100
			ai_value_modifier = {
				ai_greed = -1
				ai_compassion = 0.5
			}
		}
	}
	
	option = {
		name = child_personality.116.less
		ai_chance = {
			base = 100
			ai_value_modifier = {
				ai_greed = 1
				ai_compassion = -0.5
				ai_rationality = 1
			}
			modifier = {
				factor = 3
				OR = {
					has_trait = greedy
				}
			}
		}
		
		stress_impact = {
			base = child_trait_change_stress_penalty
			just = minor_stress_loss
			generous = medium_stress_gain
			greedy = medium_stress_loss
		}
		
		random_list = {
			50 = {
				desc = child_personality.stay_tt
				send_interface_toast = {
					title = child_personality.stay_tt
					left_icon = scope:child
				}
			}
			50 = { 
				desc = child_personality.under_tt
				modifier = {
					factor = 3
					OR = {
						root.diplomacy >= medium_skill_rating
						root.intrigue >= medium_skill_rating
					}
				}
				send_interface_toast = {
					title = child_personality.under_tt
					left_icon = scope:child
					scope:child = {
						remove_trait = generous
						add_learning_skill = 1
						add_stewardship_skill = 1
					}
				}	
			}
			50 = {
				desc = child_personality.punder_tt
				send_interface_toast = {
					title = child_personality.punder_tt
					left_icon = scope:child
					scope:child = {
						add_learning_skill = 2
						add_stewardship_skill = -1
					}
				}
			}
		}
	}
	
	option = {
		name = child_personality.116.curb
		ai_chance = {
			base = 100
			ai_value_modifier = {
				ai_compassion = -1
				ai_honor = -1
			}
			modifier = {
				factor = 3
				OR = {
					has_trait = sadistic
					has_trait = arrogant
					has_trait = wrathful
				}
			}
			modifier = {
				factor = 0
				OR = {
					has_trait = compassionate
					has_trait = generous
				}
			}
		}
		
		stress_impact = {
			base = child_trait_change_stress_penalty
			wrathful = medium_stress_loss
			arrogant = medium_stress_loss
			sadistic = medium_stress_loss
		}
		
		reverse_add_opinion = {
			modifier = disappointed_opinion
			target = scope:child
			opinion = -15
		}
		
		random_list = {
			50 = { 
				desc = child_personality.stay_tt
				send_interface_toast = {
					title = child_personality.stay_tt
					left_icon = scope:child
				}
			}
			
			50 = { 
				desc = child_personality.mask_tt
				modifier = {
					factor = 3
					scope:child = {
						OR = {
							has_trait = cynical
							has_trait = stubborn
							has_trait = deceitful
						}
					}
				}
				modifier = {
					factor = 0.1
					scope:child = {
						has_trait = honest
					}
				}
				
				if = {
					limit = {
						scope:child = {
							NOR = { 
								has_trait = deceitful
								has_trait = honest
							}
						}
					}
					send_interface_toast = {
						title = child_personality.mask_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = honest
							add_trait_force_tooltip = deceitful
						}
					}
				}
				else_if = {
					limit = {
						scope:child = {
							has_trait = honest
						}
					}
					send_interface_toast = {
						title = child_personality.mask_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = honest
						}
					}
				}
				else = {
					send_interface_toast = {
						title = child_personality.mask_tt
						left_icon = scope:child
						scope:child = {
							add_intrigue_skill = 1
							add_diplomacy_skill = -2
						}
					}
				}
			}
			50 = {
				desc = child_personality.calmdir_tt
				modifier = {
					factor = 0.1
					scope:child = {
						OR = {
							has_trait = stubborn
						}
					}
				}
				send_interface_toast = {
					title = child_personality.calmdir_tt
					left_icon = scope:child
					scope:child = {
						remove_trait = generous
						add_diplomacy_skill = -1
						add_learning_skill = 1
					}
				}
			}
		}
	}
}


#Child has demonstrated eating again
child_personality.1163 = {
	type = character_event
	title = child_personality.1163.t
	desc = {
		desc = child_personality.1163.desc
	}
	override_background = { reference = feast }
	theme = education
	left_portrait = {
		character = scope:child
		animation = personality_greedy
	}
	
	option = {
		name = child_personality.116.confirm_gluttonous
		custom_tooltip = child_personality.keeps_gluttonous_tt
		reverse_add_opinion = {
    		modifier = pleased_opinion
    		target = scope:child
    		opinion = 20
    	}
		stress_impact = {
			gluttonous = medium_stress_loss
			temperate = medium_stress_gain
		}
		ai_chance = {
			base = 100
			ai_value_modifier = {
				ai_greed = 0.5
			}
			modifier = {
				factor = 3
				has_trait = gluttonous
			}
		}
	}
	
	option = {
		name = child_personality.116.others
		
		ai_chance = {
			base = 100
			ai_value_modifier = {
				ai_compassion = 0.5
			}
			modifier = {
				factor = 3
				has_trait = generous
			}
		}
		
		stress_impact = {
			base = child_trait_change_stress_penalty
			generous = medium_stress_loss
			temperate = minor_stress_loss
			greedy = minor_stress_gain
		}
		
		reverse_add_opinion = {
			modifier = pleased_opinion
			target = scope:child
			opinion = 10
		}
		
		random_list = {
			50 = {
				desc = child_personality.stay_tt
				send_interface_toast = {
					title = child_personality.stay_tt
					left_icon = scope:child
				}
			}
			50 = { 
				desc = child_personality.under_tt
				modifier = {
					factor = 0.1
					scope:child = {
						OR = {
							has_trait = greedy
						}
					}
				}
				modifier = {
					factor = 3
					root.diplomacy >= medium_skill_rating
				}
				scope:child = {
					remove_trait = gluttonous
				}
				if = {
					limit = {
						scope:child = {
							has_trait = greedy
						}
					}
					send_interface_toast = {
						title = child_personality.under_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = greedy
							add_diplomacy_skill = 2
						}
					}
				}
				else_if = {
					limit = {
						scope:child = {
							has_trait = generous
						}
					}
					send_interface_toast = {
						title = child_personality.under_tt
						left_icon = scope:child
						scope:child = {
							add_diplomacy_skill = 1
						}
					}
				}
				else = {
					send_interface_toast = {
						title = child_personality.under_tt
						left_icon = scope:child
						scope:child = {
							add_trait_force_tooltip = generous
						}
					}
				}
			}
			50 = {
				desc = child_personality.punder_tt
				send_interface_toast = {
					title = child_personality.punder_tt
					left_icon = scope:child
					scope:child = {
						add_diplomacy_skill = 1
						add_stewardship_skill = -1
					}
				}
			}
		}
	}
	
	option = {
		name = child_personality.116.etiq
		
		ai_chance = {
			base = 100
			ai_value_modifier = {
				ai_energy = 0.5
				ai_rationality = 1
			}
			modifier = {
				factor = 3
				OR = {
					has_trait = arrogant
					has_trait = temperate
				}
			}
		}
		
		stress_impact = {
			base = child_trait_change_stress_penalty
			humble = minor_stress_gain
			gluttonous = minor_stress_gain
			arrogant = medium_stress_loss
			temperate = medium_stress_loss
		}
		
		reverse_add_opinion = {
			modifier = disappointed_opinion
			target = scope:child
			opinion = -10
		}
		
		random_list = {
			50 = {
				desc = child_personality.stay_tt
				send_interface_toast = {
					title = child_personality.stay_tt
					left_icon = scope:child
				}
			}
			50 = { 
				desc = child_personality.neutral_tt
				modifier = {
					factor = 0.4
					scope:child = {
						has_trait = arrogant
					}
				}
				modifier = {
					factor = 3
					OR = {
						root.diplomacy >= medium_skill_rating
						root.stewardship >= medium_skill_rating
					}
				}
				send_interface_toast = {
					title = child_personality.neutral_tt
					left_icon = scope:child
					scope:child = {
						add_stewardship_skill = 1
						remove_trait = gluttonous
					}
				}	
			}
		}
	}
	
	
	option = {
		name = child_personality.116.crit
		
		ai_chance = {
			base = 100
			ai_value_modifier = {
				ai_honor = -1
				ai_compassion = -0.3
			}
			modifier = {
				factor = 3
				has_trait = sadistic
			}
			modifier = {
				factor = 0
				OR = {
					has_trait = calm
					has_trait = compassionate
				}
			}
		}
		
		stress_impact = {
			base = child_trait_change_stress_penalty
			wrathful = minor_stress_loss
			sadistic = medium_stress_loss
			calm = medium_stress_gain
			compassionate = medium_stress_gain
		}	
		
		reverse_add_opinion = {
			modifier = disappointed_opinion
			target = scope:child
			opinion = -35
		}
		
		random_list = {
			50 = {
				modifier = {
					factor = 4
					scope:child = { has_trait = stubborn }
				}
				desc = child_personality.stay_tt
				send_interface_toast = {
					title = child_personality.stay_tt
					left_icon = scope:child
				}
			}
			50 = { 
				desc = child_personality.hardened_tt
				remove_trait = gluttonous
				if = {
					limit = {
						scope:child = {
							NOR = {
								has_trait = wrathful
								has_trait = calm
							}
						}
					}
					send_interface_toast = {
						title = child_personality.hardened_tt
						left_icon = scope:child
						scope:child = {
							add_trait_force_tooltip = wrathful
						}
					}
				}
				else_if = {
					limit = {
						scope:child = {
							NOT = { 
								has_trait = wrathful
							}
						}
					}
					send_interface_toast = {
						title = child_personality.hardened_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = calm
						}
					}
				}
				else = {
					send_interface_toast = {
						title = child_personality.hardened_tt
						left_icon = scope:child
						scope:child = {
							add_stewardship_skill = 1
							add_diplomacy_skill = -2
						}
					}
				}
			}
			100 = {
				desc = child_personality.close_tt
				if = {
					limit = {
						scope:child = {
							NOR = {
								has_trait = gregarious
								has_trait = shy
							}
						}
					}
					send_interface_toast = {
						title = child_personality.close_tt
						left_icon = scope:child
						scope:child = {
							add_trait_force_tooltip = shy
						}
					}
				}
				else_if = {
					limit = {
						scope:child = {
							NOT = { 
								has_trait = shy
							}
						}
					}
					send_interface_toast = {
						title = child_personality.close_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = gregarious
						}
					}
				}
				else = {
					send_interface_toast = {
						title = child_personality.close_tt
						left_icon = scope:child
						scope:child = {
							add_diplomacy_skill = -2
						}
					}
				}
			}
		}
	}
}

#Child has demonstrated eating again
child_personality.1164 = {
	type = character_event
	title = child_personality.1164.t
	desc = {
		desc = child_personality.1164.desc
	}
	override_background = { reference = feast }
	theme = education
	left_portrait = {
		character = scope:child
		animation = personality_greedy
	}
	
	option = {
		name = child_personality.116.confirm_greedy
		custom_tooltip = child_personality.keeps_greedy_tt
		reverse_add_opinion = {
    		modifier = pleased_opinion
    		target = scope:child
    		opinion = 15
    	}
		stress_impact = {
			greedy = medium_stress_loss
			arbitrary = minor_stress_loss
			generous = medium_stress_gain
		}
		ai_chance = {
			base = 100
			ai_value_modifier = {
				ai_greed = 1
			}
			modifier = {
				factor = 3
				has_trait = greedy
			}
		}
	}
	
	option = {
		name = child_personality.116.mm
		ai_chance = {
			base = 100
			ai_value_modifier = {
				ai_energy = 0.5
				ai_rationality = -0.5
			}
			modifier = {
				factor = 3
				OR = {
					has_trait = gluttonous
					has_trait = impatient
				}
			}
		}
		
		stress_impact = {
			base = child_trait_change_stress_penalty
			gluttonous = medium_stress_loss
			impatient = medium_stress_loss
			greedy = minor_stress_gain
			lustful = minor_stress_loss
		}
		
		random_list = {
			50 = {
				desc = child_personality.stay_tt
				send_interface_toast = {
					title = child_personality.stay_tt
					left_icon = scope:child
				}
			}
			50 = {
				desc = child_personality.top1_tt
				scope:child = { remove_trait = greedy }
				if = {
					limit = {
						scope:child = { has_trait = temperate }
					}
					send_interface_toast = {
						title = child_personality.top1_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = temperate
						}
					}
				}
				else_if = {
					limit = {
						scope:child = { 
							has_trait = gluttonous
						}
					}
					send_interface_toast = {
						title = child_personality.top1_tt
						left_icon = scope:child
						scope:child = {
							add_stewardship_skill = -1
						}
					}
				}
				else = {
					send_interface_toast = {
						title = child_personality.top1_tt
						left_icon = scope:child
						scope:child = {
							add_trait = gluttonous
						}
					}
				}
			}
			50 = {
				desc = child_personality.top2_tt
				scope:child = { remove_trait = greedy }
				if = {
					limit = {
						scope:child = { has_trait = patient }
					}
					send_interface_toast = {
						title = child_personality.top2_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = patient
						}
					}
				}
				else_if = {
					limit = {
						scope:child = { 
							has_trait = impatient
						}
					}
					send_interface_toast = {
						title = child_personality.top2_tt
						left_icon = scope:child
						scope:child = {
							add_learning_skill = -1
						}
					}
				}
				else = {
					send_interface_toast = {
						title = child_personality.top2_tt
						left_icon = scope:child
						scope:child = {
							add_trait = impatient
						}
					}
				}
			}
			50 = {
				desc = child_personality.mid_tt
				send_interface_toast = {
					title = child_personality.mid_tt
					left_icon = scope:child
					scope:child = {
						remove_trait = greedy
						add_learning_skill = 1
						add_stewardship_skill = 1
					}
				}
			}
		}
	}
	
	option = {
		name = child_personality.116.etiq_alt
		
		ai_chance = {
			base = 100
			ai_value_modifier = {
				ai_energy = 0.5
				ai_rationality = 1
			}
			modifier = {
				factor = 3
				OR = {
					has_trait = arrogant
					has_trait = temperate
				}
			}
		}
		
		stress_impact = {
			base = child_trait_change_stress_penalty
			humble = minor_stress_gain
			greedy = minor_stress_gain
			arrogant = medium_stress_loss
			generous = medium_stress_loss
		}
		
		reverse_add_opinion = {
			modifier = disappointed_opinion
			target = scope:child
			opinion = -10
		}
		
		random_list = {
			50 = {
				desc = child_personality.stay_tt
				send_interface_toast = {
					title = child_personality.stay_tt
					left_icon = scope:child
				}
			}
			50 = { 
				desc = child_personality.neutral_tt
				modifier = {
					factor = 0.4
					scope:child = {
						has_trait = arrogant
					}
				}
				modifier = {
					factor = 3
					OR = {
						root.diplomacy >= medium_skill_rating
						root.stewardship >= medium_skill_rating
					}
				}
				send_interface_toast = {
					title = child_personality.neutral_tt
					left_icon = scope:child
					scope:child = {
						add_stewardship_skill = 1
						remove_trait = greedy
					}
				}	
			}
		}
	}
	
	option = {
		name = child_personality.116.curb_alt
		ai_chance = {
			base = 100
			ai_value_modifier = {
				ai_compassion = -1
				ai_honor = -1
			}
			modifier = {
				factor = 3
				OR = {
					has_trait = sadistic
					has_trait = arrogant
					has_trait = wrathful
				}
			}
			modifier = {
				factor = 0
				OR = {
					has_trait = compassionate
					has_trait = generous
				}
			}
		}
		
		stress_impact = {
			base = child_trait_change_stress_penalty
			wrathful = medium_stress_loss
			arrogant = medium_stress_loss
			sadistic = medium_stress_loss
		}
		
		reverse_add_opinion = {
			modifier = disappointed_opinion
			target = scope:child
			opinion = -15
		}
		
		random_list = {
			50 = { 
				desc = child_personality.stay_tt
				send_interface_toast = {
					title = child_personality.stay_tt
					left_icon = scope:child
				}
			}
			
			50 = { 
				desc = child_personality.mask_tt
				modifier = {
					factor = 3
					scope:child = {
						OR = {
							has_trait = cynical
							has_trait = stubborn
							has_trait = deceitful
						}
					}
				}
				modifier = {
					factor = 0.1
					scope:child = {
						has_trait = honest
					}
				}
				
				if = {
					limit = {
						scope:child = {
							NOR = { 
								has_trait = deceitful
								has_trait = honest
							}
						}
					}
					send_interface_toast = {
						title = child_personality.mask_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = honest
							add_trait_force_tooltip = deceitful
						}
					}
				}
				else_if = {
					limit = {
						scope:child = {
							has_trait = honest
						}
					}
					send_interface_toast = {
						title = child_personality.mask_tt
						left_icon = scope:child
						scope:child = {
							remove_trait = honest
						}
					}
				}
				else = {
					send_interface_toast = {
						title = child_personality.mask_tt
						left_icon = scope:child
						scope:child = {
							add_intrigue_skill = 1
							add_diplomacy_skill = -2
						}
					}
				}
			}
			50 = {
				desc = child_personality.calmdir_tt
				modifier = {
					factor = 0.1
					scope:child = {
						OR = {
							has_trait = stubborn
						}
					}
				}
				send_interface_toast = {
					title = child_personality.calmdir_tt
					left_icon = scope:child
					scope:child = {
						remove_trait = greedy
						add_diplomacy_skill = -1
						add_learning_skill = 1
					}
				}
			}
		}
	}
}


######
# OTHER EVENTS
# 2000-2999
######

#Bully: Victim runs
child_personality.2001 = {
	type = character_event
	title = child_personality.2001.t
	desc = {
		desc = child_personality.2001.desc
		desc = child_personality.2001.craven
	}
	theme = unfriendly
	left_portrait = {
		character = scope:child
		animation = personality_coward
	}

	option = {
		name = child_personality.2001.a
		if = {
			limit = {
				NOT = {
					any_relation = { type = victim this = scope:child }
				}
			}
			set_relation_victim = scope:child
		}
	}
}


#Bully: Victim refuses
child_personality.2002 = {
	type = character_event
	title = child_personality.2002.t
	desc = {
		desc = child_personality.2001.desc
		desc = child_personality.2002.patient
	}
	theme = unfriendly
	left_portrait = scope:child

	option = {
		name = child_personality.2002.a
		if = {
			limit = {
				NOT = {
					any_relation = { type = victim this = scope:child }
				}
			}
			set_relation_victim = scope:child
		}
	}
}


#Bully: Victim shuts off
child_personality.2003 = {
	type = character_event
	title = child_personality.2003.t
	desc = {
		desc = child_personality.2001.desc
		desc = child_personality.2003.shy
	}
	theme = unfriendly
	left_portrait = {
		character = scope:child
		animation = paranoid
	}

	option = {
		name = child_personality.2003.a
		if = {
			limit = {
				NOT = {
					any_relation = { type = victim this = scope:child }
				}
			}
			set_relation_victim = scope:child
		}
	}
}

#Bully: Victim does a thing
child_personality.2904 = {
	type = character_event
	title = child_personality.2904.t
	desc = {
		desc = child_personality.2001.desc
		desc = child_personality.2904.brave
	}
	theme = unfriendly
	left_portrait = {
		character = scope:child
		animation = schadenfreude
	}

	option = {
		name = child_personality.2904.a
		if = {
			limit = {
				has_relation_victim = scope:child
			}
			remove_relation_victim = scope:child
		}
		scope:child = {
			send_interface_toast = {
				title = child_personality.2904.a.t
				left_icon = scope:bully
			}
		}
		ai_chance = {
			base = 100
			ai_value_modifier = {
				ai_compassion = 1
				ai_honor = 1
			}
		}
	}
	
	option = {
		name = child_personality.2904.b
		if = {
			limit = {
				NOT = { has_relation_victim = scope:child }
			}
			set_relation_victim = scope:child
		}
		scope:child = {
			send_interface_toast = {
				title = child_personality.2904.b.t
				left_icon = scope:bully
			}
		}
		ai_chance = {
			base = 100
			ai_value_modifier = {
				ai_compassion = -1
				ai_honor = -1
			}
		}
	}
}


#You become friends with child from playing
child_personality.2004 = {
	type = character_event
	title = child_personality.2004.t
	desc = child_personality.2004.desc
	theme = friendly
	right_portrait = {
		character = scope:child
		animation = happiness
	}

	option = {
		name = child_personality.2004.a
		if = {
			limit = {
				can_set_relation_friend_trigger = { CHARACTER = scope:child }
				NOT = {
					scope:child = root
				}
			}
			set_relation_friend = { reason = friend_playing_children target = scope:child }
		}
	}
}

#You stop bullying inventive child
child_personality.2905 = {
	type = character_event
	title = child_personality.2905.t
	desc = child_personality.2905.desc
	theme = friendly
	right_portrait = {
		character = scope:child
		animation = happiness
	}

	option = {
		name = child_personality.2905.a
		if = {
			limit = {
				has_relation_victim = scope:child
			}
			remove_relation_victim = scope:child
		}
	}
}

#You become friends with inventive child from playing
child_personality.2906 = {
	type = character_event
	title = child_personality.2905.t
	desc = child_personality.2906.desc
	theme = friendly
	right_portrait = {
		character = scope:child
		animation = happiness
	}

	option = {
		name = child_personality.2906.a
		if = {
			limit = {
				can_set_relation_friend_trigger = { CHARACTER = scope:child }
				NOT = {
					scope:child = root
				}
			}
			set_relation_friend = { reason = friend_playing_children target = scope:child }
		}
	}
}

#You were punished by high-ranking guardian

child_personality.2907 = {
	type = character_event
	title = child_personality.2907.t
	desc = {
		desc = child_personality.2907.desc_start
		first_valid = {
			triggered_desc = {
				trigger = { has_relation_victim = scope:child }
				desc = child_personality.2907.desc_bully
			}
			desc = child_personality.2907.desc_no_bully
		}
	}
	theme = unfriendly
	left_portrait = {
		character = scope:guardian
		animation = personality_vengeful
	}
	right_portrait = {
		character = scope:child
		animation = anger
	}

	option = {
		name = child_personality.2907.a
	}
}

#Your child was mildly punished by high-ranking guardian
child_personality.2908 = {
	type = character_event
	title = child_personality.2907.t
	desc = child_personality.2908.desc
	theme = unfriendly
	left_portrait = {
		character = scope:guardian
		animation = personality_vengeful
	}
	right_portrait = {
		character = scope:child
		animation = anger
	}

	option = {
		name = child_personality.2908.a
	}
	
	option = {
		name = child_personality.2908.b
	}
}

#Someone with a crush on you stays insistent after rejection
child_personality.2005 = {
	type = character_event
	title = child_personality.2005.t
	desc = child_personality.2005.desc
	theme = unfriendly
	left_portrait = scope:child

	option = {
		name = child_personality.2005.a #Oh give it up already
		add_opinion = {
			target = scope:child
			modifier = bothersome_crush_on_me_opinion
		}
	}

	option = {
		name = child_personality.2005.b #That's cute
		add_opinion = {
			target = scope:child
			modifier = charming_crush_on_me_opinion
		}
	}

	option = {
		name = child_personality.2005.c #Who exactly?
	}
}

#Someone with a crush on you becomes better after flipflop
child_personality.2909 = {
	type = character_event
	title = child_personality.2909.t
	desc = child_personality.2909.desc
	theme = friendly
	left_portrait = scope:child

	option = {
		name = child_personality.2909.a #That's cute
		add_opinion = {
			target = scope:child
			modifier = charming_crush_on_me_opinion
		}
	}

}

#Flip flop advice follow-up
child_personality.2910 = {
	type = character_event
	title = child_personality.2909.t
	desc = child_personality.2910.desc
	theme = friendly
	left_portrait = scope:child

	option = {
		name = child_personality.2910.a #That's cute
		add_opinion = {
			target = scope:child
			modifier = charming_crush_on_me_opinion
		}
	}

}

#A Child preacher is befriended by child (hidden as preacher is ai)
child_personality.2006 = {
	type = character_event
	hidden = yes
	theme = friendly
	immediate = {
		if = {
			limit = {
				can_set_relation_friend_trigger = { CHARACTER = scope:child }
			}
			if = {
				limit = {
					has_relation_victim = scope:child
				}
				remove_relation_victim = scope:child
			}
			if = {
				limit = {
					has_relation_bully = scope:child
				}
				remove_relation_bully = scope:child
			}
			scope:child  = {
				set_relation_friend = { reason = friend_saved_as_children target = scope:child_preacher }
			}
		}
	}
}

#Bully gets beaten up by child while mocking child_preacher
child_personality.2007 = {
	type = character_event
	title = child_personality.2007.t
	desc = child_personality.2007.desc
	theme = education
	left_portrait = {
		character = scope:child
		animation = rage
	}
	right_portrait = {
		character = scope:child_preacher
		animation = personality_coward
	}

	option = {
		name = child_personality.2007.a
		increase_wounds_effect = { REASON = fight }
	}
}




######
# PERSONALITY ASSIGNMENT EVENTS
# 3000-3999
######

#Randomizes childhood personality
child_personality.3000 = {
	type = character_event
	hidden = yes

	trigger = { 
		age = 3 
		number_of_personality_traits < 1
	}
	
	immediate = {
		#Finds a character for descs
		if = {
			limit = { any_relation = { type = guardian always = yes } }
			random_relation = { type = guardian save_scope_as = guardian }
		}

		else_if = {
			limit = { any_parent = { is_alive = yes } }
			random_parent = { save_scope_as = guardian }
		}
		
		else_if = {
			limit = {
				exists = host
			}
			host = { random_courtier = { save_scope_as = guardian } }
		}

		random_list = {
			20 = { trigger_event = child_personality.3001 } # Curious
			20 = { # Rowdy
				modifier = {
					factor = 3
					culture = {
						has_cultural_parameter = rowdy_trait_more_common
					}
				}
				modifier = {
					factor = 0.33
					culture = {
						has_cultural_parameter = rowdy_trait_less_common
					}
				}
				trigger_event = child_personality.3003
			}
			20 = { trigger_event = child_personality.3005 } # Bossy
			20 = { # Charming
				trigger_event = child_personality.3007
				modifier = {
					factor = 3
					culture = {
						has_cultural_parameter = charming_trait_more_common
					}
				}
			}
			20 = { # Pensive
				modifier = {
					factor = 3
					culture = {
						has_cultural_parameter = pensive_trait_more_common
					}
				}
				modifier = {
					factor = 0.33
					culture = {
						has_cultural_parameter = pensive_trait_less_common
					}
				}
				trigger_event = child_personality.3009
			}
		}
	}
}

#Assign childhood personality Curious
child_personality.3001 = {
	type = character_event
	title = child_personality.3001.t
	desc = child_personality.3001.desc
	theme = family
	left_portrait = {
		character = scope:personality_child
		animation = personality_irrational
	}

	immediate = { save_scope_as = personality_child }
	
	option = {
		name = child_personality.3001.a
		add_trait = curious
	}

	after = {
		hidden_effect = {
			childhood_groomed_to_rule_skill_gain_effect = yes
			send_event_about_player_heir_childhood_personality_effect = { ID = 3002 }
		}
	}
}

#Notification about player heir becoming Curious
child_personality.3002 = {
	type = character_event
	title = child_personality.3001.t
	desc = child_personality.3002.desc
	theme = family
	left_portrait = {
		character = scope:personality_child
		animation = personality_irrational
	}
	
	option = {
		name = child_personality.3002.a
		
		show_as_tooltip = { scope:personality_child = { add_trait_force_tooltip = curious } }
	}
}


#Assign childhood trait rowdy
child_personality.3003 = {
	type = character_event
	title = child_personality.3003.t
	desc = child_personality.3003.desc
	theme = family
	left_portrait = {
		character = scope:personality_child
		animation = personality_bold
	}

	immediate = {
		save_scope_as = personality_child
		get_guardian_scope_effect = yes
	}
	
	option = {
		name = child_personality.3003.a
		add_trait = rowdy
	}

	after = {
		hidden_effect = {
			childhood_groomed_to_rule_skill_gain_effect = yes
			send_event_about_player_heir_childhood_personality_effect = { ID = 3004 }
		}
	}
}

#Notification about player heir becoming rowdy
child_personality.3004 = {
	type = character_event
	title = child_personality.3004.t
	desc = child_personality.3004.desc
	theme = family
	left_portrait = {
		character = scope:personality_child
		animation = personality_bold
	}
	
	option = {
		name = child_personality.3004.a
		
		show_as_tooltip = { scope:personality_child = { add_trait_force_tooltip = rowdy } }
	}
}


#Assign childhood trait bossy
child_personality.3005 = {
	type = character_event
	title = child_personality.3005.t
	desc = child_personality.3005.desc
	theme = family
	left_portrait = {
		character = scope:personality_child
		animation = personality_callous
	}

	immediate = {
		save_scope_as = personality_child
		get_guardian_scope_effect = yes
	}
	
	option = {
		name = child_personality.3005.a
		add_trait = bossy
	}

	after = {
		hidden_effect = {
			childhood_groomed_to_rule_skill_gain_effect = yes
			send_event_about_player_heir_childhood_personality_effect = { ID = 3006 }
		}
	}
}

#Notification about player heir becoming bossy
child_personality.3006 = {
	type = character_event
	title = child_personality.3005.t
	desc = child_personality.3006.desc
	theme = family
	left_portrait = {
		character = scope:personality_child
		animation = personality_callous
	}
	
	option = {
		name = child_personality.3006.a
		
		show_as_tooltip = { scope:personality_child = { add_trait_force_tooltip = bossy } }
	}
}

#Assign childhood trait Charming
child_personality.3007 = {
	type = character_event
	title = child_personality.3007.t
	desc = child_personality.3007.desc
	theme = family
	left_portrait = {
		character = scope:personality_child
		animation = personality_compassionate
	}

	immediate = {
		save_scope_as = personality_child
		get_guardian_scope_effect = yes
	}
	
	option = {
		name = child_personality.3007.a
		add_trait = charming
	}

	after = {
		hidden_effect = {
			childhood_groomed_to_rule_skill_gain_effect = yes
			send_event_about_player_heir_childhood_personality_effect = { ID = 3008 }
		}
	}
}

#Notification about player heir becoming charming
child_personality.3008 = {
	type = character_event
	title = child_personality.3008.t
	desc = child_personality.3008.desc
	theme = family
	left_portrait = {
		character = scope:personality_child
		animation = personality_compassionate
	}
	
	option = {
		name = child_personality.3008.a
		
		show_as_tooltip = { scope:personality_child = { add_trait_force_tooltip = charming } }
	}
}

#Assign childhood trait Pensive
child_personality.3009 = {
	type = character_event
	title = child_personality.3009.t
	desc = child_personality.3009.desc
	theme = family
	left_portrait = {
		character = scope:personality_child
		animation = personality_cynical
	}

	immediate = {
		save_scope_as = personality_child
		get_guardian_scope_effect = yes
	}
	
	option = {
		name = child_personality.3009.a
		add_trait = pensive
	}

	after = {
		hidden_effect = {
			childhood_groomed_to_rule_skill_gain_effect = yes
			send_event_about_player_heir_childhood_personality_effect = { ID = 3010 }
		}
	}
}

#Notification about player heir becoming Pensive
child_personality.3010 = {
	type = character_event
	title = child_personality.3009.t
	desc = child_personality.3010.desc
	theme = family
	left_portrait = {
		character = scope:personality_child
		animation = personality_cynical
	}
	
	option = {
		name = child_personality.3010.a
		
		show_as_tooltip = { scope:personality_child = { add_trait_force_tooltip = pensive } }
	}
}



######
# SEXUALITY ASSIGNMENT EVENTS
# by Linnéa Thimrén
# 4000-4999
######
child_personality.4000 = {
	hidden = yes

	trigger = {
		#To safety check that you don't already have a sexuality
		has_sexuality = none
	}

	immediate = {
		random_list = {
			20 = { #A player can have a say
				trigger = {
					is_ai = no
				}
				trigger_event = {
					id = child_personality.4011
					days = { 3 730 }
				}
			}
			80 = {
				random_list = {
					0 = { #Heterosexual
						modifier = {
							add = heterosexuality_chance
						}
						trigger_event = {
							id = child_personality.4015
							days = { 3 730 }
						}
					}
					0 = { #Homosexual
						modifier = {
							add = homosexuality_chance
						}
						trigger_event = {
							id = child_personality.4012
							days = { 3 730 }
						}
					}
					0 = { #Bisexual
						modifier = {
							add = bisexuality_chance
						}
						trigger_event = {
							id = child_personality.4013
							days = { 3 730 }
						}
					}
					0 = { #Asexual
						modifier = {
							add = asexuality_chance
						}
						modifier = {
							has_trait = lustful
							factor = 0.5
						}
						trigger_event = {
							id = child_personality.4014
							days = { 3 730 }
						}
					}
				}
			}
		}
	}
}


#A player can have a say
# by Linnéa Thimrén

#This is also used as a backup event to assign a sexuality for characters turning into adults that haven't gotten a sexuality due to being created too late in life etc.
child_personality.4011 = {
	type = character_event
	title = child_personality.4011.t
	desc = {
		desc = child_personality.4011.desc_opening
		first_valid = {
			triggered_desc = {
				trigger = {
					exists = scope:desc_animal
				}
				desc = child_personality.4011.desc_1
			}
			triggered_desc = {
				trigger = {
					exists = scope:desc_lustful
				}
				desc = child_personality.4011.desc_2
			}
			triggered_desc = {
				trigger = {
					exists = scope:desc_confusion
				}
				desc = child_personality.4011.desc_3
			}
		}
	}
	theme = love
	left_portrait = {
		character = root
		animation = flirtation
	}

	trigger = {
		#To safety check that you don't already have a sexuality
		has_sexuality = none	
	}

	immediate = {
		if = {
			limit = {
				exists = location
			}
			select_local_animal_effect = { TYPE = any } # Save scope to limit possible animals: any/big/small/dangerous/harmless/prowling
		}
		hidden_effect = { #To give the most "fitting" desc
			random_list = {
				10 = {
					trigger = {
						exists = var:animal_type
					}
					save_scope_value_as = {
						name = desc_animal
						value = yes
					}
				}
				10 = {
					modifier = {
						add = 500
						has_trait = lustful
					}
					save_scope_value_as = {
						name = desc_lustful
						value = yes
					}
				}
				10 = {
					save_scope_value_as = {
						name = desc_confusion
						value = yes
					}
				}
			}
		}
	}

	#Heterosexual
	option = {
		name = {
			text = {
				first_valid = {
					triggered_desc = {
						trigger = { is_female = yes }
						desc = child_personality.4011.a #Boy
					}
					desc = child_personality.4011.b #Girl
				}
			}
		}
		
		set_sexuality = heterosexual
		
		ai_chance = {
			base = 0
			modifier = { add = heterosexuality_chance }
		}
	}

	#Homosexual
	option = { #Girl
		name = {
			text = {
				first_valid = {
					triggered_desc = {
						trigger = { is_female = yes }
						desc = child_personality.4011.b #Girl
					}
					desc = child_personality.4011.a #Boy
				}
			}
		}
		set_sexuality = homosexual
		
		ai_chance = {
			base = 0
			modifier = { add = homosexuality_chance }
		}
	}

	option = { #Either
		name = child_personality.4011.c
		set_sexuality = bisexual
		ai_chance = {
			base = 0
			modifier = { add = bisexuality_chance }
		}
	}

	option = { #Neither
		name = child_personality.4011.d
		set_sexuality = asexual
		ai_chance = {
			base = 0
			modifier = { add = asexuality_chance }
			modifier = {
				has_trait = lustful
				factor = 0.5
			}
		}
	}

	after = {
		remove_variable = animal_type
	}
}

#Child realizes they are homosexual
#by Linnéa Thimrén
child_personality.4012 = {
	type = character_event
	title = child_personality.4011.t
	desc = child_personality.4012.desc
	theme = love
	left_portrait = {
		character = root
		animation = admiration
	}

	trigger = {
		#To safety check that you don't already have a sexuality
		has_sexuality = none
	}

	option = {
		name = child_personality.4012.a
		set_sexuality = homosexual
	}
}

#Child realizes they are bisexual
#by Linnéa Thimrén
child_personality.4013 = {
	type = character_event
	title = child_personality.4011.t
	desc = child_personality.4013.desc
	theme = love
	left_portrait = {
		character = root
		animation = admiration
	}

	trigger = {
		#To safety check that you don't already have a sexuality
		has_sexuality = none
	}

	option = {
		name = child_personality.4013.a
		set_sexuality = bisexual
	}
}

#Child realizes they are asexual
#by Linnéa Thimrén
child_personality.4014 = {
	type = character_event
	title = child_personality.4011.t
	desc = child_personality.4014.desc
	theme = love
	left_portrait = {
		character = root
		animation = personality_callous
	}

	trigger = {
		#To safety check that you don't already have a sexuality
		has_sexuality = none
	}

	immediate = {
		dummy_opposite_gender_effect = { TARGET = root }
	}

	option = {
		name = child_personality.4014.a
		set_sexuality = asexual
	}
}

#Child realizes they are heterosexual
#by Linnéa Thimrén
child_personality.4015 = {
	type = character_event
	title = child_personality.4011.t
	desc = child_personality.4015.desc
	theme = love
	left_portrait = {
		character = root
		animation = admiration
	}
	right_portrait = {
		character = scope:crush
		animation = idle
	}

	trigger = {
		#To safety check that you don't already have a sexuality
		has_sexuality = none
	}

	immediate = {
		dummy_opposite_gender_effect = { TARGET = root }
		save_scope_as = crush_holder
		hidden_effect = {
			set_sexuality = heterosexual
		}
		
		if = { # Generate a crush, for fun
			limit = {
				is_ai = no # Avoid character bloat
			}
			hidden_effect = {
				create_character = {
					location = root.capital_province
					template = servant_character
					age = root.age
					gender_female_chance = root_attraction_based_female_chance
					faith = root.capital_province.county.faith
					culture = root.capital_province.county.culture
					dynasty = none
					save_scope_as = crush
				}
				add_courtier = scope:crush
				scope:crush = {
					add_trait = peasant_leader
					set_sexuality = heterosexual
					random_list = {
						0 = { #Heterosexual
							modifier = {
								add = heterosexuality_chance
							}
							set_sexuality = heterosexual
						}
						0 = { #Bisexual
							modifier = {
								add = bisexuality_chance
							}
							set_sexuality = bisexual
						}
					}
				}
			}
		}
	}

	option = {
		name = child_personality.4015.a
		show_as_tooltip = {
			set_sexuality = heterosexual
		}
	}

	option = {
		trigger = {
			exists = scope:crush
		}
		name = child_personality.4015.b
		show_as_tooltip = {
			set_sexuality = heterosexual
		}
		set_relation_crush = scope:crush
		scope:crush = {
			trigger_event = childhood.0012
		}
	}
}


##############################
# REINCARNATION, by Mathilda Bjarnehed
##############################

scripted_trigger reincarnation_trait_valid_trigger = {
	scope:ancestor = { has_trait = $TRAIT$ }
}

scripted_effect reincarnation_pick_trait_effect = {
	add_trait = $TRAIT$
	save_scope_value_as = { name = inherited_trait value = flag:$TRAIT$ }
	if = {
		limit = { faith = { trait_is_sin = $TRAIT$ } }
		save_scope_value_as = { name = inherited_trait_is_sinful value = yes }
	}
}

child_personality.9900 = { #by Mathilda Bjarnehed
	type = character_event
	title = child_personality.9900.t
	desc = {
		first_valid = {
			triggered_desc = {
				trigger = { exists = scope:inherited_trait_is_sinful }
				desc = child_personality.9900.start.sinful.desc
			}
			desc = child_personality.9900.start.desc
		}
		first_valid = {
			triggered_desc = {
				trigger = {
					exists = mother
					mother = {
						is_alive = yes
						OR = {
							is_child_of = scope:ancestor
							is_grandchild_of = scope:ancestor
						}
					}
				}
				desc = child_personality.9900.mother.desc
			}
			triggered_desc = {
				trigger = {
					exists = father
					father = {
						is_alive = yes
						OR = {
							is_child_of = scope:ancestor
							is_grandchild_of = scope:ancestor
						}
					}
				}
				desc = child_personality.9900.father.desc
			}
			triggered_desc = {
				trigger = {
					exists = mother
					mother = {
						is_alive = yes
					}
				}
				desc = child_personality.9900.mother.desc
			}
			triggered_desc = {
				trigger = {
					exists = father
					father = {
						is_alive = yes
					}
				}
				desc = child_personality.9900.father.desc
			}
			desc = child_personality.9900.nurse.desc
		}
		first_valid = {
			# Normal (non-Sinful) Variants
			triggered_desc = {
				trigger = {
					scope:inherited_trait = flag:temperate
					NOT = { faith = { trait_is_sin = temperate } }
				}
				desc = child_personality.9900.temperate.desc
			}
			triggered_desc = {
				trigger = {
					scope:inherited_trait = flag:greedy
					NOT = { faith = { trait_is_sin = greedy } }
				}
				desc = child_personality.9900.greedy.desc
			}
			triggered_desc = {
				trigger = {
					scope:inherited_trait = flag:generous
					NOT = { faith = { trait_is_sin = generous } }
				}
				desc = child_personality.9900.generous.desc
			}
			triggered_desc = {
				trigger = {
					scope:inherited_trait = flag:diligent
					NOT = { faith = { trait_is_sin = diligent } }
				}
				desc = child_personality.9900.diligent.desc
			}
			triggered_desc = {
				trigger = {
					scope:inherited_trait = flag:calm
					NOT = { faith = { trait_is_sin = calm } }
				}
				desc = child_personality.9900.calm.desc
			}
			triggered_desc = {
				trigger = {
					scope:inherited_trait = flag:arrogant
					NOT = { faith = { trait_is_sin = arrogant } }
				}
				desc = child_personality.9900.arrogant.desc
			}
			triggered_desc = {
				trigger = {
					scope:inherited_trait = flag:humble
					NOT = { faith = { trait_is_sin = humble } }
				}
				desc = child_personality.9900.humble.desc
			}
			triggered_desc = {
				trigger = {
					scope:inherited_trait = flag:deceitful
					NOT = { faith = { trait_is_sin = deceitful } }
				}
				desc = child_personality.9900.deceitful.desc
			}
			triggered_desc = {
				trigger = {
					scope:inherited_trait = flag:honest
					NOT = { faith = { trait_is_sin = honest } }
				}
				desc = child_personality.9900.honest.desc
			}
			triggered_desc = {
				trigger = {
					scope:inherited_trait = flag:brave
					NOT = { faith = { trait_is_sin = brave } }
				}
				desc = child_personality.9900.brave.desc
			}
			triggered_desc = {
				trigger = {
					scope:inherited_trait = flag:gregarious
					NOT = { faith = { trait_is_sin = gregarious } }
				}
				desc = child_personality.9900.gregarious.desc
			}
			triggered_desc = {
				trigger = {
					scope:inherited_trait = flag:ambitious
					NOT = { faith = { trait_is_sin = ambitious } }
				}
				desc = child_personality.9900.ambitious.desc
			}
			triggered_desc = {
				trigger = {
					scope:inherited_trait = flag:just
					NOT = { faith = { trait_is_sin = just } }
				}
				desc = child_personality.9900.just.desc
			}
			triggered_desc = {
				trigger = {
					scope:inherited_trait = flag:zealous
					NOT = { faith = { trait_is_sin = zealous } }
				}
				desc = child_personality.9900.zealous.desc
			}
			triggered_desc = {
				trigger = {
					scope:inherited_trait = flag:compassionate
					NOT = { faith = { trait_is_sin = compassionate } }
				}
				desc = child_personality.9900.compassionate.desc
			}
			triggered_desc = {
				trigger = {
					scope:inherited_trait = flag:stubborn
					NOT = { faith = { trait_is_sin = stubborn } }
				}
				desc = child_personality.9900.stubborn.desc
			}
			triggered_desc = {
				trigger = {
					scope:inherited_trait = flag:forgiving
					NOT = { faith = { trait_is_sin = forgiving } }
				}
				desc = child_personality.9900.forgiving.desc
			}
			triggered_desc = {
				trigger = {	scope:inherited_trait = flag:lunatic_1 }
				desc = child_personality.9900.lunatic.desc
			}
			triggered_desc = {
				trigger = {	scope:inherited_trait = flag:dull }
				desc = child_personality.9900.dull.desc
			}
			triggered_desc = {
				trigger = {	scope:inherited_trait = flag:shrewd	}
				desc = child_personality.9900.shrewd.desc
			}
			triggered_desc = {
				trigger = {	scope:inherited_trait = flag:strong	}
				desc = child_personality.9900.strong.desc
			}

			# Sinful variants
			triggered_desc = {
				trigger = {
					scope:inherited_trait = flag:temperate
					faith = { trait_is_sin = temperate }
				}
				desc = child_personality.9900.sinful.temperate.desc
			}
			triggered_desc = {
				trigger = {
					scope:inherited_trait = flag:greedy
					faith = { trait_is_sin = greedy }
				}
				desc = child_personality.9900.sinful.greedy.desc
			}
			triggered_desc = {
				trigger = {
					scope:inherited_trait = flag:generous
					faith = { trait_is_sin = generous }
				}
				desc = child_personality.9900.sinful.generous.desc
			}
			triggered_desc = {
				trigger = {
					scope:inherited_trait = flag:diligent
					faith = { trait_is_sin = diligent }
				}
				desc = child_personality.9900.sinful.diligent.desc
			}
			triggered_desc = {
				trigger = {
					scope:inherited_trait = flag:calm
					faith = { trait_is_sin = calm }
				}
				desc = child_personality.9900.sinful.calm.desc
			}
			triggered_desc = {
				trigger = {
					scope:inherited_trait = flag:arrogant
					faith = { trait_is_sin = arrogant }
				}
				desc = child_personality.9900.sinful.arrogant.desc
			}
			triggered_desc = {
				trigger = {
					scope:inherited_trait = flag:humble
					faith = { trait_is_sin = humble }
				}
				desc = child_personality.9900.sinful.humble.desc
			}
			triggered_desc = {
				trigger = {
					scope:inherited_trait = flag:deceitful
					faith = { trait_is_sin = deceitful }
				}
				desc = child_personality.9900.sinful.deceitful.desc
			}
			triggered_desc = {
				trigger = {
					scope:inherited_trait = flag:honest
					faith = { trait_is_sin = honest }
				}
				desc = child_personality.9900.sinful.honest.desc
			}
			triggered_desc = {
				trigger = {
					scope:inherited_trait = flag:brave
					faith = { trait_is_sin = brave }
				}
				desc = child_personality.9900.sinful.brave.desc
			}
			triggered_desc = {
				trigger = {
					scope:inherited_trait = flag:gregarious
					faith = { trait_is_sin = gregarious }
				}
				desc = child_personality.9900.sinful.gregarious.desc
			}
			triggered_desc = {
				trigger = {
					scope:inherited_trait = flag:ambitious
					faith = { trait_is_sin = ambitious }
				}
				desc = child_personality.9900.sinful.ambitious.desc
			}
			triggered_desc = {
				trigger = {
					scope:inherited_trait = flag:just
					faith = { trait_is_sin = just }
				}
				desc = child_personality.9900.sinful.just.desc
			}
			triggered_desc = {
				trigger = {
					scope:inherited_trait = flag:zealous
					faith = { trait_is_sin = zealous }
				}
				desc = child_personality.9900.sinful.zealous.desc
			}
			triggered_desc = {
				trigger = {
					scope:inherited_trait = flag:compassionate
					faith = { trait_is_sin = compassionate }
				}
				desc = child_personality.9900.sinful.compassionate.desc
			}
			triggered_desc = {
				trigger = {
					scope:inherited_trait = flag:stubborn
					faith = { trait_is_sin = stubborn }
				}
				desc = child_personality.9900.sinful.stubborn.desc
			}
			triggered_desc = {
				trigger = {
					scope:inherited_trait = flag:forgiving
					faith = { trait_is_sin = forgiving }
				}
				desc = child_personality.9900.sinful.forgiving.desc
			}
		}
		desc = child_personality.9900.end.desc
		triggered_desc = {
			trigger = { exists = scope:inherited_trait_is_sinful }
			desc = child_personality.9900.sinful.postscript.desc
		}
	}
	theme = faith
	left_portrait = root
	right_portrait = scope:ancestor
	
	trigger = {
		age = 9
		exists = var:reincarnation_of
		var:reincarnation_of = { can_reincarnate_trigger = yes }
		can_become_reincarnation_trigger = yes
	}

	immediate = {
		play_music_cue = "mx_cue_faith_conversion"
		save_scope_as = child

		#Resave the variable as permanent
		var:reincarnation_of = {
			save_scope_as = ancestor
		}
		set_variable = {
			name = reincarnation_of
			value = scope:ancestor
		}

		#What trait are we inheriting? (list must match can_reincarnate_trigger)
		random_list = {
			10 = { #temperate
				trigger = { reincarnation_trait_valid_trigger = { TRAIT = temperate } }
				modifier = { factor = 0.25 faith = { trait_is_sin = temperate } }
				reincarnation_pick_trait_effect = { TRAIT = temperate }
			}
			10 = { #greedy
				trigger = { reincarnation_trait_valid_trigger = { TRAIT = greedy } }
				modifier = { factor = 0.25 faith = { trait_is_sin = greedy } }
				reincarnation_pick_trait_effect = { TRAIT = greedy }
			}
			10 = { #generous
				trigger = { reincarnation_trait_valid_trigger = { TRAIT = generous } }
				modifier = { factor = 0.25 faith = { trait_is_sin = generous } }
				reincarnation_pick_trait_effect = { TRAIT = generous }
			}
			10 = { #diligent
				trigger = { reincarnation_trait_valid_trigger = { TRAIT = diligent } }
				modifier = { factor = 0.25 faith = { trait_is_sin = diligent } }
				reincarnation_pick_trait_effect = { TRAIT = diligent }
			}
			10 = { #calm
				trigger = { reincarnation_trait_valid_trigger = { TRAIT = calm } }
				modifier = { factor = 0.25 faith = { trait_is_sin = calm } }
				reincarnation_pick_trait_effect = { TRAIT = calm }
			}
			10 = { #arrogant
				trigger = { reincarnation_trait_valid_trigger = { TRAIT = arrogant } }
				modifier = { factor = 0.25 faith = { trait_is_sin = arrogant } }
				reincarnation_pick_trait_effect = { TRAIT = arrogant }
			}
			10 = { #humble
				trigger = { reincarnation_trait_valid_trigger = { TRAIT = humble } }
				modifier = { factor = 0.25 faith = { trait_is_sin = humble } }
				reincarnation_pick_trait_effect = { TRAIT = humble }
			}
			10 = { #deceitful
				trigger = { reincarnation_trait_valid_trigger = { TRAIT = deceitful } }
				modifier = { factor = 0.25 faith = { trait_is_sin = deceitful } }
				reincarnation_pick_trait_effect = { TRAIT = deceitful }
			}
			10 = { #honest
				trigger = { reincarnation_trait_valid_trigger = { TRAIT = honest } }
				modifier = { factor = 0.25 faith = { trait_is_sin = honest } }
				reincarnation_pick_trait_effect = { TRAIT = honest }
			}
			10 = { #brave
				trigger = { reincarnation_trait_valid_trigger = { TRAIT = brave } }
				modifier = { factor = 0.25 faith = { trait_is_sin = brave } }
				reincarnation_pick_trait_effect = { TRAIT = brave }
			}
			10 = { #gregarious
				trigger = { reincarnation_trait_valid_trigger = { TRAIT = gregarious } }
				modifier = { factor = 0.25 faith = { trait_is_sin = gregarious } }
				reincarnation_pick_trait_effect = { TRAIT = gregarious }
			}
			10 = { #ambitious
				trigger = { reincarnation_trait_valid_trigger = { TRAIT = ambitious } }
				modifier = { factor = 0.25 faith = { trait_is_sin = ambitious } }
				reincarnation_pick_trait_effect = { TRAIT = ambitious }
			}
			10 = { #just
				trigger = { reincarnation_trait_valid_trigger = { TRAIT = just } }
				modifier = { factor = 0.25 faith = { trait_is_sin = just } }
				reincarnation_pick_trait_effect = { TRAIT = just }
			}
			10 = { #zealous
				trigger = { reincarnation_trait_valid_trigger = { TRAIT = zealous } }
				modifier = { factor = 0.25 faith = { trait_is_sin = zealous } }
				reincarnation_pick_trait_effect = { TRAIT = zealous }
			}
			10 = { #compassionate
				trigger = { reincarnation_trait_valid_trigger = { TRAIT = compassionate } }
				modifier = { factor = 0.25 faith = { trait_is_sin = compassionate } }
				reincarnation_pick_trait_effect = { TRAIT = compassionate }
			}
			10 = { #stubborn
				trigger = { reincarnation_trait_valid_trigger = { TRAIT = stubborn } }
				modifier = { factor = 0.25 faith = { trait_is_sin = stubborn } }
				reincarnation_pick_trait_effect = { TRAIT = stubborn }
			}
			10 = { #forgiving
				trigger = { reincarnation_trait_valid_trigger = { TRAIT = forgiving } }
				modifier = { factor = 0.25 faith = { trait_is_sin = forgiving } }
				reincarnation_pick_trait_effect = { TRAIT = forgiving }
			}
			50 = { #lunatic
				trigger = { reincarnation_trait_valid_trigger = { TRAIT = lunatic_1 } }
				reincarnation_pick_trait_effect = { TRAIT = lunatic_1 }
			}
			25 = { #dull
				trigger = {
					scope:ancestor = {
						OR = {
							has_trait = dull
							has_trait = intellect_bad
						}
					}
				}
				reincarnation_pick_trait_effect = { TRAIT = dull }
			}
			50 = { #shrewd
				trigger = {
					scope:ancestor = {
						OR = {
							has_trait = shrewd
							has_trait = intellect_good
						}
					}
				}
				reincarnation_pick_trait_effect = { TRAIT = shrewd }
			}
			50 = { #strong
				trigger = {
					scope:ancestor = {
						OR = {
							has_trait = strong
							has_trait = physique_good
						}
					}
				}
				reincarnation_pick_trait_effect = { TRAIT = strong }
			}
		}
	}

	option = {
		name = {
			text = {
				first_valid = {
					triggered_desc = {
						trigger = { scope:inherited_trait = flag:dull }
						desc = child_personality.9900.a.dull
					}
					triggered_desc = {
						trigger = { exists = scope:inherited_trait_is_sinful }
						desc = child_personality.9900.a.sinful
					}
					desc = child_personality.9900.a
				}
			}
		}
		
		add_trait = reincarnation

		if = {
			limit = {
				exists = dynasty
				dynasty.dynast = { faith = root.faith }
			}
			dynasty = {
				add_dynasty_prestige = minor_dynasty_prestige_gain
			}
		}

		#Notifications
		every_close_family_member = {
			limit = {
				is_ruler = yes
				OR = {
					is_parent_of = root
					is_grandparent_of = root
					is_great_grandparent_of = root
					is_sibling_of = root
				}

			}
			trigger_event = child_personality.9901		
		}
		every_relation = {
			type = guardian
			limit = {
				is_ruler = yes
				NOR = {
					is_parent_of = root
					is_grandparent_of = root
					is_great_grandparent_of = root
					is_sibling_of = root
				}
			}
			trigger_event = child_personality.9901	
		}
	}
}

#Notification
child_personality.9901 = { #by Mathilda Bjarnehed
	type = character_event
	title = child_personality.9901.t
	desc = {
		desc = child_personality.9901.start.desc
		first_valid = {
			# Normal (non-Sinful) Variants
			triggered_desc = {
				trigger = {
					scope:inherited_trait = flag:temperate
					NOT = { faith = { trait_is_sin = temperate } }
				}
				desc = child_personality.9900.temperate.desc
			}
			triggered_desc = {
				trigger = {
					scope:inherited_trait = flag:greedy
					NOT = { faith = { trait_is_sin = greedy } }
				}
				desc = child_personality.9900.greedy.desc
			}
			triggered_desc = {
				trigger = {
					scope:inherited_trait = flag:generous
					NOT = { faith = { trait_is_sin = generous } }
				}
				desc = child_personality.9900.generous.desc
			}
			triggered_desc = {
				trigger = {
					scope:inherited_trait = flag:diligent
					NOT = { faith = { trait_is_sin = diligent } }
				}
				desc = child_personality.9900.diligent.desc
			}
			triggered_desc = {
				trigger = {
					scope:inherited_trait = flag:calm
					NOT = { faith = { trait_is_sin = calm } }
				}
				desc = child_personality.9900.calm.desc
			}
			triggered_desc = {
				trigger = {
					scope:inherited_trait = flag:arrogant
					NOT = { faith = { trait_is_sin = arrogant } }
				}
				desc = child_personality.9900.arrogant.desc
			}
			triggered_desc = {
				trigger = {
					scope:inherited_trait = flag:humble
					NOT = { faith = { trait_is_sin = humble } }
				}
				desc = child_personality.9900.humble.desc
			}
			triggered_desc = {
				trigger = {
					scope:inherited_trait = flag:deceitful
					NOT = { faith = { trait_is_sin = deceitful } }
				}
				desc = child_personality.9900.deceitful.desc
			}
			triggered_desc = {
				trigger = {
					scope:inherited_trait = flag:honest
					NOT = { faith = { trait_is_sin = honest } }
				}
				desc = child_personality.9900.honest.desc
			}
			triggered_desc = {
				trigger = {
					scope:inherited_trait = flag:brave
					NOT = { faith = { trait_is_sin = brave } }
				}
				desc = child_personality.9900.brave.desc
			}
			triggered_desc = {
				trigger = {
					scope:inherited_trait = flag:gregarious
					NOT = { faith = { trait_is_sin = gregarious } }
				}
				desc = child_personality.9900.gregarious.desc
			}
			triggered_desc = {
				trigger = {
					scope:inherited_trait = flag:ambitious
					NOT = { faith = { trait_is_sin = ambitious } }
				}
				desc = child_personality.9900.ambitious.desc
			}
			triggered_desc = {
				trigger = {
					scope:inherited_trait = flag:just
					NOT = { faith = { trait_is_sin = just } }
				}
				desc = child_personality.9900.just.desc
			}
			triggered_desc = {
				trigger = {
					scope:inherited_trait = flag:zealous
					NOT = { faith = { trait_is_sin = zealous } }
				}
				desc = child_personality.9900.zealous.desc
			}
			triggered_desc = {
				trigger = {
					scope:inherited_trait = flag:compassionate
					NOT = { faith = { trait_is_sin = compassionate } }
				}
				desc = child_personality.9900.compassionate.desc
			}
			triggered_desc = {
				trigger = {
					scope:inherited_trait = flag:stubborn
					NOT = { faith = { trait_is_sin = stubborn } }
				}
				desc = child_personality.9900.stubborn.desc
			}
			triggered_desc = {
				trigger = {
					scope:inherited_trait = flag:forgiving
					NOT = { faith = { trait_is_sin = forgiving } }
				}
				desc = child_personality.9900.forgiving.desc
			}
			triggered_desc = {
				trigger = {	scope:inherited_trait = flag:lunatic_1 }
				desc = child_personality.9900.lunatic.desc
			}
			triggered_desc = {
				trigger = {	scope:inherited_trait = flag:dull }
				desc = child_personality.9900.dull.desc
			}
			triggered_desc = {
				trigger = {	scope:inherited_trait = flag:shrewd	}
				desc = child_personality.9900.shrewd.desc
			}
			triggered_desc = {
				trigger = {	scope:inherited_trait = flag:strong	}
				desc = child_personality.9900.strong.desc
			}

			# Sinful variants
			triggered_desc = {
				trigger = {
					scope:inherited_trait = flag:temperate
					faith = { trait_is_sin = temperate }
				}
				desc = child_personality.9900.sinful.temperate.desc
			}
			triggered_desc = {
				trigger = {
					scope:inherited_trait = flag:greedy
					faith = { trait_is_sin = greedy }
				}
				desc = child_personality.9900.sinful.greedy.desc
			}
			triggered_desc = {
				trigger = {
					scope:inherited_trait = flag:generous
					faith = { trait_is_sin = generous }
				}
				desc = child_personality.9900.sinful.generous.desc
			}
			triggered_desc = {
				trigger = {
					scope:inherited_trait = flag:diligent
					faith = { trait_is_sin = diligent }
				}
				desc = child_personality.9900.sinful.diligent.desc
			}
			triggered_desc = {
				trigger = {
					scope:inherited_trait = flag:calm
					faith = { trait_is_sin = calm }
				}
				desc = child_personality.9900.sinful.calm.desc
			}
			triggered_desc = {
				trigger = {
					scope:inherited_trait = flag:arrogant
					faith = { trait_is_sin = arrogant }
				}
				desc = child_personality.9900.sinful.arrogant.desc
			}
			triggered_desc = {
				trigger = {
					scope:inherited_trait = flag:humble
					faith = { trait_is_sin = humble }
				}
				desc = child_personality.9900.sinful.humble.desc
			}
			triggered_desc = {
				trigger = {
					scope:inherited_trait = flag:deceitful
					faith = { trait_is_sin = deceitful }
				}
				desc = child_personality.9900.sinful.deceitful.desc
			}
			triggered_desc = {
				trigger = {
					scope:inherited_trait = flag:honest
					faith = { trait_is_sin = honest }
				}
				desc = child_personality.9900.sinful.honest.desc
			}
			triggered_desc = {
				trigger = {
					scope:inherited_trait = flag:brave
					faith = { trait_is_sin = brave }
				}
				desc = child_personality.9900.sinful.brave.desc
			}
			triggered_desc = {
				trigger = {
					scope:inherited_trait = flag:gregarious
					faith = { trait_is_sin = gregarious }
				}
				desc = child_personality.9900.sinful.gregarious.desc
			}
			triggered_desc = {
				trigger = {
					scope:inherited_trait = flag:ambitious
					faith = { trait_is_sin = ambitious }
				}
				desc = child_personality.9900.sinful.ambitious.desc
			}
			triggered_desc = {
				trigger = {
					scope:inherited_trait = flag:just
					faith = { trait_is_sin = just }
				}
				desc = child_personality.9900.sinful.just.desc
			}
			triggered_desc = {
				trigger = {
					scope:inherited_trait = flag:zealous
					faith = { trait_is_sin = zealous }
				}
				desc = child_personality.9900.sinful.zealous.desc
			}
			triggered_desc = {
				trigger = {
					scope:inherited_trait = flag:compassionate
					faith = { trait_is_sin = compassionate }
				}
				desc = child_personality.9900.sinful.compassionate.desc
			}
			triggered_desc = {
				trigger = {
					scope:inherited_trait = flag:stubborn
					faith = { trait_is_sin = stubborn }
				}
				desc = child_personality.9900.sinful.stubborn.desc
			}
			triggered_desc = {
				trigger = {
					scope:inherited_trait = flag:forgiving
					faith = { trait_is_sin = forgiving }
				}
				desc = child_personality.9900.sinful.forgiving.desc
			}
		}
		desc = child_personality.9901.end.desc
	}
	theme = faith
	left_portrait = scope:child
	right_portrait = scope:ancestor

	immediate = {
		play_music_cue = "mx_cue_faith_conversion"
		scope:child = {
			add_trait_force_tooltip = reincarnation

			if = {
				limit = { scope:inherited_trait = flag:temperate }
				add_trait_force_tooltip = temperate
			}
			else_if = {
				limit = { scope:inherited_trait = flag:greedy }
				add_trait_force_tooltip = greedy
			}
			else_if = {
				limit = { scope:inherited_trait = flag:generous }
				add_trait_force_tooltip = generous
			}
			else_if = {
				limit = { scope:inherited_trait = flag:diligent }
				add_trait_force_tooltip = diligent
			}
			else_if = {
				limit = { scope:inherited_trait = flag:calm }
				add_trait_force_tooltip = calm
			}
			else_if = {
				limit = { scope:inherited_trait = flag:arrogant }
				add_trait_force_tooltip = arrogant
			}
			else_if = {
				limit = { scope:inherited_trait = flag:humble }
				add_trait_force_tooltip = humble
			}
			else_if = {
				limit = { scope:inherited_trait = flag:deceitful }
				add_trait_force_tooltip = deceitful
			}
			else_if = {
				limit = { scope:inherited_trait = flag:honest }
				add_trait_force_tooltip = honest
			}
			else_if = {
				limit = { scope:inherited_trait = flag:brave }
				add_trait_force_tooltip = brave
			}
			else_if = {
				limit = { scope:inherited_trait = flag:gregarious }
				add_trait_force_tooltip = gregarious
			}
			else_if = {
				limit = { scope:inherited_trait = flag:ambitious }
				add_trait_force_tooltip = ambitious
			}
			else_if = {
				limit = { scope:inherited_trait = flag:just }
				add_trait_force_tooltip = just
			}
			else_if = {
				limit = { scope:inherited_trait = flag:zealous }
				add_trait_force_tooltip = zealous
			}
			else_if = {
				limit = { scope:inherited_trait = flag:compassionate }
				add_trait_force_tooltip = compassionate
			}
			else_if = {
				limit = { scope:inherited_trait = flag:stubborn }
				add_trait_force_tooltip = stubborn
			}
			else_if = {
				limit = { scope:inherited_trait = flag:forgiving }
				add_trait_force_tooltip = forgiving
			}
			else_if = {
				limit = { scope:inherited_trait = flag:lunatic_1 }
				add_trait_force_tooltip = lunatic_1
			}
			else_if = {
				limit = { scope:inherited_trait = flag:dull }
				add_trait_force_tooltip = dull
			}
			else_if = {
				limit = { scope:inherited_trait = flag:shrewd }
				add_trait_force_tooltip = shrewd
			}
			else_if = {
				limit = { scope:inherited_trait = flag:strong }
				add_trait_force_tooltip = strong
			}
		}
	}

	option = {
		name = child_personality.9901.a

			show_as_tooltip = {
				scope:child = {
					if = {
					limit = {
						exists = dynasty
						exists = root.dynasty
						dynasty = root.dynasty
						dynasty.dynast = { faith = root.faith }
					}
					dynasty = {
						add_dynasty_prestige = minor_dynasty_prestige_gain
					}
				}
				}
			}
	}
}	
