﻿#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)

#By Ledabot
#Event design shamelessly based on events by Petter Vilberg, Linnéa Thimrén, and Bianca Savazzi

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

#Sadistic, Calm, Stubborn
#Child is training with a sword
child_personality.0062 = {
	type = character_event
	title = child_personality.0062.t
	desc = {
		first_valid = {
			triggered_desc = {
				trigger = {
					exists = scope:guardian
				}
				desc = child_personality.0062.guardian
			}
			desc = child_personality.0062.no_guardian
		}
	}
	theme = education
	override_background = {
		reference = courtyard
	}
	right_portrait = {
		character = root
		scripted_animation = duel_wield_weapon
	}
	left_portrait = {
		character = scope:sword_tutor
		animation = marshal
	}
	
	trigger = {
		is_available_child = yes
		NAND = {
			OR = {
				has_trait = compassionate
				has_trait = callous
				has_trait = sadistic
			}
			OR = {
				has_trait = calm
				has_trait = wrathful
			}
			OR = {
				has_trait = fickle
				has_trait = stubborn
			}
		}
		AND = {
			exists = host
			host = {
				any_vassal = {
					is_adult = yes
					is_imprisoned = no
					OR = {
						prowess > 10
						has_trait = lifestyle_blademaster
					}
					NOT = { has_trait = incapable }
					NOT = { this = root }
					NOT = {
						any_relation = {
							type = ward
							this = root
						}
					}
				}
			}
		}
	}
	
	weight_multiplier = {
		base = 1
		modifier = {
			add = 2
			any_relation = {
				type = guardian
				OR = {
					has_trait = sadistic
					has_trait = calm
					has_trait = stubborn
				}
			}
		}
		modifier = {
			add = 5
			culture = {
				has_cultural_parameter = calm_trait_more_common
			}
			NOR = {
				has_trait = calm
				has_trait = wrathful
			}
		}
	}
	
	immediate = {
		save_scope_as = child
		if = {
			limit = {
				any_relation = {
					type = guardian
					is_available = yes
					prowess > 9
				}
			}
			random_relation = {
				type = guardian
				save_scope_as = sword_tutor
				save_scope_as = guardian
			}
		}
		host = {
			random_vassal = {
				limit = {
					is_adult = yes
					is_imprisoned = no
					OR = {
						prowess > 10
						has_trait = lifestyle_blademaster
					}
					NOT = { has_trait = incapable }
					NOT = { this = root }
					NOT = {
						any_relation = {
							type = ward
							this = root
						}
					}
					NOT = {
						exists = scope:guardian
					}
				}
				save_scope_as = sword_tutor
			}
		}
	}
	
	option = {
		name = child_personality.0062.a
		trigger = {
			NOR = {
				has_trait = sadistic
				has_trait = callous
				has_trait = compassionate
			}
		}
		ai_chance = {
			base = 1
			modifier = {
				add = 4
				any_relation = {
					type = guardian
					has_trait = sadistic
				}
			}
			modifier = {
				add = -0.5
				any_relation = {
					type = guardian
					has_trait = compassionate
				}
			}
		}
		add_trait = sadistic
		if = {
			limit = {
				is_ai = yes
			}
			random_relation = {
				type = guardian
				trigger_event = child_personality.1621
			}
		}
	}
	
	option = {
		name = child_personality.0062.b
		trigger = {
			NOR = {
				has_trait = calm
				has_trait = wrathful
			}
		}
		ai_chance = {
			base = 1
			modifier = {
				add = 4
				any_relation = {
					type = guardian
					has_trait = calm
				}
			}
			modifier = {
				add = -0.5
				any_relation = {
					type = guardian
					has_trait = wrathful
				}
			}
			modifier = {
				add = 100
				culture = {
					has_cultural_parameter = calm_trait_more_common
				}
			}
		}
		add_trait = calm
		if = {
			limit = {
				is_ai = yes
			}
			random_relation = {
				type = guardian
				trigger_event = child_personality.1622
			}
		}
	}

	option = {
		name = child_personality.0062.c
		trigger = {
			NOR = {
				has_trait = fickle
				has_trait = stubborn
			}
		}
		ai_chance = {
			base = 1
			modifier = {
				add = 4
				any_relation = {
					type = guardian
					has_trait = stubborn
				}
			}
			modifier = {
				add = -0.5
				any_relation = {
					type = guardian
					has_trait = fickle
				}
			}
		}
		add_trait = stubborn
		if = {
			limit = {
				is_ai = yes
			}
			random_relation = {
				type = guardian
				trigger_event = child_personality.1623
			}
		}
	}
}


#Wrathful, Impatient, Vengeful
#Child has their food ruined at a feast
child_personality.0063 = {
	type = character_event
	title = child_personality.0063.t
	desc = child_personality.0063.desc
	theme = education
	override_background = {
		reference = feast
	}
	left_portrait = {
		character = root
		animation = anger
	}
	right_portrait = {
		character = scope:neighbour
		animation = fear
	}
		
	trigger = {
		is_available_child = yes
		NAND = {
			OR = {
				has_trait = wrathful
				has_trait = calm
			}
			OR = {
				has_trait = impatient
				has_trait = patient
			}
			OR = {
				has_trait = vengeful
				has_trait = forgiving
			}
		}
		AND = {
			exists = host
			host = {
				any_vassal = {
					is_imprisoned = no
					NOT = { has_trait = incapable }
					NOT = { this = root }
					NOT = {
						any_relation = {
							type = ward
							this = root
						}
					}
				}
			}
		}
	}

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

	immediate = {
		save_scope_as = child
		host = {
			random_vassal = {
				limit = {
					is_adult = yes
					is_imprisoned = no
					NOT = { has_trait = incapable }
					NOT = { this = root }
					NOT = {
						any_relation = {
							type = ward
							this = root
						}
					}
				}
				save_scope_as = neighbour
			}
		}
	}

	option = {
		name = child_personality.0063.a
		trigger = {
			NOR = {
				has_trait = wrathful
				has_trait = calm
			}
		}
		ai_chance = {
			base = 1
			modifier = {
				add = 4
				any_relation = {
					type = guardian
					has_trait = wrathful
				}
			}
			modifier = {
				add = -0.5
				any_relation = {
					type = guardian
					has_trait = calm
				}
			}
		}
		add_trait = wrathful
		if = {
			limit = {
				is_ai = yes
			}
			random_relation = {
				type = guardian
				trigger_event = child_personality.1631
			}
		}	
	}
	
	option = {
		name = child_personality.0063.b
		trigger = {
			NOR = {
				has_trait = impatient
				has_trait = patient
			}
		}
		ai_chance = {
			base = 1
			modifier = {
				add = 4
				any_relation = {
					type = guardian
					has_trait = impatient
				}
			}
			modifier = {
				add = -0.5
				any_relation = {
					type = guardian
					has_trait = patient
				}
			}
		}
		add_trait = impatient
		if = {
			limit = {
				is_ai = yes
			}
			random_relation = {
				type = guardian
				trigger_event = child_personality.1632
			}
		}	
	}
	
	option = {
		name = child_personality.0063.c
		trigger = {
			NOR = {
				has_trait = vengeful
				has_trait = forgiving
			}
		}
		ai_chance = {
			base = 1
			modifier = {
				add = 4
				any_relation = {
					type = guardian
					has_trait = vengeful
				}
			}
			modifier = {
				add = -0.5
				any_relation = {
					type = guardian
					has_trait = forgiving
				}
			}
			modifier = {
				add = 100
				culture = {
					has_cultural_parameter = vengeful_trait_more_common
				}
			}
		}
		add_trait = vengeful
		if = {
			limit = {
				is_ai = yes
			}
			random_relation = {
				type = guardian
				trigger_event = child_personality.1633
			}
		}	
	}
}


#Patient, Brave, Temperate
#Child is trapped inside a shed with a servant
child_personality.0065 = {
	type = character_event
	title = child_personality.0065.t
	desc = child_personality.0065.desc
	theme = education
	override_background = {
		reference = alley_day
	}
	left_portrait = {
		character = root
		animation = boredom
	}
	right_portrait = {
		character = scope:servant
		animation = worry
	}
		
	trigger = {
		is_available_child = yes
		NAND = {
			OR = {
				has_trait = patient
				has_trait = impatient
			}
			OR = {
				has_trait = brave	
				has_trait = craven
			}
			OR = {
				has_trait = temperate
				has_trait = gluttonous
			}
		}
	}

	weight_multiplier = {
		base = 1
		modifier = {
			add = 2
			any_relation = {
				type = guardian
				OR = {
					has_trait = brave
					has_trait = patient
					has_trait = temperate
				}
			}
		}
		modifier = {
			add = 5
			culture = {
				has_cultural_parameter = patient_trait_more_common
			}
			NOR = {
				has_trait = patient
				has_trait = impatient
			}
		}
		modifier = {
			add = 5
			culture = {
				has_cultural_parameter = temperate_trait_more_common
			}
			NOR = {
				has_trait = temperate
				has_trait = gluttonous
			}
		}
	}

	immediate = {
		save_scope_as = child
		create_character = {
			age = 12
			gender = male
			location = root.location
			faith = root.faith
			culture = root.culture
			dynasty = lowborn
			save_scope_as = servant
		}
	}

	option = {
		name = child_personality.0065.a
		trigger = {
			NOR = {
				has_trait = patient
				has_trait = impatient
			}
		}
		ai_chance = {
			base = 1
			modifier = {
				add = 4
				any_relation = {
					type = guardian
					has_trait = patient
				}
			}
			modifier = {
				add = -0.5
				any_relation = {
					type = guardian
					has_trait = impatient
				}
			}
			modifier = {
				add = 100
				culture = {
					has_cultural_parameter = patient_trait_more_common
				}
			}
		}
		add_trait = patient
		if = {
			limit = {
				is_ai = yes
			}
			random_relation = {
				type = guardian
				trigger_event = child_personality.1651
			}
		}
	}
	
	option = {
		name = child_personality.0065.b
		trigger = {
			NOR = {
				has_trait = brave
				has_trait = craven
			}
		}
		ai_chance = {
			base = 1
			modifier = {
				add = 4
				any_relation = {
					type = guardian
					has_trait = brave
				}
			}
			modifier = {
				add = -0.5
				any_relation = {
					type = guardian
					has_trait = craven
				}
			}
		}
		add_trait = brave
		if = {
			limit = {
				is_ai = yes
			}
			random_relation = {
				type = guardian
				trigger_event = child_personality.1652
			}
		}
	}
	
	option = {
		name = child_personality.0065.c
		trigger = {
			NOR = {
				has_trait = temperate
				has_trait = gluttonous
			}
		}
		ai_chance = {
			base = 1
			modifier = {
				add = 4
				any_relation = {
					type = guardian
					has_trait = temperate
				}
			}
			modifier = {
				add = -0.5
				any_relation = {
					type = guardian
					has_trait = gluttonous
				}
			}
			modifier = {
				add = 100
				culture = {
					has_cultural_parameter = temperate_trait_more_common
				}
			}
		}
		add_trait = temperate
		if = {
			limit = {
				is_ai = yes
			}
			random_relation = {
				type = guardian
				trigger_event = child_personality.1653
			}
		}
	}
	
	after = {
		hidden_effect = {
			if = {
				limit = {
					NAND = {
						is_ai = yes
						any_relation = {
							type = guardian
							is_ai = no
						}
					}
				}
				scope:servant = {
					silent_disappearance_effect = yes
				}
			}
		}
	}
}


