#############################################
#############################################
#                                         	#
# ZE Adolescence Events					  	#
# ID ZE.13000-ZE.13999                    	#
#                                         	#
#############################################
#############################################

# Written by Tobias Bodlund and Joel Hansson

namespace = ZE


#############################################
#											#
# Trait maturing events						#
# ZE.13000-ZE.13599							#
#											#
#############################################

# These traits are checked on random adolescence pulse, and also non-randomly on day of adulthood

# Bi-yearly adolescence pulse - select which event chain to get
character_event = {
	id = ZE.13999

	hide_window = yes
	
	is_triggered_only = yes
	
	only_capable = yes
	
	trigger = {
		is_adult = no
		age = 12
		OR = {
			trait = haughty
			trait = affectionate
			trait = timid
			trait = rowdy
			trait = willful
			trait = brooding
			trait = indolent
			trait = playful
			trait = conscientious
			trait = fussy
			trait = curious
			trait = idolizer
		}
	}

	immediate = {
		random_list = {
			10 = {
				modifier = {
					factor = 0
					NOT = { trait = haughty }
				}
				character_event = { id = ZE.13000 days = 10 random = 90 }
			}
			10 = {
				modifier = {
					factor = 0
					NOT = { trait = affectionate }
				}
				character_event = { id = ZE.13010 days = 10 random = 90 }
			}
			10 = {
				modifier = {
					factor = 0
					NOT = { trait = timid }
				}
				character_event = { id = ZE.13020 days = 10 random = 90 }
			}
			10 = {
				modifier = {
					factor = 0
					NOT = { trait = rowdy }
				}
				character_event = { id = ZE.13030 days = 10 random = 90 }
			}
			10 = {
				modifier = {
					factor = 0
					NOT = { trait = willful }
				}
				character_event = { id = ZE.13040 days = 10 random = 90 }
			}
			10 = {
				modifier = {
					factor = 0
					NOT = { trait = brooding }
				}
				character_event = { id = ZE.13050 days = 10 random = 90 }
			}
			10 = {
				modifier = {
					factor = 0
					NOT = { trait = indolent }
				}
				character_event = { id = ZE.13060 days = 10 random = 90 }
			}
			10 = {
				modifier = {
					factor = 0
					NOT = { trait = playful }
				}
				character_event = { id = ZE.13070 days = 10 random = 90 }
			}
			10 = {
				modifier = {
					factor = 0
					NOT = { trait = conscientious }
				}
				character_event = { id = ZE.13080 days = 10 random = 90 }
			}
			10 = {
				modifier = {
					factor = 0
					NOT = { trait = fussy }
				}
				character_event = { id = ZE.13090 days = 10 random = 90 }
			}
			10 = {
				modifier = {
					factor = 0
					NOT = { trait = curious }
				}
				character_event = { id = ZE.13100 days = 10 random = 90 }
			}
			10 = {
				modifier = {
					factor = 0
					NOT = { trait = idolizer }
				}
				character_event = { id = ZE.13110 days = 10 random = 90 }
			}
		}
	}
}


#############################################
# Haughty									#
#############################################

# Haughty turns into Proud, Arbitrary or Cruel
character_event = {
	id = ZE.13000

	hide_window = yes
	
	is_triggered_only = yes
	
	only_capable = yes
	
	trigger = {
		trait = haughty
	}
	
	immediate = {
		set_character_flag = was_haughty
		random_list = {  # Select outcome
			10 = {
				set_character_flag = haughty_to_proud
				modifier = {
					factor = 0
					OR = {
						trait = humble
						trait = proud
					}
				}
			}
			10 = {
				set_character_flag = haughty_to_arbitrary
				modifier = {
					factor = 0
					OR = {
						trait = just
						trait = arbitrary
					}
				}
			}
			10 = {
				set_character_flag = haughty_to_cruel
				modifier = {
					factor = 0
					OR = {
						trait = kind
						trait = cruel
					}
				}
			}
		}
		if = {
			limit = {
				OR = {
					trait = humble
					trait = proud
				}
				OR = {
					trait = just
					trait = arbitrary
				}
				OR = {
					trait = kind
					trait = cruel
				}
			}
			change_martial = 2
			remove_trait = haughty
			break = yes
		}
		if = {
			limit = {
				NOT = { trait = ambitious }
				educator = { trait = ambitious }
				prisoner = no
			}
			educator = { character_event = { id = ZE.13002 } }  # Let educator decide on intervention
			break = yes
		}
		character_event = { id = ZE.13001 } # Go direct to trait change
	}
}

character_event = {
	id = ZE.13001
	picture = GFX_evt_courtiers_talking

	desc = {
		text = EVTDESCA_ZE_13001
		trigger = {
			FROM = { has_character_flag = haughty_to_proud }
		} 
	}
	desc = {
		text = EVTDESCB_ZE_13001
		trigger = {
			FROM = { has_character_flag = haughty_to_arbitrary }
		} 
	}
	desc = {
		text = EVTDESCC_ZE_13001
		trigger = {
			FROM = { has_character_flag = haughty_to_cruel }
		}
	}

	is_triggered_only = yes
	
	only_capable = yes
	
	option = {
		name = EVTOPTA_ZE_13001
		trigger = {
			has_character_flag = haughty_to_proud
		}
		remove_trait = haughty
		add_trait = proud
		clr_character_flag = haughty_to_proud
	}
	option = {
		name = EVTOPTB_ZE_13001
		trigger = {
			has_character_flag = haughty_to_arbitrary
		}
		remove_trait = haughty
		add_trait = arbitrary
		clr_character_flag = haughty_to_arbitrary
	}
	option = {
		name = EVTOPTC_ZE_13001
		trigger = {
			has_character_flag = haughty_to_cruel
		}
		remove_trait = haughty
		add_trait = cruel
		clr_character_flag = haughty_to_cruel
	}
}


# Ambitious educator may make child Ambitious instead
character_event = {
	id = ZE.13002
	picture = GFX_evt_courtiers_talking

	desc = {
		text = EVTDESCA_ZE_13002
		trigger = {
			FROM = { has_character_flag = haughty_to_proud }
		} 
	}
	desc = {
		text = EVTDESCB_ZE_13002
		trigger = {
			FROM = { has_character_flag = haughty_to_arbitrary }
		} 
	}
	desc = {
		text = EVTDESCC_ZE_13002
		trigger = {
			FROM = { has_character_flag = haughty_to_cruel }
		}
	}

	is_triggered_only = yes
	
	only_capable = yes
	
	option = {
		name = EVTOPTA_ZE_13002 # The child will be like me
		FROM = {
			custom_tooltip = { text = haughty_may_become_ambitious }
		}
		hidden_tooltip = { FROM = { character_event = { id = ZE.13004 } } }
	}
	option = {
		name = EVTOPTB_ZE_13002  # Do not intervene
		hidden_tooltip = { FROM = { character_event = { id = ZE.13001 } } } # Go to normal trait change
		if = {
			limit = { FROM = { has_character_flag = haughty_to_proud } }
			tooltip = { FROM = { remove_trait = haughty add_trait = proud } }
		}
		if = {
			limit = { FROM = { has_character_flag = haughty_to_arbitrary } }
			tooltip = { FROM = { remove_trait = haughty add_trait = arbitrary } }
		}
		if = {
			limit = { FROM = { has_character_flag = haughty_to_cruel } }
			tooltip = { FROM = { remove_trait = haughty add_trait = cruel } }
		}
	}
}

# Notify child of Educator intervention and result
character_event = {
	id = ZE.13004
	picture = GFX_evt_courtiers_talking

	desc = {
		text = EVTDESCA_ZE_13004
		trigger = {
			FROM = { has_character_flag = haughty_to_proud }
		} 
	}
	desc = {
		text = EVTDESCB_ZE_13004
		trigger = {
			FROM = { has_character_flag = haughty_to_arbitrary }
		} 
	}
	desc = {
		text = EVTDESCC_ZE_13004
		trigger = {
			FROM = { has_character_flag = haughty_to_cruel }
		}
	}

	is_triggered_only = yes
	
	only_capable = yes
	
	option = {
		name = EVTOPTA_ZE_13004
		remove_trait = haughty
		add_trait = ambitious
		clr_character_flag = haughty_to_proud
		clr_character_flag = haughty_to_arbitrary
		clr_character_flag = haughty_to_cruel
	}
	option = {
		name = EVTOPTB_ZE_13004
		trigger = {
			has_character_flag = haughty_to_proud
		}
		remove_trait = haughty
		add_trait = proud
		clr_character_flag = haughty_to_proud
	}
	option = {
		name = EVTOPTC_ZE_13004
		trigger = {
			has_character_flag = haughty_to_arbitrary
		}
		remove_trait = haughty
		add_trait = arbitrary
		clr_character_flag = haughty_to_arbitrary
	}
	option = {
		name = EVTOPTD_ZE_13004
		trigger = {
			has_character_flag = haughty_to_cruel
		}
		remove_trait = haughty
		add_trait = cruel
		clr_character_flag = haughty_to_cruel
	}
}



#############################################
# Affectionate								#
#############################################

character_event = {
	id = ZE.13010

	hide_window = yes
	
	is_triggered_only = yes
	
	only_capable = yes
	
	trigger = {
		trait = affectionate
	}
	
	immediate = {
		set_character_flag = was_affectionate
		random_list = {  # Select outcome
			10 = {
				set_character_flag = affectionate_to_kind
				modifier = {
					factor = 0
					OR = {
						trait = kind
						trait = cruel
						trait = envious
					}
				}
			}
			10 = {
				set_character_flag = affectionate_to_content
				modifier = {
					factor = 0
					OR = {
						trait = content
						trait = ambitious
					}
				}
			}
			10 = {
				set_character_flag = affectionate_to_trusting
				modifier = {
					factor = 0
					OR = {
						trait = trusting
						trait = paranoid
					}
				}
			}
		}
		if = {
			limit = {
				OR = {
					trait = kind
					trait = cruel
					trait = envious
				}
				OR = {
					trait = content
					trait = ambitious
				}
				OR = {
					trait = trusting
					trait = paranoid
				}
			}
			change_diplomacy = 2
			remove_trait = affectionate
			break = yes
		}
		if = {
			limit = {
				NOT = { trait = charitable }
				educator = { trait = charitable }
				prisoner = no
			}
			educator = { character_event = { id = ZE.13012 } }  # Let educator decide on intervention
			break = yes
		}
		character_event = { id = ZE.13011 } # Go direct to trait change
	}
}

character_event = {
	id = ZE.13011
	picture = GFX_evt_courtiers_talking

	desc = {
		text = EVTDESCA_ZE_13011
		trigger = {
			FROM = { has_character_flag = affectionate_to_kind }
		} 
	}
	desc = {
		text = EVTDESCB_ZE_13011
		trigger = {
			FROM = { has_character_flag = affectionate_to_content }
		} 
	}
	desc = {
		text = EVTDESCC_ZE_13011
		trigger = {
			FROM = { has_character_flag = affectionate_to_trusting }
		}
	}

	is_triggered_only = yes
	
	only_capable = yes
	
	option = {
		name = EVTOPTA_ZE_13011
		trigger = {
			has_character_flag = affectionate_to_kind
		}
		remove_trait = affectionate
		add_trait = kind
		clr_character_flag = affectionate_to_kind
	}
	option = {
		name = EVTOPTB_ZE_13011
		trigger = {
			has_character_flag = affectionate_to_content
		}
		remove_trait = affectionate
		add_trait = content
		clr_character_flag = affectionate_to_content
	}
	option = {
		name = EVTOPTC_ZE_13011
		trigger = {
			has_character_flag = affectionate_to_trusting
		}
		remove_trait = affectionate
		add_trait = trusting
		clr_character_flag = affectionate_to_trusting
	}
}


# Charitable educator may make child Charitable instead
character_event = {
	id = ZE.13012
	picture = GFX_evt_courtiers_talking

	desc = {
		text = EVTDESCA_ZE_13012
		trigger = {
			FROM = { has_character_flag = affectionate_to_kind }
		} 
	}
	desc = {
		text = EVTDESCB_ZE_13012
		trigger = {
			FROM = { has_character_flag = affectionate_to_content }
		} 
	}
	desc = {
		text = EVTDESCC_ZE_13012
		trigger = {
			FROM = { has_character_flag = affectionate_to_trusting }
		}
	}

	is_triggered_only = yes
	
	only_capable = yes
	
	option = {
		name = EVTOPTA_ZE_13012 # The child will be like me
		FROM = {
			custom_tooltip = { text = affectionate_may_become_charitable }
		}
		hidden_tooltip = { FROM = { character_event = { id = ZE.13014 } } }
	}
	option = {
		name = EVTOPTB_ZE_13012  # Do not intervene
		hidden_tooltip = { FROM = { character_event = { id = ZE.13011 } } } # Go to normal trait change
		if = {
			limit = { FROM = { has_character_flag = affectionate_to_kind } }
			tooltip = { FROM = { remove_trait = affectionate add_trait = kind } }
		}
		if = {
			limit = { FROM = { has_character_flag = affectionate_to_content } }
			tooltip = { FROM = { remove_trait = affectionate add_trait = content } }
		}
		if = {
			limit = { FROM = { has_character_flag = affectionate_to_trusting } }
			tooltip = { FROM = { remove_trait = affectionate add_trait = trusting } }
		}
	}
}

# Notify child of Educator intervention and result
character_event = {
	id = ZE.13014
	picture = GFX_evt_courtiers_talking

	desc = {
		text = EVTDESCA_ZE_13014
		trigger = {
			FROM = { has_character_flag = affectionate_to_kind }
		} 
	}
	desc = {
		text = EVTDESCB_ZE_13014
		trigger = {
			FROM = { has_character_flag = affectionate_to_content }
		} 
	}
	desc = {
		text = EVTDESCC_ZE_13014
		trigger = {
			FROM = { has_character_flag = affectionate_to_trusting }
		}
	}

	is_triggered_only = yes
	
	only_capable = yes
	
	option = {
		name = EVTOPTA_ZE_13014
		remove_trait = affectionate
		add_trait = charitable
		clr_character_flag = affectionate_to_kind
		clr_character_flag = affectionate_to_content
		clr_character_flag = affectionate_to_trusting
	}
	option = {
		name = EVTOPTB_ZE_13014
		trigger = {
			has_character_flag = affectionate_to_kind
		}
		remove_trait = affectionate
		add_trait = kind
		clr_character_flag = affectionate_to_kind
	}
	option = {
		name = EVTOPTC_ZE_13014
		trigger = {
			has_character_flag = affectionate_to_content
		}
		remove_trait = affectionate
		add_trait = content
		clr_character_flag = affectionate_to_content
	}
	option = {
		name = EVTOPTD_ZE_13014
		trigger = {
			has_character_flag = affectionate_to_trusting
		}
		remove_trait = affectionate
		add_trait = trusting
		clr_character_flag = affectionate_to_trusting
	}
}