#Compassionate, Chaste, Trusting
#Child learns about how rabbits are made
child_personality.0066 = {
	type = character_event
	title = child_personality.0066.t
	desc = child_personality.0066.desc
	theme = education
	override_background = {
		reference = courtyard
	}
	left_portrait = {
		character = root
		animation = disbelief
	}
	
	trigger = {
		is_available_child = yes
		age >= 13 #Because chaste/lustful are only given at age 13
		NAND = {
			OR = {
				has_trait = compassionate
				has_trait = callous
				has_trait = sadistic
			}
			OR = {
				has_trait = chaste
				has_trait = lustful
			}
			OR = {
				has_trait = trusting
				has_trait = paranoid
			}
		}
	}

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

	immediate = {
		save_scope_as = child
		# create_character = {
			# age = 35
			# gender = male
			# location = root.capital_province
			# faith = root.faith
			# culture = root.culture
			# dynasty = lowborn
			# save_scope_as = servant
		# }
	}

	option = {
		name = child_personality.0066.a
		trigger = {
			NOR = {
				has_trait = compassionate
				has_trait = callous
				has_trait = sadistic
			}
		}
		ai_chance = {
			base = 1
			modifier = {
				add = 4
				any_relation = {
					type = guardian
					has_trait = compassionate
				}
			}
			modifier = {
				add = -0.5
				any_relation = {
					type = guardian
					has_trait = callous					
				}
			}
			modifier = {
				add = -0.5
				any_relation = {
					type = guardian
					has_trait = sadistic					
				}
			}
			modifier = {
				add = 100
				culture = {
					has_cultural_parameter = compassionate_trait_more_common
				}
			}
		}
		add_trait = compassionate
		if = {
			limit = {
				is_ai = yes
			}
			random_relation = {
				type = guardian
				trigger_event = child_personality.1661
			}
		}	
	}
	
	option = {
		name = child_personality.0066.b
		trigger = {
			NOR = {
				has_trait = chaste
				has_trait = lustful
			}
		}
		ai_chance = {
			base = 1
			modifier = {
				add = 4
				any_relation = {
					type = guardian
					has_trait = chaste
				}
			}
			modifier = {
				add = -0.5
				any_relation = {
					type = guardian
					has_trait = lustful
				}
			}
		}
		add_trait = chaste
		if = {
			limit = {
				is_ai = yes
			}
			random_relation = {
				type = guardian
				trigger_event = child_personality.1662
			}
		}	
	}
	
	option = {
		name = child_personality.0066.c
		trigger = {
			NOR = {
				has_trait = trusting
				has_trait = paranoid
			}
		}
		ai_chance = {
			base = 1
			modifier = {
				add = 4
				any_relation = {
					type = guardian
					has_trait = trusting
				}
			}
			modifier = {
				add = -0.5
				any_relation = {
					type = guardian
					has_trait = paranoid
				}
			}
		}
		add_trait = trusting
		if = {
			limit = {
				is_ai = yes
			}
			random_relation = {
				type = guardian
				trigger_event = child_personality.1663
			}
		}
	}

	# after = {
		# limit = {
			# NOT = { 
				# exists = scope:guardian
			# }
		# }
		# hidden_effect = {
			# scope:servant = {
				# death = {
					# death_reason = death_vanished
				# }
			# }
		# }
	# }	
}


#Honest, Gluttonous, Craven
#Child plays a game of hide and seek
child_personality.0067 = {
	type = character_event
	title = child_personality.0067.t
	desc = child_personality.0067.desc
	theme = education
	left_portrait = {
		character = root
		animation = scheme
	}
	
	trigger = {
		is_available_child = yes
		NAND = {
			OR = {
				has_trait = honest
				has_trait = deceitful
			}
			OR = {
				has_trait = gluttonous
				has_trait = temperate
			}
			OR = {
				has_trait = craven
				has_trait = brave
			}
		}
	}

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

	immediate = {
		save_scope_as = child
	}

	option = {
		name = child_personality.0067.a
		trigger = {
			NOR = {
				has_trait = honest
				has_trait = deceitful
			}
		}
		ai_chance = {
			base = 1
			modifier = {
				add = 4
				any_relation = {
					type = guardian
					has_trait = honest
				}
			}
			modifier = {
				add = -0.5
				any_relation = {
					type = guardian
					has_trait = deceitful
				}
			}
			modifier = {
				add = 100
				culture = {
					has_cultural_parameter = honest_trait_more_common
				}
			}
		}
		add_trait = honest
		if = {
			limit = {
				is_ai = yes
			}
			random_relation = {
				type = guardian
				trigger_event = child_personality.1671
			}
		}	
	}
	
	option = {
		name = child_personality.0067.b
		trigger = {
			NOR = {
				has_trait = gluttonous
				has_trait = temperate
			}
		}
		ai_chance = {
			base = 1
			modifier = {
				add = 4
				any_relation = {
					type = guardian
					has_trait = gluttonous
				}
			}
			modifier = {
				add = -0.5
				any_relation = {
					type = guardian
					has_trait = temperate
				}
			}
		}
		add_trait = gluttonous
		if = {
			limit = {
				is_ai = yes
			}
			random_relation = {
				type = guardian
				trigger_event = child_personality.1672
			}
		}	
	}
	
	option = {
		name = child_personality.0067.c
		trigger = {
			NOR = {
				has_trait = craven
				has_trait = brave
			}
		}
		ai_chance = {
			base = 1
			modifier = {
				add = 4
				any_relation = {
					type = guardian
					has_trait = craven
				}
			}
			modifier = {
				add = -0.5
				any_relation = {
					type = guardian
					has_trait = brave
				}
			}
		}
		add_trait = craven
		if = {
			limit = {
				is_ai = yes
			}
			random_relation = {
				type = guardian
				trigger_event = child_personality.1673
			}
		}	
	}
}


#Humble, Paranoid, Forgiving
#Child loses a boardgame
child_personality.0068 = {
	type = character_event
	title = child_personality.0068.t
	desc = {
		first_valid = {
			triggered_desc = {
				trigger = {
					exists = scope:guardian
				}
				desc = child_personality.0068.guardian
			}
			desc = child_personality.0068.no_guardian
		}
	}
	theme = education
	left_portrait = {
		character = root
		animation = disapproval 
	}
	right_portrait = {
		character = scope:chess_master
		animation = scheme
	}
	override_background = sitting_room
	
	trigger = {
		is_available_child = yes
		NAND = {
			OR = {
				has_trait = humble
				has_trait = arrogant
			}
			OR = {
				has_trait = paranoid
				has_trait = trusting
			}
			OR = {
				has_trait = forgiving
				has_trait = vengeful
			}
		}
		AND = {
			exists = host
			host = {
				any_vassal = {
					is_adult =yes
					is_imprisoned = no
					learning > 10
					NOT = { has_trait = incapable }
					NOT = { this = root }
					NOT = {
						any_relation = {
							type = ward
							this = root
						}
					}
				}
			}
		}
	}
	
	weight_multiplier = {
		base = 1
		modifier = {
			add = 2
			any_relation = {
				type = guardian
				OR = {
					has_trait = humble
					has_trait = paranoid
					has_trait = forgiving
				}
			}
		}
	}
	
	immediate = {
		save_scope_as = child
		if = {
			limit = {
				any_relation = {
					type = guardian
					is_available = yes
				}
			}
			random_relation = {
				type = guardian
				save_scope_as = chess_master
				save_scope_as = guardian
			}
		}
		else = {
			host = {
				random_vassal = {
					limit = {
						is_adult =yes
						is_imprisoned = no
						learning > 10
						NOT = { has_trait = incapable }
						NOT = { this = root }
						NOT = {
							any_relation = {
								type = ward
								this = root
							}
						}
						NOT = {
							any_relation = {
								exists = scope:guardian
							}
						}
					}
					save_scope_as = chess_master
				}
				
			}
		}
		
	}
	
	option = {
		name = child_personality.0068.a
		trigger = {
			NOR = {
				has_trait = humble
				has_trait = arrogant
			}
		}
		ai_chance = {
			base = 1
			modifier = {
				add = 4
				any_relation = {
					type = guardian
					has_trait = humble
				}
			}
			modifier = {
				add = -0.5
				any_relation = {
					type = guardian
					has_trait = arrogant
				}
			}
		}
		add_trait = humble
		if = {
			limit = {
				is_ai = yes
			}
			random_relation = {
				type = guardian
				trigger_event = child_personality.1681
			}
		}
	}
	
	option = {
		name = child_personality.0068.b
		trigger = {
			NOR = {
				has_trait = paranoid
				has_trait = trusting
			}
		}
		ai_chance = {
			base = 1
			modifier = {
				add = 4
				any_relation = {
					type = guardian
					has_trait = paranoid
				}
			}
			modifier = {
				add = -0.5
				any_relation = {
					type = guardian
					has_trait = trusting
				}
			}
		}
		add_trait = paranoid
		if = {
			limit = {
				is_ai = yes
			}
			random_relation = {
				type = guardian
				trigger_event = child_personality.1682
			}
		}
	}

	option = {
		name = child_personality.0068.c
		trigger = {
			NOR = {
				has_trait = forgiving
				has_trait = vengeful
			}
		}
		ai_chance = {
			base = 1
			modifier = {
				add = 4
				any_relation = {
					type = guardian
					has_trait = forgiving
				}
			}
			modifier = {
				add = -0.5
				any_relation = {
					type = guardian
					has_trait = vengeful
				}
			}
		}
		add_trait = forgiving
		if = {
			limit = {
				is_ai = yes
			}
			random_relation = {
				type = guardian
				trigger_event = child_personality.1683
			}
		}
	}
}


#Impatient, Content, Arrogant
#Child attends a feast from the people
child_personality.0070 = {
	type = character_event
	title = child_personality.0070.t
	desc = child_personality.0070.desc
	theme = education
	override_background = {
		reference = farmland
	}
	left_portrait = {
		character = root
		animation = ecstasy
	}
		
	trigger = {
		is_available_child = yes
		NAND = {
			OR = {
				has_trait = patient
				has_trait = impatient
			}
			OR = {
				has_trait = content	
				has_trait = ambitious
			}
			OR = {
				has_trait = humble
				has_trait = arrogant
			}
		}
	}

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

	immediate = {
		save_scope_as = child
	}

	option = {
		name = child_personality.0070.a
		trigger = {
			NOR = {
				has_trait = patient
				has_trait = impatient
			}
		}
		ai_chance = {
			base = 1
			modifier = {
				add = -0.5
				any_relation = {
					type = guardian
					has_trait = patient
				}
			}
			modifier = {
				add = 4
				any_relation = {
					type = guardian
					has_trait = impatient
				}
			}
		}
		add_trait = impatient
		if = {
			limit = {
				is_ai = yes
			}
			random_relation = {
				type = guardian
				trigger_event = child_personality.1701
			}
		}	
	}
	
	option = {
		name = child_personality.0070.b
		trigger = {
			NOR = {
				has_trait = content
				has_trait = ambitious
			}
		}
		ai_chance = {
			base = 1
			modifier = {
				add = 4
				any_relation = {
					type = guardian
					has_trait = content
				}
			}
			modifier = {
				add = -0.5
				any_relation = {
					type = guardian
					has_trait = ambitious
				}
			}
			modifier = {
				add = 100
				culture = {
					has_cultural_parameter = content_trait_more_common
				}
			}
		}
		add_trait = content
		if = {
			limit = {
				is_ai = yes
			}
			random_relation = {
				type = guardian
				trigger_event = child_personality.1702
			}
		}	
	}
	
	option = {
		name = child_personality.0070.c
		trigger = {
			NOR = {
				has_trait = arrogant
				has_trait = humble
			}
		}
		ai_chance = {
			base = 1
			modifier = {
				add = 4
				any_relation = {
					type = guardian
					has_trait = arrogant
				}
			}
			modifier = {
				add = -0.5
				any_relation = {
					type = guardian
					has_trait = humble
				}
			}
		}
		add_trait = arrogant
		if = {
			limit = {
				is_ai = yes
			}
			random_relation = {
				type = guardian
				trigger_event = child_personality.1703
			}
		}	
	}
}