#############################################
# Timid										#
#############################################

character_event = {
	id = ZE.13020

	hide_window = yes
	
	is_triggered_only = yes
	
	only_capable = yes
	
	trigger = {
		trait = timid
	}
	
	immediate = {
		set_character_flag = was_timid
		random_list = {  # Select outcome
			10 = {
				set_character_flag = timid_to_humble
				modifier = {
					factor = 0
					OR = {
						trait = humble
						trait = proud
					}
				}
			}
			10 = {
				set_character_flag = timid_to_shy
				modifier = {
					factor = 0
					OR = {
						trait = shy
						trait = gregarious
					}
				}
			}
			10 = {
				set_character_flag = timid_to_craven
				modifier = {
					factor = 0
					OR = {
						trait = craven
						trait = brave
					}
				}
			}
		}
		if = {
			limit = {
				OR = {
					trait = humble
					trait = proud
				}
				OR = {
					trait = shy
					trait = gregarious
				}
				OR = {
					trait = craven
					trait = brave
				}
			}
			change_learning = 2
			remove_trait = timid
			break = yes
		}
		if = {
			limit = {
				NOT = { trait = content }
				educator = { trait = content }
				prisoner = no
			}
			educator = { character_event = { id = ZE.13022 } }  # Let educator decide on intervention
			break = yes
		}
		character_event = { id = ZE.13021 } # Go direct to trait change
	}
}

character_event = {
	id = ZE.13021
	picture = GFX_evt_courtiers_talking

	desc = {
		text = EVTDESCA_ZE_13021
		trigger = {
			FROM = { has_character_flag = timid_to_humble }
		} 
	}
	desc = {
		text = EVTDESCB_ZE_13021
		trigger = {
			FROM = { has_character_flag = timid_to_shy }
		} 
	}
	desc = {
		text = EVTDESCC_ZE_13021
		trigger = {
			FROM = { has_character_flag = timid_to_craven }
		}
	}

	is_triggered_only = yes
	
	only_capable = yes
	
	option = {
		name = EVTOPTA_ZE_13021
		trigger = {
			has_character_flag = timid_to_humble
		}
		remove_trait = timid
		add_trait = humble
		clr_character_flag = timid_to_humble
	}
	option = {
		name = EVTOPTB_ZE_13021
		trigger = {
			has_character_flag = timid_to_shy
		}
		remove_trait = timid
		add_trait = shy
		clr_character_flag = timid_to_shy
	}
	option = {
		name = EVTOPTC_ZE_13021
		trigger = {
			has_character_flag = timid_to_craven
		}
		remove_trait = timid
		add_trait = craven
		clr_character_flag = timid_to_craven
	}
}


# Content educator may make child Content instead
character_event = {
	id = ZE.13022
	picture = GFX_evt_courtiers_talking

	desc = {
		text = EVTDESCA_ZE_13022
		trigger = {
			FROM = { has_character_flag = timid_to_humble }
		} 
	}
	desc = {
		text = EVTDESCB_ZE_13022
		trigger = {
			FROM = { has_character_flag = timid_to_shy }
		} 
	}
	desc = {
		text = EVTDESCC_ZE_13022
		trigger = {
			FROM = { has_character_flag = timid_to_craven }
		}
	}

	is_triggered_only = yes
	
	only_capable = yes
	
	option = {
		name = EVTOPTA_ZE_13022 # The child will be like me
		FROM = {
			custom_tooltip = { text = timid_may_become_content }
		}
		hidden_tooltip = { FROM = { character_event = { id = ZE.13024 } } }
	}
	option = {
		name = EVTOPTB_ZE_13022  # Do not intervene
		hidden_tooltip = { FROM = { character_event = { id = ZE.13021 } } } # Go to normal trait change
		if = {
			limit = { FROM = { has_character_flag = timid_to_humble } }
			tooltip = { FROM = { remove_trait = timid add_trait = humble } }
		}
		if = {
			limit = { FROM = { has_character_flag = timid_to_shy } }
			tooltip = { FROM = { remove_trait = timid add_trait = shy } }
		}
		if = {
			limit = { FROM = { has_character_flag = timid_to_craven } }
			tooltip = { FROM = { remove_trait = timid add_trait = craven } }
		}
	}
}

# Notify child of Educator intervention and result
character_event = {
	id = ZE.13024
	picture = GFX_evt_courtiers_talking

	desc = {
		text = EVTDESCA_ZE_13024
		trigger = {
			FROM = { has_character_flag = timid_to_humble }
		} 
	}
	desc = {
		text = EVTDESCB_ZE_13024
		trigger = {
			FROM = { has_character_flag = timid_to_shy }
		} 
	}
	desc = {
		text = EVTDESCC_ZE_13024
		trigger = {
			FROM = { has_character_flag = timid_to_craven }
		}
	}

	is_triggered_only = yes
	
	only_capable = yes
	
	option = {
		name = EVTOPTA_ZE_13024
		remove_trait = timid
		add_trait = content
		clr_character_flag = timid_to_humble
		clr_character_flag = timid_to_shy
		clr_character_flag = timid_to_craven
	}
	option = {
		name = EVTOPTB_ZE_13024
		trigger = {
			has_character_flag = timid_to_humble
		}
		remove_trait = timid
		add_trait = humble
		clr_character_flag = timid_to_humble
	}
	option = {
		name = EVTOPTC_ZE_13024
		trigger = {
			has_character_flag = timid_to_shy
		}
		remove_trait = timid
		add_trait = shy
		clr_character_flag = timid_to_shy
	}
	option = {
		name = EVTOPTD_ZE_13024
		trigger = {
			has_character_flag = timid_to_craven
		}
		remove_trait = timid
		add_trait = craven
		clr_character_flag = timid_to_craven
	}
}



#############################################
# Rowdy										#
#############################################

character_event = {
	id = ZE.13030

	hide_window = yes
	
	is_triggered_only = yes
	
	only_capable = yes
	
	trigger = {
		trait = rowdy
	}
	
	immediate = {
		set_character_flag = was_rowdy
		random_list = {  # Select outcome
			10 = {
				set_character_flag = rowdy_to_strong
				modifier = {
					factor = 0
					OR = {
						is_strong_trigger = yes
						is_weak_trigger = yes
					}
				}
			}
			10 = {
				set_character_flag = rowdy_to_honest
				modifier = {
					factor = 0
					OR = {
						trait = honest
						trait = deceitful
					}
				}
			}
			10 = {
				modifier = {
					factor = 0
					OR = {
						is_dumb_trigger = yes
						has_character_flag = child_became_smarter
					}
				}
				set_character_flag = rowdy_to_imbecile
				set_character_flag = child_became_less_smart
			}
		}
		if = {
			limit = {
				OR = {
					is_strong_trigger = yes
					is_weak_trigger = yes
				}
				OR = {
					trait = honest
					trait = deceitful
				}
				OR = {
					is_dumb_trigger = yes
					has_character_flag = child_became_smarter
				}
			}
			change_martial = 2
			remove_trait = rowdy
			break = yes
		}
		if = {
			limit = {
				NOT = { trait = brave }
				educator = { trait = brave }
				prisoner = no
			}
			educator = { character_event = { id = ZE.13032 } }  # Let educator decide on intervention
			break = yes
		}
		character_event = { id = ZE.13031 } # Go direct to trait change
	}
}

character_event = {
	id = ZE.13031
	picture = GFX_evt_courtiers_talking

	desc = {
		text = EVTDESCA_ZE_13031
		trigger = {
			FROM = { has_character_flag = rowdy_to_strong }
		} 
	}
	desc = {
		text = EVTDESCB_ZE_13031
		trigger = {
			FROM = { has_character_flag = rowdy_to_honest }
		} 
	}
	desc = {
		text = EVTDESCC_ZE_13031
		trigger = {
			FROM = { has_character_flag = rowdy_to_imbecile }
		}
	}

	is_triggered_only = yes
	
	only_capable = yes
	
	immediate = {
		if = {
			limit = {
				has_character_flag = rowdy_to_imbecile
				trait = genius
			}
			set_character_flag = rowdy_genius_to_quick
			break = yes
		}
		if = {
			limit = {
				has_character_flag = rowdy_to_imbecile
				trait = quick
			}
			set_character_flag = rowdy_quick_to_normal
			break = yes
		}
		if = {
			limit = {
				has_character_flag = rowdy_to_imbecile
				trait = slow
			}
			set_character_flag = rowdy_slow_to_imbecile
			break = yes
		}
		if = {
			limit = {
				has_character_flag = rowdy_to_imbecile
			}
			set_character_flag = rowdy_normal_to_slow
		}
	}
	
	option = {
		name = EVTOPTA_ZE_13031
		trigger = {
			has_character_flag = rowdy_to_strong
		}
		remove_trait = rowdy
		add_trait = robust
		clr_character_flag = rowdy_to_strong
	}
	option = {
		name = EVTOPTB_ZE_13031
		trigger = {
			has_character_flag = rowdy_to_honest
		}
		remove_trait = rowdy
		add_trait = honest
		
		clr_character_flag = rowdy_to_honest
	}
	option = {
		name = EVTOPTC_ZE_13031
		trigger = {
			has_character_flag = rowdy_to_imbecile
		}
		clr_character_flag = rowdy_to_imbecile
		if = {
			limit = { has_character_flag = rowdy_genius_to_quick }
			remove_trait = rowdy
			remove_trait = genius
			add_trait = quick
			clr_character_flag = rowdy_genius_to_quick
		}
		if = {
			limit = { has_character_flag = rowdy_quick_to_normal }
			remove_trait = rowdy
			remove_trait = quick
			clr_character_flag = rowdy_quick_to_normal
		}
		if = {
			limit = { has_character_flag = rowdy_normal_to_slow }
			remove_trait = rowdy
			add_trait = dull
			clr_character_flag = rowdy_normal_to_slow
		}
		if = {
			limit = { has_character_flag = rowdy_slow_to_imbecile }
			remove_trait = rowdy
			add_trait = dull
			clr_character_flag = rowdy_slow_to_imbecile
		}
	}
}


# Brave educator may make child Brave instead
character_event = {
	id = ZE.13032
	picture = GFX_evt_courtiers_talking

	desc = {
		text = EVTDESCA_ZE_13032
		trigger = {
			FROM = { has_character_flag = rowdy_to_strong }
		} 
	}
	desc = {
		text = EVTDESCB_ZE_13032
		trigger = {
			FROM = { has_character_flag = rowdy_to_honest }
		} 
	}
	desc = {
		text = EVTDESCC_ZE_13032
		trigger = {
			FROM = { has_character_flag = rowdy_to_imbecile }
		}
	}

	is_triggered_only = yes
	
	only_capable = yes
	
	option = {
		name = EVTOPTA_ZE_13032 # The child will be like me
		FROM = {
			custom_tooltip = { text = rowdy_may_become_brave }
		}
		hidden_tooltip = { FROM = { character_event = { id = ZE.13034 } } }
	}
	option = {
		name = EVTOPTB_ZE_13032  # Do not intervene
		hidden_tooltip = { FROM = { character_event = { id = ZE.13031 } } } # Go to normal trait change
		if = {
			limit = { FROM = { has_character_flag = rowdy_to_strong } }
			tooltip = { FROM = { remove_trait = rowdy add_trait = robust } }
		}
		if = {
			limit = { FROM = { has_character_flag = rowdy_to_honest } }
			tooltip = { FROM = { remove_trait = rowdy add_trait = honest character_event = { id = 38262 }} }
		}
		if = {
			limit = {
				FROM = {
					has_character_flag = rowdy_to_imbecile
					trait = genius
				}
			}
			tooltip = {
				FROM = {
					remove_trait = rowdy
					remove_trait = genius
					add_trait = quick
				}
			}
		}
		if = {
			limit = {
				FROM = {
					has_character_flag = rowdy_to_imbecile
					trait = quick
				}
			}
			tooltip = {
				FROM = {
					remove_trait = rowdy
					remove_trait = quick
				}
			}
		}
		if = {
			limit = {
				FROM = {
					has_character_flag = rowdy_to_imbecile
					trait = slow
				}
			}
			tooltip = {
				FROM = {
					remove_trait = rowdy
					remove_trait = slow
					add_trait = imbecile
				}
			}
		}
		if = {
			limit = {
				FROM = {
					has_character_flag = rowdy_to_imbecile
					NOT = { trait = genius }
					NOT = { trait = quick }
					NOT = { trait = slow }
				}
			}
			tooltip = {
				FROM = {
					remove_trait = rowdy
					add_trait = dull
				}
			}
		}
	}
}

# Notify child of Educator intervention and result
character_event = {
	id = ZE.13034
	picture = GFX_evt_courtiers_talking

	desc = {
		text = EVTDESCA_ZE_13034
		trigger = {
			FROM = { has_character_flag = rowdy_to_strong }
		} 
	}
	desc = {
		text = EVTDESCB_ZE_13034
		trigger = {
			FROM = { has_character_flag = rowdy_to_honest }
		} 
	}
	desc = {
		text = EVTDESCC_ZE_13034
		trigger = {
			FROM = { has_character_flag = rowdy_to_imbecile }
		}
	}

	is_triggered_only = yes
	
	only_capable = yes

	immediate = {
		if = {
			limit = {
				has_character_flag = rowdy_to_imbecile
				trait = genius
			}
			set_character_flag = rowdy_genius_to_quick
			break = yes
		}
		if = {
			limit = {
				has_character_flag = rowdy_to_imbecile
				trait = quick
			}
			set_character_flag = rowdy_quick_to_normal
			break = yes
		}
		if = {
			limit = {
				has_character_flag = rowdy_to_imbecile
				trait = slow
			}
			set_character_flag = rowdy_slow_to_imbecile
			break = yes
		}
		if = {
			limit = {
				has_character_flag = rowdy_to_imbecile
			}
			set_character_flag = rowdy_normal_to_slow
		}
	}
	
	option = {
		name = EVTOPTA_ZE_13034
		remove_trait = rowdy
		add_trait = brave
		clr_character_flag = rowdy_to_strong
		clr_character_flag = rowdy_to_honest
		clr_character_flag = rowdy_to_imbecile
	}
	option = {
		name = EVTOPTB_ZE_13034
		trigger = {
			has_character_flag = rowdy_to_strong
		}
		remove_trait = rowdy
		add_trait = robust
		clr_character_flag = rowdy_to_strong
	}
	option = {
		name = EVTOPTC_ZE_13034
		trigger = {
			has_character_flag = rowdy_to_honest
		}
		remove_trait = rowdy
		add_trait = honest
		
		clr_character_flag = rowdy_to_honest
	}
	option = {
		name = EVTOPTD_ZE_13034
		trigger = {
			has_character_flag = rowdy_to_imbecile
		}
		clr_character_flag = rowdy_to_imbecile
		if = {
			limit = { has_character_flag = rowdy_genius_to_quick }
			remove_trait = rowdy
			remove_trait = genius
			add_trait = quick
			clr_character_flag = rowdy_genius_to_quick
		}
		if = {
			limit = { has_character_flag = rowdy_quick_to_normal }
			remove_trait = rowdy
			remove_trait = quick
			clr_character_flag = rowdy_quick_to_normal
		}
		if = {
			limit = { has_character_flag = rowdy_normal_to_slow }
			remove_trait = rowdy
			add_trait = dull
			clr_character_flag = rowdy_normal_to_slow
		}
		if = {
			limit = { has_character_flag = rowdy_slow_to_imbecile }
			remove_trait = rowdy
			add_trait = dull
			clr_character_flag = rowdy_slow_to_imbecile
		}
	}
}

#############################################
# Willful									#
#############################################

# willful turns into ambitious, brave or stubborn
character_event = {
	id = ZE.13040

	hide_window = yes
	
	is_triggered_only = yes
	
	only_capable = yes
	
	trigger = {
		trait = willful
	}
	
	immediate = {
		set_character_flag = was_willful
		random_list = {  # Select outcome
			10 = {
				set_character_flag = willful_to_ambitious
				modifier = {
					factor = 0
					OR = {
						trait = content
						trait = ambitious
					}
				}
			}
			10 = {
				set_character_flag = willful_to_brave
				modifier = {
					factor = 0
					OR = {
						trait = craven
						trait = brave
					}
				}
			}
			10 = {
				set_character_flag = willful_to_stubborn
				modifier = {
					factor = 0
					trait = stubborn
				}
			}
		}
		if = {
			limit = {
				OR = {
					trait = content
					trait = ambitious
				}
				OR = {
					trait = craven
					trait = brave
				}
				trait = stubborn
			}
			change_intrigue = 2
			remove_trait = willful
			break = yes
		}
		if = {
			limit = {
				NOT = { trait = proud }
				educator = { trait = proud }
				prisoner = no
			}
			educator = { character_event = { id = ZE.13042 } }  # Let educator decide on intervention
			break = yes
		}
		character_event = { id = ZE.13041 } # Go direct to trait change
	}
}

character_event = {
	id = ZE.13041
	picture = GFX_evt_courtiers_talking

	desc = {
		text = EVTDESCA_ZE_13041
		trigger = {
			FROM = { has_character_flag = willful_to_ambitious }
		} 
	}
	desc = {
		text = EVTDESCB_ZE_13041
		trigger = {
			FROM = { has_character_flag = willful_to_brave }
		} 
	}
	desc = {
		text = EVTDESCC_ZE_13041
		trigger = {
			FROM = { has_character_flag = willful_to_stubborn }
		}
	}

	is_triggered_only = yes
	
	only_capable = yes
	
	option = {
		name = EVTOPTA_ZE_13041
		trigger = {
			has_character_flag = willful_to_ambitious
		}
		remove_trait = willful
		add_trait = ambitious
		clr_character_flag = willful_to_ambitious
	}
	option = {
		name = EVTOPTB_ZE_13041
		trigger = {
			has_character_flag = willful_to_brave
		}
		remove_trait = willful
		add_trait = brave
		clr_character_flag = willful_to_brave
	}
	option = {
		name = EVTOPTC_ZE_13041
		trigger = {
			has_character_flag = willful_to_stubborn
		}
		remove_trait = willful
		add_trait = stubborn
		clr_character_flag = willful_to_stubborn
	}
}


# Proud educator may make child Proud instead
character_event = {
	id = ZE.13042
	picture = GFX_evt_courtiers_talking

	desc = {
		text = EVTDESCA_ZE_13042
		trigger = {
			FROM = { has_character_flag = willful_to_ambitious }
		} 
	}
	desc = {
		text = EVTDESCB_ZE_13042
		trigger = {
			FROM = { has_character_flag = willful_to_brave }
		} 
	}
	desc = {
		text = EVTDESCC_ZE_13042
		trigger = {
			FROM = { has_character_flag = willful_to_stubborn }
		}
	}

	is_triggered_only = yes
	
	only_capable = yes
	
	option = {
		name = EVTOPTA_ZE_13042 # The child will be like me
		FROM = {
			custom_tooltip = { text = willful_may_become_proud }
		}
		hidden_tooltip = { FROM = { character_event = { id = ZE.13044 } } }
	}
	option = {
		name = EVTOPTB_ZE_13042  # Do not intervene
		hidden_tooltip = { FROM = { character_event = { id = ZE.13041 } } } # Go to normal trait change
		if = {
			limit = { FROM = { has_character_flag = willful_to_ambitious } }
			tooltip = { FROM = { remove_trait = willful add_trait = ambitious } }
		}
		if = {
			limit = { FROM = { has_character_flag = willful_to_brave } }
			tooltip = { FROM = { remove_trait = willful add_trait = brave } }
		}
		if = {
			limit = { FROM = { has_character_flag = willful_to_stubborn } }
			tooltip = { FROM = { remove_trait = willful add_trait = stubborn } }
		}
	}
}

# Notify child of Educator intervention and result
character_event = {
	id = ZE.13044
	picture = GFX_evt_courtiers_talking

	desc = {
		text = EVTDESCA_ZE_13044
		trigger = {
			FROM = { has_character_flag = willful_to_ambitious }
		} 
	}
	desc = {
		text = EVTDESCB_ZE_13044
		trigger = {
			FROM = { has_character_flag = willful_to_brave }
		} 
	}
	desc = {
		text = EVTDESCC_ZE_13044
		trigger = {
			FROM = { has_character_flag = willful_to_stubborn }
		}
	}

	is_triggered_only = yes
	
	only_capable = yes
	
	option = {
		name = EVTOPTA_ZE_13044
		remove_trait = willful
		add_trait = proud
		clr_character_flag = willful_to_ambitious
		clr_character_flag = willful_to_brave
		clr_character_flag = willful_to_stubborn
	}
	option = {
		name = EVTOPTB_ZE_13044
		trigger = {
			has_character_flag = willful_to_ambitious
		}
		remove_trait = willful
		add_trait = ambitious
		clr_character_flag = willful_to_ambitious
	}
	option = {
		name = EVTOPTC_ZE_13044
		trigger = {
			has_character_flag = willful_to_brave
		}
		remove_trait = willful
		add_trait = brave
		clr_character_flag = willful_to_brave
	}
	option = {
		name = EVTOPTD_ZE_13044
		trigger = {
			has_character_flag = willful_to_stubborn
		}
		remove_trait = willful
		add_trait = stubborn
		clr_character_flag = willful_to_stubborn
	}
}


#############################################
# Brooding									#
#############################################

# brooding turns into just, wroth or envious
character_event = {
	id = ZE.13050

	hide_window = yes
	
	is_triggered_only = yes
	
	only_capable = yes
	
	trigger = {
		trait = brooding
	}
	
	immediate = {
		set_character_flag = was_brooding
		random_list = {  # Select outcome
			10 = {
				set_character_flag = brooding_to_just
				modifier = {
					factor = 0
					OR = {
						trait = arbitrary
						trait = just
					}
				}
			}
			10 = {
				set_character_flag = brooding_to_wroth
				modifier = {
					factor = 0
					OR = {
						trait = patient
						trait = wroth
					}
				}
			}
			10 = {
				set_character_flag = brooding_to_envious
				modifier = {
					factor = 0
					OR = {
						trait = kind
						trait = envious
					}
				}
			}
		}
		if = {
			limit = {
				OR = {
					trait = arbitrary
					trait = just
				}
				OR = {
					trait = patient
					trait = wroth
				}
				OR = {
					trait = kind
					trait = envious
				}
			}
			change_intrigue = 2
			remove_trait = brooding
			break = yes
		}
		if = {
			limit = {
				NOT = { trait = temperate }
				educator = { trait = temperate }
				prisoner = no
			}
			educator = { character_event = { id = ZE.13052 } }  # Let educator decide on intervention
			break = yes
		}
		character_event = { id = ZE.13051 } # Go direct to trait change
	}
}

character_event = {
	id = ZE.13051
	picture = GFX_evt_courtiers_talking

	desc = {
		text = EVTDESCA_ZE_13051
		trigger = {
			FROM = { has_character_flag = brooding_to_just }
		} 
	}
	desc = {
		text = EVTDESCB_ZE_13051
		trigger = {
			FROM = { has_character_flag = brooding_to_wroth }
		} 
	}
	desc = {
		text = EVTDESCC_ZE_13051
		trigger = {
			FROM = { has_character_flag = brooding_to_envious }
		}
	}

	is_triggered_only = yes
	
	only_capable = yes
	
	option = {
		name = EVTOPTA_ZE_13051
		trigger = {
			has_character_flag = brooding_to_just
		}
		remove_trait = brooding
		add_trait = just
		clr_character_flag = brooding_to_just
	}
	option = {
		name = EVTOPTB_ZE_13051
		trigger = {
			has_character_flag = brooding_to_wroth
		}
		remove_trait = brooding
		add_trait = wroth
		clr_character_flag = brooding_to_wroth
	}
	option = {
		name = EVTOPTC_ZE_13051
		trigger = {
			has_character_flag = brooding_to_envious
		}
		remove_trait = brooding
		add_trait = envious
		clr_character_flag = brooding_to_envious
	}
}


# temperate educator may make child temperate instead
character_event = {
	id = ZE.13052
	picture = GFX_evt_courtiers_talking

	desc = {
		text = EVTDESCA_ZE_13052
		trigger = {
			FROM = { has_character_flag = brooding_to_just }
		} 
	}
	desc = {
		text = EVTDESCB_ZE_13052
		trigger = {
			FROM = { has_character_flag = brooding_to_wroth }
		} 
	}
	desc = {
		text = EVTDESCC_ZE_13052
		trigger = {
			FROM = { has_character_flag = brooding_to_envious }
		}
	}

	is_triggered_only = yes
	
	only_capable = yes
	
	option = {
		name = EVTOPTA_ZE_13052 # The child will be like me
		FROM = {
			custom_tooltip = { text = brooding_may_become_temperate }
		}
		hidden_tooltip = { FROM = { character_event = { id = ZE.13054 } } }
	}
	option = {
		name = EVTOPTB_ZE_13052  # Do not intervene
		hidden_tooltip = { FROM = { character_event = { id = ZE.13051 } } } # Go to normal trait change
		if = {
			limit = { FROM = { has_character_flag = brooding_to_just } }
			tooltip = { FROM = { remove_trait = brooding add_trait = just } }
		}
		if = {
			limit = { FROM = { has_character_flag = brooding_to_wroth } }
			tooltip = { FROM = { remove_trait = brooding add_trait = wroth } }
		}
		if = {
			limit = { FROM = { has_character_flag = brooding_to_envious } }
			tooltip = { FROM = { remove_trait = brooding add_trait = envious } }
		}
	}
}

# Notify child of Educator intervention and result
character_event = {
	id = ZE.13054
	picture = GFX_evt_courtiers_talking

	desc = {
		text = EVTDESCA_ZE_13054
		trigger = {
			FROM = { has_character_flag = brooding_to_just }
		} 
	}
	desc = {
		text = EVTDESCB_ZE_13054
		trigger = {
			FROM = { has_character_flag = brooding_to_wroth }
		} 
	}
	desc = {
		text = EVTDESCC_ZE_13054
		trigger = {
			FROM = { has_character_flag = brooding_to_envious }
		}
	}

	is_triggered_only = yes
	
	only_capable = yes
	
	option = {
		name = EVTOPTA_ZE_13054
		remove_trait = brooding
		add_trait = temperate
		clr_character_flag = brooding_to_just
		clr_character_flag = brooding_to_wroth
		clr_character_flag = brooding_to_envious
	}
	option = {
		name = EVTOPTB_ZE_13054
		trigger = {
			has_character_flag = brooding_to_just
		}
		remove_trait = brooding
		add_trait = just
		clr_character_flag = brooding_to_just
	}
	option = {
		name = EVTOPTC_ZE_13054
		trigger = {
			has_character_flag = brooding_to_wroth
		}
		remove_trait = brooding
		add_trait = wroth
		clr_character_flag = brooding_to_wroth
	}
	option = {
		name = EVTOPTD_ZE_13054
		trigger = {
			has_character_flag = brooding_to_envious
		}
		remove_trait = brooding
		add_trait = envious
		clr_character_flag = brooding_to_envious
	}
}

#############################################
# Indolent									#
#############################################

# indolent turns into charitable, slothful or gluttonous
character_event = {
	id = ZE.13060

	hide_window = yes
	
	is_triggered_only = yes
	
	only_capable = yes
	
	trigger = {
		trait = indolent
	}
	
	immediate = {
		set_character_flag = was_indolent
		random_list = {  # Select outcome
			10 = {
				set_character_flag = indolent_to_charitable
				modifier = {
					factor = 0
					OR = {
						trait = greedy
						trait = charitable
					}
				}
			}
			10 = {
				set_character_flag = indolent_to_slothful
				modifier = {
					factor = 0
					OR = {
						trait = diligent
						trait = slothful
					}
				}
			}
			10 = {
				set_character_flag = indolent_to_gluttonous
				modifier = {
					factor = 0
					OR = {
						trait = temperate
						trait = gluttonous
					}
				}
			}
		}
		if = {
			limit = {
				OR = {
					trait = greedy
					trait = charitable
				}
				OR = {
					trait = diligent
					trait = slothful
				}
				OR = {
					trait = temperate
					trait = gluttonous
				}
			}
			change_intrigue = 2
			remove_trait = indolent
			break = yes
		}
		if = {
			limit = {
				NOT = { trait = gregarious }
				educator = { trait = gregarious }
				prisoner = no
			}
			educator = { character_event = { id = ZE.13062 } }  # Let educator decide on intervention
			break = yes
		}
		character_event = { id = ZE.13061 } # Go direct to trait change
	}
}

character_event = {
	id = ZE.13061
	picture = GFX_evt_courtiers_talking

	desc = {
		text = EVTDESCA_ZE_13061
		trigger = {
			FROM = { has_character_flag = indolent_to_charitable }
		} 
	}
	desc = {
		text = EVTDESCB_ZE_13061
		trigger = {
			FROM = { has_character_flag = indolent_to_slothful }
		} 
	}
	desc = {
		text = EVTDESCC_ZE_13061
		trigger = {
			FROM = { has_character_flag = indolent_to_gluttonous }
		}
	}

	is_triggered_only = yes
	
	only_capable = yes
	
	option = {
		name = EVTOPTA_ZE_13061
		trigger = {
			has_character_flag = indolent_to_charitable
		}
		remove_trait = indolent
		add_trait = charitable
		clr_character_flag = indolent_to_charitable
	}
	option = {
		name = EVTOPTB_ZE_13061
		trigger = {
			has_character_flag = indolent_to_slothful
		}
		remove_trait = indolent
		add_trait = slothful
		clr_character_flag = indolent_to_slothful
	}
	option = {
		name = EVTOPTC_ZE_13061
		trigger = {
			has_character_flag = indolent_to_gluttonous
		}
		remove_trait = indolent
		add_trait = gluttonous
		clr_character_flag = indolent_to_gluttonous
	}
}