#Shy, Deceitful, Lazy
#Child is tired of studying
child_personality.0071 = {
	type = character_event
	title = child_personality.0071.t
	desc = child_personality.0071.desc
	theme = education
	override_background = { 
		reference = bedchamber 
	}
	left_portrait = {
		character = root
		animation = sadness
	}
	
	trigger = {
		is_available_child = yes
		NAND = {
			OR = {
				has_trait = shy
				has_trait = gregarious
			}
			OR = {
				has_trait = deceitful
				has_trait = honest
			}
			OR = {
				has_trait = lazy
				has_trait = diligent
			}
		}
	}

	weight_multiplier = {
		base = 1
		modifier = {
			add = 2
			any_relation = {
				type = guardian
				OR = {
					has_trait = shy
					has_trait = deceitful
					has_trait = lazy
				}
			}
		}
	}

	immediate = {
		save_scope_as = child
	}

	option = {
		name = child_personality.0071.a
		trigger = {
			NOR = {
				has_trait = shy
				has_trait = gregarious
			}
		}
		ai_chance = {
			base = 1
			modifier = {
				add = 4
				any_relation = {
					type = guardian
					has_trait = shy
				}
			}
			modifier = {
				add = -0.5
				any_relation = {
					type = guardian
					has_trait = gregarious
				}
			}
		}
		add_trait = shy
		if = {
			limit = {
				is_ai = yes
			}
			random_relation = {
				type = guardian
				trigger_event = child_personality.1711
			}
		}	
	}
	
	option = {
		name = child_personality.0071.b
		trigger = {
			NOR = {
				has_trait = deceitful
				has_trait = honest
			}
		}
		ai_chance = {
			base = 1
			modifier = {
				add = 4
				any_relation = {
					type = guardian
					has_trait = deceitful
				}
			}
			modifier = {
				add = -0.5
				any_relation = {
					type = guardian
					has_trait = honest
				}
			}
		}
		add_trait = deceitful
		if = {
			limit = {
				is_ai = yes
			}
			random_relation = {
				type = guardian
				trigger_event = child_personality.1712
			}
		}	
	}
	
	option = {
		name = child_personality.0071.c
		trigger = {
			NOR = {
				has_trait = lazy
				has_trait = diligent
			}
		}
		ai_chance = {
			base = 1
			modifier = {
				add = 4
				any_relation = {
					type = guardian
					has_trait = lazy
				}
			}
			modifier = {
				add = -0.5
				any_relation = {
					type = guardian
					has_trait = diligent
				}
			}
		}
		add_trait = lazy
		if = {
			limit = {
				is_ai = yes
			}
			random_relation = {
				type = guardian
				trigger_event = child_personality.1713
			}
		}	
	}
}