# gregarious educator may make child gregarious instead
character_event = {
	id = ZE.13062
	picture = GFX_evt_courtiers_talking

	desc = {
		text = EVTDESCA_ZE_13062
		trigger = {
			FROM = { has_character_flag = indolent_to_charitable }
		} 
	}
	desc = {
		text = EVTDESCB_ZE_13062
		trigger = {
			FROM = { has_character_flag = indolent_to_slothful }
		} 
	}
	desc = {
		text = EVTDESCC_ZE_13062
		trigger = {
			FROM = { has_character_flag = indolent_to_gluttonous }
		}
	}

	is_triggered_only = yes
	
	only_capable = yes
	
	option = {
		name = EVTOPTA_ZE_13062 # The child will be like me
		FROM = {
			custom_tooltip = { text = indolent_may_become_gregarious }
		}
		hidden_tooltip = { FROM = { character_event = { id = ZE.13064 } } }
	}
	option = {
		name = EVTOPTB_ZE_13062  # Do not intervene
		hidden_tooltip = { FROM = { character_event = { id = ZE.13061 } } } # Go to normal trait change
		if = {
			limit = { FROM = { has_character_flag = indolent_to_charitable } }
			tooltip = { FROM = { remove_trait = indolent add_trait = charitable } }
		}
		if = {
			limit = { FROM = { has_character_flag = indolent_to_slothful } }
			tooltip = { FROM = { remove_trait = indolent add_trait = slothful } }
		}
		if = {
			limit = { FROM = { has_character_flag = indolent_to_gluttonous } }
			tooltip = { FROM = { remove_trait = indolent add_trait = gluttonous } }
		}
	}
}

# Notify child of Educator intervention and result
character_event = {
	id = ZE.13064
	picture = GFX_evt_courtiers_talking

	desc = {
		text = EVTDESCA_ZE_13064
		trigger = {
			FROM = { has_character_flag = indolent_to_charitable }
		} 
	}
	desc = {
		text = EVTDESCB_ZE_13064
		trigger = {
			FROM = { has_character_flag = indolent_to_slothful }
		} 
	}
	desc = {
		text = EVTDESCC_ZE_13064
		trigger = {
			FROM = { has_character_flag = indolent_to_gluttonous }
		}
	}

	is_triggered_only = yes
	
	only_capable = yes
	
	option = {
		name = EVTOPTA_ZE_13064
		remove_trait = indolent
		add_trait = gregarious
		clr_character_flag = indolent_to_charitable
		clr_character_flag = indolent_to_slothful
		clr_character_flag = indolent_to_gluttonous
	}
	option = {
		name = EVTOPTB_ZE_13064
		trigger = {
			has_character_flag = indolent_to_charitable
		}
		remove_trait = indolent
		add_trait = charitable
		clr_character_flag = indolent_to_charitable
	}
	option = {
		name = EVTOPTC_ZE_13064
		trigger = {
			has_character_flag = indolent_to_slothful
		}
		remove_trait = indolent
		add_trait = slothful
		clr_character_flag = indolent_to_slothful
	}
	option = {
		name = EVTOPTD_ZE_13064
		trigger = {
			has_character_flag = indolent_to_gluttonous
		}
		remove_trait = indolent
		add_trait = gluttonous
		clr_character_flag = indolent_to_gluttonous
	}
}

#############################################
# Playful									#
#############################################


# playful turns into gregarious, deceitful or lunatic
character_event = {
	id = ZE.13070

	hide_window = yes
	
	is_triggered_only = yes
	
	only_capable = yes
	
	trigger = {
		trait = playful
	}
	
	immediate = {
		set_character_flag = was_playful
		random_list = {  # Select outcome
			15 = {
				set_character_flag = playful_to_gregarious
				modifier = {
					factor = 0
					trait = gregarious
				}
				modifier = {
					factor = 0.1
					trait = shy
				}
			}
			15 = {
				set_character_flag = playful_to_deceitful
				modifier = {
					factor = 0
					trait = deceitful
				}
				modifier = {
					factor = 0.1
					trait = honest
				}
			}
			1 = {
				set_character_flag = playful_to_lunatic  # This should be RARE but affected by modifiers/traumas
				modifier = {
					factor = 0
					trait = lunatic
				}
				modifier = {
					factor = 3
					trait = genius
				}
			}
		}
		if = {
			# This combination should not be possible, but just to be sure...
			limit = {
				trait = gregarious
				trait = deceitful
				trait = lunatic
			}
			change_diplomacy = 2
			remove_trait = playful
			break = yes
		}
		if = {
			limit = {
				NOT = { trait = cruel }
				educator = { trait = cruel }
				prisoner = no
			}
			educator = { character_event = { id = ZE.13072 } }  # Let educator decide on intervention
			break = yes
		}
		character_event = { id = ZE.13071 } # Go direct to trait change
	}
}

character_event = {
	id = ZE.13071
	picture = GFX_evt_courtiers_talking

	desc = {
		text = EVTDESCA_ZE_13071
		trigger = {
			FROM = { has_character_flag = playful_to_gregarious }
		} 
	}
	desc = {
		text = EVTDESCB_ZE_13071
		trigger = {
			FROM = { has_character_flag = playful_to_deceitful }
		} 
	}
	desc = {
		text = EVTDESCC_ZE_13071
		trigger = {
			FROM = { has_character_flag = playful_to_lunatic }
		}
	}

	is_triggered_only = yes
	
	only_capable = yes
	
	option = {
		name = EVTOPTA_ZE_13071
		trigger = {
			has_character_flag = playful_to_gregarious
		}
		remove_trait = playful
		add_trait = gregarious
		clr_character_flag = playful_to_gregarious
	}
	option = {
		name = EVTOPTB_ZE_13071
		trigger = {
			has_character_flag = playful_to_deceitful
		}
		remove_trait = playful
		add_trait = deceitful
		
		clr_character_flag = playful_to_deceitful
	}
	option = {
		name = EVTOPTC_ZE_13071
		trigger = {
			has_character_flag = playful_to_lunatic
		}
		remove_trait = playful
		add_trait = lunatic
		clr_character_flag = playful_to_lunatic
	}
}


# cruel educator may make child cruel instead
character_event = {
	id = ZE.13072
	picture = GFX_evt_courtiers_talking

	desc = {
		text = EVTDESCA_ZE_13072
		trigger = {
			FROM = { has_character_flag = playful_to_gregarious }
		} 
	}
	desc = {
		text = EVTDESCB_ZE_13072
		trigger = {
			FROM = { has_character_flag = playful_to_deceitful }
		} 
	}
	desc = {
		text = EVTDESCC_ZE_13072
		trigger = {
			FROM = { has_character_flag = playful_to_lunatic }
		}
	}

	is_triggered_only = yes
	
	only_capable = yes
	
	option = {
		name = EVTOPTA_ZE_13072 # The child will be like me
		FROM = {
			custom_tooltip = { text = playful_may_become_cruel }
		}
		hidden_tooltip = { FROM = { character_event = { id = ZE.13074 } } }
	}
	option = {
		name = EVTOPTB_ZE_13072  # Do not intervene
		hidden_tooltip = { FROM = { character_event = { id = ZE.13071 } } } # Go to normal trait change
		if = {
			limit = { FROM = { has_character_flag = playful_to_gregarious } }
			tooltip = { FROM = { remove_trait = playful add_trait = gregarious } }
		}
		if = {
			limit = { FROM = { has_character_flag = playful_to_deceitful } }
			tooltip = { FROM = { remove_trait = playful add_trait = deceitful  } }
		}
		if = {
			limit = { FROM = { has_character_flag = playful_to_lunatic } }
			tooltip = { FROM = { remove_trait = playful add_trait = lunatic } }
		}
	}
}

# Notify child of Educator intervention and result
character_event = {
	id = ZE.13074
	picture = GFX_evt_courtiers_talking

	desc = {
		text = EVTDESCA_ZE_13074
		trigger = {
			FROM = { has_character_flag = playful_to_gregarious }
		} 
	}
	desc = {
		text = EVTDESCB_ZE_13074
		trigger = {
			FROM = { has_character_flag = playful_to_deceitful }
		} 
	}
	desc = {
		text = EVTDESCC_ZE_13074
		trigger = {
			FROM = { has_character_flag = playful_to_lunatic }
		}
	}

	is_triggered_only = yes
	
	only_capable = yes
	
	option = {
		name = EVTOPTA_ZE_13074
		remove_trait = playful
		add_trait = cruel
		clr_character_flag = playful_to_gregarious
		clr_character_flag = playful_to_deceitful
		clr_character_flag = playful_to_lunatic
	}
	option = {
		name = EVTOPTB_ZE_13074
		trigger = {
			has_character_flag = playful_to_gregarious
		}
		remove_trait = playful
		add_trait = gregarious
		clr_character_flag = playful_to_gregarious
	}
	option = {
		name = EVTOPTC_ZE_13074
		trigger = {
			has_character_flag = playful_to_deceitful
		}
		remove_trait = playful
		add_trait = deceitful
		
		clr_character_flag = playful_to_deceitful
	}
	option = {
		name = EVTOPTD_ZE_13074
		trigger = {
			has_character_flag = playful_to_lunatic
		}
		remove_trait = playful
		add_trait = lunatic
		clr_character_flag = playful_to_lunatic
	}
}


#############################################
# Conscientious								#
#############################################

# conscientious turns into diligent or temperate, chance of additionally getting Stressed
character_event = {
	id = ZE.13080

	hide_window = yes
	
	is_triggered_only = yes
	
	only_capable = yes
	
	trigger = {
		trait = conscientious
	}
	
	immediate = {
		set_character_flag = was_conscientious
		random_list = {  # Select outcome
			10 = {
				set_character_flag = conscientious_to_diligent
				modifier = {
					factor = 0
					OR = {
						trait = slothful
						trait = diligent
					}
				}
			}
			10 = {
				set_character_flag = conscientious_to_temperate
				modifier = {
					factor = 0
					OR = {
						trait = gluttonous
						trait = temperate
					}
				}
			}
		}
		if = {
			limit = {
				OR = {
					trait = slothful
					trait = diligent
				}
				OR = {
					trait = gluttonous
					trait = temperate
				}
			}
			change_stewardship = 2
			remove_trait = conscientious
			break = yes
		}
		if = {
			limit = {
				NOT = { trait = just }
				educator = { trait = just }
				prisoner = no
			}
			educator = { character_event = { id = ZE.13082 } }  # Let educator decide on intervention
			break = yes
		}
		character_event = { id = ZE.13081 } # Go direct to trait change
	}
}

character_event = {
	id = ZE.13081
	picture = GFX_evt_courtiers_talking

	desc = {
		text = EVTDESCA_ZE_13081
		trigger = {
			FROM = { has_character_flag = conscientious_to_diligent }
		} 
	}
	desc = {
		text = EVTDESCB_ZE_13081
		trigger = {
			FROM = { has_character_flag = conscientious_to_temperate }
		} 
	}

	is_triggered_only = yes
	
	only_capable = yes
	
	option = {
		name = EVTOPTA_ZE_13081
		trigger = {
			has_character_flag = conscientious_to_diligent
		}
		remove_trait = conscientious
		add_trait = diligent
		if = {
			limit = {
				NOT = { trait = stressed }
			}
			if = {
				limit = {
					NOR = {
						trait = stressed
						trait = depressed
					}
				}
				random = {
					chance = 20
					add_trait = stressed
					hidden_tooltip = {
						character_event = {
							id = 38282 #Notify Stressed
						}
					}
				}
			}
		}
		clr_character_flag = conscientious_to_diligent
	}
	option = {
		name = EVTOPTB_ZE_13081
		trigger = {
			has_character_flag = conscientious_to_temperate
		}
		remove_trait = conscientious
		add_trait = temperate
		if = {
			limit = {
				NOR = { trait = stressed trait = depressed }
			}
			random = {
				chance = 20
				add_trait = stressed
				hidden_tooltip = {
					character_event = {
						id = 38282 #Notify Stressed
					}
				}
			}
		}
		clr_character_flag = conscientious_to_temperate
	}
}


# just educator may make child just instead
character_event = {
	id = ZE.13082
	picture = GFX_evt_courtiers_talking

	desc = {
		text = EVTDESCA_ZE_13082
		trigger = {
			FROM = { has_character_flag = conscientious_to_diligent }
		} 
	}
	desc = {
		text = EVTDESCB_ZE_13082
		trigger = {
			FROM = { has_character_flag = conscientious_to_temperate }
		} 
	}

	is_triggered_only = yes
	
	only_capable = yes
	
	option = {
		name = EVTOPTA_ZE_13082 # The child will be like me
		FROM = {
			custom_tooltip = { text = conscientious_may_become_just }
		}
		hidden_tooltip = { FROM = { character_event = { id = ZE.13084 } } }
	}
	option = {
		name = EVTOPTB_ZE_13082  # Do not intervene
		hidden_tooltip = { FROM = { character_event = { id = ZE.13081 } } } # Go to normal trait change
		if = {
			limit = { FROM = { has_character_flag = conscientious_to_diligent } }
			tooltip = { FROM = { remove_trait = conscientious add_trait = diligent } }
		}
		if = {
			limit = { FROM = { has_character_flag = conscientious_to_temperate } }
			tooltip = { FROM = { remove_trait = conscientious add_trait = temperate } }
		}
	}
}

# Notify child of Educator intervention and result
character_event = {
	id = ZE.13084
	picture = GFX_evt_courtiers_talking

	desc = {
		text = EVTDESCA_ZE_13084
		trigger = {
			FROM = { has_character_flag = conscientious_to_diligent }
		} 
	}
	desc = {
		text = EVTDESCB_ZE_13084
		trigger = {
			FROM = { has_character_flag = conscientious_to_temperate }
		} 
	}

	is_triggered_only = yes
	
	only_capable = yes
	
	option = {
		name = EVTOPTA_ZE_13084
		remove_trait = conscientious
		add_trait = just
		clr_character_flag = conscientious_to_diligent
		clr_character_flag = conscientious_to_temperate
	}
	option = {
		name = EVTOPTB_ZE_13084
		trigger = {
			has_character_flag = conscientious_to_diligent
		}
		remove_trait = conscientious
		add_trait = diligent
		clr_character_flag = conscientious_to_diligent
	}
	option = {
		name = EVTOPTC_ZE_13084
		trigger = {
			has_character_flag = conscientious_to_temperate
		}
		remove_trait = conscientious
		add_trait = temperate
		clr_character_flag = conscientious_to_temperate
	}
}



#############################################
# Fussy										#
#############################################

# fussy turns into patient, greedy or paranoid
character_event = {
	id = ZE.13090

	hide_window = yes
	
	is_triggered_only = yes
	
	only_capable = yes
	
	trigger = {
		trait = fussy
	}
	
	immediate = {
		set_character_flag = was_fussy
		random_list = {  # Select outcome
			10 = {
				set_character_flag = fussy_to_patient
				modifier = {
					factor = 0
					OR = {
						trait = wroth
						trait = patient
					}
				}
			}
			10 = {
				set_character_flag = fussy_to_greedy
				modifier = {
					factor = 0
					OR = {
						trait = charitable
						trait = greedy
					}
				}
			}
			10 = {
				set_character_flag = fussy_to_paranoid
				modifier = {
					factor = 0
					OR = {
						trait = trusting
						trait = paranoid
					}
				}
			}
		}
		if = {
			limit = {
				OR = {
					trait = wroth
					trait = patient
				}
				OR = {
					trait = charitable
					trait = greedy
				}
				OR = {
					trait = trusting
					trait = paranoid
				}
			}
			change_stewardship = 2
			remove_trait = fussy
			break = yes
		}
		if = {
			limit = {
				NOT = { trait = diligent }
				educator = { trait = diligent }
				prisoner = no
			}
			educator = { character_event = { id = ZE.13092 } }  # Let educator decide on intervention
			break = yes
		}
		character_event = { id = ZE.13091 } # Go direct to trait change
	}
}

character_event = {
	id = ZE.13091
	picture = GFX_evt_courtiers_talking

	desc = {
		text = EVTDESCA_ZE_13091
		trigger = {
			FROM = { has_character_flag = fussy_to_patient }
		} 
	}
	desc = {
		text = EVTDESCB_ZE_13091
		trigger = {
			FROM = { has_character_flag = fussy_to_greedy }
		} 
	}
	desc = {
		text = EVTDESCC_ZE_13091
		trigger = {
			FROM = { has_character_flag = fussy_to_paranoid }
		}
	}

	is_triggered_only = yes
	
	only_capable = yes
	
	option = {
		name = EVTOPTA_ZE_13091
		trigger = {
			has_character_flag = fussy_to_patient
		}
		remove_trait = fussy
		add_trait = patient
		clr_character_flag = fussy_to_patient
	}
	option = {
		name = EVTOPTB_ZE_13091
		trigger = {
			has_character_flag = fussy_to_greedy
		}
		remove_trait = fussy
		add_trait = greedy
		clr_character_flag = fussy_to_greedy
	}
	option = {
		name = EVTOPTC_ZE_13091
		trigger = {
			has_character_flag = fussy_to_paranoid
		}
		remove_trait = fussy
		add_trait = paranoid
		clr_character_flag = fussy_to_paranoid
	}
}


# diligent educator may make child diligent instead
character_event = {
	id = ZE.13092
	picture = GFX_evt_courtiers_talking

	desc = {
		text = EVTDESCA_ZE_13092
		trigger = {
			FROM = { has_character_flag = fussy_to_patient }
		} 
	}
	desc = {
		text = EVTDESCB_ZE_13092
		trigger = {
			FROM = { has_character_flag = fussy_to_greedy }
		} 
	}
	desc = {
		text = EVTDESCC_ZE_13092
		trigger = {
			FROM = { has_character_flag = fussy_to_paranoid }
		}
	}

	is_triggered_only = yes
	
	only_capable = yes
	
	option = {
		name = EVTOPTA_ZE_13092 # The child will be like me
		FROM = {
			custom_tooltip = { text = fussy_may_become_diligent }
		}
		hidden_tooltip = { FROM = { character_event = { id = ZE.13094 } } }
	}
	option = {
		name = EVTOPTB_ZE_13092  # Do not intervene
		hidden_tooltip = { FROM = { character_event = { id = ZE.13091 } } } # Go to normal trait change
		if = {
			limit = { FROM = { has_character_flag = fussy_to_patient } }
			tooltip = {
				FROM = {
					remove_trait = fussy
					add_trait = patient
				}
			}
		}
		if = {
			limit = { FROM = { has_character_flag = fussy_to_greedy } }
			tooltip = { FROM = { remove_trait = fussy add_trait = greedy } }
		}
		if = {
			limit = { FROM = { has_character_flag = fussy_to_paranoid } }
			tooltip = { FROM = { remove_trait = fussy add_trait = paranoid } }
		}
	}
}

# Notify child of Educator intervention and result
character_event = {
	id = ZE.13094
	picture = GFX_evt_courtiers_talking

	desc = {
		text = EVTDESCA_ZE_13094
		trigger = {
			FROM = { has_character_flag = fussy_to_patient }
		} 
	}
	desc = {
		text = EVTDESCB_ZE_13094
		trigger = {
			FROM = { has_character_flag = fussy_to_greedy }
		} 
	}
	desc = {
		text = EVTDESCC_ZE_13094
		trigger = {
			FROM = { has_character_flag = fussy_to_paranoid }
		}
	}

	is_triggered_only = yes
	
	only_capable = yes
	
	option = {
		name = EVTOPTA_ZE_13094
		remove_trait = fussy
		add_trait = diligent
		clr_character_flag = fussy_to_patient
		clr_character_flag = fussy_to_greedy
		clr_character_flag = fussy_to_paranoid
	}
	option = {
		name = EVTOPTB_ZE_13094
		trigger = {
			has_character_flag = fussy_to_patient
		}
		remove_trait = fussy
		add_trait = patient
		clr_character_flag = fussy_to_patient
	}
	option = {
		name = EVTOPTC_ZE_13094
		trigger = {
			has_character_flag = fussy_to_greedy
		}
		remove_trait = fussy
		add_trait = greedy
		clr_character_flag = fussy_to_greedy
	}
	option = {
		name = EVTOPTD_ZE_13094
		trigger = {
			has_character_flag = fussy_to_paranoid
		}
		remove_trait = fussy
		add_trait = paranoid
		clr_character_flag = fussy_to_paranoid
	}
}


#############################################
# Curious									#
#############################################

character_event = {
	id = ZE.13100

	hide_window = yes
	
	is_triggered_only = yes
	
	only_capable = yes
	
	trigger = {
		trait = curious
	}
	
	immediate = {
		set_character_flag = was_curious
		random_list = {  # Select outcome
			10 = {
				set_character_flag = curious_to_cynical
				modifier = {
					factor = 0
					OR = {
						trait = zealous
						trait = cynical
					}
				}
			}
			10 = {
				modifier = {
					factor = 0
					OR = {
						NOR = {
							educator = { NOT = { religion_group = ROOT } }
							location = { NOT = { religion_group = ROOT } }
							any_friend = { NOT = { religion_group = ROOT } }
							any_sibling = { NOT = { religion_group = ROOT } }
						}
						trait = cynical
						trait = sympathy_christendom
						trait = sympathy_islam
						trait = sympathy_pagans
						trait = sympathy_zoroastrianism
						trait = sympathy_judaism
						trait = sympathy_indian
					}
				}
				set_character_flag = curious_sympathy_religion
			}
			10 = {
				modifier = {
					factor = 0
					OR = {
						trait = shrewd
						has_character_flag = child_became_less_smart
					}
				}
				set_character_flag = curious_to_genius
				set_character_flag = child_became_smarter
			}
		}
		
		# If sympathy for religion, choose which one...
		if = {
			limit = { has_character_flag = curious_sympathy_religion }
			random_list = {
				10 = {
					set_character_flag = add_sympathy_christendom
					modifier = {
						factor = 0
						religion_group = christian
					}
					modifier = {
						factor = 0
						NOR = {
							educator = { religion_group = christian }
							location = { religion_group = christian } 
							any_friend = { religion_group = christian }
							any_sibling = { religion_group = christian } 
						}
					}
				}
				10 = {
					set_character_flag = add_sympathy_islam
					modifier = {
						factor = 0
						religion_group = muslim
					}
					modifier = {
						factor = 0
						NOR = {
							educator = { religion_group = muslim }
							location = { religion_group = muslim } 
							any_friend = { religion_group = muslim }
							any_sibling = { religion_group = muslim }
						}
					}
				}
				10 = {
					set_character_flag = add_sympathy_pagans
					modifier = {
						factor = 0
						is_pagan_religion = yes
					}
					modifier = {
						factor = 0
						NOR = {
							educator = { is_pagan_religion = yes }
							location = { is_pagan_religion = yes } 
							any_friend = { is_pagan_religion = yes } 
							any_sibling = { is_pagan_religion = yes } 
						}
					}
				}
				10 = {
					set_character_flag = add_sympathy_zoroastrianism
					modifier = {
						factor = 0
						religion_group = zoroastrian_group
					}
					modifier = {
						factor = 0
						NOR = {
							educator = { religion_group = zoroastrian_group }
							location = { religion_group = zoroastrian_group }
							any_friend = { religion_group = zoroastrian_group }
							any_sibling = { religion_group = zoroastrian_group }
						}
					}
				}
				10 = {
					set_character_flag = add_sympathy_judaism
					modifier = {
						factor = 0
						religion_group = jewish_group
					}
					modifier = {
						factor = 0
						NOR = {
							educator = { religion_group = jewish_group }
							location = { religion_group = jewish_group }
							any_friend = { religion_group = jewish_group }
							any_sibling = { religion_group = jewish_group }
						}
					}
				}
				10 = {
					set_character_flag = add_sympathy_indian
					modifier = {
						factor = 0
						religion_group = indian_group
					}
					modifier = {
						factor = 0
						NOR = {
							educator = { religion_group = indian_group }
							location = { religion_group = indian_group }
							any_friend = { religion_group = indian_group }
							any_sibling = { religion_group = indian_group }
						}
					}
				}
			}
		}

		if = {
			limit = {
				OR = {
					trait = zealous
					trait = cynical
				}
				OR = {
					NOR = {
						educator = { NOT = { religion_group = ROOT } }
						location = { NOT = { religion_group = ROOT } }
						any_friend = { NOT = { religion_group = ROOT } }
						any_sibling = { NOT = { religion_group = ROOT } }
					}
					trait = cynical
					trait = sympathy_christendom
					trait = sympathy_islam
					trait = sympathy_pagans
					trait = sympathy_zoroastrianism
					trait = sympathy_judaism
					trait = sympathy_indian
				}
				OR = {
					trait = shrewd
					has_character_flag = child_became_less_smart
				}
			}
			change_stewardship = 2
			remove_trait = curious
			break = yes
		}
		
		if = {
			limit = {
				NOT = { trait = patient }
				educator = { trait = patient }
				prisoner = no
			}
			educator = { character_event = { id = ZE.13102 } }  # Let educator decide on intervention
			break = yes
		}
		character_event = { id = ZE.13101 } # Go direct to trait change
	}
}

character_event = {
	id = ZE.13101
	picture = GFX_evt_courtiers_talking

	desc = {
		text = EVTDESCA_ZE_13101
		trigger = {
			FROM = { has_character_flag = curious_to_cynical }
		} 
	}
	desc = {
		text = EVTDESCB_ZE_13101
		trigger = {
			FROM = { has_character_flag = curious_sympathy_religion }
		} 
	}
	desc = {
		text = EVTDESCC_ZE_13101
		trigger = {
			FROM = { has_character_flag = curious_to_genius }
		}
	}

	is_triggered_only = yes
	
	only_capable = yes
	
	immediate = {
		if = {
			limit = {
				has_character_flag = curious_to_genius
				trait = imbecile
			}
			set_character_flag = curious_imbecile_to_slow
			break = yes
		}
		if = {
			limit = {
				has_character_flag = curious_to_genius
				trait = slow
			}
			set_character_flag = curious_slow_to_normal
			break = yes
		}
		if = {
			limit = {
				has_character_flag = curious_to_genius
				is_dumb_trigger = no
			}
			set_character_flag = curious_normal_to_shrewd
			break = yes
		}
	}
	
	option = {
		name = EVTOPTA_ZE_13101
		trigger = {
			has_character_flag = curious_to_cynical
		}
		remove_trait = curious
		add_trait = cynical
		clr_character_flag = curious_to_cynical
	}
	option = {
		name = EVTOPTB_ZE_13101
		trigger = {
			has_character_flag = curious_sympathy_religion
		}
		if = {
			limit = { has_character_flag = add_sympathy_christendom }
			remove_trait = curious
			add_trait = sympathy_christendom
			clr_character_flag = add_sympathy_christendom
		}
		if = {
			limit = { has_character_flag = add_sympathy_islam }
			remove_trait = curious
			add_trait = sympathy_islam
			clr_character_flag = add_sympathy_islam
		}
		if = {
			limit = { has_character_flag = add_sympathy_pagans }
			remove_trait = curious
			add_trait = sympathy_pagans
			clr_character_flag = add_sympathy_pagans
		}
		if = {
			limit = { has_character_flag = add_sympathy_zoroastrianism }
			remove_trait = curious
			add_trait = sympathy_zoroastrianism
			clr_character_flag = add_sympathy_zoroastrianism
		}
		if = {
			limit = { has_character_flag = add_sympathy_judaism }
			remove_trait = curious
			add_trait = sympathy_judaism
			clr_character_flag = add_sympathy_judaism
		}
		if = {
			limit = { has_character_flag = add_sympathy_indian }
			remove_trait = curious
			add_trait = sympathy_indian
			clr_character_flag = add_sympathy_indian
		}
		clr_character_flag = curious_sympathy_religion
	}
	option = {
		name = EVTOPTC_ZE_13101
		trigger = {
			has_character_flag = curious_to_genius
		}
		clr_character_flag = curious_to_genius
		if = {
			limit = { has_character_flag = curious_imbecile_to_slow }
			remove_trait = curious
			remove_trait = imbecile
			add_trait = slow
			clr_character_flag = curious_imbecile_to_slow
		}
		if = {
			limit = { has_character_flag = curious_slow_to_normal }
			remove_trait = curious
			remove_trait = slow
			clr_character_flag = curious_slow_to_normal
		}
		if = {
			limit = { 
				NOR = {
					has_character_flag = curious_imbecile_to_slow
					has_character_flag = curious_slow_to_normal
				}
			}
			remove_trait = curious
			add_trait = shrewd
			clr_character_flag = curious_normal_to_shrewd
		}
	}
}