#Lustful, Fickle, Arbitrary
#Child gets a crush at a dance
child_personality.0072 = {
	type = character_event
	title = child_personality.0072.t
	desc = {
		desc = child_personality.0072.desc
		first_valid = {
			triggered_desc = {
				trigger = {
					any_relation = {
						type = crush
						is_female = no
					}
				}
				desc = child_personality.0072.dancing_boy
			}
			triggered_desc = {
				trigger = {
					any_relation = {
						type = crush
						is_female = yes
					}
				}
				desc = child_personality.0072.dancing_girl
			}
			desc = child_personality.0072.desc_no_dancer
		}
	}
	theme = education
	override_background = {
		reference = feast
	}
	left_portrait = {
		character = scope:crush
		animation = personality_content
	}
	right_portrait = {
		character = scope:child
		animation = admiration
	}
		
	trigger = {
		is_available_child = yes
		age >= 13 #Because chaste/lustful are only given at age 13
		NAND = {
			OR = {
				has_trait = fickle
				has_trait = stubborn
			}
			OR = {
				has_trait = arbitrary
				has_trait = just
			}
			OR = {
				has_trait = lustful
				has_trait = chaste
			}
		}
	}

	weight_multiplier = {
		base = 0.25
		modifier = {
			add = 1
			any_relation = {
				type = crush
				is_available_child = yes
				NOT = {
					any_relation = {
						type = crush
						this = root
					}
				}
			}
		}
		modifier = {
			add = 1
			OR = {
				any_vassal = {
					save_good_crush_character_trigger_check = yes
				}
				any_vassal = {
					any_child = {
						save_good_crush_character_trigger_check = yes
					}
				}
				trigger_if = {
					limit = {
						is_independent_ruler = no
					}
					exists = host
					host = {
						any_vassal = {
							any_child = {
								save_good_crush_character_trigger_check = yes
							}
						}
					}
					host = {
						any_courtier_or_guest = {
							any_child = {
								save_good_crush_character_trigger_check = yes
							}
						}
					}
				}
			}
		}
	
		modifier = {
			add = 2
			any_relation = {
				type = guardian
				OR = {
					has_trait = fickle
					has_trait = arbitrary
					has_trait = lustful
				}
			}
		}
	}

	immediate = {
		save_scope_as = child
		if = {
			limit = {
				any_relation = {
					type = crush
					is_available_child = yes
				}
				NOT = { #Not a crush who crushes on you!
					any_relation = {
						type = crush
						is_available_child = yes
						any_relation = {
							type = crush
							this = root
						}
					}
				}
			}
			random_relation = {
				type = crush
				limit = {
					is_available_child = yes
					NOT = {
						any_relation = {
							type = crush
							this = root
						}
					}
				}
				save_scope_as = crush
			}
		}
		save_good_character_effect = {
			RELATION = crush
			SCOPE = crush
		}
		if = {
			limit = {
				exists = scope:crush
				NOT = { has_relation_crush = scope:crush }
			}
			set_relation_crush = scope:crush
		}

		hidden_effect = {
			if = {
				limit = {
					has_sexuality = none
				}
				random_list = {
					0 = { #Heterosexual
						trigger = {
							OR = {
								NOT = { exists = scope:crush }
								AND = {
									exists = scope:crush
									sex_opposite_of = scope:crush
								}
							}
						}
						modifier = {
							add = heterosexuality_chance
						}
						save_scope_value_as = {
							name = heterosexual
							value = yes
						}
					}
					0 = { #Homosexual
						trigger = {
							OR = {
								NOT = { exists = scope:crush }
								AND = {
									exists = scope:crush
									sex_same_as = scope:crush
								}
							}
						}
						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
		}
	}
	
	option = {
		name = child_personality.0072.a
		trigger = {
			NOR = {
				has_trait = lustful
				has_trait = chaste
				has_sexuality = asexual
			}
		}
		ai_chance = {
			base = 1
			modifier = {
				add = 4
				any_relation = {
					type = guardian
					has_trait = lustful
				}
			}
			modifier = {
				add = -0.5
				any_relation = {
					type = guardian
					has_trait = chaste
				}
			}
		}
		add_trait = lustful
		if = {
			limit = {
				is_ai = yes
			}
			random_relation = {
				type = guardian
				trigger_event = child_personality.1721
			}
		}	
	}

	option = {
		name = child_personality.0072.b
		trigger = {
			NOR = {
				has_trait = fickle
				has_trait = stubborn
			}
		}
		ai_chance = {
			base = 1
			modifier = {
				add = 4
				any_relation = {
					type = guardian
					has_trait = fickle
				}
			}
			modifier = {
				add = -0.5
				any_relation = {
					type = guardian
					has_trait = stubborn
				}
			}
		}
		if = {
			limit = {
				exists = scope:crush
				has_sexuality = asexual
			}
			remove_relation_crush = scope:crush
		}
		add_trait = fickle
		if = {
			limit = {
				is_ai = yes
			}
			random_relation = {
				type = guardian
				trigger_event = child_personality.1722
			}
		}	
	}

	option = {
		name = child_personality.0072.c
		trigger = {
			NOR = {
				has_trait = arbitrary
				has_trait = just
			}
		}
		ai_chance = {
			base = 1
			modifier = {
				add = 4
				any_relation = {
					type = guardian
					has_trait = arbitrary
				}
			}
			modifier = {
				add = -0.5
				any_relation = {
					type = guardian
					has_trait = just
				}
			}
		}
		if = {
			limit = {
				exists = scope:crush
				has_sexuality = asexual
			}
			remove_relation_crush = scope:crush
		}
		add_trait = arbitrary
		if = {
			limit = {
				is_ai = yes
			}
			random_relation = {
				type = guardian
				trigger_event = child_personality.1723
			}
		}	
	}
}


#Diligent, Just, Zealous
#Child reads about a great ruler
child_personality.0073 = {
	type = character_event
	title = child_personality.0073.t
	desc = child_personality.0073.desc
	theme = education

	left_portrait = {
		character = root
		animation = personality_rational
	}
		
	trigger = {
		is_available_child = yes
		NAND = {
			OR = {
				has_trait = diligent
				has_trait = lazy
			}
			OR = {
				has_trait = just
				has_trait = arbitrary
			}
			OR = {
				has_trait = zealous
				has_trait = cynical
			}
		}
	}

	weight_multiplier = {
		base = 1
		modifier = {
			add = 2
			any_relation = {
				type = guardian
				OR = {
					has_trait = diligent
					has_trait = just
					has_trait = zealous
				}
			}
		}
		modifier = {
			add = 5
			culture = {
				has_cultural_parameter = just_trait_more_common
			}
			NOR = {
				has_trait = just
				has_trait = arbitrary
			}
		}
		modifier = {
			add = 5
			culture = {
				has_cultural_parameter = zealous_trait_more_common
			}
			NOR = {
				has_trait = zealous
				has_trait = cynical
			}
		}
	}
	

	immediate = {
		save_scope_as = child
	}

	option = {
		name = child_personality.0073.a
		trigger = {
			NOR = {
				has_trait = diligent
				has_trait = lazy
			}
		}
		ai_chance = {
			base = 1
			modifier = {
				add = 4
				any_relation = {
					type = guardian
					has_trait = diligent
				}
			}
			modifier = {
				add = -0.5
				any_relation = {
					type = guardian
					has_trait = lazy
				}
			}
		}
		add_trait = diligent
		if = {
			limit = {
				is_ai = yes
			}
			random_relation = {
				type = guardian
				trigger_event = child_personality.1731
			}
		}	
	}
	
	option = {
		name = child_personality.0073.b
		trigger = {
			NOR = {
				has_trait = just
				has_trait = arbitrary
			}
		}
		ai_chance = {
			base = 1
			modifier = {
				add = 4
				any_relation = {
					type = guardian
					has_trait = just
				}
			}
			modifier = {
				add = -0.5
				any_relation = {
					type = guardian
					has_trait = arbitrary
				}
			}
			modifier = {
				add = 100
				culture = {
					has_cultural_parameter = just_trait_more_common
				}
			}
		}
		add_trait = just
		if = {
			limit = {
				is_ai = yes
			}
			random_relation = {
				type = guardian
				trigger_event = child_personality.1732
			}
		}	
	}
	
	option = {
		name = child_personality.0073.c
		trigger = {
			NOR = {
				has_trait = zealous
				has_trait = cynical
			}
		}
		ai_chance = {
			base = 1
			modifier = {
				add = 4
				any_relation = {
					type = guardian
					has_trait = zealous
				}
			}
			modifier = {
				add = -0.5
				any_relation = {
					type = guardian
					has_trait = cynical
				}
			}
			modifier = {
				add = 100
				culture = {
					has_cultural_parameter = zealous_trait_more_common
				}
			}
		}
		add_trait = zealous
		if = {
			limit = {
				is_ai = yes
			}
			random_relation = {
				type = guardian
				trigger_event = child_personality.1733
			}
		}	
	}
}


#Generous, Gregarious, Ambitious
#Child puts on a play for the court
child_personality.0074 = {
	type = character_event
	title = child_personality.0074.t
	desc = child_personality.0074.desc
	theme = education
	
	override_background = {
		reference = garden
	}
	left_portrait = {
		character = scope:friend
		animation = ecstasy
	}
	right_portrait = {
		character = scope:child
	}
		
	trigger = {
		is_available_child = yes
		NAND = {
			OR = {
				has_trait = generous
				has_trait = greedy
			}
			OR = {
				has_trait = gregarious
				has_trait = shy
			}
			OR = {
				has_trait = ambitious
				has_trait = content
			}
		}
	}

	weight_multiplier = {
		base = 1
		modifier = {
			add = 2
			any_relation = {
				type = guardian
				OR = {
					has_trait = gregarious
					has_trait = generous
					has_trait = ambitious
				}
			}
		}
	}

	immediate = {
		save_scope_as = child
		if = {
			limit = {
				any_relation = {
					type = friend
					is_available_child = yes
				}
			}
			random_relation = {
				type = friend
				limit = {
					is_available_child = yes
				}
				save_scope_as = friend
			}
		}
	}
	
	option = {
		name = child_personality.0074.a
		trigger = {
			NOR = {
				has_trait = generous
				has_trait = greedy
			}
		}
		ai_chance = {
			base = 1
			modifier = {
				add = 4
				any_relation = {
					type = guardian
					has_trait = generous
				}
			}
			modifier = {
				add = -0.5
				any_relation = {
					type = guardian
					has_trait = greedy
				}
			}
			modifier = {
				add = 100
				culture = {
					has_cultural_parameter = generous_trait_more_common
				}
			}
		}
		add_trait = generous
		if = {
			limit = {
				is_ai = yes
			}
			random_relation = {
				type = guardian
				trigger_event = child_personality.1741
			}
		}	
	}

	option = {
		name = child_personality.0074.b
		trigger = {
			NOR = {
				has_trait = gregarious
				has_trait = shy
			}
		}
		ai_chance = {
			base = 1
			modifier = {
				add = 4
				any_relation = {
					type = guardian
					has_trait = gregarious
				}
			}
			modifier = {
				add = -0.5
				any_relation = {
					type = guardian
					has_trait = shy
				}
			}
		}
		add_trait = gregarious
		if = {
			limit = {
				is_ai = yes
			}
			random_relation = {
				type = guardian
				trigger_event = child_personality.1742
			}
		}	
	}

	option = {
		name = child_personality.0074.c
		trigger = {
			NOR = {
				has_trait = ambitious
				has_trait = content
			}
		}
		ai_chance = {
			base = 1
			modifier = {
				add = 4
				any_relation = {
					type = guardian
					has_trait = ambitious
				}
			}
			modifier = {
				add = -0.5
				any_relation = {
					type = guardian
					has_trait = content
				}
			}
		}
		add_trait = ambitious
		if = {
			limit = {
				is_ai = yes
			}
			random_relation = {
				type = guardian
				trigger_event = child_personality.1743
			}
		}	
	}
}


#Cynical, Callous, Greedy
#Child listens to a veterans war stories
child_personality.0075 = {
	type = character_event
	title = child_personality.0075.t
	desc = child_personality.0075.desc
	theme = education
	override_background = {
		reference = army_camp
	}
	left_portrait = {
		character = root
		animation = sadness
	}
	right_portrait = {
		character = scope:veteran
		animation = pain
	}
	
	trigger = {
		is_available_child = yes
		NAND = {
			OR = {
				has_trait = cynical
				has_trait = zealous
			}
			OR = {
				has_trait = callous
				has_trait = compassionate
			}
			OR = {
				has_trait = greedy
				has_trait = generous
			}
		}
	}

	weight_multiplier = {
		base = 1
		modifier = {
			add = 2
			any_relation = {
				type = guardian
				OR = {
					has_trait = cynical
					has_trait = callous
					has_trait = greedy
				}
			}
		}
	}

	immediate = {
		save_scope_as = child
		create_character = {
			age = 60
			gender = male
			location = root.location
			faith = root.faith
			culture = root.culture
			dynasty = lowborn
			trait = one_legged
			trait = drunkard
			save_scope_as = veteran
		}
	}

	option = {
		name = child_personality.0075.a
		trigger = {
			NOR = {
				has_trait = cynical
				has_trait = zealous
			}
		}
		ai_chance = {
			base = 1
			modifier = {
				add = 4
				any_relation = {
					type = guardian
					has_trait = cynical
				}
			}
			modifier = {
				add = -0.5
				any_relation = {
					type = guardian
					has_trait = zealous
				}
			}
		}
		add_trait = cynical
		if = {
			limit = {
				is_ai = yes
			}
			random_relation = {
				type = guardian
				trigger_event = child_personality.1751
			}
		}
	}
	
	option = {
		name = child_personality.0075.b
		trigger = {
			NOR = {
				has_trait = callous
				has_trait = compassionate
			}
		}
		ai_chance = {
			base = 1
			modifier = {
				add = 4
				any_relation = {
					type = guardian
					has_trait = callous
				}
			}
			modifier = {
				add = -0.5
				any_relation = {
					type = guardian
					has_trait = compassionate
				}
			}
		}
		add_trait = callous
		if = {
			limit = {
				is_ai = yes
			}
			random_relation = {
				type = guardian
				trigger_event = child_personality.1752
			}
		}
	}
	
	option = {
		name = child_personality.0075.c
		trigger = {
			NOR = {
				has_trait = greedy
				has_trait = generous
			}
		}
		ai_chance = {
			base = 1
			modifier = {
				add = 4
				any_relation = {
					type = guardian
					has_trait = greedy
				}
			}
			modifier = {
				add = -0.5
				any_relation = {
					type = guardian
					has_trait = generous
				}
			}
		}
		add_trait = greedy
		if = {
			limit = {
				is_ai = yes
			}
			random_relation = {
				type = guardian
				trigger_event = child_personality.1753
			}
		}
	}
	
	after = {
		hidden_effect = {
			if = {
				limit = {
					NAND = {
						is_ai = yes
						any_relation = {
							type = guardian
							is_ai = no
						}
					}
				}
				scope:veteran = {
					silent_disappearance_effect = yes
				}
			}
		}
	}
}

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


#Responses to Sadistic, Calm, Stubborn
#0062

#Child has become sadistic
child_personality.1621 = {
	type = character_event
	title = child_personality.1621.t
	desc = {
		desc = child_personality.162.desc
		desc = child_personality.162.sadistic
	}
	theme = education
	override_background = {
		reference = courtyard
	}
	left_portrait = {
		character = scope:child
		animation = schadenfreude
	}
		
	trigger = {
		scope:child = {
			NAND = {
				OR = {
					has_trait = fickle
					has_trait = stubborn
				}
				OR = {
					has_trait = calm
					has_trait = wrathful
				}
			}
		}
	}
	
	option = {
		name = child_personality.162.confirm_sadistic
		custom_tooltip = child_personality.keeps_sadistic_tt
	}
	option = {
		name = child_personality.162.calm_change
		trigger = {
			scope:child = {
				NOR = {
					has_trait = calm
					has_trait = wrathful
				}
			}
		}
		ai_chance = {
			base = 0
		}
		stress_impact = {
			base = child_trait_change_stress_penalty
		}
		scope:child = {
			remove_trait = sadistic
			add_trait_force_tooltip = calm
		}
	}
	
	option = {
		name = child_personality.162.stubborn_change
		trigger = {
			scope:child = {
				NOR = {
					has_trait = stubborn
					has_trait = fickle
				}
			}
		}
		ai_chance = {
			base = 0
		}
		stress_impact = {
			base = child_trait_change_stress_penalty
		}
		scope:child = {
			remove_trait = sadistic
			add_trait_force_tooltip = stubborn
		}
	}
}

#Child has become calm
child_personality.1622 = {
	type = character_event
	title = child_personality.1622.t
	desc = {
		desc = child_personality.162.desc
		desc = child_personality.162.calm
	}
	theme = education
	override_background = {
		reference = courtyard
	}
	left_portrait = {
		character = scope:child
		animation = personality_content
	}
	
	trigger = {
		scope:child = {
			NAND = {
				OR = {
					has_trait = sadistic
					has_trait = callous
					has_trait = compassionate
				}
				OR = {
					has_trait = stubborn
					has_trait = fickle
				}
			}
		}
	}
	
	option = {
		name = child_personality.162.confirm_calm
		custom_tooltip = child_personality.keeps_calm_tt
	}
	option = {
		name = child_personality.162.sadistic_change
		trigger = {
			scope:child = {
				NOR = {
					has_trait = sadistic
					has_trait = callous
					has_trait = compassionate
				}
			}
		}
		ai_chance = {
			base = 0
		}
		stress_impact = {
			base = child_trait_change_stress_penalty
		}
		scope:child = {
			remove_trait = calm
			add_trait_force_tooltip = sadistic
		}
	}
	
	option = {
		name = child_personality.162.stubborn_change
		trigger = {
			scope:child = {
				NOR = {
					has_trait = stubborn
					has_trait = fickle
				}
			}
		}
		ai_chance = {
			base = 0
		}
		stress_impact = {
			base = child_trait_change_stress_penalty
		}
		scope:child = {
			remove_trait = calm
			add_trait_force_tooltip = stubborn
		}
	}
}

#Child has become stubborn
child_personality.1623 = {
	type = character_event
	title = child_personality.1623.t
	desc = {
		desc = child_personality.162.desc
		desc = child_personality.162.stubborn
	}
	theme = education
	override_background = {
		reference = courtyard
	}
	left_portrait = {
		character = scope:child
		animation = personality_bold
	}
	
	trigger = {
		scope:child = {
			NAND = {
				OR = {
					has_trait = sadistic
					has_trait = callous
					has_trait = compassionate
				}
				OR = {
					has_trait = calm
					has_trait = wrathful
				}
			}
		}
	}
	
	option = {
		name = child_personality.162.confirm_stubborn
		custom_tooltip = child_personality.keeps_stubborn_tt
	}
	
	option = {
		name = child_personality.162.sadistic_change
		trigger = {
			scope:child = {
				NOR = {
					has_trait = sadistic
					has_trait = compassionate
				}
			}
		}
		ai_chance = {
			base = 0
		}
		stress_impact = {
			base = child_trait_change_stress_penalty
		}
		scope:child = {
			remove_trait = stubborn
			add_trait_force_tooltip = sadistic
		}
	}
	
	option = {
		name = child_personality.162.calm_change
		trigger = {
			scope:child = {
				NOR = {
					has_trait = calm
					has_trait = wrathful
				}
			}
		}
		ai_chance = {
			base = 0
		}
		stress_impact = {
			base = child_trait_change_stress_penalty
		}
		scope:child = {
			remove_trait = stubborn
			add_trait_force_tooltip = calm
		}
	}
}

#Responses to Wrathful, Impatient, Vengeful
#0063

#Child has become Wrathful
child_personality.1631 = {
	type = character_event
	title = child_personality.1631.t
	desc = {
		desc = child_personality.163.desc
		desc = child_personality.163.wrathful
	}
	theme = education
	override_background = {
		reference = feast
	}
	left_portrait = {
		character = scope:child
		animation = anger
	}
	right_portrait = {
		character = scope:neighbour
		animation = fear
	}
	
	trigger = {
		scope:child = {
			NAND = {
				OR = {
					has_trait = impatient
					has_trait = patient
				}
				OR = {
					has_trait = vengeful
					has_trait = forgiving
				}
			}
		}
	}
	
	option = {
		name = child_personality.163.confirm_wrathful
		custom_tooltip = child_personality.keeps_wrathful_tt
	}
	option = {
		name = child_personality.163.impatient_change
		trigger = {
			scope:child = {
				NOR = {
					has_trait = impatient
					has_trait = patient
				}
			}
		}
		ai_chance = {
			base = 0
		}
		stress_impact = {
			base = child_trait_change_stress_penalty
		}
		scope:child = {
			remove_trait = wrathful
			add_trait_force_tooltip = impatient
		}
	}
	option = {
		name = child_personality.163.vengeful_change
		trigger = {
			scope:child = {
				NOR = {
					has_trait = vengeful
					has_trait = forgiving
				}
			}
		}
		ai_chance = {
			base = 0
		}
		stress_impact = {
			base = child_trait_change_stress_penalty
		}
		scope:child = {
			remove_trait = wrathful
			add_trait_force_tooltip = vengeful
		}
	}
}

#Child has become Impatient
child_personality.1632 = {
	type = character_event
	title = child_personality.1632.t
	desc = {
		desc = child_personality.163.desc
		desc = child_personality.163.impatient
	}
	theme = education
	override_background = {
		reference = feast
	}
	left_portrait = {
		character = scope:child
		animation = anger
	}
	right_portrait = {
		character = scope:neighbour
		animation = fear
	}
	
	trigger = {
		scope:child = {
			NAND = {
				OR = {
					has_trait = wrathful
					has_trait = calm
				}
				OR = {
					has_trait = vengeful
					has_trait = forgiving
				}
			}
		}
	}
	
	option = {
		name = child_personality.163.confirm_impatient
		custom_tooltip = child_personality.keeps_impatient_tt
	}
	option = {
		name = child_personality.163.wrathful_change
		trigger = {
			scope:child = {
				NOR = {
					has_trait = wrathful
					has_trait = calm
				}
			}
		}
		ai_chance = {
			base = 0
		}
		stress_impact = {
			base = child_trait_change_stress_penalty
		}
		scope:child = {
			remove_trait = impatient
			add_trait_force_tooltip = wrathful
		}
	}
	option = {
		name = child_personality.163.vengeful_change
		trigger = {
			scope:child = {
				NOR = {
					has_trait = vengeful
					has_trait = forgiving
				}
			}
		}
		ai_chance = {
			base = 0
		}
		stress_impact = {
			base = child_trait_change_stress_penalty
		}
		scope:child = {
			remove_trait = impatient
			add_trait_force_tooltip = vengeful
		}
	}
}

#Child has become Vengeful
child_personality.1633 = {
	type = character_event
	title = child_personality.1633.t
	desc = {
		desc = child_personality.163.desc
		desc = child_personality.163.vengeful
	}
	theme = education
	override_background = {
		reference = feast
	}
	left_portrait = {
		character = scope:child
		animation = scheme
	}
	right_portrait = {
		character = scope:neighbour
		animation = fear
	}
	
	trigger = {
		scope:child = {
			NAND = {
				OR = {
					has_trait = wrathful
					has_trait = calm
				}
				OR = {
					has_trait = impatient
					has_trait = patient
				}
			}
		}
	}
	
	option = {
		name = child_personality.163.confirm_vengeful
		custom_tooltip = child_personality.keeps_vengeful_tt
	}
	option = {
		name = child_personality.163.wrathful_change
		trigger = {
			scope:child = {
				NOR = {
					has_trait = wrathful
					has_trait = calm
				}
			}
		}
		ai_chance = {
			base = 0
		}
		stress_impact = {
			base = child_trait_change_stress_penalty
		}
		scope:child = {
			remove_trait = vengeful
			add_trait_force_tooltip = wrathful
		}
	}
	option = {
		name = child_personality.163.impatient_change
		trigger = {
			scope:child = {
				NOR = {
					has_trait = impatient
					has_trait = patient
				}
			}
		}
		ai_chance = {
			base = 0
		}
		stress_impact = {
			base = child_trait_change_stress_penalty
		}
		scope:child = {
			remove_trait = vengeful
			add_trait_force_tooltip = impatient
		}
	}
}

#Responses to Patient, Brave, Temperate
#0065

#Child has become Patient
child_personality.1651 = {
	type = character_event
	title = child_personality.1651.t
	desc = {
		desc = child_personality.165.desc
		desc = child_personality.165.patient
	}
	theme = education
	override_background = {
		reference = alley_day
	}
	left_portrait = {
		character = scope:child
		animation = boredom
	}
	right_portrait = {
		character = scope:servant
		animation = worry
	}
	
	trigger = {
		scope:child = {
			NAND = {
				OR = {
					has_trait = brave
					has_trait = craven
				}
				OR = {
					has_trait = temperate
					has_trait = gluttonous
				}
			}
		}
	}
	
	option = {
		name = child_personality.165.confirm_patient
		custom_tooltip = child_personality.keeps_patient_tt
	}
	option = {
		name = child_personality.165.brave_change
		trigger = {
			scope:child = {
				NOR = {
					has_trait = brave
					has_trait = craven
				}
			}
		}
		ai_chance = {
			base = 0
		}
		stress_impact = {
			base = child_trait_change_stress_penalty
		}
		scope:child = {
			remove_trait = patient
			add_trait_force_tooltip = brave
		}
	}
	option = {
		name = child_personality.165.temperate_change
		trigger = {
			scope:child = {
				NOR = {
					has_trait = temperate
					has_trait = gluttonous
				}
			}
		}
		ai_chance = {
			base = 0
		}
		stress_impact = {
			base = child_trait_change_stress_penalty
		}
		scope:child = {
			remove_trait = patient
			add_trait_force_tooltip = temperate
		}
	}
	after = {
		hidden_effect = {
			scope:servant = {
				silent_disappearance_effect = yes
			}
		}
	}
}

#Child has become Brave
child_personality.1652 = {
	type = character_event
	title = child_personality.1652.t
	desc = {
		desc = child_personality.165.desc
		desc = child_personality.165.brave
	}
	theme = education
	override_background = {
		reference = alley_day
	}
	left_portrait = {
		character = scope:child
		animation = personality_bold
	}
	right_portrait = {
		character = scope:servant
		animation = worry
	}
	
	trigger = {
		scope:child = {
			NAND = {
				OR = {
					has_trait = brave
					has_trait = craven
				}
				OR = {
					has_trait = temperate
					has_trait = gluttonous
				}
			}
		}
	}
	
	option = {
		name = child_personality.165.confirm_brave
		custom_tooltip = child_personality.keeps_brave_tt
	}
	option = {
		name = child_personality.165.patient_change
		trigger = {
			scope:child = {
				NOR = {
					has_trait = patient
					has_trait = impatient
				}
			}
		}
		ai_chance = {
			base = 0
		}
		stress_impact = {
			base = child_trait_change_stress_penalty
		}
		scope:child = {
			remove_trait = brave
			add_trait_force_tooltip = patient
		}
	}
	option = {
		name = child_personality.165.temperate_change
		trigger = {
			scope:child = {
				NOR = {
					has_trait = temperate
					has_trait = gluttonous
				}
			}
		}
		ai_chance = {
			base = 0
		}
		stress_impact = {
			base = child_trait_change_stress_penalty
		}
		scope:child = {
			remove_trait = brave
			add_trait_force_tooltip = temperate
		}
	}
	after = {
		hidden_effect = {
			scope:servant = {
				silent_disappearance_effect = yes
			}
		}
	}
}

#Child has become Temperate
child_personality.1653 = {
	type = character_event
	title = child_personality.1653.t
	desc = {
		desc = child_personality.165.desc
		desc = child_personality.165.temperate
	}
	theme = education
	override_background = {
		reference = alley_day
	}
	left_portrait = {
		character = scope:child
		animation = boredom
	}
	right_portrait = {
		character = scope:servant
		animation = worry
	}
	
	trigger = {
		scope:child = {
			NAND = {
				OR = {
					has_trait = brave
					has_trait = craven
				}
				OR = {
					has_trait = patient
					has_trait = impatient
				}
			}
		}
	}
	
	option = {
		name = child_personality.165.confirm_temperate
		custom_tooltip = child_personality.keeps_temperate_tt
	}
	option = {
		name = child_personality.165.brave_change
		trigger = {
			scope:child = {
				NOR = {
					has_trait = brave
					has_trait = craven
				}
			}
		}
		ai_chance = {
			base = 0
		}
		stress_impact = {
			base = child_trait_change_stress_penalty
		}
		scope:child = {
			remove_trait = temperate
			add_trait_force_tooltip = brave
		}
	}
	option = {
		name = child_personality.165.patient_change
		trigger = {
			scope:child = {
				NOR = {
					has_trait = patient
					has_trait = impatient
				}
			}
		}
		ai_chance = {
			base = 0
		}
		stress_impact = {
			base = child_trait_change_stress_penalty
		}
		scope:child = {
			remove_trait = temperate
			add_trait_force_tooltip = patient
		}
	}
	after = {
		hidden_effect = {
			scope:servant = {
				silent_disappearance_effect = yes
			}
		}
	}
}

#Responses to Compassionate, Chaste, Trusting
#0066

#Child has become Compassionate
child_personality.1661 = {
	type = character_event
	title = child_personality.1661.t
	desc = {
		desc = child_personality.166.desc
		desc = child_personality.166.compassionate
	}
	theme = education
	override_background = {
		reference = courtyard
	}
	left_portrait = {
		character = scope:child
		animation = disbelief
	}

	
	trigger = {
		scope:child = {
			NAND = {
				OR = {
					has_trait = chaste
					has_trait = lustful
				}
				OR = {
					has_trait = trusting
					has_trait = paranoid
				}
			}
		}
	}
	
	option = {
		name = child_personality.166.confirm_compassionate
		custom_tooltip = child_personality.keeps_compassionate_tt
	}
	option = {
		name = child_personality.166.chaste_change
		trigger = {
			scope:child = {
				NOR = {
					has_trait = chaste
					has_trait = lustful
				}
			}
		}
		ai_chance = {
			base = 0
		}
		stress_impact = {
			base = child_trait_change_stress_penalty
		}
		scope:child = {
			remove_trait = compassionate
			add_trait_force_tooltip = chaste
		}
	}
	option = {
		name = child_personality.166.trusting_change
		trigger = {
			scope:child = {
				NOR = {
					has_trait = trusting
					has_trait = paranoid
				}
			}
		}
		ai_chance = {
			base = 0
		}
		stress_impact = {
			base = child_trait_change_stress_penalty
		}
		scope:child = {
			remove_trait = compassionate
			add_trait_force_tooltip = trusting
		}
	}
	# after = {
		# hidden_effect = {
			# scope:servant = {
				# death = {
					# death_reason = death_vanished
				# }
			# }
		# }
	# }
}

#Child has become Chaste
child_personality.1662 = {
	type = character_event
	title = child_personality.1662.t
	desc = {
		desc = child_personality.166.desc
		desc = child_personality.166.chaste
	}
	theme = education
	override_background = {
		reference = courtyard
	}
	left_portrait = {
		character = scope:child
		animation = disbelief
	}

	
	trigger = {
		scope:child = {
			NAND = {
				OR = {
					has_trait = compassionate
					has_trait = callous
					has_trait = sadistic
				}
				OR = {
					has_trait = trusting
					has_trait = paranoid
				}
			}
		}
	}
	
	option = {
		name = child_personality.166.confirm_chaste
		custom_tooltip = child_personality.keeps_chaste_tt
	}
	option = {
		name = child_personality.166.compassionate_change
		trigger = {
			scope:child = {
				NOR = {
					has_trait = compassionate
					has_trait = sadistic
					has_trait = callous
				}
			}
		}
		ai_chance = {
			base = 0
		}
		stress_impact = {
			base = child_trait_change_stress_penalty
		}
		scope:child = {
			remove_trait = chaste
			add_trait_force_tooltip = compassionate
		}
	}
	option = {
		name = child_personality.166.trusting_change
		trigger = {
			scope:child = {
				NOR = {
					has_trait = trusting
					has_trait = paranoid
				}
			}
		}
		ai_chance = {
			base = 0
		}
		stress_impact = {
			base = child_trait_change_stress_penalty
		}
		scope:child = {
			remove_trait = chaste
			add_trait_force_tooltip = trusting
		}
	}
	# after = {
		# hidden_effect = {
			# scope:servant = {
				# death = {
					# death_reason = death_vanished
				# }
			# }
		# }
	# }
}

#Child has become Trusting
child_personality.1663 = {
	type = character_event
	title = child_personality.1663.t
	desc = {
		desc = child_personality.166.desc
		desc = child_personality.166.trusting
	}
	theme = education
	override_background = {
		reference = courtyard
	}
	left_portrait = {
		character = scope:child
		animation = disbelief
	}

	
	trigger = {
		scope:child = {
			NAND = {
				OR = {
					has_trait = compassionate
					has_trait = callous
					has_trait = sadistic
				}
				OR = {
					has_trait = chaste
					has_trait = lustful
				}
			}
		}
	}
	
	option = {
		name = child_personality.166.confirm_trusting
		custom_tooltip = child_personality.keeps_trusting_tt
	}
	option = {
		name = child_personality.166.compassionate_change
		trigger = {
			scope:child = {
				NOR = {
					has_trait = compassionate
					has_trait = sadistic
					has_trait = callous
				}
			}
		}
		ai_chance = {
			base = 0
		}
		stress_impact = {
			base = child_trait_change_stress_penalty
		}
		scope:child = {
			remove_trait = trusting
			add_trait_force_tooltip = compassionate
		}
	}
	option = {
		name = child_personality.166.chaste_change
		trigger = {
			scope:child = {
				NOR = {
					has_trait = chaste
					has_trait = lustful
				}
			}
		}
		ai_chance = {
			base = 0
		}
		stress_impact = {
			base = child_trait_change_stress_penalty
		}
		scope:child = {
			remove_trait = trusting
			add_trait_force_tooltip = chaste
		}
	}
	# after = {
		# hidden_effect = {
			# scope:servant = {
				# death = {
					# death_reason = death_vanished
				# }
			# }
		# }
	# }
}

#Responses to Honest, Gluttonous, Craven
#0067

#Child has become Honest
child_personality.1671 = {
	type = character_event
	title = child_personality.1671.t
	desc = {
		desc = child_personality.167.desc
		desc = child_personality.167.honest
	}
	theme = education
	override_background = sitting_room
	left_portrait = {
		character = scope:child
		animation = personality_compassionate
	}

	
	trigger = {
		scope:child = {
			NAND = {
				OR = {
					has_trait = gluttonous
					has_trait = temperate
				}
				OR = {
					has_trait = craven
					has_trait = brave
				}
			}
		}
	}
	
	option = {
		name = child_personality.167.confirm_honest
		custom_tooltip = child_personality.keeps_honest_tt
	}
	option = {
		name = child_personality.167.gluttonous_change
		trigger = {
			scope:child = {
				NOR = {
					has_trait = gluttonous
					has_trait = temperate
				}
			}
		}
		ai_chance = {
			base = 0
		}
		stress_impact = {
			base = child_trait_change_stress_penalty
		}
		scope:child = {
			remove_trait = honest
			add_trait_force_tooltip = gluttonous
		}
	}
	option = {
		name = child_personality.167.craven_change
		trigger = {
			scope:child = {
				NOR = {
					has_trait = craven
					has_trait = brave
				}
			}
		}
		ai_chance = {
			base = 0
		}
		stress_impact = {
			base = child_trait_change_stress_penalty
		}
		scope:child = {
			remove_trait = honest
			add_trait_force_tooltip = craven
		}
	}
}

#Child has become Gluttonous
child_personality.1672 = {
	type = character_event
	title = child_personality.1672.t
	desc = {
		desc = child_personality.167.desc
		desc = child_personality.167.gluttonous
	}
	theme = education
	override_background = {
		reference = bp1_kitchen_western
	}
	left_portrait = {
		character = scope:child
		animation = admiration
	}

	trigger = {
		scope:child = {
			NAND = {
				OR = {
					has_trait = honest
					has_trait = deceitful
				}
				OR = {
					has_trait = craven
					has_trait = brave
				}
			}
		}
	}
	
	option = {
		name = child_personality.167.confirm_gluttonous
		custom_tooltip = child_personality.keeps_gluttonous_tt
	}
	option = {
		name = child_personality.167.honest_change
		trigger = {
			scope:child = {
				NOR = {
					has_trait = honest
					has_trait = deceitful
				}
			}
		}
		ai_chance = {
			base = 0
		}
		stress_impact = {
			base = child_trait_change_stress_penalty
		}
		scope:child = {
			remove_trait = gluttonous
			add_trait_force_tooltip = honest
		}
	}
	option = {
		name = child_personality.167.craven_change
		trigger = {
			scope:child = {
				NOR = {
					has_trait = craven
					has_trait = brave
				}
			}
		}
		ai_chance = {
			base = 0
		}
		stress_impact = {
			base = child_trait_change_stress_penalty
		}
		scope:child = {
			remove_trait = gluttonous
			add_trait_force_tooltip = craven
		}
	}
}

#Child has become Craven
child_personality.1673 = {
	type = character_event
	title = child_personality.1673.t
	desc = {
		desc = child_personality.167.desc
		desc = child_personality.167.craven
	}
	theme = education
	override_background = {
		reference = dungeon
	}
	left_portrait = {
		character = scope:child
		animation = personality_irrational
	}

	
	trigger = {
		scope:child = {
			NAND = {
				OR = {
					has_trait = honest
					has_trait = deceitful
				}
				OR = {
					has_trait = gluttonous
					has_trait = temperate
				}
			}
		}
	}
	
	option = {
		name = child_personality.167.confirm_craven
		custom_tooltip = child_personality.keeps_craven_tt
	}
	option = {
		name = child_personality.167.honest_change
		trigger = {
			scope:child = {
				NOR = {
					has_trait = honest
					has_trait = deceitful
				}
			}
		}
		ai_chance = {
			base = 0
		}
		stress_impact = {
			base = child_trait_change_stress_penalty
		}
		scope:child = {
			remove_trait = craven
			add_trait_force_tooltip = honest
		}
	}
	option = {
		name = child_personality.167.gluttonous_change
		trigger = {
			scope:child = {
				NOR = {
					has_trait = gluttonous
					has_trait = temperate
				}
			}
		}
		ai_chance = {
			base = 0
		}
		stress_impact = {
			base = child_trait_change_stress_penalty
		}
		scope:child = {
			remove_trait = craven
			add_trait_force_tooltip = gluttonous
		}
	}
}

#Responses to Humble, Paranoid, Forgiving
#0068

#Child has become Humble
child_personality.1681 = {
	type = character_event
	title = child_personality.1681.t
	desc = {
		desc = child_personality.168.desc
		desc = child_personality.168.humble
	}
	theme = education
	left_portrait = {
		character = scope:child
		animation = shame
	}
	override_background = sitting_room
	
	trigger = {
		scope:child = {
			NAND = {
				OR = {
					has_trait = paranoid
					has_trait = trusting
				}
				OR = {
					has_trait = vengeful
					has_trait = forgiving
				}
			}
		}
	}
	
	option = {
		name = child_personality.168.confirm_humble
		custom_tooltip = child_personality.keeps_humble_tt
	}
	option = {
		name = child_personality.168.paranoid_change
		trigger = {
			scope:child = {
				NOR = {
					has_trait = paranoid
					has_trait = trusting
				}
			}
		}
		ai_chance = {
			base = 0
		}
		stress_impact = {
			base = child_trait_change_stress_penalty
		}
		scope:child = {
			remove_trait = humble
			add_trait_force_tooltip = paranoid
		}
	}
	option = {
		name = child_personality.168.forgiving_change
		trigger = {
			scope:child = {
				NOR = {
					has_trait = forgiving
					has_trait = vengeful
				}
			}
		}
		ai_chance = {
			base = 0
		}
		stress_impact = {
			base = child_trait_change_stress_penalty
		}
		scope:child = {
			remove_trait = humble
			add_trait_force_tooltip = forgiving
		}
	}
}

#Child has become Paranoid
child_personality.1682 = {
	type = character_event
	title = child_personality.1682.t
	desc = {
		desc = child_personality.168.desc
		desc = child_personality.168.paranoid
	}
	theme = education
	left_portrait = {
		character = scope:child
		animation = disapproval
	}
	override_background = sitting_room
	
	trigger = {
		scope:child = {
			NAND = {
				OR = {
					has_trait = forgiving
					has_trait = vengeful
				}
				OR = {
					has_trait = arrogant
					has_trait = humble
				}
			}
		}
	}
	
	option = {
		name = child_personality.168.confirm_paranoid
		custom_tooltip = child_personality.keeps_paranoid_tt
	}
	option = {
		name = child_personality.168.humble_change
		trigger = {
			scope:child = {
				NOR = {
					has_trait = humble
					has_trait = arrogant
				}
			}
		}
		ai_chance = {
			base = 0
		}
		stress_impact = {
			base = child_trait_change_stress_penalty
		}
		scope:child = {
			remove_trait = paranoid
			add_trait_force_tooltip = humble
		}
	}
	option = {
		name = child_personality.168.forgiving_change
		trigger = {
			scope:child = {
				NOR = {
					has_trait = forgiving
					has_trait = vengeful
				}
			}
		}
		ai_chance = {
			base = 0
		}
		stress_impact = {
			base = child_trait_change_stress_penalty
		}
		scope:child = {
			remove_trait = paranoid
			add_trait_force_tooltip = forgiving
		}
	}
}

#Child has become Forgiving
child_personality.1683 = {
	type = character_event
	title = child_personality.1683.t
	desc = {
		desc = child_personality.168.desc
		desc = child_personality.168.forgiving
	}
	theme = education
	left_portrait = {
		character = scope:child
		animation = personality_forgiving
	}
	override_background = sitting_room
	
	trigger = {
		scope:child = {
			NAND = {
				OR = {
					has_trait = humble
					has_trait = arrogant
				}
				OR = {
					has_trait = paranoid
					has_trait = trusting
				}
			}
		}
	}
	
	
	option = {
		name = child_personality.168.confirm_forgiving
		custom_tooltip = child_personality.keeps_forgiving_tt
	}
	option = {
		name = child_personality.168.humble_change
		trigger = {
			scope:child = {
				NOR = {
					has_trait = humble
					has_trait = arrogant
				}
			}
		}
		ai_chance = {
			base = 0
		}
		stress_impact = {
			base = child_trait_change_stress_penalty
		}
		scope:child = {
			remove_trait = forgiving
			add_trait_force_tooltip = humble
		}
	}
	option = {
		name = child_personality.168.paranoid_change
		trigger = {
			scope:child = {
				NOR = {
					has_trait = paranoid
					has_trait = trusting
				}
			}
		}
		ai_chance = {
			base = 0
		}
		stress_impact = {
			base = child_trait_change_stress_penalty
		}
		scope:child = {
			remove_trait = forgiving
			add_trait_force_tooltip = paranoid
		}
	}
}

#Responses to Impatient, Content, Arrogant
#0065

#Child has become Impatient
child_personality.1701 = {
	type = character_event
	title = child_personality.1701.t
	desc = {
		desc = child_personality.170.desc
		desc = child_personality.170.impatient
	}
	theme = education
	override_background = {
		reference = farmland
	}
	left_portrait = {
		character = scope:child
		animation = boredom
	}
		
	trigger = {
		scope:child = {
			NAND = {
				OR = {
					has_trait = content
					has_trait = ambitious
				}
				OR = {
					has_trait = arrogant
					has_trait = humble
				}
			}
		}
	}
	
	option = {
		name = child_personality.170.confirm_impatient
		custom_tooltip = child_personality.keeps_impatient_tt
	}
	option = {
		name = child_personality.170.content_change
		trigger = {
			scope:child = {
				NOR = {
					has_trait = content
					has_trait = ambitious
				}
			}
		}
		ai_chance = {
			base = 0
		}
		stress_impact = {
			base = child_trait_change_stress_penalty
		}
		scope:child = {
			remove_trait = impatient
			add_trait_force_tooltip = content
		}
	}
	option = {
		name = child_personality.170.arrogant_change
		trigger = {
			scope:child = {
				NOR = {
					has_trait = arrogant
					has_trait = humble
				}
			}
		}
		ai_chance = {
			base = 0
		}
		stress_impact = {
			base = child_trait_change_stress_penalty
		}
		scope:child = {
			remove_trait = impatient
			add_trait_force_tooltip = arrogant
		}
	}
}

#Child has become Content
child_personality.1702 = {
	type = character_event
	title = child_personality.1702.t
	desc = {
		desc = child_personality.170.desc
		desc = child_personality.170.content
	}
	theme = education
	override_background = {
		reference = farmland
	}
	left_portrait = {
		character = scope:child
		animation = personality_content
	}
		
	trigger = {
		scope:child = {
			NAND = {
				OR = {
					has_trait = impatient
					has_trait = patient
				}
				OR = {
					has_trait = arrogant
					has_trait = humble
				}
			}
		}
	}
	
	option = {
		name = child_personality.170.confirm_content
		custom_tooltip = child_personality.keeps_content_tt
	}
	option = {
		name = child_personality.170.impatient_change
		trigger = {
			scope:child = {
				NOR = {
					has_trait = impatient
					has_trait = patient
				}
			}
		}
		ai_chance = {
			base = 0
		}
		stress_impact = {
			base = child_trait_change_stress_penalty
		}
		scope:child = {
			remove_trait = content
			add_trait_force_tooltip = impatient
		}
	}
	option = {
		name = child_personality.170.arrogant_change
		trigger = {
			scope:child = {
				NOR = {
					has_trait = arrogant
					has_trait = humble
				}
			}
		}
		ai_chance = {
			base = 0
		}
		stress_impact = {
			base = child_trait_change_stress_penalty
		}
		scope:child = {
			remove_trait = content
			add_trait_force_tooltip = arrogant
		}
	}
}

#Child has become Arrogant
child_personality.1703 = {
	type = character_event
	title = child_personality.1703.t
	desc = {
		desc = child_personality.170.desc
		desc = child_personality.170.arrogant
	}
	theme = education
	override_background = {
		reference = farmland
	}
	left_portrait = {
		character = scope:child
		animation = dismissal
	}
		
	trigger = {
		scope:child = {
			NAND = {
				OR = {
					has_trait = content
					has_trait = ambitious
				}
				OR = {
					has_trait = impatient
					has_trait = patient
				}
			}
		}
	}
	
	option = {
		name = child_personality.170.confirm_arrogant
		custom_tooltip = child_personality.keeps_arrogant_tt
	}
	option = {
		name = child_personality.170.content_change
		trigger = {
			scope:child = {
				NOR = {
					has_trait = content
					has_trait = ambitious
				}
			}
		}
		ai_chance = {
			base = 0
		}
		stress_impact = {
			base = child_trait_change_stress_penalty
		}
		scope:child = {
			remove_trait = arrogant
			add_trait_force_tooltip = content
		}
	}
	option = {
		name = child_personality.170.impatient_change
		trigger = {
			scope:child = {
				NOR = {
					has_trait = impatient
					has_trait = patient
				}
			}
		}
		ai_chance = {
			base = 0
		}
		stress_impact = {
			base = child_trait_change_stress_penalty
		}
		scope:child = {
			remove_trait = arrogant
			add_trait_force_tooltip = impatient
		}
	}
}

#Responses to Shy, Deceitful, Lazy
#0071

#Child has become Shy
child_personality.1711 = {
	type = character_event
	title = child_personality.1711.t
	desc = {
		desc = child_personality.171.desc
		desc = child_personality.171.shy
	}
	theme = education
	override_background = { 
		reference = bedchamber 
	}
	left_portrait = {
		character = scope:child
		animation = sadness
	}
	
	trigger = {
		scope:child = {
			NAND = {
				OR = {
					has_trait = deceitful
					has_trait = honest
				}
				OR = {
					has_trait = lazy
					has_trait = diligent
				}
			}
		}
	}
	
	option = {
		name = child_personality.171.confirm_shy
		custom_tooltip = child_personality.keeps_shy_tt
	}
	option = {
		name = child_personality.171.deceitful_change
		trigger = {
			scope:child = {
				NOR = {
					has_trait = deceitful
					has_trait = honest
				}
			}
		}
		ai_chance = {
			base = 0
		}
		stress_impact = {
			base = child_trait_change_stress_penalty
		}
		scope:child = {
			remove_trait = shy
			add_trait_force_tooltip = deceitful
		}
	}
	option = {
		name = child_personality.171.lazy_change
		trigger = {
			scope:child = {
				NOR = {
					has_trait = lazy
					has_trait = diligent
				}
			}
		}
		ai_chance = {
			base = 0
		}
		stress_impact = {
			base = child_trait_change_stress_penalty
		}
		scope:child = {
			remove_trait = shy
			add_trait_force_tooltip = lazy
		}
	}
}

#Child has become Deceitful
child_personality.1712 = {
	type = character_event
	title = child_personality.1712.t
	desc = {
		desc = child_personality.171.desc
		desc = child_personality.171.deceitful
	}
	theme = education
	override_background = { 
		reference = bedchamber 
	}
	left_portrait = {
		character = scope:child
		animation = schadenfreude
	}
	
	trigger = {
		scope:child = {
			NAND = {
				OR = {
					has_trait = shy
					has_trait = gregarious
				}
				OR = {
					has_trait = lazy
					has_trait = diligent
				}
			}
		}
	}
	
	option = {
		name = child_personality.171.confirm_deceitful
		custom_tooltip = child_personality.keeps_deceitful_tt
	}
	option = {
		name = child_personality.171.shy_change
		trigger = {
			scope:child = {
				NOR = {
					has_trait = shy
					has_trait = gregarious
				}
			}
		}
		ai_chance = {
			base = 0
		}
		stress_impact = {
			base = child_trait_change_stress_penalty
		}
		scope:child = {
			remove_trait = deceitful
			add_trait_force_tooltip = shy
		}
	}
	option = {
		name = child_personality.171.lazy_change
		trigger = {
			scope:child = {
				NOR = {
					has_trait = lazy
					has_trait = diligent
				}
			}
		}
		ai_chance = {
			base = 0
		}
		stress_impact = {
			base = child_trait_change_stress_penalty
		}
		scope:child = {
			remove_trait = deceitful
			add_trait_force_tooltip = lazy
		}
	}
}

#Child has become Lazy
child_personality.1713 = {
	type = character_event
	title = child_personality.1713.t
	desc = {
		desc = child_personality.171.desc
		desc = child_personality.171.lazy
	}
	theme = education
	override_background = { 
		reference = bedchamber 
	}
	left_portrait = {
		character = scope:child
		animation = worry
	}
	
	trigger = {
		scope:child = {
			NAND = {
				OR = {
					has_trait = deceitful
					has_trait = honest
				}
				OR = {
					has_trait = shy
					has_trait = gregarious
				}
			}
		}
	}
	
	option = {
		name = child_personality.171.confirm_lazy
		custom_tooltip = child_personality.keeps_lazy_tt
	}
	option = {
		name = child_personality.171.deceitful_change
		trigger = {
			scope:child = {
				NOR = {
					has_trait = deceitful
					has_trait = honest
				}
			}
		}
		ai_chance = {
			base = 0
		}
		stress_impact = {
			base = child_trait_change_stress_penalty
		}
		scope:child = {
			remove_trait = lazy
			add_trait_force_tooltip = deceitful
		}
	}
	option = {
		name = child_personality.171.shy_change
		trigger = {
			scope:child = {
				NOR = {
					has_trait = shy
					has_trait = gregarious
				}
			}
		}
		ai_chance = {
			base = 0
		}
		stress_impact = {
			base = child_trait_change_stress_penalty
		}
		scope:child = {
			remove_trait = lazy
			add_trait_force_tooltip = shy
		}
	}
}

#Responses to Lustful, Fickle, Arbitrary
#0072

#Child has become Lustful
child_personality.1721 = {
	type = character_event
	title = child_personality.1721.t
	desc = {
		desc = child_personality.172.desc
		desc = child_personality.172.lustful
	}
	theme = education
	override_background = {
		reference = feast
	}
	left_portrait = {
		character = scope:child
		animation = admiration
	}
	right_portrait = {
		character = scope:crush
		animation = personality_content
	}
	
	trigger = {
		scope:child = {
			NAND = {
				OR = {
					has_trait = fickle
					has_trait = stubborn
				}
				OR = {
					has_trait = arbitrary
					has_trait = just
				}
			}
		}
	}
	
	option = {
		name = child_personality.172.confirm_lustful
		custom_tooltip = child_personality.keeps_lustful_tt
	}
	option = {
		name = child_personality.172.fickle_change
		trigger = {
			scope:child = {
				NOR = {
					has_trait = fickle
					has_trait = stubborn
				}
			}
		}
		ai_chance = {
			base = 0
		}
		stress_impact = {
			base = child_trait_change_stress_penalty
		}
		scope:child = {
			remove_trait = lustful
			add_trait_force_tooltip = fickle
		}
	}
	option = {
		name = child_personality.172.arbitrary_change
		trigger = {
			scope:child = {
				NOR = {
					has_trait = arbitrary
					has_trait = just
				}
			}
		}
		ai_chance = {
			base = 0
		}
		stress_impact = {
			base = child_trait_change_stress_penalty
		}
		scope:child = {
			remove_trait = lustful
			add_trait_force_tooltip = arbitrary
		}
	}
}

#Child has become Fickle
child_personality.1722 = {
	type = character_event
	title = child_personality.1722.t
	desc = {
		desc = child_personality.172.desc
		desc = child_personality.172.fickle
	}
	theme = education
	override_background = {
		reference = feast
	}
	left_portrait = {
		character = scope:child
		animation = admiration
	}
	right_portrait = {
		character = scope:crush
		animation = personality_content
	}
	
	trigger = {
		scope:child = {
			NAND = {
				OR = {
					has_trait = lustful
					has_trait = chaste
				}
				OR = {
					has_trait = arbitrary
					has_trait = just
				}
			}
		}
	}
		
	option = {
		name = child_personality.172.confirm_fickle
		custom_tooltip = child_personality.keeps_fickle_tt
	}
	option = {
		name = child_personality.172.lustful_change
		trigger = {
			scope:child = {
				NOR = {
					has_trait = lustful
					has_trait = chaste
				}
			}
		}
		ai_chance = {
			base = 0
		}
		stress_impact = {
			base = child_trait_change_stress_penalty
		}
		scope:child = {
			remove_trait = fickle
			add_trait_force_tooltip = lustful
		}
	}
	option = {
		name = child_personality.172.arbitrary_change
		trigger = {
			scope:child = {
				NOR = {
					has_trait = arbitrary
					has_trait = just
				}
			}
		}
		ai_chance = {
			base = 0
		}
		stress_impact = {
			base = child_trait_change_stress_penalty
		}
		scope:child = {
			remove_trait = fickle
			add_trait_force_tooltip = arbitrary
		}
	}
}

#Child has become Arbitrary
child_personality.1723 = {
	type = character_event
	title = child_personality.1723.t
	desc = {
		desc = child_personality.172.desc
		desc = child_personality.172.arbitrary
	}
	theme = education
	override_background = {
		reference = feast
	}
	left_portrait = {
		character = scope:child
		animation = personality_callous
	}
	right_portrait = {
		character = scope:crush
		animation = personality_content
	}
	
	trigger = {
		scope:child = {
			NAND = {
				OR = {
					has_trait = lustful
					has_trait = chaste
				}
				OR = {
					has_trait = fickle
					has_trait = stubborn
				}
			}
		}
	}
		
	option = {
		name = child_personality.172.confirm_arbitrary
		custom_tooltip = child_personality.keeps_arbitrary_tt
	}
	option = {
		name = child_personality.172.fickle_change
		trigger = {
			scope:child = {
				NOR = {
					has_trait = fickle
					has_trait = stubborn
				}
			}
		}
		ai_chance = {
			base = 0
		}
		stress_impact = {
			base = child_trait_change_stress_penalty
		}
		scope:child = {
			remove_trait = arbitrary
			add_trait_force_tooltip = fickle
		}
	}
	option = {
		name = child_personality.172.lustful_change
		trigger = {
			scope:child = {
				NOR = {
					has_trait = lustful
					has_trait = chaste
				}
			}
		}
		ai_chance = {
			base = 0
		}
		stress_impact = {
			base = child_trait_change_stress_penalty
		}
		scope:child = {
			remove_trait = arbitrary
			add_trait_force_tooltip = lustful
		}
	}
}

#Responses to Diligent, Just, Zealous
#0073

#Child has become Diligent
child_personality.1731 = {
	type = character_event
	title = child_personality.1731.t
	desc = {
		desc = child_personality.173.desc
		desc = child_personality.173.diligent
	}
	theme = education
	left_portrait = {
		character = scope:child
		animation = personality_rational
	}

	trigger = {
		scope:child = {
			NAND = {
				OR = {
					has_trait = just
					has_trait = arbitrary
				}
				OR = {
					has_trait = zealous
					has_trait = cynical
				}
			}
		}
	}
	
	option = {
		name = child_personality.173.confirm_diligent
		custom_tooltip = child_personality.keeps_diligent_tt
	}
	option = {
		name = child_personality.173.just_change
		trigger = {
			scope:child = {
				NOR = {
					has_trait = just
					has_trait = arbitrary
				}
			}
		}
		ai_chance = {
			base = 0
		}
		stress_impact = {
			base = child_trait_change_stress_penalty
		}
		scope:child = {
			remove_trait = diligent
			add_trait_force_tooltip = just
		}
	}
	option = {
		name = child_personality.173.zealous_change
		trigger = {
			scope:child = {
				NOR = {
					has_trait = zealous
					has_trait = cynical
				}
			}
		}
		ai_chance = {
			base = 0
		}
		stress_impact = {
			base = child_trait_change_stress_penalty
		}
		scope:child = {
			remove_trait = diligent
			add_trait_force_tooltip = zealous
		}
	}
}

#Child has become Just
child_personality.1732 = {
	type = character_event
	title = child_personality.1732.t
	desc = {
		desc = child_personality.173.desc
		desc = child_personality.173.just
	}
	theme = education
	left_portrait = {
		character = scope:child
		animation = personality_rational
	}

	trigger = {
		scope:child = {
			NAND = {
				OR = {
					has_trait = diligent
					has_trait = lazy
				}
				OR = {
					has_trait = zealous
					has_trait = cynical
				}
			}
		}
	}
	
	option = {
		name = child_personality.173.confirm_just
		custom_tooltip = child_personality.keeps_just_tt
	}
	option = {
		name = child_personality.173.diligent_change
		trigger = {
			scope:child = {
				NOR = {
					has_trait = diligent
					has_trait = lazy
				}
			}
		}
		ai_chance = {
			base = 0
		}
		stress_impact = {
			base = child_trait_change_stress_penalty
		}
		scope:child = {
			remove_trait = just
			add_trait_force_tooltip = diligent
		}
	}
	option = {
		name = child_personality.173.zealous_change
		trigger = {
			scope:child = {
				NOR = {
					has_trait = zealous
					has_trait = cynical
				}
			}
		}
		ai_chance = {
			base = 0
		}
		stress_impact = {
			base = child_trait_change_stress_penalty
		}
		scope:child = {
			remove_trait = just
			add_trait_force_tooltip = zealous
		}
	}
}

#Child has become Zealous
child_personality.1733 = {
	type = character_event
	title = child_personality.1733.t
	desc = {
		desc = child_personality.173.desc
		desc = child_personality.173.zealous
	}
	theme = education
	left_portrait = {
		character = scope:child
		animation = personality_rational
	}

	trigger = {
		scope:child = {
			NAND = {
				OR = {
					has_trait = diligent
					has_trait = lazy
				}
				OR = {
					has_trait = just
					has_trait = arbitrary
				}
			}
		}
	}
	
	option = {
		name = child_personality.173.confirm_zealous
		custom_tooltip = child_personality.keeps_zealous_tt
	}
	option = {
		name = child_personality.173.just_change
		trigger = {
			scope:child = {
				NOR = {
					has_trait = just
					has_trait = arbitrary
				}
			}
		}
		ai_chance = {
			base = 0
		}
		stress_impact = {
			base = child_trait_change_stress_penalty
		}
		scope:child = {
			remove_trait = zealous
			add_trait_force_tooltip = just
		}
	}
	option = {
		name = child_personality.173.diligent_change
		trigger = {
			scope:child = {
				NOR = {
					has_trait = diligent
					has_trait = lazy
				}
			}
		}
		ai_chance = {
			base = 0
		}
		stress_impact = {
			base = child_trait_change_stress_penalty
		}
		scope:child = {
			remove_trait = zealous
			add_trait_force_tooltip = diligent
		}
	}
}

#Responses to Generous, Gregarious, Ambitious
#0074

#Child has become Generous
child_personality.1741 = {
	type = character_event
	title = child_personality.1741.t
	desc = {
		desc = child_personality.174.desc
		desc = child_personality.174.generous
	}
	theme = education
	override_background = {
		reference = garden
	}
	left_portrait = {
		character = scope:child
		animation = personality_forgiving
		outfit_tags = {
			monk_outfit
		}
	}
	right_portrait = {
		character = scope:friend
		animation = ecstasy
	}
	
	trigger = {
		scope:child = {
			NAND = {
				OR = {
					has_trait = gregarious
					has_trait = shy
				}
				OR = {
					has_trait = ambitious
					has_trait = content
				}
			}
		}
	}
	
	option = {
		name = child_personality.174.confirm_generous
		custom_tooltip = child_personality.keeps_generous_tt
	}
	option = {
		name = child_personality.174.gregarious_change
		trigger = {
			scope:child = {
				NOR = {
					has_trait = gregarious
					has_trait = shy
				}
			}
		}
		ai_chance = {
			base = 0
		}
		stress_impact = {
			base = child_trait_change_stress_penalty
		}
		scope:child = {
			remove_trait = generous
			add_trait_force_tooltip = gregarious
		}
	}
	option = {
		name = child_personality.174.ambitious_change
		trigger = {
			scope:child = {
				NOR = {
					has_trait = ambitious
					has_trait = content
				}
			}
		}
		ai_chance = {
			base = 0
		}
		stress_impact = {
			base = child_trait_change_stress_penalty
		}
		scope:child = {
			remove_trait = generous
			add_trait_force_tooltip = ambitious
		}
	}
}

#Child has become Gregarious
child_personality.1742 = {
	type = character_event
	title = child_personality.1742.t
	desc = {
		desc = child_personality.174.desc
		desc = child_personality.174.gregarious
	}
	theme = education
	override_background = {
		reference = garden
	}
	left_portrait = {
		character = scope:child
		animation = ecstasy
	}
	right_portrait = {
		character = scope:friend
		animation = personality_forgiving
		outfit_tags = {
			monk_outfit
		}
	}
	
	trigger = {
		scope:child = {
			NAND = {
				OR = {
					has_trait = generous
					has_trait = greedy
				}
				OR = {
					has_trait = ambitious
					has_trait = content
				}
			}
		}
	}
	
	option = {
		name = child_personality.174.confirm_gregarious
		custom_tooltip = child_personality.keeps_gregarious_tt
	}
	option = {
		name = child_personality.174.generous_change
		trigger = {
			scope:child = {
				NOR = {
					has_trait = generous
					has_trait = greedy
				}
			}
		}
		ai_chance = {
			base = 0
		}
		stress_impact = {
			base = child_trait_change_stress_penalty
		}
		scope:child = {
			remove_trait = gregarious
			add_trait_force_tooltip = generous
		}
	}
	option = {
		name = child_personality.174.ambitious_change
		trigger = {
			scope:child = {
				NOR = {
					has_trait = ambitious
					has_trait = content
				}
			}
		}
		ai_chance = {
			base = 0
		}
		stress_impact = {
			base = child_trait_change_stress_penalty
		}
		scope:child = {
			remove_trait = gregarious
			add_trait_force_tooltip = ambitious
		}
	}
}

#Child has become Ambitious
child_personality.1743 = {
	type = character_event
	title = child_personality.1743.t
	desc = {
		desc = child_personality.174.desc
		desc = child_personality.174.ambitious
	}
	theme = education
	override_background = {
		reference = garden
	}
	left_portrait = {
		character = scope:child
		animation = personality_honorable
	}
	right_portrait = {
		character = scope:friend
		animation = ecstasy
	}
	
	trigger = {
		scope:child = {
			NAND = {
				OR = {
					has_trait = generous
					has_trait = greedy
				}
				OR = {
					has_trait = gregarious
					has_trait = shy
				}
			}
		}
	}
	
	option = {
		name = child_personality.174.confirm_ambitious
		custom_tooltip = child_personality.keeps_ambitious_tt
	}
	option = {
		name = child_personality.174.generous_change
		trigger = {
			scope:child = {
				NOR = {
					has_trait = generous
					has_trait = greedy
				}
			}
		}
		ai_chance = {
			base = 0
		}
		stress_impact = {
			base = child_trait_change_stress_penalty
		}
		scope:child = {
			remove_trait = ambitious
			add_trait_force_tooltip = generous
		}
	}
	option = {
		name = child_personality.174.gregarious_change
		trigger = {
			scope:child = {
				NOR = {
					has_trait = gregarious
					has_trait = shy
				}
			}
		}
		ai_chance = {
			base = 0
		}
		stress_impact = {
			base = child_trait_change_stress_penalty
		}
		scope:child = {
			remove_trait = ambitious
			add_trait_force_tooltip = gregarious
		}
	}
}

#Responses to Cynical, Callous, Greedy
#0075

#Child has become Cynical
child_personality.1751 = {
	type = character_event
	title = child_personality.1751.t
	desc = {
		desc = child_personality.175.desc
		desc = child_personality.175.cynical
	}
	theme = education
	override_background = {
		reference = army_camp
	}
	left_portrait = {
		character = scope:child
		animation = sadness
	}
	right_portrait = {
		character = scope:veteran
		animation = pain
	}
	
	trigger = {
		scope:child = {
			NAND = {
				OR = {
					has_trait = callous
					has_trait = sadistic
					has_trait = compassionate
				}
				OR = {
					has_trait = greedy
					has_trait = generous
				}
			}
		}
	}
	
	option = {
		name = child_personality.175.confirm_cynical
		custom_tooltip = child_personality.keeps_cynical_tt
	}
	option = {
		name = child_personality.175.callous_change
		trigger = {
			scope:child = {
				NOR = {
					has_trait = callous
					has_trait = sadistic
					has_trait = compassionate
				}
			}
		}
		ai_chance = {
			base = 0
		}
		stress_impact = {
			base = child_trait_change_stress_penalty
		}
		scope:child = {
			remove_trait = cynical
			add_trait_force_tooltip = callous
		}
	}
	option = {
		name = child_personality.175.greedy_change
		trigger = {
			scope:child = {
				NOR = {
					has_trait = greedy
					has_trait = generous
				}
			}
		}
		ai_chance = {
			base = 0
		}
		stress_impact = {
			base = child_trait_change_stress_penalty
		}
		scope:child = {
			remove_trait = cynical
			add_trait_force_tooltip = greedy
		}
	}
	after = {
		hidden_effect = {
			scope:veteran = {
				silent_disappearance_effect = yes
			}
		}
	}
}

#Child has become Callous
child_personality.1752 = {
	type = character_event
	title = child_personality.1752.t
	desc = {
		desc = child_personality.175.desc
		desc = child_personality.175.callous
	}
	theme = education
	override_background = {
		reference = army_camp
	}
	left_portrait = {
		character = scope:child
		animation = dismissal
	}
	right_portrait = {
		character = scope:veteran
		animation = pain
	}
	
	trigger = {
		scope:child = {
			NAND = {
				OR = {
					has_trait = cynical
					has_trait = zealous
				}
				OR = {
					has_trait = greedy
					has_trait = generous
				}
			}
		}
	}
	
	option = {
		name = child_personality.175.confirm_callous
		custom_tooltip = child_personality.keeps_callous_tt
	}
	option = {
		name = child_personality.175.cynical_change
		trigger = {
			scope:child = {
				NOR = {
					has_trait = cynical
					has_trait = zealous
				}
			}
		}
		ai_chance = {
			base = 0
		}
		stress_impact = {
			base = child_trait_change_stress_penalty
		}
		scope:child = {
			remove_trait = callous
			add_trait_force_tooltip = cynical
		}
	}
	option = {
		name = child_personality.175.greedy_change
		trigger = {
			scope:child = {
				NOR = {
					has_trait = greedy
					has_trait = generous
				}
			}
		}
		ai_chance = {
			base = 0
		}
		stress_impact = {
			base = child_trait_change_stress_penalty
		}
		scope:child = {
			remove_trait = callous
			add_trait_force_tooltip = greedy
		}
	}
	after = {
		hidden_effect = {
			scope:veteran = {
				silent_disappearance_effect = yes
			}
		}
	}
}

#Child has become Greedy
child_personality.1753 = {
	type = character_event
	title = child_personality.1753.t
	desc = {
		desc = child_personality.175.desc
		desc = child_personality.175.greedy
	}
	theme = education
	override_background = {
		reference = army_camp
	}
	left_portrait = {
		character = scope:child
		animation = scheming
	}
	right_portrait = {
		character = scope:veteran
		animation = pain
	}
	
	trigger = {
		scope:child = {
			NAND = {
				OR = {
					has_trait = cynical
					has_trait = zealous
				}
				OR = {
					has_trait = callous
					has_trait = sadistic
					has_trait = compassionate
				}
			}
		}
	}
	
	option = {
		name = child_personality.175.confirm_greedy
		custom_tooltip = child_personality.keeps_greedy_tt
	}
	option = {
		name = child_personality.175.cynical_change
		trigger = {
			scope:child = {
				NOR = {
					has_trait = cynical
					has_trait = zealous
				}
			}
		}
		ai_chance = {
			base = 0
		}
		stress_impact = {
			base = child_trait_change_stress_penalty
		}
		scope:child = {
			remove_trait = greedy
			add_trait_force_tooltip = cynical
		}
	}
	option = {
		name = child_personality.175.callous_change
		trigger = {
			scope:child = {
				NOR = {
					has_trait = sadistic
					has_trait = callous
					has_trait = compassionate
				}
			}
		}
		ai_chance = {
			base = 0
		}
		stress_impact = {
			base = child_trait_change_stress_penalty
		}
		scope:child = {
			remove_trait = greedy
			add_trait_force_tooltip = callous
		}
	}
	after = {
		hidden_effect = {
			scope:veteran = {
				silent_disappearance_effect = yes
			}
		}
	}
}