# patient educator may make child patient instead
character_event = {
	id = ZE.13102
	picture = GFX_evt_courtiers_talking

	desc = {
		text = EVTDESCA_ZE_13102
		trigger = {
			FROM = { has_character_flag = curious_to_cynical }
		} 
	}
	desc = {
		text = EVTDESCB_ZE_13102
		trigger = {
			FROM = { has_character_flag = curious_sympathy_religion }
		} 
	}
	desc = {
		text = EVTDESCC_ZE_13102
		trigger = {
			FROM = { has_character_flag = curious_to_genius }
		}
	}

	is_triggered_only = yes
	
	only_capable = yes
	
	option = {
		name = EVTOPTA_ZE_13102 # The child will be like me
		FROM = {
			custom_tooltip = { text = curious_may_become_patient }
		}
		hidden_tooltip = { FROM = { character_event = { id = ZE.13104 } } }
	}
	option = {
		name = {
			text = EVTOPTB_ZE_13102  # Do not intervene
			trigger = {
				FROM = { is_female = no }
			}
		}
		name = {
			text = EVTOPTC_ZE_13102  # Do not intervene
			trigger = {
				FROM = { is_female = yes }
			}
		}
		hidden_tooltip = { FROM = { character_event = { id = ZE.13101 } } } # Go to normal trait change
		if = {
			limit = { FROM = { has_character_flag = curious_to_cynical } }
			tooltip = { FROM = { remove_trait = curious add_trait = cynical } }
		}
		if = {
			limit = {
				FROM = {
					has_character_flag = add_sympathy_christendom
				}
			}
			tooltip = { FROM = { remove_trait = curious add_trait = sympathy_christendom } }
		}
		if = {
			limit = {
				FROM = {
					has_character_flag = add_sympathy_islam
				}
			}
			tooltip = { FROM = { remove_trait = curious add_trait = sympathy_islam } }
		}
		if = {
			limit = {
				FROM = {
					has_character_flag = add_sympathy_pagans
				}
			}
			tooltip = { FROM = { remove_trait = curious add_trait = sympathy_pagans } }
		}
		if = {
			limit = {
				FROM = {
					has_character_flag = add_sympathy_zoroastrianism
				}
			}
			tooltip = { FROM = { remove_trait = curious add_trait = sympathy_zoroastrianism } }
		}
		if = {
			limit = {
				FROM = {
					has_character_flag = add_sympathy_judaism
				}
			}
			tooltip = { FROM = { remove_trait = curious add_trait = sympathy_judaism } }
		}
		if = {
			limit = {
				FROM = {
					has_character_flag = add_sympathy_indian
				}
			}
			tooltip = { FROM = { remove_trait = curious add_trait = sympathy_indian } }
		}
		if = {
			limit = {
				FROM = {
					has_character_flag = curious_to_genius
					trait = imbecile
				}
			}
			tooltip = {
				FROM = {
					remove_trait = curious
					remove_trait = imbecile
					add_trait = slow
				}
			}
		}
		if = {
			limit = {
				FROM = {
					has_character_flag = curious_to_genius
					trait = slow
				}
			}
			tooltip = {
				FROM = {
					remove_trait = curious
					remove_trait = slow
				}
			}
		}
		if = {
			limit = {
				FROM = {
					has_character_flag = curious_to_genius
					OR = {
						trait = quick
						trait = genius
					}
				}
			}
			tooltip = {
				FROM = {
					remove_trait = curious
					add_trait = shrewd
				}
			}
		}
		if = {
			limit = {
				FROM = {
					has_character_flag = curious_to_genius
					NOT = { trait = quick }
					NOT = { trait = slow }
					NOT = { trait = imbecile }
					NOT = { trait = genius }
				}
			}
			tooltip = {
				FROM = {
					remove_trait = curious
					add_trait = shrewd
				}
			}
		}
	}
}

# Notify child of Educator intervention and result
character_event = {
	id = ZE.13104
	picture = GFX_evt_courtiers_talking

	desc = {
		text = EVTDESCA_ZE_13104
		trigger = {
			FROM = { has_character_flag = curious_to_cynical }
		} 
	}
	desc = {
		text = EVTDESCB_ZE_13104
		trigger = {
			FROM = { has_character_flag = curious_sympathy_religion }
		} 
	}
	desc = {
		text = EVTDESCC_ZE_13104
		trigger = {
			FROM = { has_character_flag = curious_to_genius }
		}
	}

	is_triggered_only = yes
	
	only_capable = yes
	
	immediate = {
		if = {
			limit = {
				has_character_flag = curious_to_genius
				trait = imbecile
			}
			set_character_flag = curious_imbecile_to_slow
			break = yes
		}
		if = {
			limit = {
				has_character_flag = curious_to_genius
				trait = slow
			}
			set_character_flag = curious_slow_to_normal
			break = yes
		}
		if = {
			limit = {
				has_character_flag = curious_to_genius
				is_dumb_trigger = no
			}
			set_character_flag = curious_normal_to_shrewd
			break = yes
		}
	}
	
	option = {
		name = EVTOPTA_ZE_13104
		remove_trait = curious
		add_trait = patient
		clr_character_flag = curious_to_cynical
		clr_character_flag = curious_sympathy_religion
		clr_character_flag = curious_to_genius
	}
	option = {
		name = EVTOPTB_ZE_13104
		trigger = {
			has_character_flag = curious_to_cynical
		}
		remove_trait = curious
		add_trait = cynical
		clr_character_flag = curious_to_cynical
	}
	option = {
		name = EVTOPTC_ZE_13104
		trigger = {
			has_character_flag = curious_sympathy_religion
		}
		remove_trait = curious
		if = {
			limit = { has_character_flag = add_sympathy_christendom }
			add_trait = sympathy_christendom
			clr_character_flag = add_sympathy_christendom
		}
		if = {
			limit = { has_character_flag = add_sympathy_islam }
			add_trait = sympathy_islam
			clr_character_flag = add_sympathy_islam
		}
		if = {
			limit = { has_character_flag = add_sympathy_pagans }
			add_trait = sympathy_pagans
			clr_character_flag = add_sympathy_pagans
		}
		if = {
			limit = { has_character_flag = add_sympathy_zoroastrianism }
			add_trait = sympathy_zoroastrianism
			clr_character_flag = add_sympathy_zoroastrianism
		}
		if = {
			limit = { has_character_flag = add_sympathy_judaism }
			add_trait = sympathy_judaism
			clr_character_flag = add_sympathy_judaism
		}
		if = {
			limit = { has_character_flag = add_sympathy_indian }
			add_trait = sympathy_indian
			clr_character_flag = add_sympathy_indian
		}
		clr_character_flag = curious_sympathy_religion
	}
	option = {
		name = EVTOPTD_ZE_13104
		trigger = {
			has_character_flag = curious_to_genius
		}
		clr_character_flag = curious_to_genius
		if = {
			limit = { has_character_flag = curious_imbecile_to_slow }
			remove_trait = curious
			remove_trait = imbecile
			add_trait = slow
			clr_character_flag = curious_imbecile_to_slow
		}
		if = {
			limit = { has_character_flag = curious_slow_to_normal }
			remove_trait = curious
			remove_trait = slow
			clr_character_flag = curious_slow_to_normal
		}
		if = {
			limit = { has_character_flag = curious_normal_to_shrewd }
			remove_trait = curious
			add_trait = shrewd
			clr_character_flag = curious_normal_to_shrewd
		}
	}
}


#############################################
# Idolizer									#
#############################################

# idolizer turns into zealous, erudite or weak
character_event = {
	id = ZE.13110

	hide_window = yes
	
	is_triggered_only = yes
	
	only_capable = yes
	
	trigger = {
		trait = idolizer
	}
	
	immediate = {
		set_character_flag = was_idolizer
		random_list = {  # Select outcome
			10 = {
				set_character_flag = idolizer_to_zealous
				modifier = {
					factor = 0
					OR = {
						trait = cynical
						trait = zealous
						trait = sympathy_christendom
						trait = sympathy_islam
						trait = sympathy_pagans
						trait = sympathy_zoroastrianism
						trait = sympathy_judaism
						trait = sympathy_indian
					}
				}
			}
			10 = {
				set_character_flag = idolizer_to_erudite
				modifier = {
					factor = 0
					trait = erudite
				}
			}
			10 = {
				set_character_flag = idolizer_to_weak
				modifier = {
					factor = 0
					OR = {
						is_strong_trigger = yes
						is_weak_trigger = yes
					}
				}
			}
		}
		if = {
			limit = {
				OR = {
					trait = cynical
					trait = zealous
					trait = sympathy_christendom
					trait = sympathy_islam
					trait = sympathy_pagans
					trait = sympathy_zoroastrianism
					trait = sympathy_judaism
					trait = sympathy_indian
				}
				trait = erudite
				OR = {
					is_strong_trigger = yes
					is_weak_trigger = yes
				}
			}
			change_learning = 2
			remove_trait = idolizer
			break = yes
		}
		
		if = {
			limit = {
				NOT = { trait = kind }
				educator = { trait = kind }
				prisoner = no
			}
			educator = { character_event = { id = ZE.13112 } }  # Let educator decide on intervention
			break = yes
		}
		character_event = { id = ZE.13111 } # Go direct to trait change
	}
}

character_event = {
	id = ZE.13111
	picture = GFX_evt_courtiers_talking

	desc = {
		text = EVTDESCA_ZE_13111
		trigger = {
			FROM = { has_character_flag = idolizer_to_zealous }
		} 
	}
	desc = {
		text = EVTDESCB_ZE_13111
		trigger = {
			FROM = { has_character_flag = idolizer_to_erudite }
		} 
	}
	desc = {
		text = EVTDESCC_ZE_13111
		trigger = {
			FROM = { has_character_flag = idolizer_to_weak }
		}
	}

	is_triggered_only = yes
	
	only_capable = yes
	
	option = {
		name = EVTOPTA_ZE_13111
		trigger = {
			has_character_flag = idolizer_to_zealous
		}
		remove_trait = idolizer
		add_trait = zealous
		clr_character_flag = idolizer_to_zealous
	}
	option = {
		name = EVTOPTB_ZE_13111
		trigger = {
			has_character_flag = idolizer_to_erudite
		}
		remove_trait = idolizer
		add_trait = erudite
		clr_character_flag = idolizer_to_erudite
	}
	option = {
		name = EVTOPTC_ZE_13111
		trigger = {
			has_character_flag = idolizer_to_weak
		}
		remove_trait = idolizer
		add_trait = feeble
		clr_character_flag = idolizer_to_weak
	}
}


# kind educator may make child kind instead
character_event = {
	id = ZE.13112
	picture = GFX_evt_courtiers_talking

	desc = {
		text = EVTDESCA_ZE_13112
		trigger = {
			FROM = { has_character_flag = idolizer_to_zealous }
		} 
	}
	desc = {
		text = EVTDESCB_ZE_13112
		trigger = {
			FROM = { has_character_flag = idolizer_to_erudite }
		} 
	}
	desc = {
		text = EVTDESCC_ZE_13112
		trigger = {
			FROM = { has_character_flag = idolizer_to_weak }
		}
	}

	is_triggered_only = yes
	
	only_capable = yes
	
	option = {
		name = EVTOPTA_ZE_13112 # The child will be like me
		FROM = {
			custom_tooltip = { text = idolizer_may_become_kind }
		}
		hidden_tooltip = { FROM = { character_event = { id = ZE.13114 } } }
	}
	option = {
		name = EVTOPTB_ZE_13112  # Do not intervene
		hidden_tooltip = { FROM = { character_event = { id = ZE.13111 } } } # Go to normal trait change
		if = {
			limit = { FROM = { has_character_flag = idolizer_to_zealous } }
			tooltip = { FROM = { remove_trait = idolizer add_trait = zealous } }
		}
		if = {
			limit = { FROM = { has_character_flag = idolizer_to_erudite } }
			tooltip = { FROM = { remove_trait = idolizer add_trait = erudite } }
		}
		if = {
			limit = { FROM = { has_character_flag = idolizer_to_weak } }
			tooltip = { FROM = { remove_trait = idolizer add_trait = feeble } }
		}
	}
}

# Notify child of Educator intervention and result
character_event = {
	id = ZE.13114
	picture = GFX_evt_courtiers_talking

	desc = {
		text = EVTDESCA_ZE_13114
		trigger = {
			FROM = { has_character_flag = idolizer_to_zealous }
		} 
	}
	desc = {
		text = EVTDESCB_ZE_13114
		trigger = {
			FROM = { has_character_flag = idolizer_to_erudite }
		} 
	}
	desc = {
		text = EVTDESCC_ZE_13114
		trigger = {
			FROM = { has_character_flag = idolizer_to_weak }
		}
	}

	is_triggered_only = yes
	
	only_capable = yes
	
	option = {
		name = EVTOPTA_ZE_13114
		remove_trait = idolizer
		add_trait = kind
		clr_character_flag = idolizer_to_zealous
		clr_character_flag = idolizer_to_erudite
		clr_character_flag = idolizer_to_weak
	}
	option = {
		name = EVTOPTB_ZE_13004
		trigger = {
			has_character_flag = idolizer_to_zealous
		}
		remove_trait = idolizer
		add_trait = zealous
		clr_character_flag = idolizer_to_zealous
	}
	option = {
		name = EVTOPTC_ZE_13004
		trigger = {
			has_character_flag = idolizer_to_erudite
		}
		remove_trait = idolizer
		add_trait = erudite
		clr_character_flag = idolizer_to_erudite
	}
	option = {
		name = EVTOPTD_ZE_13004
		trigger = {
			has_character_flag = idolizer_to_weak
		}
		remove_trait = idolizer
		add_trait = feeble
		clr_character_flag = idolizer_to_weak
	}
}


#############################################
#											#
# Adolescent love events					#
# ZE.13600-ZE.13950							#
#											#
#############################################


# Start/event selection
character_event = {
	id = ZE.13997

	hide_window = yes
	
	is_triggered_only = yes
	
	capable_only = yes
	prisoner = no
	
	trigger = {
		age = 14
		NOT = { is_inaccessible_trigger = yes }
		is_ill = no
	}
	
	immediate = {
		random_list = {
			70 = { # No events
			}
			15 = {
				modifier = {
					factor = 0
					has_character_flag = youth_romantic_endeavor
				}
				character_event = { id = ZE.13610 days = 30 random = 120 } # Romance at court
			}
			15 = {
				modifier = {
					factor = 0
					has_character_flag = youth_sex_dream
				}
				modifier = {
					factor = 0
					NOT = {
						educator = {
							any_courtier = {
								age = 16
								NOR = { 
									age = 35
									same_sex = ROOT
									is_close_relative = ROOT
									trait = incapable
									trait = ugly
									trait = blinded
									trait = celibate
									trait = eunuch
									trait = clubfooted
									trait = harelip
									trait = hunchback
									trait = dwarf
									trait = inbred
									has_character_modifier = the_oubliette
									has_character_modifier = the_dungeon
								}
							}
						}
					}
				}
				character_event = { id = ZE.13700 days = 30 random = 120 } # Romantic dreams of older courtier...
			}
		}
	}
}



# ID ZE.13700-ZE.13799 

# Written by Markus Olsén
# Confused teenager events

# Waking up from a very interesting dream, what was it about?
character_event = {
	id = ZE.13700
	picture = GFX_evt_recovery
	desc = EVTDESCA_ZE_13700

	is_triggered_only = yes
	capable_only = yes

	trigger = {
		has_dlc = "Zeus"
		educator = {
			any_courtier = {	
				age = 16
				NOR = { 
					character = ROOT
					age = 35
					same_sex = ROOT
					trait = incapable
					trait = ugly
					trait = blinded
					trait = celibate
					trait = eunuch
					has_character_modifier = the_oubliette
					has_character_modifier = the_dungeon
				}
			}
		}
	}

	immediate = {
		set_character_flag = youth_sex_dream
		educator = {
			random_courtier = {
				limit = {
					age = 16
					NOR = { 
						character = ROOT
						age = 35
						same_sex = ROOT
						is_close_relative = ROOT
						trait = incapable
						trait = ugly
						trait = blinded
						trait = celibate
						trait = eunuch
						trait = clubfooted
						trait = harelip
						trait = hunchback
						trait = dwarf
						trait = inbred
						has_character_modifier = the_oubliette
						has_character_modifier = the_dungeon
					}
				}
				save_event_target_as = lustful_target
			}
		}
	}

	option = {
		name = EVTOPTA_ZE_13700	# Homosexual version
		ai_chance = {
			factor = 10
		}
		hidden_tooltip = {
			character_event = { id = ZE.13701 }
		}
	}

	option = {
		name = EVTOPTB_ZE_13700	# Lustful/Chaste version
		ai_chance = {
			factor = 90
		}
		hidden_tooltip = {
			character_event = { id = ZE.13702 }
		}
	}

	#option = {
	#	name = EVTOPTC_ZE_13700	# Celibate version
	#	ai_chance = {
	#		factor = 2
	#	}
	#	hidden_tooltip = {
	#		character_event = { id = ZE.13703 }
	#	}
	#}

	option = {
		name = EVTOPTD_ZE_13700	# Don't know don't care
		ai_chance = {
			factor = 0
		}
	}
}

character_event = {
	id = ZE.13701
	picture = GFX_evt_stone_church
	desc = EVTDESCA_ZE_13701

	is_triggered_only = yes

	option = {
		name = EVTOPTA_ZE_13701	# Homosexual
		ai_chance = {
			factor = 50
		}
		if = {
			limit = {
				NOT = { trait = homosexual }
			}
			add_trait = homosexual
		}
	}

	option = {
		name = EVTOPTB_ZE_13701	# Homosexual + chaste
		ai_chance = {
			factor = 30
		}
		if = {
			limit = {
				NOT = { trait = homosexual }
			}
			add_trait = homosexual
		}
		if = {
			limit = {
				NOT = { trait = chaste }
			}
			add_trait = chaste
		}
	}

	option = {
		name = EVTOPTC_ZE_13701	# Homosexual + lustful
		ai_chance = {
			factor = 10
		}
		if = {
			limit = {
				NOT = { trait = homosexual }
			}
			add_trait = homosexual
		}
		if = {
			limit = {
				NOT = { trait = lustful }
			}
			add_trait = lustful
		}
	}

	option = {
		name = EVTOPTD_ZE_13701	# I'm corrupted
		ai_chance = {
			factor = 10
		}
		prestige = -50
	}
}

character_event = {
	id = ZE.13702
	picture = GFX_evt_lovers
	desc = EVTDESCA_ZE_13702

	is_triggered_only = yes

	option = {
		name = EVTOPTA_ZE_13702	# Chaste
		ai_chance = {
			factor = 60
		}
		opinion = {
			who = event_target:lustful_target
			modifier = teenage_infatuation
			years = 4
		}
		event_target:lustful_target = {
			hidden_tooltip = {
				character_event = { id = ZE.13704 days = 2 }
			}
		}
		if = {
			limit = {
				NOT = { trait = chaste }
			}
			add_trait = chaste
		}
	}

	option = {
		name = EVTOPTB_ZE_13702	# Lustful
		ai_chance = {
			factor = 40
		}
		if = {
			limit = {
				NOT = { trait = lustful }
			}
			add_trait = lustful
		}
	}
}

# Courtier informed child has a crush on him/her
character_event = {
	id = ZE.13704
	picture = GFX_evt_courtiers_talking
	desc = EVTDESCA_ZE_13704

	is_triggered_only = yes

	option = {
		name = EVTOPTA_ZE_13704	# How sweet
		prestige = 30
		opinion = {
			who = FROM
			modifier = opinion_flattered
			years = 4
		}
	}
}


#############################################
# Flag clearing								#
#############################################

# Clear adolescence trait event chain flags on adulthood
character_event = {
	id = ZE.13998

	hide_window = yes
	
	is_triggered_only = yes
	
	immediate = {
		clr_character_flag = child_became_less_smart
		clr_character_flag = child_became_smarter
		clr_character_flag = youth_sex_dream
		clr_character_flag = youth_romantic_endeavor
	}
}

#############################################
#											#
# Romantic endeavors						#
# ZE.13600-ZE.13699							#
#											#
#############################################

character_event = {
	id = ZE.13610
	desc = EVTDESC_ZE_13610
	picture = GFX_evt_noble_in_castle
	border = GFX_event_normal_frame_diplomacy
	
	is_triggered_only = yes
	
	immediate = {
		set_character_flag = youth_romantic_endeavor
	}
	
	option = { # Farrier's apprentice 
		name = EVTOPTA_ZE_13610
		trigger = {
			is_female = yes
		}
		ai_chance = {
			factor = 60
		}
		set_character_flag = ZE_13610_farrier
		character_event = { id = ZE.13611 days = 30 }
	}
	
	option = { # Carpenter's daughter male
		name = EVTOPTA_ZE_13610_MALE
		trigger = {
			is_female = no
		}
		ai_chance = {
			factor = 60
		}
		set_character_flag = ZE_13610_carpenter_male
		character_event = { id = ZE.13611 days = 30 }
	}
	
	option = { # Carpenter's daughter
		name = EVTOPTB_ZE_13610
		trigger = {
			is_female = yes
		}
		ai_chance = {
			factor = 10
		}
		add_trait = homosexual
		set_character_flag = ZE_13610_carpenter
		character_event = { id = ZE.13611 days = 30 }
	}
	
	option = { # Farrier's apprentice Male
		name = EVTOPTB_ZE_13610_MALE
		trigger = {
			is_female = no
		}
		ai_chance = {
			factor = 10
		}
		add_trait = homosexual
		set_character_flag = ZE_13610_farrier_male
		character_event = { id = ZE.13611 days = 30 }
	}
	
	option = { # I don't have time for this 
		name = EVTOPTC_ZE_13610
		ai_chance = {
			factor = 30
		}
	}
}

character_event = {
	id = ZE.13611
	desc = {
		text = EVTDESCA_ZE_13611
		trigger = {
			OR = {
				has_character_flag = ZE_13610_farrier
				has_character_flag = ZE_13610_farrier_male
			}
		}
	}
	desc = {
		text = EVTDESCB_ZE_13611
		trigger = {
			OR = {
				has_character_flag = ZE_13610_carpenter
				has_character_flag = ZE_13610_carpenter_male
			}
		}
	}
	picture = GFX_evt_lovers
	border = GFX_event_normal_frame_diplomacy
	
	is_triggered_only = yes
	
	immediate = {
		
	}
	
	option = { # Chaste 
		name = EVTOPTA_ZE_13611_CARP
		add_trait = chaste
		trigger = {
			OR = {
				has_character_flag = ZE_13610_carpenter
				has_character_flag = ZE_13610_carpenter_male
			}
		}
		
		hidden_tooltip = { character_event = { id = ZE.13612 } } # Clear flags
	}
	option = {
		name = EVTOPTA_ZE_13611_FERR
		add_trait = chaste
		trigger = {
			OR = {
				has_character_flag = ZE_13610_ferrier
				has_character_flag = ZE_13610_ferrier_male
			}
		}
		
		hidden_tooltip = { character_event = { id = ZE.13612 } } # Clear flags
	}
	option = { # No special outcome 
		name = EVTOPTB_ZE_13611_CARP
		trigger = {
			OR = {
				has_character_flag = ZE_13610_carpenter
				has_character_flag = ZE_13610_carpenter_male
			}
		}
		
		hidden_tooltip = { character_event = { id = ZE.13612 } } # Clear flags
	}
	option = {
		name = EVTOPTB_ZE_13611_FERR
		trigger = {
			OR = {
				has_character_flag = ZE_13610_ferrier
				has_character_flag = ZE_13610_ferrier_male
			}
		}
		
		hidden_tooltip = { character_event = { id = ZE.13612 } } # Clear flags
	}
	option = { # Lustful 
		name = EVTOPTC_ZE_13611_CARP
		add_trait = lustful
		trigger = {
			OR = {
				has_character_flag = ZE_13610_carpenter
				has_character_flag = ZE_13610_carpenter_male
			}
		}
		
		hidden_tooltip = { character_event = { id = ZE.13612 } } # Clear flags
	}
	option = { # Lustful 
		name = EVTOPTC_ZE_13611_FERR
		add_trait = lustful
		trigger = {
			OR = {
				has_character_flag = ZE_13610_ferrier
				has_character_flag = ZE_13610_ferrier_male
			}
		}
		
		hidden_tooltip = { character_event = { id = ZE.13612 } } # Clear flags
	}
}

character_event = {
	id = ZE.13612
	
	hide_window = yes
	
	is_triggered_only = yes
	
	immediate = {
		clr_character_flag = ZE_13610_carpenter
		clr_character_flag = ZE_13610_carpenter_male
		clr_character_flag = ZE_13610_ferrier
		clr_character_flag = ZE_13610_ferrier_male
	}
}

#####################################################################
# Influence events 													#
#####################################################################
character_event = {
	id = ZE.13615
	hide_window = yes

	is_triggered_only = yes

	trigger = {
		NOR = {
			trait = incapable
			is_inaccessible_trigger = yes
			has_character_modifier = the_dungeon
			has_character_modifier = the_oubliette
		}
		age = 14
		NOT = { age = 16 }
		educator = {
			OR = {
				diplomacy = 12
				martial = 12
				stewardship = 12
				intrigue = 12
				learning = 12
			}
		}
	}

	immediate = {
		if = { #If we have more than 2 high skills
			limit = {
				educator = {
					calc_true_if = {
						amount = 2
						diplomacy = 12
						martial = 12
						stewardship = 12
						intrigue = 12
						learning = 12
					}
				}
				ROOT = {
					OR = {
						NOT = { trait = ambitious }
						NOT = { trait = diligent }
						NOT = { trait = patient }
					}
				}
			}
			educator = { character_event = { id = ZE.13625 days = 30 random = 20 } }
			break = yes
		}
		random_list = {
			20 = {
				modifier = {
					factor = 0
					NAND = {
						educator = {
							diplomacy = 12
						}
						ROOT = {
							OR = {
								NOT = { trait = honest }
								NOT = { trait = gregarious }
							}
						}
					}
				}
				educator = { character_event = { id = ZE.13620 days = 30 random = 20 } }
			}
			20 = {
				modifier = {
					factor = 0
					NAND = {
						educator = {
							martial = 12
						}
						ROOT = {
							OR = {
								NOT = { trait = brave }
								NOT = { trait = wroth }
							}
						}
					}
				}
				educator = { character_event = { id = ZE.13621 days = 30 random = 20 } }
			}
			20 = {
				modifier = {
					factor = 0
					NAND = {
						educator = {
							stewardship = 12
						}
						ROOT = {
							OR = {
								NOT = { trait = just }
								NOT = { trait = temperate }
							}
						}
					}
				}
				educator = { character_event = { id = ZE.13622 days = 30 random = 20 } }
			}
			20 = {
				modifier = {
					factor = 0
					NAND = {
						educator = {
							intrigue = 12
						}
						ROOT = {
							OR = {
								NOT = { trait = deceitful }
								NOT = { trait = cynical }
							}
						}
					}
				}
				educator = { character_event = { id = ZE.13623 days = 30 random = 20 } }
			}
			20 = {
				modifier = {
					factor = 0
					NAND = {
						educator = {
							learning = 12
						}
						ROOT = {
							OR = {
								NOT = { trait = erudite }
								NOT = { trait = chaste }
							}
						}
					}
				}
				educator = { character_event = { id = ZE.13624 days = 30 random = 20 } }
			}
		}
	}
}


#Educator has high diplomacy
character_event = {
	id = ZE.13620
	desc = EVTDESC_ZE_13620
	picture = GFX_evt_monk
	border = GFX_event_normal_frame_diplomacy
	
	is_triggered_only = yes

	trigger = {
		diplomacy = 12
		FROM = {
			OR = {
				NOT = { trait = honest }
				NOT = { trait = gregarious }
			}
		}
	}

	option = {
		tooltip_info = diplomacy
		name = EVTOPTA_ZE_13620
		trigger = {
			FROM = {
				NOT = { trait = honest }
			}
		}
		FROM = {
			if = {
				limit = { NOT = { trait = deceitful } }
				add_trait = honest
				
			}
			if = {
				limit = { trait = deceitful }
				remove_trait = deceitful
				
			}
		}
		reverse_opinion = {
			who = FROM
			modifier = opinion_pushed_me
			years = 20
		}
		if = {
			limit = { trait = honest }
			add_character_modifier = {
				name = too_honest
				years = 3
			}
		}
		if = {
			limit = { trait = deceitful }
			reverse_opinion = {
				who = FROM
				modifier = opinion_hypocrite
				years = 10
			}
		}
	}

	option = {
		tooltip_info = diplomacy
		name = EVTOPTB_ZE_13620
		trigger = {
			FROM = {
				NOT = { trait = gregarious }
			}
		}
		FROM = {
			if = {
				limit = { NOT = { trait = shy } }
				add_trait = gregarious
			}
			if = {
				limit = { trait = shy }
				remove_trait = shy
			}
		}
		reverse_opinion = {
			who = FROM
			modifier = opinion_pushed_me
			years = 20
		}
		if = {
			limit = { trait = gregarious }
			add_character_modifier = {
				name = chattermouth
				years = 3
			}
		}
		if = {
			limit = { trait = shy }
			reverse_opinion = {
				who = FROM
				modifier = opinion_hypocrite
				years = 10
			}
		}
	}

	option = {
		name = EVTOPTC_ZE_13620
	}
}

#Educator has high martial
character_event = {
	id = ZE.13621
	desc = EVTDESC_ZE_13621
	picture = GFX_evt_melee
	border = GFX_event_normal_frame_war
	
	is_triggered_only = yes

	trigger = {
		martial = 12
		FROM = {
			OR = {
				NOT = { trait = brave }
				NOT = { trait = wroth }
			}
		}
	}

	option = {
		tooltip_info = martial
		name = EVTOPTA_ZE_13621
		trigger = {
			FROM = {
				NOT = { trait = brave }
			}
		}
		FROM = {
			if = {
				limit = { NOT = { trait = craven } }
				add_trait = brave
			}
			if = {
				limit = { trait = craven }
				remove_trait = craven
			}
			if = {
				limit = { NOT = { trait = stubborn } }
				random = {
					chance = 25
					add_trait = stubborn
				}
			}
		}
		reverse_opinion = {
			who = FROM
			modifier = opinion_pushed_me
			years = 20
		}
		if = {
			limit = { trait = craven }
			reverse_opinion = {
				who = FROM
				modifier = opinion_hypocrite
				years = 20
			}
		}
		if = {
			limit = {
				NOT = { trait = brave }
				NOT = { trait = stressed }
			}
			random = {
				chance = 25
				add_trait = stressed
			}
		}
	}

	option = {
		tooltip_info = martial
		name = EVTOPTB_ZE_13621
		trigger = {
			FROM = {
				NOT = { trait = wroth }
			}
		}
		FROM = {
			add_trait = wroth
			if = {
				limit = {
					NOT = { trait = kind }
					NOT = { trait = cruel }
				}
				random = {
					chance = 25
					add_trait = cruel
				}
			}
			if = {
				limit = { trait = kind }
				remove_trait = kind
			}
		}
		reverse_opinion = {
			who = FROM
			modifier = opinion_pushed_me
			years = 20
		}
		if = {
			limit = { trait = patient }
			reverse_opinion = {
				who = FROM
				modifier = opinion_hypocrite
				years = 20
			}
		}
		if = {
			limit = { trait = kind }
			remove_trait = kind
			break = yes
		}
		random = {
			chance = 50
			add_trait = cruel
		}
	}

	option = {
		name = EVTOPTC_ZE_13620
	}
}

#Educator has high stewardship
character_event = {
	id = ZE.13622
	desc = EVTDESC_ZE_13622
	picture = GFX_evt_relaxed_ruler
	border = GFX_event_normal_frame_economy
	
	is_triggered_only = yes

	trigger = {
		stewardship = 12
		FROM = {
			OR = {
				NOT = { trait = just }
				NOT = { trait = temperate }
			}
		}
	}

	option = {
		tooltip_info = stewardship
		name = EVTOPTA_ZE_13622
		trigger = {
			FROM = {
				NOT = { trait = just }
			}
		}
		FROM = {
			if = {
				limit = { NOT = { trait = arbitrary } }
				add_trait = just
			}
			if = {
				limit = { trait = arbitrary }
				remove_trait = arbitrary
			}
			if = {
				limit = {
					ROOT = { NOT = { trait = cynical } }
					NOT = { trait = zealous }
				}
				random = {
					chance = 25
					modifier = {
						factor = 2
						ROOT = { trait = zealous }
					}
					add_trait = zealous
				}
			}
			if = {
				limit = {
					ROOT = { trait = cynical }
					NOT = { trait = cynical }
				}
				random = {
					chance = 25
					add_trait = cynical
				}
			}
		}
		reverse_opinion = {
			who = FROM
			modifier = opinion_pushed_me
			years = 20
		}
		if = {
			limit = { trait = arbitrary }
			reverse_opinion = {
				who = FROM
				modifier = opinion_hypocrite
				years = 20
			}
		}
	}

	option = {
		tooltip_info = stewardship
		name = EVTOPTB_ZE_13622
		trigger = {
			FROM = {
				NOT = { trait = temperate }
			}
		}
		FROM = {
			if = {
				limit = { NOT = { trait = gluttonous } }
				add_trait = temperate
			}
			if = {
				limit = { trait = gluttonous }
				remove_trait = gluttonous
				opinion = {
					who = ROOT
					modifier = opinion_pushed_me
					years = 20
				}
			}
		}
		if = {
			limit = { trait = gluttonous }
			reverse_opinion = {
				who = FROM
				modifier = opinion_hypocrite
				years = 20
			}
		}
		reverse_opinion = {
			who = FROM
			modifier = opinion_boring
			years = 20
		}
	}

	option = {
		name = EVTOPTC_ZE_13620
	}
}

#Educator has high intrigue
character_event = {
	id = ZE.13623
	desc = EVTDESC_ZE_13623
	picture = GFX_evt_whispers
	border = GFX_event_normal_frame_intrigue
	
	is_triggered_only = yes

	trigger = {
		intrigue = 12
		FROM = {
			OR = {
				NOT = { trait = deceitful }
				NOT = { trait = cynical }
			}
		}
	}

	option = {
		tooltip_info = intrigue
		name = EVTOPTA_ZE_13623
		trigger = {
			FROM = {
				NOT = { trait = deceitful }
			}
		}
		FROM = {
			if = {
				limit = { NOT = { trait = honest } }
				add_trait = deceitful
				
			}
			if = {
				limit = { trait = honest }
				remove_trait = honest
				
			}
			if = {
				limit = {
					NOT = { trait = paranoid }
					NOT = { trait = trusting }
				}
				random = {
					chance = 25
					modifier = {
						factor = 2
						ROOT = { trait = paranoid }
					}
					add_trait = paranoid
				}
			}
			if = {
				limit = { trait = trusting }
				remove_trait = trusting
			}
		}
		reverse_opinion = {
			who = FROM
			modifier = opinion_pushed_me
			years = 20
		}
		if = {
			limit = { trait = honest }
			reverse_opinion = {
				who = FROM
				modifier = opinion_hypocrite
				years = 20
			}
			random = {
				chance = 50
				remove_trait = honest
				
			}
		}
	}

	option = {
		tooltip_info = intrigue
		name = EVTOPTB_ZE_13623
		trigger = {
			FROM = {
				NOT = { trait = cynical }
			}
		}
		FROM = {
			change_intrigue = 1
			change_learning = 1
			if = {
				limit = { NOT = { trait = zealous } }
				add_trait = cynical
			}
			if = {
				limit = { trait = zealous }
				remove_trait = zealous
			}
		}
		reverse_opinion = {
			who = FROM
			modifier = opinion_pushed_me
			years = 20
		}
		if = {
			limit = { trait = zealous }
			reverse_opinion = {
				who = FROM
				modifier = opinion_hypocrite
				years = 20
			}
			random = {
				chance = 50
				remove_trait = zealous
			}
		}
		add_character_modifier = {
			name = impious_teachings
			years = 5
		}
	}

	option = {
		name = EVTOPTC_ZE_13620
	}
}

#Educator has high learning
character_event = {
	id = ZE.13624
	desc = EVTDESC_ZE_13624
	picture = GFX_evt_library
	border = GFX_event_normal_frame_religion
	
	is_triggered_only = yes

	trigger = {
		learning = 12
		FROM = {
			OR = {
				NOT = { trait = erudite }
				NOT = { trait = chaste }
			}
		}
	}

	option = {
		tooltip_info = learning
		name = EVTOPTA_ZE_13624
		trigger = {
			FROM = {
				NOT = { trait = erudite }
			}
		}
		FROM = {
			random_list = {
				50 = {
					add_trait = erudite
				}
				10 = {
					modifier = {
						factor = 0
						trait = stubborn
					}
					add_trait = stubborn
				}
				10 = {
					modifier = {
						factor = 0
						trait = humble
					}
					if = {
						limit = { NOT = { trait = proud } }
						add_trait = humble
					}
					if = {
						limit = { trait = proud }
						remove_trait = proud
					}
				}
				5 = {
					modifier = {
						factor = 0
						trait = stressed
					}
					add_trait = stressed
				}
			}
		}
		reverse_opinion = {
			who = FROM
			modifier = opinion_pushed_me
			years = 20
		}
	}

	option = {
		tooltip_info = learning
		name = EVTOPTB_ZE_13624
		trigger = {
			FROM = {
				NOT = { trait = chaste }
			}
		}
		FROM = {
			if = {
				limit = { NOT = { trait = lustful } }
				random_list = {
					50 = {
						add_trait = chaste
					}
					10 = {
						modifier = {
							factor = 0
							trait = humble
						}
						if = {
							limit = { NOT = { trait = proud } }
							add_trait = humble
						}
						if = {
							limit = { trait = proud }
							remove_trait = proud
						}
					}
					8 = {
						modifier = {
							factor = 0
							trait = stubborn
						}
						add_trait = stubborn
					}
					5 = {
						modifier = {
							factor = 0
							trait = stressed
						}
						add_trait = stressed
					}
					2 = {
						add_trait = celibate
					}
				}
			}
			if = {
				limit = { trait = lustful }
				remove_trait = lustful
			}
		}
		if = {
			limit = { trait = lustful }
			reverse_opinion = {
				who = FROM
				modifier = opinion_hypocrite
				years = 20
			}
		}
		reverse_opinion = {
			who = FROM
			modifier = opinion_boring
			years = 20
		}
	}

	option = {
		name = EVTOPTC_ZE_13620
	}
}

#Educator has more than one high skill
character_event = { 
	id = ZE.13625
	desc = EVTDESC_ZE_13625
	picture = GFX_evt_noble_in_castle
	border = GFX_event_normal_frame_diplomacy
	
	is_triggered_only = yes

	trigger = {
		calc_true_if = {
			amount = 2
			diplomacy = 12
			martial = 12
			stewardship = 12
			intrigue = 12
			learning = 12
		}
		FROM = {
			OR = {
				NOT = { trait = ambitious }
				NOT = { trait = diligent }
				NOT = { trait = patient }
			}
		}
	}
	
	immediate = {
		FROM = { save_event_target_as = is_ward }
	}

	option = { # Give ambitious
		name = EVTOPTA_ZE_13625
		trigger = {
			FROM = {
				NOT = { trait = ambitious }
			}
		}
		FROM = {
			if = {
				limit = { NOT = { trait = content } }
				random_list = {
					50 = {
						add_trait = ambitious
					}
					10 = {
						modifier = {
							factor = 0
							trait = envious
						}
						if = {
							limit = { NOT = { trait = kind } }
							add_trait = envious
						}
						if = {
							limit = { trait = kind }
							remove_trait = kind
						}
					}
					10 = {
						modifier = {
							factor = 0
							trait = proud
						}
						if = {
							limit = { NOT = { trait = humble } }
							add_trait = proud
						}
						if = {
							limit = { trait = humble }
							remove_trait = humble
						}
					}
					5 = {
						modifier = {
							factor = 0
							trait = stressed
						}
						add_trait = stressed
					}
				}
			}
			if = {
				limit = { trait = content }
				remove_trait = content
				random_list = {
					25 = {
						add_trait = ambitious
					}
					10 = {
						modifier = {
							factor = 0
							trait = envious
						}
						if = {
							limit = { NOT = { trait = kind } }
							add_trait = envious
						}
						if = {
							limit = { trait = kind }
							remove_trait = kind
						}
					}
					10 = {
						modifier = {
							factor = 0
							trait = proud
						}
						if = {
							limit = { NOT = { trait = humble } }
							add_trait = proud
						}
						if = {
							limit = { trait = humble }
							remove_trait = humble
						}
					}
					5 = {
						modifier = {
							factor = 0
							trait = depressed
						}
						add_trait = depressed
					}
					5 = {
						modifier = {
							factor = 0
							trait = stressed
						}
						add_trait = stressed
					}
				}
			}
			random_landed_title = {
				limit = {
					current_heir = { character = event_target:is_ward }
					is_primary_holder_title = yes
				}
				holder_scope = {
					if = {
						limit = { NOT = { is_rival = PREVPREV } }
						random = {
							chance = 50
							modifier = {
								factor = 0.5
								character = ROOT
							}
							add_rival = PREVPREV
						}
					}
				}
			}
			random_landed_title = {
				limit = {
					event_target:is_ward = { any_pretender_title = { title = PREVPREV } }
					is_primary_holder_title = yes
				}
				current_heir = {
					if = {
						limit = { NOT = { is_rival = PREVPREV } }
						random = {
							chance = 50
							modifier = {
								factor = 0.5
								character = ROOT
							}
							add_rival = PREVPREV
						}
					}
				}
			}
		}
		reverse_opinion = {
			who = FROM
			modifier = opinion_pushed_me
			years = 20
		}
		if = {
			limit = { trait = content }
			reverse_opinion = {
				who = FROM
				modifier = opinion_hypocrite
				years = 20
			}
		}
	}

	option = { # Give diligent
		name = EVTOPTB_ZE_13625
		trigger = {
			FROM = {
				NOT = { trait = diligent }
			}
		}
		FROM = {
			if = {
				limit = { NOT = { trait = slothful } }
				random_list = {
					50 = {
						add_trait = diligent
					}
					10 = {
						modifier = {
							factor = 0
							trait = deceitful
						}
						if = {
							limit = { NOT = { trait = honest } }
							add_trait = deceitful
							
						}
						if = {
							limit = { trait = honest }
							remove_trait = honest
							
						}
					}
					5 = {
						modifier = {
							factor = 0
							trait = stressed
						}
						add_trait = stressed
					}
				}
			}
			if = {
				limit = { trait = slothful }
				remove_trait = slothful
				random_list = {
					25 = {
						add_trait = diligent
					}
					10 = {
						modifier = {
							factor = 0
							trait = wroth
						}
						add_trait = wroth
					}
					5 = {
						modifier = {
							factor = 0
							trait = depressed
						}
						add_trait = depressed
					}
					5 = {
						modifier = {
							factor = 0
							trait = stressed
						}
						add_trait = stressed
					}
				}
			}
		}
		reverse_opinion = {
			who = FROM
			modifier = opinion_pushed_me
			years = 20
		}
		if = {
			limit = { trait = slothful }
			reverse_opinion = {
				who = FROM
				modifier = opinion_hypocrite
				years = 20
			}
		}
	}

	option = { # Give patient
		name = EVTOPTC_ZE_13625
		trigger = {
			FROM = {
				NOT = { trait = patient }
			}
		}
		FROM = {
			if = {
				limit = { NOT = { trait = wroth } }
				random_list = {
					50 = {
						add_trait = patient
					}
					10 = {
						modifier = {
							factor = 0
							OR = {
								trait = content
								trait = ambitious
							}
						}
						add_trait = content
					}
					10 = {
						modifier = {
							factor = 0
							trait = deceitful
						}
						if = {
							limit = { NOT = { trait = honest } }
							add_trait = deceitful
							
						}
						if = {
							limit = { trait = honest }
							remove_trait = honest
							
						}
					}
					5 = {
						modifier = {
							factor = 0
							trait = stressed
						}
						add_trait = stressed
					}
				}
			}
			if = {
				limit = { trait = wroth }
				remove_trait = wroth
				random_list = {
					25 = {
						add_trait = patient
					}
					10 = {
						modifier = {
							factor = 0
							OR = {
								trait = content
								trait = ambitious
							}
						}
						add_trait = content
					}
					5 = {
						modifier = {
							factor = 0
							trait = depressed
						}
						add_trait = depressed
					}
					5 = {
						modifier = {
							factor = 0
							trait = stressed
						}
						add_trait = stressed
					}
				}
			}
		}
		if = {
			limit = { trait = patient }
			reverse_opinion = {
				who = FROM
				modifier = opinion_pushed_me
				years = 20
			}
		}
		if = {
			limit = {
				NOT = { trait = patient }
				is_close_relative = FROM
				NOT = { has_character_modifier = out_of_patience }
			}
			add_character_modifier = {
				name = out_of_patience
				years = 3
			}
		}
		if = {
			limit = { trait = wroth }
			reverse_opinion = {
				who = FROM
				modifier = opinion_hypocrite
				years = 10
			}
		}
	}

	option = {
		name = EVTOPTC_ZE_13620
	}
}

