##################################################
#
# Friends & Rivals 
#
# ID 100000 - 105000 are reserved
#
##################################################
#
# Written by Sara Wendel-Örtqvist

##################################################
#			MAKING FRIENDS AND RIVALS 			 #
##################################################

### You've made friends with another child in the court ###
character_event = {
	id = 100000
	desc = EVTDESC100000
	picture = GFX_evt_child_sword
	
	min_age = 4
	max_age = 14
	only_capable = yes
	prisoner = no
	lacks_dlc = "Conclave"
	
	trigger = {
		NOT = { num_of_friends = 2 }
		NOT = { num_of_rivals = 2 }

		is_inaccessible_trigger = no

		host = {
			any_courtier = {
				age = 4
				prisoner = no
				at_location = ROOT
				same_sex = ROOT
				NOR = {
					age = 14
					trait = craven
					trait = honest
					sibling = ROOT
					num_of_friends = 2
					num_of_rivals = 2
					is_friend = ROOT
					is_rival = ROOT
				}
			}
		}
	}

	mean_time_to_happen = {
		months = 80
		
		modifier = {
			factor = 0.5
			is_primary_heir = yes
		}
		modifier = {
			factor = 0.5
			trait = gregarious
		}
		
		modifier = {
			factor = 2
			trait = shy
		}
	}
	
	immediate = {
		host = {
			random_courtier = {
				limit = {
					age = 4
					prisoner = no
					at_location = ROOT
					same_sex = ROOT
					NOR = {
						age = 14
						trait = craven
						trait = honest
						sibling = ROOT
						num_of_friends = 2
						num_of_rivals = 2
						is_friend = ROOT
						is_rival = ROOT
					}
				}
				save_event_target_as = troublemaker_child
			}
		}
	}
	
	option = {
		name = EVTOPTA100000
		event_target:troublemaker_child = {
			add_rival = ROOT
			character_event = {
				id = 100001
				days = 1
				random = 2
				tooltip = EVTTOOLTIP100001
			}
			if = {
				limit = {
					NOT = {
						num_of_traits = 5
					}
					NOT = {
						trait = wroth
					}
					trait = greedy
				}
				add_trait = wroth
			}
			if = {
				limit = {
					NOT = {
						num_of_traits = 5
					}
					NOT = {
						trait = greedy
					}
					trait = wroth
				}
				add_trait = greedy
			}
		}
	}
	option = {
		name = EVTOPTB100000
		event_target:troublemaker_child = {
			add_friend = ROOT
			character_event = {
				id = 100002
				tooltip = EVTTOOLTIP100002
			}
		}
	}
}

#New rival is notified
character_event = {
	id = 100001
	desc = EVTDESC100001
	picture = GFX_evt_child_sword
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA100001
		add_rival = FROM
	}
}

#New friend is notified
character_event = {
	id = 100002
	desc = EVTDESC100002
	picture = GFX_evt_child_sword
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA100002
		add_friend = FROM
	}
}

### One of the other children in court is very shy and would rather read than play with us ###
character_event = {
	id = 100005
	desc = EVTDESC100005
	picture = GFX_evt_child_talking
	
	is_triggered_only = yes
	
	min_age = 6
	max_age = 14
	prisoner = no
	
	trigger = {
		NOT = { num_of_friends = 2 }
		NOT = { num_of_rivals = 2 }
		OR = {
			trait = gregarious
			trait = charitable
			trait = brave
		}
		host = {
			any_courtier = {
				trait = shy
				NOT = { character = ROOT }
				at_location = ROOT
				prisoner = no
				age = 6
				NOR = {
					age = 15
					is_friend = ROOT
					is_rival = ROOT
					num_of_friends = 2
					num_of_rivals = 2
					sibling = ROOT
					is_inaccessible_trigger = yes
				}
			}
		}
		NOT = { is_inaccessible_trigger = yes }
	}
	
	weight_multiplier = {
		days = 1
		
		modifier = {
			factor = 1.5
			trait = honest
		}
		modifier = {
			factor = 0.65
			trait = wroth
		}
		modifier = {
			factor = 0.65
			trait = cruel
		}
	}
	
	immediate = {
		host = {
			random_courtier = {
				limit = {
					trait = shy
					NOT = { character = ROOT }
					at_location = ROOT
					prisoner = no
					age = 6
					NOR = {
						age = 15
						is_friend = ROOT
						is_rival = ROOT
						num_of_friends = 2
						num_of_rivals = 2
						sibling = ROOT
						is_inaccessible_trigger = yes
					}
				}
				save_event_target_as = shy_child
			}
		}
	}
	
	option = {
		name = EVTOPTA100005
		event_target:shy_child = {
			character_event = {
				id = 100006
				days = 2
				random = 5
				tooltip = EVTTOOLTIP100006
			}
		}
	}
	
	option = {
		name = EVTOPTB100005
		event_target:shy_child = {
			character_event = {
				id = 100007
				days = 2
				random = 5
				tooltip = EVTTOOLTIP100007
			}
		}
	}
	option = {
		name = EVTOPTC100005
		prestige = 5
		if = {
			limit = {
				NOT = {
					trait = charitable
				}
				trait = gregarious
			}
			remove_trait = gregarious
		}
		if = {
			limit = {
				NOT = {
					trait = gregarious
				}
				trait = charitable
			}
			remove_trait = charitable
		}
	}
}

#Kick his butt or ignore him?
character_event = {
	id = 100006
	desc = EVTDESC100006
	picture = GFX_evt_child_bully
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA100006
		ai_chance = {
			factor = 10
			
			modifier = {
				factor = 10
				trait = brave
			}
			modifier = {
				factor = 0.01
				trait = craven
			}
		}
		FROM = {
			character_event = {
				id = 100008
				days = 1
				random = 3
				tooltip = EVTTOOLTIP100008
			}
		}
	}
	option = {
		name = EVTOPTB100006
		ai_chance = {
			factor = 10
			
			modifier = {
				factor = 0.01
				trait = brave
			}
			modifier = {
				factor = 10
				trait = craven
			}
		}
		add_trait = stressed
	}
}

#Borrow FROM's sword?
character_event = {
	id = 100007
	desc = EVTDESC100007
	picture = GFX_evt_child_talking
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA100007
		add_friend = FROM
		FROM = {
			character_event = {
				id = 100012
				days = 2
				random = 3
				tooltip = EVTTOOLTIP100012
			}
		}
	}
	option = {
		name = EVTOPTB100007
		if = {
			limit = {
				NOT = {
					num_of_traits = 5
				}
				NOT = {
					trait = craven
				}
			}
			add_trait = craven
		}
	}
}

#The bully is beaten back
character_event = {
	id = 100008
	desc = EVTDESC100008
	picture = GFX_evt_child_bully
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA100008
		add_rival = FROM
		FROM = {
			character_event = {
				id = 100010
				days = 2
				random = 3
				tooltip = EVTTOOLTIP100010
			}
		}
	}
	option = {
		name = EVTOPTB100008
		add_friend = FROM
		FROM = {
			character_event = {
				id = 100009
				days = 2
				random = 3
				tooltip = EVTTOOLTIP100009
			}
		}
	}
}

#Gain friend
character_event = {
	id = 100009
	desc = EVTDESC100009
	picture = GFX_evt_children_talking
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA100009
		add_friend = FROM
	}
}

#Gain rival
character_event = {
	id = 100010
	desc = EVTDESC100010
	picture = GFX_evt_child_bully
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA100010
		add_rival = FROM
	}
}

#Gain friend
character_event = {
	id = 100012
	desc = EVTDESC100012
	picture = GFX_evt_children_talking
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA100012
		add_friend = FROM
	}
}

### My guardian was ready to rip me a new one when someone interfered ###
character_event = {
	id = 100015
	desc = EVTDESC100015
	picture = GFX_evt_child_bully
	
	is_triggered_only = yes

	min_age = 11
	max_age = 16
	prisoner = no
	only_men = yes
	
	trigger = {
		educator = { always = yes }
		trait = slothful
		NOT = { num_of_friends = 2 }
		NOT = { num_of_rivals = 2 }
		is_inaccessible_trigger = no
		host = {
			any_courtier = {
				is_female = no
				educator = {
					ROOT = {
						educator = {
							character = PREVPREV
						}
					}
				}
				OR = {
					trait = charitable
					trait = kind
					trait = ambitious
				}
				NOR = {
					is_inaccessible_trigger = yes
					character = ROOT
					sibling = ROOT
					num_of_friends = 3
					num_of_rivals = 3
					is_friend = ROOT
					is_rival = ROOT
				}
			}
		}
	}
	
	weight_multiplier = {
		days = 1
		modifier = {
			factor = 1.5
			trait = gregarious
		}
		modifier = {
			factor = 0.66
			trait = wroth
		}
	}
	
	immediate = {
		host = {
			random_courtier = {
				limit = {
					is_female = no
					educator = {
						ROOT = {
							educator = {
								character = PREVPREV
							}
						}
					}
					OR = {
						trait = charitable
						trait = kind
						trait = ambitious
					}
					NOR = {
						is_inaccessible_trigger = yes
						character = ROOT
						sibling = ROOT
						num_of_friends = 3
						num_of_rivals = 3
						is_friend = ROOT
						is_rival = ROOT
					}
				}
				save_event_target_as = helping_child
			}
		}
	}
	
	option = {
		name = EVTOPTA100015
		event_target:helping_child = {
			add_friend = ROOT
			character_event = {
				id = 100016
				days = 1
				random = 3
				tooltip = EVTTOOLTIPA100016
			}
		}
	}
	option = {
		name = EVTOPTB100015
		event_target:helping_child = {
			reverse_opinion = {
				modifier = opinion_irritated
				who = ROOT
				years = 100
			}
			set_character_flag = wrongly_interfered
			character_event = {
				id = 100016
				days = 1
				random = 3
				tooltip = EVTTOOLTIPB100016
			}
		}
	}
	option = {
		name = EVTOPTC100015
		if = {
			limit = {
				NOT = {
					num_of_traits = 5
				}
				NOT = {
					trait = honest
				}
			}
			add_trait = honest
			
		}
	}
}

#Gain friend/gain rival
character_event = {
	id = 100016
	desc = EVTDESC100016
	picture = GFX_evt_child_bully
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA100016
		trigger = {
			NOT = {
				has_character_flag = wrongly_interfered
			}
		}
		add_friend = FROM
	}
	option = {
		name = EVTOPTB100016
		trigger = {
			has_character_flag = wrongly_interfered
		}
		clr_character_flag = wrongly_interfered
		add_rival = FROM
		FROM = {
			character_event = {
				id = 100017
				days = 1
				random = 2
				tooltip = EVTTOOLTIP100017
			}
		}
	}
	option = {
		name = EVTOPTC100016
		trigger = {
			has_character_flag = wrongly_interfered
		}
		clr_character_flag = wrongly_interfered
		if = {
			limit = {
				NOT = {
					num_of_traits = 5
				}
				NOT = {
					trait = content
				}
			}
			add_trait = content
		}
	}
	option = {
		name = EVTOPTD100016
		trigger = {
			has_character_flag = wrongly_interfered
		}
		clr_character_flag = wrongly_interfered
		if = {
			limit = {
				NOT = {
					num_of_traits = 5
				}
				NOT = {
					trait = cynical
				}
			}
			add_trait = cynical
		}
		change_intrigue = 1
	}
}

#Gain rival
character_event = {
	id = 100017
	desc = EVTDESC100017
	picture = GFX_evt_child_bully
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA100017
		add_rival = FROM
	}
}
	
### A fellow student lacks even the ability to talk to a girl ###

character_event = { # Relay event for rulers
	id = 100019
	hide_window = yes
	
	is_triggered_only = yes
	
	only_rulers = yes
	
	trigger = {
		is_inaccessible_trigger = no

		OR = {
			AND = {
				is_female = no
				is_inaccessible_trigger = no
				is_married = no
				trait = lustful
				prisoner = no
				age = 16
				NOT = { age = 25 }
				NOT = { num_of_friends = 5 }
				NOT = { num_of_rivals = 5 }
				OR = {
					trait = gregarious
					trait = kind
					trait = charitable
				}
				any_courtier = {
					NOT = { character = ROOT }
					at_location = ROOT
					is_female = no
					is_inaccessible_trigger = no
					prisoner = no
					is_married = no
					age = 16
					NOT = { age = 25 }
					NOT = { num_of_friends = 5 }
					NOT = { num_of_rivals = 5 }
					NOT = { sibling = ROOT }
					NOT = { is_friend = ROOT }
					NOT = { is_rival = ROOT }
					OR = { 
						trait = chaste
						religion_group = muslim
					}
					trait = shy
				}
			}
			any_courtier = {
				is_female = no
				is_inaccessible_trigger = no
				is_married = no
				trait = lustful
				prisoner = no
				age = 16
				NOT = { age = 25 }
				NOT = { num_of_friends = 5 }
				NOT = { num_of_rivals = 5 }
				OR = {
					trait = gregarious
					trait = kind
					trait = charitable
				}
				ROOT = {
					OR = {
						AND = {
							NOT = { character = PREV }
							at_location = PREV
							is_female = no
							is_inaccessible_trigger = no
							prisoner = no
							is_married = no
							age = 16
							NOT = { age = 25 }
							NOT = { num_of_friends = 5 }
							NOT = { num_of_rivals = 5 }
							NOT = { sibling = PREV }
							NOT = { is_friend = PREV }
							NOT = { is_rival = PREV }
							OR = { 
								trait = chaste
								religion_group = muslim
							}
							trait = shy
						}
						any_courtier = {
							NOT = { character = PREVPREV }
							at_location = PREVPREV
							is_female = no
							is_inaccessible_trigger = no
							prisoner = no
							is_married = no
							age = 16
							NOT = { age = 25 }
							NOT = { num_of_friends = 5 }
							NOT = { num_of_rivals = 5 }
							NOT = { sibling = PREVPREV }
							NOT = { is_friend = PREVPREV }
							NOT = { is_rival = PREVPREV }
							OR = { 
								trait = chaste
								religion_group = muslim
							}
							trait = shy
						}
					}
				}
			}
		}
	}
	
	weight_multiplier = {
		days = 1
	}
	
	immediate = {
		random_courtier = {
			limit = {
				is_female = no
				is_inaccessible_trigger = no
				is_married = no
				trait = lustful
				prisoner = no
				age = 16
				NOT = { age = 25 }
				NOT = { num_of_friends = 5 }
				NOT = { num_of_rivals = 5 }
				OR = {
					trait = gregarious
					trait = kind
					trait = charitable
				}
			}
			save_event_target_as = lustful_courtier
		}
		if = {
			limit = {
				NOT = { event_target:lustful_courtier = { always = yes } }
			}
			save_event_target_as = lustful_courtier
		}
		random_courtier = {
			limit = {
				NOT = { character = event_target:lustful_courtier }
				at_location = event_target:lustful_courtier
				is_female = no
				is_inaccessible_trigger = no
				prisoner = no
				is_married = no
				age = 16
				NOT = { age = 25 }
				NOT = { num_of_friends = 5 }
				NOT = { num_of_rivals = 5 }
				NOT = { sibling = event_target:lustful_courtier }
				NOT = { is_friend = event_target:lustful_courtier }
				NOT = { is_rival = event_target:lustful_courtier }
				OR = { 
					trait = chaste
					religion_group = muslim
				}
				trait = shy
			}
			save_event_target_as = shy_courtier
		}
		if = {
			limit = {
				NOT = { event_target:shy_courtier = { always = yes } }
			}
			save_event_target_as = shy_courtier
		}
		if = { # sanity check
			limit = {
				event_target:lustful_courtier = {
					character = event_target:shy_courtier
				}
			}
			break = yes
		}
		event_target:lustful_courtier = { character_event = { id = 100020 } }
	}
}

character_event = {
	id = 100020
	desc = EVTDESC100020
	picture = GFX_evt_courtiers_talking
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA100020
		event_target:shy_courtier = {
			character_event = {
				id = 100021
				days = 1
				random = 4
				tooltip = EVTTOOLTIP100021
			}
		}
	}
	option = {
		name = EVTOPTB100020
		if = {
			limit = {
				NOT = {
					num_of_traits = 5
				}
			}
			random = {
				chance = 10
				random_list = {
					50 = {
						add_trait = greedy
						hidden_tooltip = {
							character_event = {
								id = 38252
							}
						}
					}
					50 = {
						add_trait = craven
						hidden_tooltip = {
							character_event = {
								id = 38257
							}
						}
					}
				}
			}
		}
	}
}

#Offered help
character_event = {
	id = 100021
	desc = EVTDESC100021
	picture = GFX_evt_courtiers_talking
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA100021
		add_friend = FROM
		remove_trait = shy
		if = {
			limit = {
				NOT = {
					religion_group = muslim
				}
			}
			remove_trait = chaste
		}
		FROM = {
			character_event = {
				id = 100022
				tooltip = EVTTOOLTIP100022
			}
		}
	}
	option = {
		name = EVTOPTB100021
		remove_trait = shy
		hidden_tooltip = {
			FROM = {
				set_character_flag = help_rejected
				character_event = {
					id = 100023
					tooltip = EVTTOOLTIP100023
				}
			}
		}
	}
	option = {
		name = EVTOPTC100021
		if = {
			limit = {
				NOT = {
					num_of_traits = 5
				}
				NOT = {
					trait = proud
				}
			}
			random = {
				chance = 25
				add_trait = proud
				hidden_tooltip = {
					character_event = {
						id = 38261 #Notify Proud
					}
				}
			}
		}
		hidden_tooltip = {
			FROM = {
				set_character_flag = help_rejected_politely
				character_event = {
					id = 100023
					tooltip = EVTTOOLTIP100023
				}
			}
		}
	}
}

#Accepted/rejected help
character_event = {
	id = 100022
	desc = EVTDESC100022
	picture = GFX_evt_courtiers_talking
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA100022
		add_friend = FROM
	}
}

#Rejected help
character_event = {
	id = 100023
	desc = EVTDESC100023
	picture = GFX_evt_courtiers_talking
	
	is_triggered_only = yes

	option = {
		name = EVTOPTA100023
		trigger = {
			has_character_flag = help_rejected
			NOT = {
				has_character_flag = help_rejected_politely
			}
		}
		clr_character_flag = help_rejected
		opinion = {
			modifier = opinion_irritated
			who = FROM
			years = 100
		}
	}
	option = {
		name = EVTOPTB100023
		trigger = {
			has_character_flag = help_rejected_politely
			NOT = {
				has_character_flag = help_rejected
			}
		}
		clr_character_flag = help_rejected_politely
		opinion = {
			modifier = opinion_ignore
			who = FROM
			years = 100
		}
	}
}

### Ladies shun me, I need help! ###
character_event = {
	id = 100024
	hide_window = yes
	
	is_triggered_only = yes
	
	only_rulers = yes
	
	trigger = {
		is_inaccessible_trigger = no
		OR = {
			AND = {
				is_female = no
				is_inaccessible_trigger = no
				prisoner = no
				age = 16
				NOT = { age = 25 }
				in_command_trigger = no
				is_married = no
				NOT = {
					num_of_friends = 5
				}
				NOT = {
					num_of_rivals = 5
				}
				OR = {
					trait = chaste
					religion_group = muslim
				}
				OR = {
					trait = paranoid
					trait = shy
				}
				war = no
				any_courtier = {
					at_location = ROOT
					is_female = no
					is_inaccessible_trigger = no
					in_command_trigger = no
					prisoner = no
					is_married = no
					age = 16
					NOT = {
						age = 25
					}
					NOT = {
						sibling = ROOT
					}
					NOT = {
						num_of_friends = 5
					}
					NOT = {
						num_of_rivals = 5
					}
					trait = lustful
					OR = {
						trait = charitable
						trait = kind
						trait = gregarious
					}
					NOT = {
						is_friend = ROOT
					}
					NOT = {
						is_rival = ROOT
					}
					war = no
				}
			}
			any_courtier = {
				is_female = no
				is_inaccessible_trigger = no
				prisoner = no
				age = 16
				NOT = { age = 25 }
				in_command_trigger = no
				is_married = no
				NOT = {
					num_of_friends = 5
				}
				NOT = {
					num_of_rivals = 5
				}
				OR = {
					trait = chaste
					religion_group = muslim
				}
				OR = {
					trait = paranoid
					trait = shy
				}
				war = no
				ROOT = {
					OR = {
						AND = {
							at_location = PREV
							is_female = no
							is_inaccessible_trigger = no
							in_command_trigger = no
							prisoner = no
							is_married = no
							age = 16
							NOT = {
								age = 25
							}
							NOT = {
								sibling = PREV
							}
							NOT = {
								num_of_friends = 5
							}
							NOT = {
								num_of_rivals = 5
							}
							trait = lustful
							OR = {
								trait = charitable
								trait = kind
								trait = gregarious
							}
							NOT = {
								is_friend = PREV
							}
							NOT = {
								is_rival = PREV
							}
							war = no
						}
						any_courtier = {
							at_location = PREVPREV
							is_female = no
							is_inaccessible_trigger = no
							in_command_trigger = no
							prisoner = no
							is_married = no
							age = 16
							NOT = {
								age = 25
							}
							NOT = {
								sibling = PREVPREV
							}
							NOT = {
								num_of_friends = 5
							}
							NOT = {
								num_of_rivals = 5
							}
							trait = lustful
							OR = {
								trait = charitable
								trait = kind
								trait = gregarious
							}
							NOT = {
								is_friend = PREVPREV
							}
							NOT = {
								is_rival = PREVPREV
							}
							war = no
						}
					}
				}
			}
		}
	}
	
	weight_multiplier = {
		days = 1
	}
	
	immediate = {
		random_courtier = {
			limit = {
				is_female = no
				is_inaccessible_trigger = no
				prisoner = no
				age = 16
				NOT = { age = 25 }
				in_command_trigger = no
				is_married = no
				NOT = {
					num_of_friends = 5
				}
				NOT = {
					num_of_rivals = 5
				}
				OR = {
					trait = chaste
					religion_group = muslim
				}
				OR = {
					trait = paranoid
					trait = shy
				}
				war = no
			}
			save_event_target_as = shy_courtier
		}
		if = {
			limit = {
				NOT = { event_target:shy_courtier = { always = yes } }
			}
			save_event_target_as = shy_courtier
		}
		random_courtier = {
			limit = {
				at_location = event_target:shy_courtier
				is_female = no
				is_inaccessible_trigger = no
				in_command_trigger = no
				prisoner = no
				is_married = no
				age = 16
				NOT = {
					age = 25
				}
				NOT = {
					sibling = event_target:shy_courtier
				}
				NOT = {
					num_of_friends = 5
				}
				NOT = {
					num_of_rivals = 5
				}
				trait = lustful
				OR = {
					trait = charitable
					trait = kind
					trait = gregarious
				}
				NOT = {
					is_friend = event_target:shy_courtier
				}
				NOT = {
					is_rival = event_target:shy_courtier
				}
				war = no
			}
			save_event_target_as = lustful_courtier
		}
		if = {
			limit = {
				NOT = { event_target:lustful_courtier = { always = yes } }
			}
			save_event_target_as = lustful_courtier
		}
		if = { # sanity check
			limit = {
				event_target:shy_courtier = { character = event_target:lustful_courtier }
			}
			break = yes
		}
		event_target:shy_courtier = { character_event = { id = 100025 } }
	}
}

character_event = {
	id = 100025
	desc = EVTDESC100025
	picture = GFX_evt_courtiers_talking
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA100025
		event_target:lustful_courtier = {
			character_event = {
				id = 100026
				days = 2
				random = 4
				tooltip = EVTTOOLTIP100026
			}
		}
	}
	option = {
		name = EVTOPTB100025
		event_target:lustful_courtier = {
			character_event = {
				id = 100030
				days = 2
				random = 4
				tooltip = EVTTOOLTIP100030
			}
		}
	}
	option = {
		name = EVTOPTC100025
		add_trait = depressed
	}
}

#I was asked to help him with his love woes
character_event = {
	id = 100026
	desc = EVTDESC100026
	picture = GFX_evt_courtiers_talking
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA100026
		treasury = 10
		FROM = {
			opinion = {
				modifier = opinion_glad
				who = ROOT
				years = 5
			}
		}
		FROM = {
			character_event = {
				id = 100027
				days = 1
				random = 2
				tooltip = EVTTOOLTIP100027
			}
		}
	}
	option = {
		name = EVTOPTB100026 
		add_friend = FROM
		FROM = {
			character_event = {
				id = 100028
				days = 1
				random = 2
				tooltip = EVTTOOLTIP100028
			}
		}
	}
	option = {
		name = EVTOPTC100026
		add_rival = FROM
		FROM = {
			character_event = {
				id = 100029
				days = 1
				random = 2
				tooltip = EVTTOOLTIP100029
			}
		}
	}
}

#Someone wants money to help me with my love woes
character_event = {
	id = 100027
	desc = EVTDESC100027
	picture = GFX_evt_courtiers_talking
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA100027
		treasury = -10
		opinion = {
			modifier = opinion_glad
			who = FROM
			years = 5
		}
		if = {
			limit = {
				NOT = {
					religion_group = muslim
				}
			}
			random = {
				chance = 25
				remove_trait = chaste
				hidden_tooltip = {
					character_event = {
						id = 38303 #Notify Removed Chaste
					}
				}
			}
		}
		if = {
			limit = {
				trait = shy
			}
			random = {
				chance = 10
				remove_trait = shy
				hidden_tooltip = {
					character_event = {
						id = 38295  #Notify Removed Shy
					}
				}
			}
		}
	}
	option = {
		name = EVTOPTB100027
		prestige = 5
	}
}

#Gain friend
character_event = {
	id = 100028
	desc = EVTDESC100028
	picture = GFX_evt_courtiers_talking
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA100028
		add_friend = FROM
	}
}

#Gain rival
character_event = {
	id = 100029
	desc = EVTDESC100029
	picture = GFX_evt_courtiers_talking
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA100029
		add_rival = FROM
	}
}

#Bribed courtier to make him help you with the ladies
character_event = {
	id = 100030
	desc = EVTDESC100030
	picture = GFX_evt_courtiers_talking
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTC100026
		hidden_tooltip = { FROM = { treasury = 10 } }
		FROM = {
			add_rival = ROOT
			character_event = {
				id = 100029
				days = 2
				random = 5
				tooltip = EVTTOOLTIP100029
			}
		}
	}
	option = {
		name = EVTOPTB100030
		treasury = 10
		FROM = {
			opinion = {
				modifier = opinion_grateful
				who = ROOT
				years = 5
			}
			character_event = {
				id = 100031
				days = 1
				random = 3
				tooltip = EVTTOOLTIP100031
			}
		}
	}
	option = {
		name = EVTOPTC100030
		hidden_tooltip = { FROM = { treasury = 10 } }
		add_friend = FROM
		FROM = {
			character_event = {
				id = 100028
				days = 1
				random = 3
				tooltip = EVTTOOLTIP100028
			}
		}
	}
}

#He promised to help
character_event = {
	id = 100031
	desc = EVTDESC100031
	picture = GFX_evt_courtiers_talking
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA100031
		prestige = -10
		if = {
			limit = {
				trait = proud
			}
			remove_trait = proud
		}
		if = {
			limit = {
				trait = chaste
			}
			remove_trait = chaste
		}
		if = {
			limit = {
				trait = shy
			}
			random = {
				chance = 10
				remove_trait = shy
				hidden_tooltip = {
					character_event = {
						id = 38295 #Remove shy
					}
				}
			}
		}
	}
}

character_event = {
	id = 100034
	hide_window = yes
	
	only_rulers = yes
	only_women = yes
	prisoner = no
	min_age = 4
	max_age = 14

	trigger = {
		is_inaccessible_trigger = no
		any_courtier = {
			is_female = yes
			is_inaccessible_trigger = no
			prisoner = no
			age = 4
			NOT = {
				age = 14
			}
			NOT = {
				num_of_friends = 2
			}
			NOT = {
				num_of_rivals = 2
			}
			OR = {
				trait = ambitious
				trait = diligent
				trait = just
			}
			host = {
				any_courtier = {
					NOT = {
						character = PREVPREV
					}
					at_location = PREVPREV
					is_female = yes
					is_inaccessible_trigger = no
					prisoner = no
					age = 4
					NOT = {
						age = 14
					}
					NOT = {
						sibling = PREVPREV
					}
					NOT = {
						num_of_friends = 2
					}
					NOT = {
						num_of_rivals = 2
					}
					NOT = {
						is_friend = PREVPREV
					}
					NOT = {
						is_rival = PREVPREV
					}
					OR = {
						trait = ambitious
						trait = diligent
						trait = just
					}
				}
			}
		}
	}

	mean_time_to_happen = {
		months = 80
	}

	immediate = {
		random_courtier = {
			limit = {
				is_female = yes
				is_inaccessible_trigger = no
				prisoner = no
				age = 4
				NOT = {
					age = 14
				}
				NOT = {
					num_of_friends = 2
				}
				NOT = {
					num_of_rivals = 2
				}
				OR = {
					trait = ambitious
					trait = diligent
					trait = just
				}
				host = {
					any_courtier = {
						NOT = {
							character = PREVPREV
						}
						at_location = PREVPREV
						is_female = yes
						is_inaccessible_trigger = no
						prisoner = no
						age = 4
						NOT = {
							age = 14
						}
						NOT = {
							sibling = PREVPREV
						}
						NOT = {
							num_of_friends = 2
						}
						NOT = {
							num_of_rivals = 2
						}
						NOT = {
							is_friend = PREVPREV
						}
						NOT = {
							is_rival = PREVPREV
						}
						OR = {
							trait = ambitious
							trait = diligent
							trait = just
						}
					}
				}
			}
			save_event_target_as = child_1
			host = {
				random_courtier = {
					limit = {
						NOT = {
							character = PREVPREV
						}
						at_location = PREVPREV
						is_female = yes
						is_inaccessible_trigger = no
						prisoner = no
						age = 4
						NOT = {
							age = 14
						}
						NOT = {
							sibling = PREVPREV
						}
						NOT = {
							num_of_friends = 2
						}
						NOT = {
							num_of_rivals = 2
						}
						NOT = {
							is_friend = PREVPREV
						}
						NOT = {
							is_rival = PREVPREV
						}
						OR = {
							trait = ambitious
							trait = diligent
							trait = just
						}
					}
					save_event_target_as = child_2
				}
			}
			character_event = { id = 100035 }
		}
	}
}
	
### You have found a girl with similar interests! ###
character_event = {
	id = 100035
	desc = EVTDESC100035
	picture = GFX_evt_children_talking
	
	only_women = yes
	prisoner = no
	min_age = 4
	max_age = 14
	
	is_triggered_only = yes

	option = {
		name = EVTOPTA100035
		event_target:child_2 = {
			character_event = {
				id = 100036
				days = 2
				random = 4
				tooltip = EVTTOOLTIP100036
			}
		}
	}
	option = {
		name = EVTOPTB100035
		event_target:child_2 = {
			character_event = {
				id = 100037
				days = 2
				random = 4
				tooltip = EVTTOOLTIP100037
			}
		}
	}
	option = {
		name = EVTOPTC100035
		if = {
			limit = {
				NOT = {
					num_of_traits = 5
				}
				NOT = {
					trait = greedy
				}
			}
			add_trait = greedy
		}
	}
}

#Courtier is asked to become friend
character_event = {
	id = 100036
	desc = EVTDESC100036
	picture = GFX_evt_children_talking
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA100036
		add_friend = FROM
		FROM = {
			character_event = {
				id = 100038
				days = 1
				random = 2
				tooltip = EVTTOOLTIP100038
			}
		}
	}
	option = {
		name = EVTOPTB100036
		add_rival = FROM
		FROM = {
			character_event = {
				id = 100039
				days = 1
				random = 2
				tooltip = EVTTOOLTIP100039
			}
		}
	}
}

#ROOT becomes courtier's rival
character_event = {
	id = 100037
	desc = EVTDESC100037
	picture = GFX_evt_children_talking
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA100037
		add_rival = FROM
	}
}

#Gain friend
character_event = {
	id = 100038
	desc = EVTDESC100038
	picture = GFX_evt_children_talking
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA100038
		add_friend = FROM
	}
}

#Courtier becomes ROOT's rival
character_event = {
	id = 100039
	desc = EVTDESC100039
	picture = GFX_evt_children_talking
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA100039
		add_rival = FROM
	}
}

### Flirtatious girl - new friend or rival? ###
character_event = {
	id = 100040
	desc = EVTDESC100040
	picture = GFX_evt_courtiers_talking
	
	only_women = yes
	prisoner = no
	only_capable = yes
	min_age = 11
	max_age = 16
	
	trigger = {
		NOT = {
			num_of_friends = 2
		}
		NOT = {
			num_of_rivals = 2
		}
		OR = {
			trait = chaste
			trait = shy
			trait = paranoid
		}
		is_inaccessible_trigger = no
		host = {
			any_courtier = {
				is_inaccessible_trigger = no
				at_location = ROOT
				age = 11
				is_adult = no
				is_female = yes
				prisoner = no
				NOT = {
					sibling = ROOT
				}
				NOT = {
					num_of_friends = 2
				}
				NOT = {
					num_of_rivals = 2
				}
				OR = {
					trait = lustful
					trait = gregarious
				}
				NOT = {
					is_friend = ROOT
				}
				NOT = {
					is_rival = ROOT
				}
			}
		}
	}
	
	immediate = {
		host = {
			random_courtier = {
				limit = {
					is_inaccessible_trigger = no
					at_location = ROOT
					age = 11
					NOT = {
						age = 16
					}
					is_female = yes
					prisoner = no
					NOT = {
						sibling = ROOT
					}
					NOT = {
						num_of_friends = 2
					}
					NOT = {
						num_of_rivals = 2
					}
					OR = {
						trait = lustful
						trait = gregarious
					}
					NOT = {
						is_friend = ROOT
					}
					NOT = {
						is_rival = ROOT
					}
				}
				save_event_target_as = target_courtier
			}
		}
	}
	
	mean_time_to_happen = {
		months = 80
		
		modifier = {
			factor = 0.5
			trait = ambitious
		}
		modifier = {
			factor = 2
			trait = cruel
		}
	}
	
	option = {
		name = EVTOPTA100040
		event_target:target_courtier = {
			character_event = {
				id = 100041
				days = 2
				random = 3
				tooltip = EVTTOOLTIP100041
			}
		}
	}
	option = {
		name = EVTOPTB100040
		event_target:target_courtier = {
			add_rival = ROOT
			character_event = {
				id = 100042
				days = 2
				random = 3
				tooltip = EVTTOOLTIP100042
			}
		}
	}
	option = {
		name = EVTOPTC100040
		if = {
			limit = {
				NOT = {
					num_of_traits = 5
				}
				NOT = {
					trait = envious
				}
			}
			add_trait = envious
		}
	}
}

#Courtier: Help FROM overcome her fears
character_event = {
	id = 100041
	desc = EVTDESC100041
	picture = GFX_evt_courtiers_talking
		
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA100041
		add_friend = FROM
		FROM = {
			character_event = {
				id = 100043
				days = 2
				random = 5
				tooltip = EVTTOOLTIP100043
			}
		}
	}
	option = {
		name = EVTOPTB100041
		add_rival = FROM
		FROM = {
			character_event = {
				id = 100044
				days = 2
				random = 5
				tooltip = EVTTOOLTIP100044
			}
		}		
	}
	option = {
		name = EVTOPTC100041
		if = {
			limit = {
				trait = kind
				NOT = {
					trait = charitable
				}
			}
			remove_trait = charitable
		}
		if = {
			limit = {
				trait = charitable
				NOT = {
					trait = kind
				}
			}
			remove_trait = kind
		}
		reverse_opinion = {
			modifier = opinion_sad
			who = FROM
			years = 5
		}
	}
}

#Gain Rival
character_event = {
	id = 100042
	desc = EVTDESC100042
	picture = GFX_evt_courtiers_talking
		
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA100042
		add_rival = FROM
	}
}

#Gain friend
character_event = {
	id = 100043
	desc = EVTDESC100043
	picture = GFX_evt_courtiers_talking
		
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA100043
		add_friend = FROM
	}
}

#Gain Rival
character_event = {
	id = 100044
	desc = EVTDESC100044
	picture = GFX_evt_courtiers_talking

	is_triggered_only = yes
	
	option = {
		name = EVTOPTA100044
		add_rival = FROM
	}
}

### A girl at court is very flirtatious and seems to get away with everything... ###
character_event = {
	id = 100050
	desc = EVTDESC100050
	picture = GFX_evt_courtiers_talking
	
	only_women = yes
	prisoner = no
	only_capable = yes
	min_age = 16
	max_age = 25
	
	trigger = {
		is_inaccessible_trigger = no
		NOT = {
			num_of_friends = 2
		}
		NOT = {
			num_of_rivals = 2
		}
		OR = {
			trait = chaste
			trait = paranoid
			trait = shy
		}
		any_courtier = {
			is_inaccessible_trigger = no
			prisoner = no
			is_female = yes
			at_location = ROOT
			is_adult = yes
			NOT = {
				age = 25
			}
			trait = lustful
			OR = {
				trait = trusting
				trait = charitable
				trait = kind
				trait = gregarious
			}
			NOT = {
				sibling = ROOT
			}
			NOT = {
				num_of_friends = 2
			}
			NOT = {
				num_of_rivals = 2
			}
			NOT = {
				is_friend = ROOT
			}
			NOT = {
				is_rival = ROOT
			}
		}
	}
	
	immediate = {
		random_courtier = {
			limit = {
				is_inaccessible_trigger = no
				prisoner = no
				is_female = yes
				at_location = ROOT
				is_adult = yes
				NOT = {
					age = 25
				}
				trait = lustful
				OR = {
					trait = trusting
					trait = charitable
					trait = kind
					trait = gregarious
				}
				NOT = {
					sibling = ROOT
				}
				NOT = {
					num_of_friends = 2
				}
				NOT = {
					num_of_rivals = 2
				}
				NOT = {
					is_friend = ROOT
				}
				NOT = {
					is_rival = ROOT
				}
			}
			save_event_target_as = target_courtier
		}
	}
	
	mean_time_to_happen = {
		months = 80
		
		modifier = {
			factor = 0.5
			trait = gregarious
		}
		modifier = {
			factor = 0.5
			trait = trusting
		}
		
		modifier = {
			factor = 2
			trait = wroth
		}
		modifier = {
			factor = 2
			trait = envious
		}
	}
	
	option = {
		name = EVTOTPA100050
		event_target:target_courtier = {
			character_event = {
				id = 100051
				days = 1
				random = 2
				tooltip = EVTTOOLTIP100051
			}
		}
	}
	option = {
		name = EVTOTPB100050
		event_target:target_courtier = {
			add_rival = ROOT
			character_event = {
				id = 100054
				days = 1
				random = 2
				tooltip = EVTTOOLTIP100054
			}
		}
		if = {
			limit = {
				NOT = {
					religion_group = muslim
				}
				NOT = {
					num_of_traits = 5
				}
				NOT = {
					trait = chaste
				}
			}
			add_trait = chaste
		}
	}
	option = {
		name = EVTOTPC100050
		if = {
			limit = {
				NOT = {
					num_of_traits = 5
				}
				NOT = {
					trait = content
				}
			}
			add_trait = content
		}
		random = {
			chance = 10
			add_trait = depressed
			hidden_tooltip = {
				character_event = {
					id = 38288 #Depressed
				}
			}
		}
	}
}

#Help FROM?
character_event = {
	id = 100051
	desc = EVTDESC100051
	picture = GFX_evt_courtiers_talking
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA100051
		add_friend = FROM
		FROM = {
			character_event = {
				id = 100052
				days = 1
				random = 2
				tooltip = EVTTOOLTIP100052
			}
		}
	}
	
	option = {
		name = EVTOPTB100051
		add_rival = FROM
		FROM = {
			character_event = {
				id = 100053
				days = 1
				random = 2
				tooltip = EVTTOOLTIP100053
			}
		}
	}
	option = {
		name = EVTOPTC100051
		opinion = {
			modifier = opinion_glad
			who = FROM
			years = 100
		}
		FROM = {
			set_character_flag = good_relation
			character_event = {
				id = 100052
				days = 1
				random = 2
				tooltip = EVTTOOLTIP100052
			}
		}
	}
}

#ROOT gains a friend
character_event = {
	id = 100052
	desc = EVTDESC100052
	picture = GFX_evt_courtiers_talking
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA100052
		trigger = {
			NOT = {
				has_character_flag = good_relation
			}
		}
		add_friend = FROM
		if = {
			limit = {
				trait = chaste
			}
			remove_trait = chaste
		}
		if = {
			limit = {
				trait = paranoid
			}
			remove_trait = paranoid
		}
		if = {
			limit = {
				trait = shy
			}
			remove_trait = shy
		}
	}
	option = {
		name = EVTOPTB100052
		trigger = {
			has_character_flag = good_relation
		}
		clr_character_flag = good_relation
		opinion = {
			modifier = opinion_glad
			who = FROM
			years = 5
		}
	}
}

#ROOT gains a rival
character_event = {
	id = 100053
	desc = EVTDESC100053
	picture = GFX_evt_courtiers_talking
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA100053
		add_rival = FROM
		if = {
			limit = {
				NOT = {
					num_of_traits = 5
				}
				NOT = {
					trait = envious
				}
			}
			add_trait = envious
		}
	}
}


#Courtier gains rival
character_event = {
	id = 100054
	desc = EVTDESC100054
	picture = GFX_evt_courtiers_talking
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA100054
		add_rival = FROM
	}
}

### Someone defeated me in swordplay! ###
character_event = {
	id = 100060
	desc = EVTDESC100060
	picture = GFX_evt_child_sword
	
	only_men = yes
	min_age = 11
	max_age = 16
	prisoner = no
	only_capable = yes
	
	trigger = {
		is_inaccessible_trigger = no
		NOT = {
			num_of_friends = 2
		}
		NOT = {
			num_of_rivals = 2
		}	
		NOT = {
			martial = 5
		}
		host = {
			any_courtier = {
				is_inaccessible_trigger = no
				martial = 5
				is_female = no
				age = 11
				is_adult = no
				at_location = ROOT
				NOT = {
					sibling = ROOT
				}
				NOT = {
					num_of_friends = 2
				}
				NOT = {
					num_of_rivals = 2
				}
				NOT = {
					is_friend = ROOT
				}
				NOT = {
					is_rival = ROOT
				}
			}
		}
	}
	
	immediate = {
		host = {
			random_courtier = {
				limit = {
					is_inaccessible_trigger = no
					martial = 5
					is_female = no
					age = 11
					NOT = {
						age = 16
					}
					at_location = ROOT
					NOT = {
						sibling = ROOT
					}
					NOT = {
						num_of_friends = 2
					}
					NOT = {
						num_of_rivals = 2
					}
					NOT = {
						is_friend = ROOT
					}
					NOT = {
						is_rival = ROOT
					}
				}
				save_event_target_as = target_courtier
			}
		}
	}
	
	mean_time_to_happen = {
		months = 80
		
		modifier = {
			factor = 0.5
			trait = brave
		}
		modifier = {
			factor = 2
			trait = craven
		}
		modifier = {
			factor = 0.5
			trait = ambitious
		}
		modifier = {
			factor = 2
			trait = content
		}
	}
	
	option = {
		name = EVTOPTA100060
		prestige = -2
		if = {
			limit = {
				NOT = {
					num_of_traits = 5
				}
				NOT = {
					trait = charitable
				}
			}
			add_trait = charitable
		}
	}
	option = {
		name = EVTOPTB100060
		event_target:target_courtier = {
			add_rival = ROOT
			character_event = {
				id = 100061
				days = 1
				random = 2
				tooltip = EVTTOOLTIP100061
			}
		}
	}
	option = {
		name = EVTOPTC100060
		if = {
			limit = {
				NOT = {
					num_of_traits = 5
				}
				NOT = {
					trait = ambitious
				}
			}
			add_trait = ambitious
		}
	}
}

#Courtier gains a rival
character_event = {
	id = 100061
	desc = EVTDESC100061
	picture = GFX_evt_child_sword
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA100061
		add_rival = FROM
	}
}

### Someone does not like me and keeps picking on me! ###
character_event = {
	id = 100065
	desc = EVTDESC100065
	picture = GFX_evt_child_bully
	
	only_men = yes
	only_capable = yes
	prisoner = no
	min_age = 4
	max_age = 14
	
	trigger = {
		is_inaccessible_trigger = no
		NOT = {
			has_character_flag = childhood_was_bullied
		}
		NOT = {
			num_of_friends = 2
		}
		NOT = {
			num_of_rivals = 2
		}
		NOT = { has_character_modifier = in_seclusion }
		any_host_courtier = {
			is_inaccessible_trigger = no
			is_female = no
			prisoner = no
			age = 4
			NOR = {
				age = 14
				num_of_friends = 2
				num_of_rivals = 2
				trait = timid
				trait = kind
				trait = charitable
				opinion = { who = ROOT value = 10 }
				is_friend = ROOT
				is_rival = ROOT
			}
		}
	}
	
	mean_time_to_happen = {
		months = 80
		
		modifier = {
			factor = 0.5
			trait = brave
		}
		modifier = {
			factor = 0.5
			trait = rowdy
		}
		modifier = {
			factor = 2
			trait = craven
		}
		modifier = {
			factor = 2
			trait = timid
		}
	}

	immediate = {
		set_character_flag = childhood_was_bullied
		host = {
			random_host_courtier = {
				limit = {
					is_inaccessible_trigger = no
					is_female = no
					prisoner = no
					age = 4
					NOR = {
						age = 14
						num_of_friends = 2
						num_of_rivals = 2
						trait = timid
						trait = kind
						trait = charitable
						opinion = { who = ROOT value = 10 }
						is_friend = ROOT
						is_rival = ROOT
					}
				}
				save_event_target_as = target_courtier
			}
		}
	}
	
	option = {
		name = EVTOPTA100065
		if = {
			limit = {
				NOT = {
					has_dlc = "Conclave"
				}
				NOT = {
					num_of_traits = 5
				}
				NOT = {
					trait = brave
				}
			}
			add_trait = brave
		}
		if = {
			limit = {
				has_dlc = "Conclave"
			}
			change_martial = 2
		}
		event_target:target_courtier = {
			add_rival = ROOT
			character_event = {
				id = 100066
				days = 1
				random = 2
				tooltip = EVTTOOLTIP100066
			}
		}
	}
	option = {
		name = EVTOPTB100065
		event_target:target_courtier = {
			character_event = {
				id = 100067
				days = 1
				random = 2
				tooltip = EVTTOOLTIP100067
			}
		}
	}
	option = {
		name = EVTOPTC100065
		if = {
			limit = {
				NOT = {
					has_dlc = "Conclave"
				}
				NOT = {
					num_of_traits = 5
				}
				NOT = {
					trait = patient
				}
			}
			add_trait = patient
		}
		if = {
			limit = {
				has_dlc = "Conclave"
			}
			change_diplomacy = 1
			change_learning = 1
		}
	}
}

#Courtier gains a rival
character_event = {
	id = 100066
	desc = EVTDESC100066
	picture = GFX_evt_child_bully
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA100066
		add_rival = FROM
	}
}

#Courtier gets a sweet
character_event = {
	id = 100067
	desc = EVTDESC100067
	picture = GFX_evt_child_bully
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA100067
		add_rival = FROM
		FROM = {
			character_event = {
				id = 100068
				days = 1
				random = 2
				tooltip = EVTTOOLTIP100068
			}
		}
	}
	option = {
		name = EVTOPTB100067
		if = {
			limit = {
				NOT = {
					has_dlc = "Conclave"
				}
				NOT = {
					num_of_traits = 5
				}
				NOT = {
					trait = gregarious
				}
			}
			add_trait = gregarious
		}
		if = {
			limit = {
				has_dlc = "Conclave"
			}
			change_diplomacy = 2
		}
		FROM = {
			character_event = {
				id = 100069
				days = 1
				random = 2
				tooltip = EVTTOOLTIPA100069
			}
		}
	}
}

#Bribed with a sweet
character_event = {
	id = 100068
	desc = EVTDESC100068
	picture = GFX_evt_child_bully
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA100068
		if = {
			limit = {
				NOT = {
					has_dlc = "Conclave"
				}
				NOT = {
					num_of_traits = 5
				}
				NOT = {
					trait = kind
				}
			}
			add_trait = kind
		}
		if = {
			limit = {
				has_dlc = "Conclave"
			}
			change_diplomacy = 2
		}
	}
	option = {
		name = EVTOPTB100068
		add_friend = FROM
		FROM = {
			character_event = {
				id = 100069
				days = 1
				random = 2
				tooltip = EVTTOOLTIPB100069
			}
		}
	}
}

#Courtier gains a friend
character_event = {
	id = 100069
	desc = EVTDESC100069
	picture = GFX_evt_child_bully
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA100069
		add_friend = FROM
	}
	option = {
		name = EVTOPTB100069
		if = {
			limit = {
				NOT = {
					has_dlc = "Conclave"
				}
				NOT = {
					num_of_traits = 5
				}
				NOT = {
					trait = kind
				}
			}
			add_trait = kind
		}
		if = {
			limit = {
				has_dlc = "Conclave"
			}
			change_diplomacy = 2
		}
	}
}

### I can't stand someone! ###
character_event = {
	id = 100070
	desc = EVTDESC100070
	picture = GFX_evt_child_bully
	
	prisoner = no
	only_capable = yes
	min_age = 11
	max_age = 16
	
	trigger = {
		is_inaccessible_trigger = no
		NOT = {
			num_of_friends = 2
		}
		NOT = {
			num_of_rivals = 2
		}
		OR = {
			trait = cruel
			trait = wroth
			trait = envious
		}
		host = {
			any_courtier = {
				is_inaccessible_trigger = no
				prisoner = no
				same_sex = ROOT
				age = 11
				is_adult = no
				at_location = ROOT
				NOT = {
					sibling = ROOT
				}
				NOT = {
					num_of_friends = 2
				}
				NOT = {
					num_of_rivals = 2
				}
				NOT = {
					is_friend = ROOT
				}
				NOT = {
					is_rival = ROOT
				}
			}
		}
	}
	
	mean_time_to_happen = {
		months = 80
		
		modifier = {
			factor = 2
			trait = honest
		}
		modifier = {
			factor = 0.5
			trait = deceitful
		}
		modifier = {
			factor = 0.5
			intrigue = 5
		}
		modifier = {
			factor = 2
			NOT = { intrigue = 5 }
		}
	}
	
	immediate = {
		host = {
			random_courtier = {
				limit = {
					is_inaccessible_trigger = no
					prisoner = no
					same_sex = ROOT
					age = 11
					is_adult = no
					at_location = ROOT
					NOT = {
						sibling = ROOT
					}
					NOT = {
						num_of_friends = 2
					}
					NOT = {
						num_of_rivals = 2
					}
					NOT = {
						is_friend = ROOT
					}
					NOT = {
						is_rival = ROOT
					}
				}
				save_event_target_as = target_courtier
			}
		}
	}
	
	option = {
		name = EVTOPTA100070
		event_target:target_courtier = {
			add_rival = ROOT
			character_event = {
				id = 100071
				days = 1
				random = 3
				tooltip = EVTTOOLTIP100071
			}
		}
	}
	
	option = {
		name = EVTOPTB100070
		if = {
			limit = {
				NOT = {
					trait = zealous
				}
			}
			add_trait = zealous
		}
		if = {
			limit = {
				trait = wroth
				NOT = {
					trait = envious
				}
			}
			remove_trait = wroth
		}
		if = {
			limit = {
				trait = cruel
				NOT = {
					trait = wroth
				}
			}
			remove_trait = cruel		
		}
		if = {
			limit = {
				trait = envious
				NOT = {
					trait = cruel
				}
			}
			remove_trait = envious		
		}
	}
	
	option = {
		name = EVTOPTC100070
		event_target:target_courtier = {
			character_event = {
				id = 100072
				days = 1
				random = 3
				tooltip = EVTTOOLTIP100072
			}
		}
	}
}

#Courtier gains a rival
character_event = {
	id = 100071
	desc = EVTDESC100071
	picture = GFX_evt_child_bully
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA100071
		add_rival = FROM
	}
}

#Courtier is notified about ROOT's feelings
character_event = {
	id = 100072
	desc = EVTDESC100072
	picture = GFX_evt_child_bully
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA100072
		add_rival = FROM
		FROM = {
			character_event = {
				id = 100073
				days = 1
				random = 2
				tooltip = EVTTOOLTIP100073
			}
		}
	}
	option = {
		name = EVTOPTB100072
		FROM = {
			character_event = {
				id = 100074
				days = 1
				random = 2
				tooltip = EVTTOOLTIP100074
			}
		}
	}
	option = {
		name = EVTOPTC100072
		if = {
			limit = {
				NOT = {
					has_dlc = "Conclave"
				}
				NOT = {
					num_of_traits = 5
				}
				NOT = {
					trait = content
				}
			}
			add_trait = content
		}
		if = {
			limit = {
				has_dlc = "Conclave"
			}
			change_learning = 2
		}
	}
}

#ROOT gains a rival
character_event = {
	id = 100073
	desc = EVTDESC100073
	picture = GFX_evt_child_bully
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA100073
		add_rival = FROM
	}
}

#ROOT gains a friend?
character_event = {
	id = 100074
	desc = EVTDESC100074
	picture = GFX_evt_child_bully
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA100074
		add_friend = FROM
		FROM = {
			set_character_flag = always_friends
			character_event = {
				id = 100075
				days = 1
				random = 2
				tooltip = EVTTOOLTIPA100075
			}
		}
	}
	option = {
		name = EVTOPTB100074
		add_rival = FROM
		FROM = {
			set_character_flag = always_rivals
			character_event = {
				id = 100075
				days = 1
				random = 2
				tooltip = EVTTOOLTIPB100075
			}
		}
	}
}

#Courtier friend/rival?
character_event = {
	id = 100075
	desc = EVTDESC100075
	picture = GFX_evt_child_play
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA100075
		trigger = {
			has_character_flag = always_friends
			NOT = {
				has_character_flag = always_rivals
			}
		}
		clr_character_flag = always_friends
		add_friend = FROM
	}
	option = {
		name = EVTOPTB100075
		trigger = {
			has_character_flag = always_rivals
			NOT = {
				has_character_flag = always_friends
			}
		}
		clr_character_flag = always_rivals
		add_rival = FROM
	}
}

### Someone does not believe in God! ###
character_event = {
	id = 100080
	desc = EVTDESC100080
	picture = GFX_evt_child_talking
	
	min_age = 4
	max_age = 14
	prisoner = no
	only_capable = yes
	only_playable = yes
	religion_group = christian
	
	trigger = {
		is_inaccessible_trigger = no
		location = { religion = ROOT }
		trait = zealous
		NOT = {
			num_of_friends = 2
		}
		NOT = {
			num_of_rivals = 2
		}
		host = {
			any_courtier = {
				is_inaccessible_trigger = no
				prisoner = no
				same_sex = ROOT
				age = 11
				is_adult = no
				at_location = ROOT
				trait = cynical
				NOT = {
					sibling = ROOT
				}
				NOT = {
					num_of_friends = 2
				}
				NOT = {
					num_of_rivals = 2
				}
				NOT = {
					is_friend = ROOT
				}
				NOT = {
					is_rival = ROOT
				}
			}
		}
	}
	
	mean_time_to_happen = {
		months = 80
		
		modifier = {
			factor = 0.5
			piety = 50
		}
		modifier = {
			factor = 2
			NOT = { piety = 50 }
		}
		modifier = {
			factor = 0.5
			trait = diligent
		}
		modifier = {
			factor = 2
			trait = slothful
		}
		modifier = {
			factor = 0.5
			trait = ambitious
		}
		modifier = {
			factor = 2
			trait = content
		}
	}
	
	option = {
		name = EVTOPTA100080
		piety = 10
	}	
	option = {
		name = EVTOPTB100080
		host = {
			random_courtier = {
				limit = {
					is_inaccessible_trigger = no
					prisoner = no
					same_sex = ROOT
					age = 11
					is_adult = no
					at_location = ROOT
					OR = {
						trait = cynical
						NOT = {
							trait = zealous
						}
					}
					NOT = {
						sibling = ROOT
					}
					NOT = {
						num_of_friends = 2
					}
					NOT = {
						num_of_rivals = 2
					}
					NOT = {
						is_friend = ROOT
					}
					NOT = {
						is_rival = ROOT
					}
				}
				character_event = {
					id = 100081
					days = 1
					random = 2
					tooltip = EVTTOOLTIP100081
				}
			}
		}
	}
}

#ROOT tries to convert a cynic
character_event = {
	id = 100081
	desc = EVTDESC100081
	picture = GFX_evt_child_talking
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA100081
		add_rival = FROM
		FROM = {
			character_event = {
				id = 100082
				days = 1
				random = 2
				tooltip = EVTTOOLTIP100082
			}
		}
	}
	option = {
		name = EVTOPTB100081
		if = {
			limit = {
				NOT = {
					num_of_traits = 5
				}
				NOT = {
					trait = deceitful
				}
			}
			add_trait = deceitful
			
		}
		FROM = {
			character_event = {
				id = 100083
				days = 1
				random = 2
				tooltip = EVTTOOLTIP100083
			}
		}
	}
	option = {
		name = EVTOPTC100081
		if = {
			limit = {
				NOT = {
					num_of_traits = 5
				}
				NOT = {
					trait = zealous
				}
			}
			add_trait = zealous
		}
		if = {
			limit = {
				NOT = {
					religion = FROM
				}
			}
			religion = FROM
		}
		add_friend = FROM
		FROM = {
			character_event = {
				id = 100084
				days = 1
				random = 2
				tooltip = EVTTOOLTIP100084
			}
		}
	}
}

#ROOT gains a rival
character_event = {
	id = 100082
	desc = EVTDESC100082
	picture = GFX_evt_child_talking
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA100082
		add_rival = FROM
	}
}

#ROOT is pious
character_event = {
	id = 100083
	desc = EVTDESC100083
	picture = GFX_evt_child_talking
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA100083
		piety = 20
	}
}

#ROOT gains a friend
character_event = {
	id = 100084
	desc = EVTDESC100084
	picture = GFX_evt_child_talking
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA100084
		tooltip = {
			FROM = {
				add_trait = zealous
			}
		}
		add_friend = FROM
	}
}

### My embroidery is not as good as someone elses! ###
character_event = {
	id = 100090
	desc = EVTDESC100090
	picture = GFX_evt_child_talking
	
	only_women = yes
	min_age = 11
	max_age = 16
	prisoner = no
	only_capable = yes
	
	trigger = {
		is_inaccessible_trigger = no
		OR = {
			trait = ambitious
			trait = diligent
		}
		NOT = {
			num_of_friends = 2
		}
		NOT = {
			num_of_rivals = 2
		}
		host = {
			any_courtier = {
				is_inaccessible_trigger = no
				is_female = yes
				age = 4
				NOT = {
					age = 14
				}
				at_location = ROOT
				OR = {
					trait = ambitious
					trait = diligent
				}
				NOT = {
					sibling = ROOT
				}
				NOT = {
					num_of_friends = 2
				}
				NOT = {
					num_of_rivals = 2
				}
				NOT = {
					is_friend = ROOT
				}
				NOT = {
					is_rival = ROOT
				}
			}
		}
	}
	
	mean_time_to_happen = {
		months = 80
		
		modifier = {
			factor = 3
			trait = envious
		}
		modifier = {
			factor = 0.5
			trait = kind
		}
	}

	immediate = {
		host = {
			random_courtier = {
				limit = {
					is_inaccessible_trigger = no
					is_female = yes
					age = 4
					NOT = {
						age = 14
					}
					at_location = ROOT
					OR = {
						trait = ambitious
						trait = diligent
					}
					NOT = {
						sibling = ROOT
					}
					NOT = {
						num_of_friends = 2
					}
					NOT = {
						num_of_rivals = 2
					}
					NOT = {
						is_friend = ROOT
					}
					NOT = {
						is_rival = ROOT
					}
				}
				save_event_target_as = embroidery_prodigy
			}
		}
	}
	
	option = {
		name = EVTOPTA100090
		if = {
			limit = {
				NOT = {
					num_of_traits = 5
				}
				NOT = {
					trait = humble
				}
			}
			add_trait = humble
		}
	}
	option = {
		name = EVTOPTB100090

		event_target:embroidery_prodigy = {
			add_rival = ROOT
			character_event = {
				id = 100091
				days = 1
				random = 2
				tooltip = EVTTOOLTIP100091
			}
		}
	}
	option = {
		name = EVTOPTC100090

		event_target:embroidery_prodigy = {
			reverse_opinion = {
				modifier = opinion_envy
				who = ROOT
				years = 1
			}
			character_event = {
				id = 100092
				days = 1
				random = 2
				tooltip = EVTTOOLTIP100092
			}
		}
	}
	option = {
		name = EVTOPTD100090
		event_target:embroidery_prodigy = {
			character_event = {
				id = 100094
				days = 1
				random = 2
				tooltip = EVTTOOLTIP100094
			}
		}
	}
}

#Courtier gains a rival
character_event = {
	id = 100091
	desc = EVTDESC100091
	picture = GFX_evt_child_talking
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA100091
		add_rival = FROM
	}
}

#ROOT destroys Courtier's embroidery
character_event = {
	id = 100092
	desc = EVTDESC100092
	picture = GFX_evt_child_talking
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA100092
		add_rival = FROM
		FROM = {
			character_event = {
				id = 100093
				days = 1
				random = 2
				tooltip = EVTTOOLTIP100093
			}
		}
	}
	option = {
		name = EVTOPTB100092
		if = {
			limit = {
				NOT = {
					num_of_traits = 5
				}
				NOT = {
					trait = humble
				}
			}
			add_trait = humble
		}
	}
}

#ROOT gains a rival
character_event = {
	id = 100093
	desc = EVTDESC100093
	picture = GFX_evt_child_talking
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA100093
		add_rival = FROM
	}
}

#ROOT gains a friend or rival
character_event = {
	id = 100094
	desc = EVTDESC100094
	picture = GFX_evt_child_talking
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA100094
		add_friend = FROM
		FROM = {
			character_event = {
				id = 100095
				days = 1
				random = 2
				tooltip = EVTTOOLTIP100095
			}
		}
	}
	option = {
		name = EVTOPTB100094
		add_rival = FROM
		FROM = {
			character_event = {
				id = 100096
				days = 1
				random = 2
				tooltip = EVTTOOLTIP100096
			}
		}
	}
}

#ROOT gains a friend
character_event = {
	id = 100095
	desc = EVTDESC100095
	picture = GFX_evt_child_talking
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA100095
		add_friend = FROM
	}
}

#ROOT gains a friend
character_event = {
	id = 100096
	desc = EVTDESC100096
	picture = GFX_evt_child_talking
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA100096
		add_rival = FROM
	}
}

### Someone stole my doll! ###
character_event = {
	id = 100100
	desc = EVTDESC100100
	picture = GFX_evt_child_bully
	
	only_women = yes
	only_capable = yes
	min_age = 4
	max_age = 14
	prisoner = no
	
	trigger = {
		is_inaccessible_trigger = no
		NOT = {
			num_of_friends = 2
		}
		NOT = {
			num_of_rivals = 2
		}
		any_host_courtier = {
			is_inaccessible_trigger = no
			is_female = yes
			prisoner = no
			age = 4
			NOR = {
				age = 14
				num_of_friends = 2
				num_of_rivals = 2
				trait = timid
				trait = kind
				trait = charitable
				opinion = { who = ROOT value = 10 }
				is_friend = ROOT
				is_rival = ROOT
			}
		}
	}

	mean_time_to_happen = {
		months = 80
		
		modifier = {
			factor = 0.5
			trait = kind
		}
		modifier = {
			factor = 0.5
			trait = humble
		}
		modifier = {
			factor = 0.5
			trait = timid
		}
		modifier = {
			factor = 0.5
			trait = affectionate
		}
		modifier = {
			factor = 0.5
			trait = wroth
		}
		modifier = {
			factor = 0.5
			trait = envious
		}
		modifier = {
			factor = 0.5
			trait = rowdy
		}
		modifier = {
			factor = 0.5
			trait = brooding
		}
	}

	immediate = {
		random_host_courtier = {
			limit = {
				is_inaccessible_trigger = no
				is_female = yes
				prisoner = no
				age = 4
				NOR = {
					age = 14
					num_of_friends = 2
					num_of_rivals = 2
					trait = timid
					trait = kind
					trait = charitable
					opinion = { who = ROOT value = 10 }
					is_friend = ROOT
					is_rival = ROOT
				}
			}
			save_event_target_as = doll_stealer
		}
	}
	
	option = {
		name = EVTOPTA100100
		if = {
			limit = {
				NOT = {
					num_of_traits = 5
				}
				NOT = {
					trait = ambitious
				}
			}
			random = {
				chance = 25
				add_trait = ambitious
				hidden_tooltip = {
					character_event = {
						id = 38278 #Notify Ambitious
					}
				}
			}
			if = {
				limit = {
					num_of_traits = 5
					trait = ambitious
				}
				piety = 5
			}			
		}
		hidden_tooltip = {
			event_target:doll_stealer = {
				character_event = {
					id = 100101
					days = 5
					random = 5
					tooltip = EVTTOOLTIP100101
				}
			}
			
		}
	}
	option = {
		name = EVTOPTB100100
		random = {
			chance = 20
			add_trait = depressed
			hidden_tooltip = {
				character_event = {
					id = 38288 #Notify Depressed
				}
			}
		}
	}
}

#Courtier decides what happens to doll
character_event = {
	id = 100101
	desc = EVTDESC100101
	picture = GFX_evt_child_talking
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA100101
		add_friend = FROM
		FROM = {
			character_event = {
				id = 100102
				days = 3
				random = 3
				tooltip = EVTTOOLTIPA100102
			}
		}
	}
	option = {
		name = EVTOPTB100101
		tooltip = {
			reverse_opinion = {
				modifier = opinion_grateful
				who = FROM
				years = 5
			}
		}
		FROM = {
			set_character_flag = ugly_doll
			character_event = {
				id = 100102
				days = 3
				random = 3
				tooltip = EVTTOOLTIPA100102
			}
		}
	}
	option = {
		name = EVTOPTC100101
		if = {
			limit = {
				NOR = {
					num_of_traits = 5
					trait = greedy
					has_dlc = "Conclave"
				}
			}
			add_trait = greedy
		}
		if = {
			limit = {
				has_dlc = "Conclave"
			}
			change_stewardship = 2
			change_diplomacy = -1
		}
		add_rival = FROM
		FROM = {
			set_character_flag = rival_doll
			character_event = {
				id = 100102
				days = 3
				random = 3
				tooltip = EVTTOOLTIPB100102
			}
		}
	}
}

#Gave it back
character_event = {
	id = 100102
	desc = EVTDESC100102
	picture = GFX_evt_child_talking
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA100102
		trigger = {
			NOT = {
				has_character_flag = ugly_doll
			}
		}
		add_friend = FROM
	}
	option = {
		name = EVTOPTB100102
		trigger = {
			has_character_flag = ugly_doll
		}
		clr_character_flag = ugly_doll
		opinion = {
			modifier = opinion_grateful
			who = FROM
			years = 5
		}
	}

	option = {
		name = EVTOPTC100102
		trigger = {
			has_character_flag = rival_doll
		}
		clr_character_flag = rival_doll
		add_rival = FROM
	}
}

### Crusaders becomes friends/rivals ###
character_event = {
	id = 100105
	desc = EVTDESC100105
	picture = GFX_evt_crusaders
	
	only_men = yes
	min_age = 16
	prisoner = no
	only_capable = yes
	religion_group = christian
	war = yes
	
	trigger = {
		is_inaccessible_trigger = no
		in_command = yes
		trait = crusader
		NOT = {
			num_of_friends = 5
		}
		NOT = {
			num_of_rivals = 5
		}
		host = {
			any_courtier = {
				is_inaccessible_trigger = no
				is_female = no
				prisoner = no
				in_command_trigger = yes
				war = yes
				trait = crusader
				religion_group = christian
				NOT = {
					sibling = ROOT
				}
				is_adult = yes
				NOT = {
					num_of_friends = 5
				}
				NOT = {
					num_of_rivals = 5
				}
				NOT = {
					is_friend = ROOT
				}
				NOT = {
					is_rival = ROOT
				}
			}
		}
		any_war = {
			using_cb = crusade_cb
		}
		location = {
			NOT = { religion_group = christian }
		}
	}

	mean_time_to_happen = {
		months = 80
		
		modifier = {
			factor = 2
			trait = deceitful
		}
		modifier = {
			factor = 2
			trait = paranoid
		}
		modifier = {
			factor = 2
			trait = cynical
		}
		
		modifier = {
			factor = 0.5
			trait = gregarious
		}
		modifier = {
			factor = 0.5
			trait = brave
		}
		modifier = {
			factor = 0.5
			trait = honest
		}
	}

	immediate = {
		host = {
			random_courtier = {
				limit = {
					is_inaccessible_trigger = no
					is_female = no
					prisoner = no
					in_command_trigger = yes
					war = yes
					trait = crusader
					religion_group = christian
					NOT = {
						sibling = ROOT
					}
					is_adult = yes
					NOT = {
						num_of_friends = 5
					}
					NOT = {
						num_of_rivals = 5
					}
					NOT = {
						is_friend = ROOT
					}
					NOT = {
						is_rival = ROOT
					}
				}
				save_event_target_as = fellow_crusader
			}
		}
	}
	
	option = {
		name = EVTOPTA100105
		piety = 10
		event_target:fellow_crusader = {
			set_character_flag = crusader_piety
			character_event = {
				id = 100106
				days = 7
				random = 7
				tooltip = EVTTOOLTIP100106
			}
		}
	}
	option = {
		name = EVTOPTB100105
		prestige = 10
		event_target:fellow_crusader = {
			set_character_flag = crusader_prestige
			character_event = {
				id = 100106
				days = 7
				random = 7
				tooltip = EVTTOOLTIP100106
			}
		}
	}
	option = {
		name = EVTOPTC100105
		if = {
			limit = {
				NOT = {
					num_of_traits = 5
				}
				NOT = {
					trait = greedy
				}
			}
			random = {
				chance = 25
				add_trait = greedy
				hidden_tooltip = {
					character_event = {
						id = 38252 #Notify Greedy
					}
				}
			}
		}
		if = {
			limit = {
				NOT = {
					num_of_traits = 5
				}
				NOT = {
					trait = cynical
				}
			}
			random = {
				chance = 25
				add_trait = cynical
				hidden_tooltip = {
					character_event = {
						id = 38258 #Notify Cynical
					}
				}
			}
		}
	}
	option = {
		name = EVTOPTD100105
		remove_trait = crusader
	}
}

#Crusader Friend or Foe?
character_event = {
	id = 100106
	desc = EVTDESC100106
	picture = GFX_evt_crusaders
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA100106
		trigger = {
			has_character_flag = crusader_prestige
		}
		add_rival = FROM
		opinion = {
			modifier = grievously_offended
			who = FROM
			years = 10
		}
		clr_character_flag = crusader_prestige
		FROM = {
			set_character_flag = prestige_crusader
			character_event = {
				id = 100107
				days = 5
				random = 5
				tooltip = EVTTOOLTIP100107
			}
		}
	}
	option = {
		name = EVTOPTB100106
		trigger = {
			has_character_flag = crusader_piety
		}
		add_rival = FROM	
		opinion = {
			modifier = grievously_offended
			who = FROM
			years = 10
		}
		clr_character_flag = crusader_piety
		FROM = {
			set_character_flag = piety_crusader
			character_event = {
				id = 100107
				days = 5
				random = 5
				tooltip = EVTTOOLTIP100107
			}
		}
	}
	option = {
		name = EVTOPTC100106
		trigger = {
			has_character_flag = crusader_prestige
		}
		add_friend = FROM
		clr_character_flag = crusader_prestige
		FROM = {
			set_character_flag = prestige_crusader
			character_event = {
				id = 100108
				days = 5
				random = 5
				tooltip = EVTTOOLTIP100108
			}
		}
	}
	option = {
		name = EVTOPTD100106
		trigger = {
			has_character_flag = crusader_piety
		}
		add_friend = FROM
		clr_character_flag = crusader_piety
		FROM = {
			set_character_flag = piety_crusader
			character_event = {
				id = 100108
				days = 5
				random = 5
				tooltip = EVTTOOLTIP100108
			}
		}
	}
	option = {
		name = EVTOPTD100105
		clr_character_flag = crusader_prestige
		clr_character_flag = crusader_piety
		remove_trait = crusader
	}
}

#Crusader Foes
character_event = {
	id = 100107
	desc = EVTDESC100107
	picture = GFX_evt_crusaders
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA100107
		trigger = {
			has_character_flag = piety_crusader
			NOT = {
				has_character_flag = prestige_crusader
			}
		}
		clr_character_flag = piety_crusader
		add_rival = FROM
		opinion = {
			modifier = grievously_offended
			who = FROM
			years = 10
		}
	}
	option = {
		name = EVTOPTB100107
		trigger = {
			has_character_flag = prestige_crusader
			NOT = {
				has_character_flag = piety_crusader
			}
		}
		clr_character_flag = prestige_crusader
		add_rival = FROM
		opinion = {
			modifier = grievously_offended
			who = FROM
			years = 10
		}
	}
}

#Crusader Friends
character_event = {
	id = 100108
	desc = EVTDESC100108
	picture = GFX_evt_crusaders
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA100108
		trigger = {
			has_character_flag = piety_crusader
			NOT = {
				has_character_flag = prestige_crusader
			}
		}
		clr_character_flag = piety_crusader
		add_friend = FROM
	}
	option = {
		name = EVTOPTB100108
		trigger = {
			has_character_flag = prestige_crusader
			NOT = {
				has_character_flag = piety_crusader
			}
		}
		clr_character_flag = prestige_crusader
		add_friend = FROM
	}
}

### Learn from the best (and take his job) ###
character_event = {
	id = 100110
	desc = EVTDESC100110
	picture = GFX_evt_courtiers_talking
	
	#only_men = yes
	min_age = 16
	prisoner = no
	capable_only = yes
	only_rulers = yes
	
	trigger = {
		is_inaccessible_trigger = no
		is_councillor = no
		independent = no
		OR = {
			has_ambition = obj_become_chancellor
			has_ambition = obj_become_marshal
			has_ambition = obj_become_treasurer
			has_ambition = obj_become_spymaster
			has_ambition = obj_become_spiritual
		}
		NOT = {
			num_of_friends = 5
		}
		NOT = {
			num_of_rivals = 5
		}
		liege = {
			any_courtier = {
				is_inaccessible_trigger = no
				#is_female = no
				is_abroad_trigger = no
				prisoner = no
				is_councillor = yes
#				at_location = ROOT
				same_liege = ROOT
				
				NOT = {
					sibling = ROOT
				}
				age = 16
				NOT = {
					num_of_friends = 5
				}
				NOT = {
					num_of_rivals = 5
				}
				OR = {
					AND = {
						has_job_title = job_chancellor
						ROOT = {
							has_ambition = obj_become_chancellor
						}
					}
					AND = {
						has_job_title = job_marshal
						ROOT = {
							has_ambition = obj_become_marshal
						}
					}
					AND = {
						has_job_title = job_treasurer
						ROOT = {
							has_ambition = obj_become_treasurer
						}
					}
					AND = {
						has_job_title = job_spymaster
						ROOT = {
							has_ambition = obj_become_spymaster
						}
					}
					AND = {
						has_job_title = job_spiritual
						ROOT = {
							has_ambition = obj_become_spiritual
						}
					}
				}
				NOT = {
					is_friend = ROOT
				}
				NOT = {
					is_rival = ROOT
				}
			}
		}
	}

	mean_time_to_happen = {
		months = 80
		
		modifier = {
			factor = 0.5
			trait = ambitious
		}
		modifier = {
			factor = 0.5
			trait = trusting
		}
		modifier = {
			factor = 0.5
			OR = {
				trait = quick
				trait = shrewd
			}
		}
		modifier = {
			factor = 0.3
			trait = genius
		}
		modifier = {
			factor = 0.5
			trait = diligent
		}
		
		modifier = {
			factor = 2
			trait = slothful
		}
		modifier = {
			factor = 2
			trait = paranoid
		}
		modifier = {
			factor = 2
			OR = {
				trait = slow
				trait = dull
			}
		}
		modifier = {
			factor = 5
			trait = imbecile
		}
		modifier = {
			factor = 2
			trait = content
		}
	}
	
	option = {
		name = EVTOPTA100110
		liege = {
			random_courtier = {
				limit = {
					is_inaccessible_trigger = no
					#is_female = no
					is_abroad_trigger = no
					prisoner = no
					is_councillor = yes
					at_location = ROOT
					same_liege = ROOT
					NOT = {
						sibling = ROOT
					}
					age = 16
					NOT = {
						num_of_friends = 5
					}
					NOT = {
						num_of_rivals = 5
					}
					OR = {
						AND = {
							has_job_title = job_chancellor
							ROOT = {
								has_ambition = obj_become_chancellor
							}
						}
						AND = {
							has_job_title = job_marshal
							ROOT = {
								has_ambition = obj_become_marshal
							}
						}
						AND = {
							has_job_title = job_treasurer
							ROOT = {
								has_ambition = obj_become_treasurer
							}
						}
						AND = {
							has_job_title = job_spymaster
							ROOT = {
								has_ambition = obj_become_spymaster
							}
						}
						AND = {
							has_job_title = job_spiritual
							ROOT = {
								has_ambition = obj_become_spiritual
							}
						}
					}
					NOT = {
						is_friend = ROOT
					}
					NOT = {
						is_rival = ROOT
					}
				}
				character_event = {
					id = 100111
					days = 10
					random = 5
					tooltip = EVTTOOLTIP100111
				}
			}
		}
	}
	option = {
		name = EVTOPTB100110
		trigger = {
			has_ambition = obj_become_chancellor
			any_courtier = {
				has_job_title = job_chancellor
				is_alive = yes
				is_abroad_trigger = no
				prisoner = no
			}
		}
		if = {
			limit = {
				NOT = {
					num_of_traits = 5
				}
				NOT = {
					trait = honest
				}
			}
			random = {
				chance = 15
				add_trait = honest
				hidden_tooltip = {
					character_event = {
						id = 38262 #Notify Honest
					}
				}
			}
		}
		if = {
			limit = {
				NOT = {
					num_of_traits = 5
				}
				NOT = {
					trait = diligent
				}
			}
			
			random = {
				chance = 15
				add_trait = diligent
				hidden_tooltip = {
					character_event = {
						id = 38256 #Notify Diligent
					}
				}
			}
		}		
	}
	option = {
		name = EVTOPTC100110
		trigger = {
			has_ambition = obj_become_marshal
			any_courtier = {
				has_job_title = job_marshal
				is_alive = yes
				is_abroad_trigger = no
				prisoner = no
			}
		}
		if = {
			limit = {
				NOT = {
					num_of_traits = 5
				}
				NOT = {
					trait = honest
				}
			}
			random = {
				chance = 15
				add_trait = honest
				hidden_tooltip = {
					character_event = {
						id = 38262 #Notify Honest
					}
				}
			}
		}
		if = {
			limit = {
				NOT = {
					num_of_traits = 5
				}
				NOT = {
					trait = diligent
				}
			}
			random = {
				chance = 15
				add_trait = diligent
				hidden_tooltip = {
					character_event = {
						id = 38256 #Notify Diligent
					}
				}
			}
		}		
	}
	option = {
		name = EVTOPTD100110
		trigger = {
			has_ambition = obj_become_treasurer
			any_courtier = {
				has_job_title = job_treasurer
				is_alive = yes
				is_abroad_trigger = no
				prisoner = no
			}
		}
		if = {
			limit = {
				NOT = {
					num_of_traits = 5
				}
				NOT = {
					trait = honest
				}
			}
			random = {
				chance = 15
				add_trait = honest
				hidden_tooltip = {
					character_event = {
						id = 38262 #Notify Honest
					}
				}
			}
		}
		if = {
			limit = {
				NOT = {
					num_of_traits = 5
				}
				NOT = {
					trait = diligent
				}
			}
			random = {
				chance = 15
				add_trait = diligent
				hidden_tooltip = {
					character_event = {
						id = 38256 #Notify Diligent
					}
				}
			}
		}
	}
	option = {
		name = EVTOPTE100110
		trigger = {
			has_ambition = obj_become_spymaster
			any_courtier = {
				has_job_title = job_spymaster
				is_alive = yes
				is_abroad_trigger = no
				prisoner = no
			}
		}
		if = {
			limit = {
				NOT = {
					num_of_traits = 5
				}
				NOT = {
					trait = honest
				}
			}
			random = {
				chance = 15
				add_trait = honest
				hidden_tooltip = {
					character_event = {
						id = 38262 #Notify Honest
					}
				}
			}
		}
		if = {
			limit = {
				NOT = {
					num_of_traits = 5
				}
				NOT = {
					trait = diligent
				}
			}
			
			random = {
				chance = 15
				add_trait = diligent
				hidden_tooltip = {
					character_event = {
						id = 38256 #Notify Diligent
					}
				}
			}
		}	
	}
	option = {
		name = EVTOPTF100110
		trigger = {
			has_ambition = obj_become_spiritual
			any_courtier = {
				has_job_title = job_spiritual
				is_alive = yes
				is_abroad_trigger = no
				prisoner = no
			}
		}
		if = {
			limit = {
				NOT = {
					num_of_traits = 5
				}
				NOT = {
					trait = honest
				}
			}
			random = {
				chance = 15
				add_trait = honest
				hidden_tooltip = {
					character_event = {
						id = 38262 #Notify Honest
					}
				}
			}
		}
		if = {
			limit = {
				NOT = {
					num_of_traits = 5
				}
				NOT = {
					trait = diligent
				}
			}
			random = {
				chance = 15
				add_trait = diligent
				hidden_tooltip = {
					character_event = {
						id = 38256 #Notify Diligent
					}
				}
			}
		}		
	}
}

#Courtier is asked to help
character_event = {
	id = 100111
	desc = EVTDESC100111
	picture = GFX_evt_courtiers_talking
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA100111
		add_friend = FROM
		FROM = {
			character_event = {
				id = 100112
				days = 10
				random = 5
				tooltip = EVTTOOLTIP100112
			}
		}
	}
	option = {
		name = EVTOPTB100111
		add_trait = paranoid
		reverse_opinion = {
			modifier = opinion_grateful
			who = FROM
			years = 5
		}
		FROM = {
			set_character_flag = suspicious_chancellor
			character_event = {
				id = 100112
				days = 10
				random = 5
				tooltip = EVTTOOLTIP100112
			}
		}
	}
	option = {
		name = EVTOPTC100111
		add_rival = FROM
		FROM = {
			character_event = {
				id = 100113
				days = 10
				random = 5
				tooltip = EVTTOOLTIP100113
			}
		}
	}
}

#Gain friend
character_event = {
	id = 100112
	desc = EVTDESC100112
	picture = GFX_evt_courtiers_talking
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA100112
		trigger = {
			NOT = {
				has_character_flag = suspicious_chancellor
			}
		}
		if = {
			limit = {
				FROM = {
					has_job_title = job_chancellor
				}
				has_ambition = obj_become_chancellor
			}
			change_diplomacy = 1
		}
		if = {
			limit = {
				FROM = {
					has_job_title = job_marshal
				}
				has_ambition = obj_become_marshal
			}
			change_martial = 1
		}
		if = {
			limit = {
				FROM = {
					has_job_title = job_treasurer
				}
				has_ambition = obj_become_treasurer
			}
			change_stewardship = 1
		}	
		if = {
			limit = {
				FROM = {
					has_job_title = job_spymaster
				}
				has_ambition = obj_become_spymaster
			}
			change_intrigue = 1
		}
		if = {
			limit = {
				FROM = {
					has_job_title = job_spiritual
				}
				has_ambition = obj_become_spiritual
			}
			change_learning = 1
		}
		add_friend = FROM
	}
	option = {
		name = EVTOPTA100112
		trigger = {
			has_character_flag = suspicious_chancellor
		}
		clr_character_flag = suspicious_chancellor
		tooltip = {
			reverse_opinion = {
				modifier = opinion_glad
				who = FROM
				years = 100
			}
		}
	}
}

#Gain rival
character_event = {
	id = 100113
	desc = EVTDESC100113
	picture = GFX_evt_courtiers_talking
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA100113
		add_rival = FROM
	}
}

### Sharing the wonders of childbearing has made you a new friend ###
character_event = {
	id = 100115
	desc = EVTDESC100115
	picture = GFX_evt_courtiers_talking
	
	only_women = yes
	min_age = 16
	prisoner = no
	only_capable = yes
	is_married = yes
	
	trigger = {
		is_inaccessible_trigger = no
		is_pregnant = yes
		NOT = {
			num_of_friends = 5
		}
		NOT = {
			num_of_rivals = 5
		}
		spouse = {
			is_alive = yes
		}
		host = {
			any_courtier = {
				is_inaccessible_trigger = no
				is_female = yes
				is_abroad_trigger = no
				prisoner = no
				at_location = ROOT
				is_pregnant = yes
				NOT = {
					sibling = ROOT
				}
				age = 16
				NOT = {
					num_of_friends = 5
				}
				NOT = {
					num_of_rivals = 5
				}
				opinion = { who = ROOT value = 5 }
				NOT = {
					opinion = { who = ROOT value = 40 }
				}
				NOT = {
					is_friend = ROOT
				}
				NOT = {
					is_rival = ROOT
				}
			}
		}
	}

	mean_time_to_happen = {
		months = 80
		
		modifier = {
			factor = 0.5
			trait = gregarious
		}
		modifier = {
			factor = 0.5
			trait = honest
		}
		modifier = {
			factor = 0.5
			trait = trusting
		}
		modifier = {
			factor = 0.5
			trait = kind
		}
		
		modifier = {
			factor = 2
			trait = shy
		}
		modifier = {
			factor = 2
			trait = deceitful
		}
		modifier = {
			factor = 2
			trait = paranoid
		}
		modifier = {
			factor = 2
			trait = cruel
		}
	}
	
	option = {	
		name = EVTOPTA100115
		host = {
			random_courtier = {
				limit = {
					is_inaccessible_trigger = no
					is_female = yes
					is_abroad_trigger = no
					prisoner = no
					at_location = ROOT
					is_pregnant = yes
					NOT = {
						sibling = ROOT
					}
					age = 16
					NOT = {
						num_of_friends = 5
					}
					NOT = {
						num_of_rivals = 5
					}
					opinion = { who = ROOT value = 5 }
					NOT = {
						opinion = { who = ROOT value = 40 }
					}
					NOT = {
						is_friend = ROOT
					}
					NOT = {
						is_rival = ROOT
					}
				}
				add_friend = ROOT
				character_event = {
					id = 100116
					days = 5
					random = 7
					tooltip = EVTTOOLTIP100116
				}
			}
		}
	}
	option = {	
		name = EVTOPTB100115
		fertility = 0.1
	}
}

#Female friend/rival
character_event = {
	id = 100116
	desc = EVTDESC100116
	picture = GFX_evt_courtiers_talking
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA100116
		add_friend = FROM
	}
	option = {
		name = EVTOPTB100116
		FROM = {
			character_event = {
				id = 100117
				days = 270
				tooltip = EVTTOOLTIP100117
			}
		}
	}
}

#Female rival
character_event = {
	id = 100117
	desc = EVTDESC100117
	picture = GFX_evt_courtiers_talking
	
	is_triggered_only = yes

	option = {
		name = EVTOPTA100117
		remove_friend = FROM
		opinion = {
			modifier = opinion_sad
			who = FROM
			years = 100
		}
	}
}

##################################################
#				FRIENDSHIP EVENTS 				 #
##################################################

### Friend at war - send help? ###
character_event = {
	id = 100150
	desc = EVTDESC100150
	picture = GFX_evt_large_army
	
	only_rulers = yes
	min_age = 16
	prisoner = no
	capable_only = yes
	war = no
	friends = yes
	
	trigger = {
		in_command_trigger = no
		scaled_wealth = 0.5
		wealth = 100
		NOT = {
			has_character_modifier = friend_at_war_timer
		}
		is_inaccessible_trigger = no
		any_friend = {
			is_inaccessible_trigger = no
			war = yes
			is_ruler = yes
			prisoner = no
			OR = {
				is_primary_war_attacker = yes
				is_primary_war_defender = yes
			}
		}
	}
	
	mean_time_to_happen = {
		months = 120
		
		modifier = {
			factor = 0.5
			trait = charitable
		}
		modifier = {
			factor = 2
			trait = greedy
		}
	}
	
	immediate = {
		add_character_modifier = {
			name = friend_at_war_timer
			duration = 1095
			hidden = yes
		}
	}
	
	option = {
		name = EVTOPTB100150
		random_friend = {
			limit = {
				is_inaccessible_trigger = no
				war = yes
				is_ruler = yes
				prisoner = no
			}
			opinion = {
				modifier = opinion_grateful
				who = ROOT
				years = 5
			}
			tooltip = {
				ROOT = {
					transfer_scaled_wealth = {
						to = PREV
						value = 0.25
						min = 50
					}
				}
			}
			letter_event = {
				id = 100152
				days = 7
				random = 14
				tooltip = EVTTOOLTIP100152
			}
		}
	}
	option = {
		name = EVTOPTC100150
		random = {
			chance = 10
			random_friend = {
				limit = {
					is_inaccessible_trigger = no
					war = yes
					is_ruler = yes
					prisoner = no
				}
				opinion = {
					modifier = opinion_disappointed
					who = ROOT
					years = 5
				}
				hidden_tooltip = {
					character_event = {
						id = 100153
						days = 90
						random = 5
					}
				}
			}
		}
	}
}

#Root sent money to friend
letter_event = {
	id = 100152
	desc = EVTDESC100152
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA100152
		FROM = {
			transfer_scaled_wealth = {
				to = ROOT
				value = 0.25
			}
		}
		tooltip = {
			opinion = {
				modifier = opinion_grateful
				who = FROM
				years = 5
			}
		}
	}
}

#I never got your letter!
character_event = {
	id = 100153
	desc = EVTDESC100153
	picture = GFX_evt_large_army
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA100153
		opinion = {
			modifier = opinion_disappointed
			who = FROM
			years = 5
		}
	}
	option = {
		name = EVTOPTB100153
		trigger = {
			war = no
		}
		prestige = 15
	}
}

### I'm at war and need help! ###
character_event = {
	id = 100160
	desc = EVTDESC100160
	picture = GFX_evt_large_army
	
	only_rulers = yes
	prisoner = no
	min_age = 16
	capable_only = yes
	war = yes
	friends = yes
	
	trigger = {
		war = yes
		OR = {
			is_primary_war_attacker = yes
			is_primary_war_defender = yes
		}
		is_inaccessible_trigger = no
		any_friend = {
			war = no
			is_ruler = yes
			prisoner = no
			scaled_wealth = 0.5
			NOT = { has_character_modifier = friend_at_war_timer }
			NOR = {
				liege = {
					character = ROOT
				}
				ROOT = {
					liege = {
						character = PREVPREV
					}
				}
			}
			NOT = { has_character_modifier = in_seclusion }
		}
	}
	
	mean_time_to_happen = {
		months = 80
		
		modifier = {
			factor = 5
			trait = proud
		}
		
		modifier = {
			factor = 0.5
			trait = trusting
		}		
	}

	immediate = {
		random_friend = {
			limit = {
				is_inaccessible_trigger = no
				war = no
				is_ruler = yes
				prisoner = no
				NOR = {
					liege = {
						character = ROOT
					}
					ROOT = {
						liege = {
							character = PREVPREV
						}
					}
				}
			}
			save_event_target_as = friend_during_war
		}
	}
	
	option = {
		name = EVTOPTA100160
		event_target:friend_during_war = {
			letter_event = {
				id = 100161
				days = 7
				random = 21
				tooltip = EVTTOOLTIP100161
			}
		}
	}
	option = {
		name = EVTOPTB100160
		event_target:friend_during_war = {
			letter_event = {
				id = 100162
				days = 7
				random = 21
				tooltip = EVTTOOLTIP100162
			}
		}
	}
	option = {
		name = EVTOPTC100160
		if = {
			limit = {
				NOT = {
					num_of_traits = 5
				}
				NOT = {
					trait = proud
				}
			}
			add_trait = proud
		}
		prestige = 10
	}
}

#Asked by a friend to join her/his war
letter_event = {
	id = 100161
	desc = EVTDESC100161
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA100161
		if = {
			limit = {
				FROM = {
					is_primary_war_attacker = yes
				}
			}
			join_attacker_wars = FROM
		}
		if = {
			limit = {
				FROM = {
					is_primary_war_defender = yes
				}
			}
			join_defender_wars = FROM
		}
		FROM = {
			set_character_flag = friend_joined_war
			opinion = {
				modifier = opinion_grateful
				who = ROOT
				years = 5
			}
			character_event = {
				id = 100163
				tooltip = EVTTOOLTIP100163
			}
		}
	}
	option = {
		name = EVTOPTB100161
		transfer_scaled_wealth = {
			to = FROM
			value = 0.25
		}
		FROM = {
			opinion = {
				modifier = opinion_grateful
				who = ROOT
				years = 5
			}
			character_event = {
				id = 100163
				days = 7
				random = 7
				tooltip = EVTTOOLTIP100163
			}
		}
	}
	option = {
		name = EVTOPTC100161
		tooltip = {
			reverse_opinion = {
				modifier = opinion_very_disappointed
				who = FROM
				years = 5
			}
		}
		FROM = {
			letter_event = {
				id = 100164
				days = 7
				random = 7
				tooltip = EVTTOOLTIP100164
			}
		}
	}
}

#Asked by a friend for money
letter_event = {
	id = 100162
	desc = EVTDESC100162
	
	is_triggered_only = yes
	
	immediate = {
		add_character_modifier = {
			name = friend_at_war_timer
			duration = 1095
			hidden = yes
		}
	}
	
	option = {
		name = EVTOPTA100162
		tooltip = {
			transfer_scaled_wealth = {
				to = FROM
				value = 0.25
			}
		}
		FROM = {
			character_event = {
				id = 100163
				days = 7
				random = 7
				tooltip = EVTTOOLTIP100163
			}
		}
	}
	option = {
		name = EVTOPTC100162
		FROM = {
			letter_event = {
				id = 100164
				days = 7
				random = 7
				tooltip = EVTTOOLTIP100164
			}
		}
	}
}

#Friend joined war or sent money
character_event = {
	id = 100163
	desc = EVTDESC100163
	picture = GFX_evt_large_army
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTB100163
		FROM = {
			transfer_scaled_wealth = {
				to = ROOT
				value = 0.25
			}
		}
		opinion = {
			modifier = opinion_grateful
			who = FROM
			years = 5
		}
	}
}

#Friend did nothing to help
letter_event = {
	id = 100164
	desc = EVTDESC100164
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA100164
		opinion = {
			modifier = opinion_very_disappointed
			who = FROM
			years = 5
		}
	}
}

### My friend's friend is my friend ###
character_event = {
	id = 100170
	desc = EVTDESC100170
	picture = GFX_evt_courtiers_talking
	
	min_age = 16
	prisoner = no
	only_capable = yes
	war = no
	friends = yes
	
	trigger = {
		in_command_trigger = no
		NOT = { num_of_friends = 5 }
		is_inaccessible_trigger = no
		any_friend = {
			war = no
			is_inaccessible_trigger = no
			prisoner = no
			in_command_trigger = no
			any_friend = {
				war = no
				prisoner = no
				in_command_trigger = no
				same_realm = ROOT
				NOR = {
					num_of_friends = 5
					character = ROOT
					is_friend = ROOT
					is_rival = ROOT
					is_close_relative = ROOT
				}
				NOT = {
					is_lover = ROOT
				}
				NOT = {
					is_consort = ROOT
				}
			}
		}
	}
	
	mean_time_to_happen = {
		months = 240
		
		modifier = {
			factor = 0.5
			trait = honest
		}
		modifier = {
			factor = 0.5
			trait = gregarious
		}
		modifier = {
			factor = 0.5
			trait = kind
		}
		modifier = {
			factor = 0.5
			trait = trusting
		}
		
		modifier = {
			factor = 2
			trait = deceitful
		}
		modifier = {
			factor = 2
			trait = shy
		}
		modifier = {
			factor = 2
			trait = cruel
		}
		modifier = {
			factor = 2
			trait = paranoid
		}
	}
	
	immediate = {
		random_friend = {
			limit = {
				is_inaccessible_trigger = no
				war = no
				prisoner = no
				in_command_trigger = no
				any_friend = {
					war = no
					prisoner = no
					in_command_trigger = no
					same_realm = ROOT
					NOR = {
						num_of_friends = 5
						character = ROOT
						is_friend = ROOT
						is_rival = ROOT
						is_close_relative = ROOT
					}
					NOT = {
						is_lover = ROOT
					}
					NOT = {
						is_consort = ROOT
					}
				}
			}
			save_event_target_as = my_friend
			event_target:my_friend = {
				random_friend = {
					limit = {
						is_inaccessible_trigger = no
						prisoner = no
						war = no
						in_command = no
						NOT = {
							num_of_friends = 5
						}
						NOT = {
							character = ROOT
						}
						NOT = {
							is_close_relative = ROOT
						}
						NOT = {
							is_friend = ROOT
						}
						NOT = {
							is_rival = ROOT
						}
						NOT = {
							is_lover = ROOT
						}
						NOT = {
							is_consort = ROOT
						}
					}
					save_event_target_as = friends_friend
				}
			}
		}
		save_event_target_as = start_friend
	}
	
	option = {
		name = EVTOPTA100170
		ai_chance = {
			factor = 5
			
			modifier = {
				factor = 20
				NOT = { num_of_friends = 5 }
			}
			modifier = {
				factor = 2
				num_of_friends = 5
			}
		}
		event_target:friends_friend = {
			character_event = {
				id = 100172
				days = 7
				tooltip = EVTTOOLTIP100172
			}
		}
	}

	option = {
		name = EVTOPTB100170
		ai_chance = {
			factor = 5
			
			modifier = {
				factor = 20
				num_of_friends = 5
			}
			modifier = {
				factor = 2
				NOT = { num_of_friends = 5 }
			}
		}
		if = {
			limit = {
				trait = gregarious
			}
			remove_trait = gregarious
		}
		if = {
			limit = {
				NOT = {
					num_of_traits = 5
				}
				NOT = {
					trait = content
				}
			}
			add_trait = content
		}
		event_target:friends_friend = {
			set_character_flag = nofriends_friend
			hidden_tooltip = {
				character_event = {
					id = 100173
					days = 7
					random = 7
				}
			}
			tooltip = {
				opinion = {
					who = ROOT
					modifier = opinion_irritated
					years = 5
				}
			}
		}
		event_target:my_friend = {
			hidden_tooltip = {
				character_event = {
					id = 100171
					days = 7
					random = 7
				}
			}
			tooltip = {
				opinion = {
					who = ROOT
					modifier = opinion_irritated
					years = 5
				}
			}
		}
	}
}

#FROM likes/doesn't like my friend
character_event = {
	id = 100171
	desc = {
		text = EVTDESC100171
		trigger = {
			NOR = {
				event_target:friends_friend = {
					has_character_flag = nofriends_friend
				}
				event_target:start_friend = {
					has_character_flag = nofriends_friend
				}
			}
		}
	}
	desc = {
		text = EVTDESCB100171
		trigger = {
			OR = {
				event_target:friends_friend = {
					has_character_flag = nofriends_friend
				}
				event_target:start_friend = {
					has_character_flag = nofriends_friend
				}
			}
		}
	}
	picture = GFX_evt_courtiers_talking
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA100171
		trigger = {
			OR = {
				event_target:friends_friend = {
					has_character_flag = nofriends_friend
				}
				event_target:start_friend = {
					has_character_flag = nofriends_friend
				}
			}
		}
		event_target:friends_friend = {
			clr_character_flag = nofriends_friend
		}
		event_target:start_friend = {
			clr_character_flag = nofriends_friend
		}
		if = {
			limit = {
				event_target:start_friend = { has_character_flag = nofriends_friend_rival }
			}
			clr_character_flag = nofriends_friend_rival
			tooltip = {
				event_target:start_friend = { add_rival = event_target:friends_friend }
			}
			opinion = {
				who = FROM
				modifier = opinion_dislike
				years = 5
			}
			break = yes
		}
		opinion = {
			who = FROM
			modifier = opinion_irritated
			years = 5
		}
	}
	option = {
		name = EVTOPTB100171
		trigger = {
			NOT = {
				any_friend = {
					has_character_flag = nofriends_friend
				}
			}
		}
		prestige = 5
	}
}

#ROOT likes me!
character_event = {
	id = 100172
	desc = EVTDESC100172
	picture = GFX_evt_courtiers_talking
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA100172 #I wouldn't mind talking to him some more
		set_character_flag = has_new_friend
		add_friend = FROM
		FROM = {
			character_event = {	
				id = 100174
				days = 2
				tooltip = EVTTOOLTIPA100174
			}
			event_target:my_friend = {
				character_event = {
					id = 100171
					tooltip = EVTTOOLTIPA100171
				}
			}
		}
	}
	option = {
		name = EVTOPTB100172 #I don't like his opinions, nor do I like him
		set_character_flag = has_new_rival
		add_rival = FROM
		FROM = {
			set_character_flag = nofriends_friend_rival
			set_character_flag = nofriends_friend
			character_event = {	
				id = 100175
				days = 2
				tooltip = EVTTOOLTIP100175
			}
		}
		event_target:my_friend = {
			tooltip = {
				opinion = {
					who = ROOT
					modifier = opinion_dislike
					years = 5
				}
			}
			hidden_tooltip = {
				character_event = {
					id = 100171
				}
			}
		}
	}
	option = {
		name = EVTOPTC100172 #A nice man, but I wouldn't want him as a friend
		set_character_flag = rejected_friend
		set_character_flag = nofriends_friend
		FROM = {
			character_event = {	
				id = 100174
				days = 2
				tooltip = EVTTOOLTIPB100174
			}
			tooltip = {
				opinion = {
					who = ROOT
					modifier = opinion_rejected_friend
					years = 5
				}
			}
		}
		event_target:my_friend = {
			tooltip = {
				opinion = {
					who = ROOT
					modifier = opinion_irritated
					years = 5
				}
			}
			hidden_tooltip = {
				character_event = {
					id = 100171
				}
			}
		}		
	}
}

#FROM doesn't want to be my friend
character_event = {
	id = 100173
	desc = EVTDESC100173
	picture = GFX_evt_courtiers_talking
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA100173
		opinion = {
			modifier = opinion_irritated
			who = FROM
			years = 5
		}
	}
}

#ROOT gets a new friend
character_event = {
	id = 100174
	desc = {
		text = EVTDESC100174
		trigger = {
			NOT = {
				has_character_flag = rejected_friend
			}
		}
	}
	desc = {
		text = EVTDESCB100174
		trigger = {
			has_character_flag = rejected_friend
		}
	}
	picture = GFX_evt_courtiers_talking
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA100174
		trigger = {
			NOT = {
				has_character_flag = rejected_friend
			}
		}
		add_friend = FROM
	}
	option = {
		name = EVTOPTB100174
		trigger = {
			has_character_flag = rejected_friend
		}
		clr_character_flag = rejected_friend
		opinion = {
			modifier = opinion_rejected_friend
			who = FROM
			years = 5
		}
	}
}

#ROOT doesn't get a new friend
character_event = {
	id = 100175
	desc = EVTDESC100175
	picture = GFX_evt_courtiers_talking
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA100175
		add_rival = FROM
	}
}

### My friend is a heretic/infidel! ###
character_event = {
	id = 100180
	desc = EVTDESC100180
	picture = GFX_evt_heretic
	
	min_age = 16
	prisoner = no
	capable_only = yes
	war = no
	friends = yes
	
	trigger = {
		is_inaccessible_trigger = no
		is_heretic = no
		in_command_trigger = no
		scaled_wealth = 0.5
		OR = {
			religion_group = christian
			religion_group = muslim
			religion_group = jewish_group
			religion_group = zoroastrian_group
		}
		NOT = {
			has_character_modifier = heretic_friend_timer
		}
		any_friend = {
			is_inaccessible_trigger = no
			war = no
			in_command_trigger = no
			prisoner = no
			NOT = { trait = incapable }
			religion_group = ROOT
			is_heresy_of = ROOT
		}
	}
	
	mean_time_to_happen = {
		months = 80
		
		modifier = {
			factor = 0.5
			trait = zealous
		}
		modifier = {
			factor = 0.5
			trait = gregarious
		}
		modifier = {
			factor = 0.5
			trait = kind
		}
		modifier = {
			factor = 0.5
			trait = trusting
		}
		
		modifier = {
			factor = 2
			trait = cynical
		}
		modifier = {
			factor = 2
			trait = shy
		}
		modifier = {
			factor = 2
			trait = cruel
		}
		modifier = {
			factor = 2
			trait = paranoid
		}
	}
	
	immediate = {
		add_character_modifier = {
			name = heretic_friend_timer
			duration = 1095
			hidden = yes
		}
	}
	
	option = {
		name = EVTOPTA100180
		random_friend = {
			limit = {
				is_inaccessible_trigger = no
				war = no
				in_command_trigger = no
				prisoner = no
				NOT = { trait = incapable }
				religion_group = ROOT
				is_heresy_of = ROOT
			}
			character_event = {
				id = 100181
				days = 7
				random = 14
				tooltip = EVTTOOLTIP100181
			}
		}
	}
	option = {
		name = EVTOPTB100180
		piety = -10
		random_friend = {
			limit = {
				is_inaccessible_trigger = no
				war = no
				in_command_trigger = no
				prisoner = no
				NOT = { trait = incapable }
				religion_group = ROOT
				is_heresy_of = ROOT
			}
			character_event = {
				id = 100182
				days = 7
				random = 14
				tooltip = EVTTOOLTIP100182
			}
		}
	}
	option = {
		name = EVTOPTC100180
		random_friend = {
			limit = {
				is_inaccessible_trigger = no
				war = no
				in_command_trigger = no
				prisoner = no
				NOT = { trait = incapable }
				religion_group = ROOT
				is_heresy_of = ROOT
			}
			opinion = {
				modifier = opinion_glad
				who = ROOT
				years = 5
			}
			character_event = {
				id = 100183
				days = 7
				random = 14
				tooltip = EVTTOOLTIP100183
			}
		}
	}
	option = {
		name = EVTOPTD100180
		tooltip_info = zealous
		trigger = {
			trait = zealous
		}
		random_friend = {
			limit = {
				is_inaccessible_trigger = no
				war = no
				in_command_trigger = no
				prisoner = no
				NOT = { trait = incapable }
				religion_group = ROOT
				is_heresy_of = ROOT
			}
			remove_friend = ROOT
			character_event = {
				id = 100184
				days = 7
				random = 14
				tooltip = EVTTOOLTIP100184
			}
		}				
	}
	option = {
		name = EVTOPTE100180
		tooltip_info = cynical
		trigger = {
			trait = cynical
		}
		random_friend = {
			limit = {
				is_inaccessible_trigger = no
				war = no
				in_command_trigger = no
				prisoner = no
				NOT = { trait = incapable }
				religion_group = ROOT
				is_heresy_of = ROOT
			}
			random = {
				chance = 50
				ROOT = {
					religion = PREV
				}
				remove_trait = cynical
			}
		}
	}
}

#ROOT tries to convert friend
character_event = {
	id = 100181
	desc = EVTDESC100181
	picture = GFX_evt_heretic
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA100181
		remove_friend = FROM
		FROM = {
			character_event = {
				id = 100185
				days = 7
				random = 7
				tooltip = EVTTOOLTIP100185
			}
		}
	}
	option = {
		name = EVTOPTB100181
		religion = FROM
		FROM = {
			character_event = {
				id = 100186
				days = 7
				random = 7
				tooltip = EVTTOOLTIP100186
			}
		}
	}
	option = {
		name = EVTOPTC100181
		FROM = {
			set_character_flag = friend_religion
			opinion = {
				modifier = opinion_wrong_religion
				who = ROOT
				years = 2
			}
			hidden_tooltip = {
				character_event = {
					id = 100186
					days = 7
					random = 7
					tooltip = EVTTOOLTIP100186
				}
			}
		}
	}
}

#ROOT accepts friend's religion
character_event = {
	id = 100182
	desc = EVTDESC100182
	picture = GFX_evt_heretic
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA100182
		opinion = {
			modifier = opinion_accepted_religion
			who = FROM
			years = 5
		}
	}
}

#ROOT becomes interested in friend's religion
character_event = {
	id = 100183
	desc = EVTDESC100183
	picture = GFX_evt_heretic
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA100183
		trigger = {
			NOT = {
				FROM = {
					religion = ROOT
				}
			}
		}
		opinion = {
			modifier = opinion_accepted_religion
			who = FROM
			years = 5
		}
	}
	option = {
		name = EVTOPTB100183
		trigger = {
			FROM = {
				religion = ROOT
			}
		}
		opinion = {
			modifier = opinion_accepted_religion
			who = FROM
			years = 5
		}
	}
}

#ROOT condemns friend's religion and stops being friend with him/her
character_event = {
	id = 100184
	desc = EVTDESC100184
	picture = GFX_evt_heretic
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA100184
		remove_friend = FROM
	}
}

#ROOT
character_event = {
	id = 100185
	desc = EVTDESC100185
	picture = GFX_evt_heretic
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA100185
		remove_friend = FROM
	}
}

#ROOT
character_event = {
	id = 100186
	desc = EVTDESC100186
	picture = GFX_evt_heretic
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA100186
		trigger = {
			NOT = {
				has_character_flag = friend_religion
			}
		}
		opinion = {
			modifier = opinion_happy_convertion
			who = FROM
			years = 2
		}
	}
	option = {
		name = EVTOPTB100186
		trigger = {
			has_character_flag = friend_religion
		}
		clr_character_flag = friend_religion
		tooltip = {
			opinion = {
				modifier = opinion_wrong_religion
				who = FROM
				years = 2
			}
		}
	}
}

### My friend is a much better diplomat than me, ask for help? ###
character_event = {
	id = 100190
	desc = EVTDESC100190
	picture = GFX_evt_courtiers_talking
	
	prisoner = no
	min_age = 16
	capable_only = yes
	war = no
	friends = yes
	
	trigger = {
		war = no
		in_command_trigger = no
		num_of_friends = 1
		NOT = {
			has_job_title = job_chancellor
		}
		diplomacy = 5
		NOT = {
			diplomacy = 10
		}
		is_inaccessible_trigger = no
		NOT = {
			has_character_modifier = friend_diplomacy_timer
		}
		any_friend = {
			is_adult = yes
			war = no
			in_command_trigger = no
			prisoner = no
			diplomacy = 11
			NOT = {
				has_job_title = job_chancellor
			}
			is_inaccessible_trigger = no
		}		
	}
	
	mean_time_to_happen = {
		months = 80
		
		modifier = {
			factor = 0.5
			trait = honest
		}
		modifier = {
			factor = 0.5
			trait = gregarious
		}
		modifier = {
			factor = 0.5
			trait = kind
		}
		modifier = {
			factor = 0.5
			trait = trusting
		}
		
		modifier = {
			factor = 2
			trait = deceitful
		}
		modifier = {
			factor = 2
			trait = shy
		}
		modifier = {
			factor = 2
			trait = cruel
		}
		modifier = {
			factor = 2
			trait = paranoid
		}
	}
	
	immediate = {
		hidden_tooltip = {
			add_character_modifier = {
				name = friend_diplomacy_timer
				duration = 1825
				hidden = yes
			}
		}
	}
	
	option = {
		name = EVTOPTA100190
		random_friend = {
			limit = {
				is_adult = yes
				war = no
				in_command_trigger = no
				prisoner = no
				diplomacy = 11
				NOT = {
					has_job_title = job_chancellor
				}
				is_inaccessible_trigger = no
			}
			character_event = {
				id = 100191
				days = 15
				random = 15
				tooltip = EVTTOOLTIP100191
			}
		}
	}
	option = {
		name = EVTOPTB100190
		if = {
			limit = {
				NOT = {
					num_of_traits = 5
				}
				NOT = {
					trait = ambitious
				}
			}
			add_trait = ambitious
		}
		if = {
			limit = {
				NOR = {
					trait = stressed
					trait = depressed
				}
			}
			random = {
				chance = 15
				add_trait = stressed
				hidden_tooltip = {
					character_event = {
						id = 38282 #Notify Stressed
					}
				}
			}
		}
	}
}

#Friend is asked by ROOT for help
character_event = {
	id = 100191
	desc = EVTDESC100191
	picture = GFX_evt_courtiers_talking
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA100191
		FROM = {
			opinion = {
				modifier = opinion_very_grateful
				who = ROOT
				years = 5
			}
			character_event = {
				id = 100192
				days = 7
				random = 7
				tooltip = EVTTOOLTIP100192
			}
		}
	}
	option = {
		name = EVTOPTB100191
		FROM = {
			opinion = {
				modifier = opinion_disappointed
				who = ROOT
				years = 5
			}
			character_event = {
				id = 100193
				days = 7
				random = 7
				tooltip = EVTTOOLTIP100193
			}
		}
	}
	option = {
		name = EVTOPTC100191
		FROM = {
			opinion = {
				modifier = opinion_grateful
				who = ROOT
				years = 5
			}
			character_event = {
				id = 100194
				days = 7
				random = 7
				tooltip = EVTTOOLTIP100194
			}
		}
	}
}

#ROOT gets help from friend
character_event = {
	id = 100192
	desc = EVTDESC100192
	picture = GFX_evt_courtiers_talking
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA100192
		tooltip = {
			opinion = {
				modifier = opinion_very_grateful
				who = ROOT
				years = 5
			}
		}
		change_diplomacy = 1
	}
}

#ROOT did not get help from friend
character_event = {
	id = 100193
	desc = EVTDESC100193
	picture = GFX_evt_courtiers_talking
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA100193
		prestige = -15
		random = {
			chance = 15
			add_trait = depressed
			hidden_tooltip = {
				character_event = {
					id = 38288 #Notify Depressed
				}
			}
		}
		tooltip = {
			opinion = {
				modifier = opinion_disappointed
				who = FROM
				years = 5
			}
		}
	}
}

#ROOT only gets help from friend if friend is paid
character_event = {
	id = 100194
	desc = EVTDESC100194
	picture = GFX_evt_courtiers_talking
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA100194
		ai_chance = {
			factor = 10
			
			modifier = {
				factor = 0.01
				scaled_wealth = 0.5
			}
			modifier = {
				factor = 10
				NOT = {
					scaled_wealth = 0.5
				}
			}
		}
		opinion = {
			modifier = opinion_disappointed
			who = FROM
			years = 5
		}
		FROM = {
			character_event = {
				id = 100195
				days = 7
				random = 7
				tooltip = EVTTOOLTIPA100195
			}
		}
	}
	option = {
		name = EVTOPTB100194
		ai_chance = {
			factor = 10
			
			modifier = {
				factor = 10
				scaled_wealth = 0.5
			}
			modifier = {
				factor = 0.01
				NOT = {
					scaled_wealth = 0.5
				}
			}
		}		
		tooltip = {
			transfer_scaled_wealth = {
				to = FROM
				value = 0.25
			}
		}
		FROM = {
			set_character_flag = paid_diplomacy
			character_event = {
				id = 100195
				days = 7
				random = 7
				tooltip = EVTTOOLTIPB100195
			}
		}
	}
}

#Friend is/n't paid by ROOT
character_event = {
	id = 100195
	desc = EVTDESC100195
	picture = GFX_evt_courtiers_talking
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA100195
		trigger = {
			NOT = {
				has_character_flag = paid_diplomacy
			}
		}
		tooltip = {
			reverse_opinion = {
				modifier = opinion_disappointed
				who = FROM
				years = 5
			}
		}
	}
	option = {
		name = EVTOPTB100195
		trigger = {
			has_character_flag = paid_diplomacy
		}
		clr_character_flag = paid_diplomacy
		FROM = {
			transfer_scaled_wealth = {
				to = ROOT
				value = 0.25
			}
		}
	}
}

### My friend has much better martial stats than me, ask for help? ###
character_event = {
	id = 100200
	desc = EVTDESC100200
	picture = GFX_evt_courtiers_talking
	
	only_men = yes
	prisoner = no
	min_age = 16
	capable_only = yes
	war = no
	friends = yes
	
	trigger = {
		is_inaccessible_trigger = no
		in_command_trigger = no
		martial = 5
		NOT = {
			martial = 10
		}
		NOT = {
			has_job_title = job_marshal
		}
		NOT = {
			has_character_modifier = friend_martial_timer
		}
		NOT = {
			trait = brilliant_strategist
		}
		any_friend = {
			is_adult = yes
			is_inaccessible_trigger = no
			war = no
			in_command_trigger = no
			is_female = no
			prisoner = no
			is_incapable = no
			OR = {
				trait = duelist
				martial = 11
			}
			NOT = {
				has_job_title = job_marshal
			}
			NOT = {
				trait = misguided_warrior
			}
		}		
	}
	
	mean_time_to_happen = {
		months = 80
		
		modifier = {
			factor = 2
			trait = paranoid
		}
		modifier = {
			factor = 0.5
			trait = trusting
		}
		modifier = {
			factor = 0.5
			trait = misguided_warrior
		}
		modifier = {
			factor = 2
			trait = tough_soldier
		}
		modifier = {
			factor = 100
			trait = skilled_tactician
		}
	}
	
	immediate = {
		hidden_tooltip = {
			add_character_modifier = {
				name = friend_martial_timer
				duration = 1825
				hidden = yes
			}
		}
	}
	
	option = {
		name = EVTOPTA100200
		random_friend = {
			limit = {
				is_adult = yes
				war = no
				in_command_trigger = no
				prisoner = no
				is_female = no
				is_incapable = no
				OR = {
					trait = duelist
					martial = 11
				}
				NOT = {
					trait = misguided_warrior
				}
				NOT = {
					has_job_title = job_marshal
				}
				is_inaccessible_trigger = no
			}
			character_event = {
				id = 100201
				days = 15
				random = 15
				tooltip = EVTTOOLTIP100201
			}
		}
	}
	option = {
		name = EVTOPTB100200
		if = {
			limit = {
				NOT = {
					num_of_traits = 5
				}
				trait = diligent
				NOT = {
					trait = ambitious
				}
			}
			add_trait = ambitious
		}
		if = {
			limit = {
				NOT = {
					num_of_traits = 5
				}
				trait = ambitious
				NOT = {
					trait = diligent
				}
			}
			add_trait = diligent
		}
		if = {
			limit = {
				trait = diligent
				trait = ambitious
			}
			prestige = 10
		}
	}
}

#Friend is asked by ROOT for help
character_event = {
	id = 100201
	desc = EVTDESC100201
	picture = GFX_evt_courtiers_talking
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA100201
		FROM = {
			opinion = {
				modifier = opinion_very_grateful
				who = ROOT
				years = 5
			}
			character_event = {
				id = 100202
				days = 7
				random = 7
				tooltip = EVTTOOLTIP100202
			}
		}
	}
	option = {
		name = EVTOPTB100201
		FROM = {
			opinion = {
				modifier = opinion_disappointed
				who = ROOT
				years = 5
			}
			character_event = {
				id = 100203
				days = 7
				random = 7
				tooltip = EVTTOOLTIP100203
			}
		}
	}
	option = {
		name = EVTOPTC100201
		FROM = {
			character_event = {
				id = 100204
				days = 7
				random = 7
				tooltip = EVTTOOLTIP100204
			}
		}
	}
}

#ROOT gets help from friend
character_event = {
	id = 100202
	desc = EVTDESC100202
	picture = GFX_evt_courtiers_talking
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA100202
		tooltip = {
			opinion = {
				modifier = opinion_very_grateful
				who = ROOT
				years = 5
			}
		}
		change_martial = 1
	}
}

#ROOT did not get help from friend
character_event = {
	id = 100203
	desc = EVTDESC100203
	picture = GFX_evt_courtiers_talking
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA100203
		tooltip = {
			opinion = {
				modifier = opinion_very_disappointed
				who = ROOT
				years = 5
			}
		}
	}
}

#ROOT only gets help from friend if friend is paid
character_event = {
	id = 100204
	desc = EVTDESC100204
	picture = GFX_evt_courtiers_talking
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA100204
		ai_chance = {
			factor = 10
			
			modifier = {
				factor = 0.01
				scaled_wealth = 0.5
			}
			modifier = {
				factor = 10
				NOT = {
					scaled_wealth = 0.5
				}
			}
		}
		opinion = {
			modifier = opinion_disappointed
			who = FROM
			years = 5
		}
		FROM = {
			character_event = {
				id = 100205
				days = 7
				random = 7
				tooltip = EVTTOOLTIPA100205
			}
		}
	}
	option = {
		name = EVTOPTB100204
		ai_chance = {
			factor = 10
			
			modifier = {
				factor = 10
				scaled_wealth = 0.5
			}
			modifier = {
				factor = 0.01
				NOT = {
					scaled_wealth = 0.5
				}
			}
		}
		change_martial = 1
		tooltip = {
			transfer_scaled_wealth = {
				to = FROM
				value = 0.25
			}
		}
		FROM = {
			set_character_flag = paid_martial
			character_event = {
				id = 100205
				days = 7
				random = 7
				tooltip = EVTTOOLTIPB100205
			}
		}
	}
}

#Friend is/n't paid by ROOT
character_event = {
	id = 100205
	desc = EVTDESC100205
	picture = GFX_evt_courtiers_talking
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA100205
		trigger = {
			NOT = {
				has_character_flag = paid_martial
			}
		}
		tooltip = {
			reverse_opinion = {
				modifier = opinion_disappointed
				who = FROM
				years = 5
			}
		}
	}
	option = {
		name = EVTOPTB100205
		trigger = {
			has_character_flag = paid_martial
		}
		clr_character_flag = paid_martial
		FROM = {
			transfer_scaled_wealth = {
				to = ROOT
				value = 0.25
			}
			tooltip = {
				character_event = {
					id = 100205
					tooltip = EVTTOOLTIPC100205
				}
			}
		}
	}
}

### My friend has much better stewardship stats than me, ask for help? ###
character_event = {
	id = 100210
	desc = EVTDESC100210
	picture = GFX_evt_courtiers_talking
	
	prisoner = no
	min_age = 16
	capable_only = yes
	friends = yes
	war = no
	
	trigger = {
		is_inaccessible_trigger = no
		in_command_trigger = no
		stewardship = 5
		is_abroad_trigger = no
		NOT = {
			stewardship = 10
		}
		OR = {
			is_ruler = yes
			is_councillor = yes
		}
		NOT = {
			has_character_modifier = friend_stewardship_timer
		}
		location = {
			NOT = {
				has_province_modifier = friendly_innovations
			}
		}
		any_friend = {
			war = no
			in_command_trigger = no
			prisoner = no
			stewardship = 11
			OR = {
				is_ruler = yes
				is_councillor = yes
			}
			is_inaccessible_trigger = no
		}		
	}
	
	mean_time_to_happen = {
		months = 80
		
		modifier = {
			factor = 0.5
			trait = honest
		}
		modifier = {
			factor = 0.5
			trait = gregarious
		}
		modifier = {
			factor = 0.5
			trait = kind
		}
		modifier = {
			factor = 0.5
			trait = trusting
		}
		
		modifier = {
			factor = 2
			trait = deceitful
		}
		modifier = {
			factor = 2
			trait = shy
		}
		modifier = {
			factor = 2
			trait = cruel
		}
		modifier = {
			factor = 2
			trait = paranoid
		}
	}
	
	immediate = {
		hidden_tooltip = {
			add_character_modifier = {
				name = friend_stewardship_timer
				duration = 1825
				hidden = yes
			}
		}
	}
	
	option = {
		name = EVTOPTA100210
		random_friend = {
			limit = {
				war = no
				in_command_trigger = no
				prisoner = no
				stewardship = 11
				OR = {
					is_ruler = yes
					is_councillor = yes
				}
				is_inaccessible_trigger = no
			}
			character_event = {
				id = 100211
				days = 15
				random = 15
				tooltip = EVTTOOLTIP100211
			}
		}
	}
	option = {
		name = EVTOPTB100210
		if = {
			limit = {
				NOT = {
					num_of_traits = 5
				}
				NOT = {
					trait = ambitious
				}
			}
			add_trait = ambitious
		}
		if = {
			limit = {
				NOT = {
					num_of_traits = 5
				}
				NOT = {
					trait = diligent
				}
			}
			add_trait = diligent
		}
		if = {
			limit = {
				OR = {
					AND = {
						trait = diligent
						trait = ambitious
					}
					num_of_traits = 4
				}
			}
			prestige = 10
		}
	}
}

#Friend is asked by ROOT for help
character_event = {
	id = 100211
	desc = EVTDESC100211
	picture = GFX_evt_courtiers_talking
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA100211
		FROM = {
			opinion = {
				modifier = opinion_very_grateful
				who = ROOT
				years = 5
			}
			character_event = {
				id = 100212
				days = 7
				random = 7
				tooltip = EVTTOOLTIP100212
			}
		}
	}
	option = {
		name = EVTOPTB100211
		FROM = {
			opinion = {
				modifier = opinion_disappointed
				who = ROOT
				years = 5
			}
			character_event = {
				id = 100213
				days = 7
				random = 7
				tooltip = EVTTOOLTIP100213
			}
		}
	}
	option = {
		name = EVTOPTC100211
		FROM = {
			character_event = {
				id = 100214
				days = 7
				random = 7
				tooltip = EVTTOOLTIP100214
			}
		}
	}
}

#ROOT gets help from friend
character_event = {
	id = 100212
	desc = EVTDESC100212
	picture = GFX_evt_courtiers_talking
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA100212
		tooltip = {
			opinion = {
				modifier = opinion_very_grateful
				who = ROOT
				years = 5
			}
		}
		change_stewardship = 1
		location = {
			add_province_modifier = {
				name = friendly_innovations
				duration = 1460
			}
		}			
	}
}

#ROOT did not get help from friend
character_event = {
	id = 100213
	desc = EVTDESC100213
	picture = GFX_evt_courtiers_talking
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA100213
		tooltip = {
			opinion = {
				modifier = opinion_disappointed
				who = ROOT
				years = 5
			}
		}
	}
}

#ROOT only gets help from friend if friend is paid
character_event = {
	id = 100214
	desc = EVTDESC100214
	picture = GFX_evt_courtiers_talking
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA100214
		ai_chance = {
			factor = 10
			
			modifier = {
				factor = 0.01
				scaled_wealth = 0.5
			}
			modifier = {
				factor = 10
				NOT = {
					scaled_wealth = 0.5
				}
			}
		}
		opinion = {
			modifier = opinion_disappointed
			who = FROM
			years = 5
		}
		FROM = {
			character_event = {
				id = 100215
				days = 7
				random = 7
				tooltip = EVTTOOLTIPA100215
			}
		}
	}
	option = {
		name = EVTOPTB100214
		ai_chance = {
			factor = 10
			
			modifier = {
				factor = 10
				scaled_wealth = 0.5
			}
			modifier = {
				factor = 0.01
				NOT = {
					scaled_wealth = 0.5
				}
			}
		}		
		tooltip = {
			transfer_scaled_wealth = {
				to = FROM
				value = 0.25
			}
		}
		change_stewardship = 1
		location = {
			add_province_modifier = {
				name = friendly_innovations
				duration = 730
			}
		}
		FROM = {
			set_character_flag = paid_stewardship
			character_event = {
				id = 100215
				days = 7
				random = 7
				tooltip = EVTTOOLTIPB100215
			}
		}
	}
}

#Friend is/n't paid by ROOT
character_event = {
	id = 100215
	desc = EVTDESC100215
	picture = GFX_evt_courtiers_talking
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA100215
		trigger = {
			NOT = {
				has_character_flag = paid_stewardship
			}
		}
		tooltip = {
			reverse_opinion = {
				modifier = opinion_disappointed
				who = FROM
				years = 5
			}
		}
	}
	option = {
		name = EVTOPTB100215
		trigger = {
			has_character_flag = paid_stewardship
		}
		clr_character_flag = paid_stewardship
		FROM = {
			transfer_scaled_wealth = {
				to = ROOT
				value = 0.25
			}
		}
	}
}

### My friend has much better intrigue stats than me, ask for help? ###
character_event = {
	id = 100220
	desc = EVTDESC100220
	picture = GFX_evt_courtiers_talking
	
	prisoner = no
	min_age = 16
	capable_only = yes
	war = no
	friends = yes
	
	trigger = {
		is_inaccessible_trigger = no
		war = no
		in_command_trigger = no
		num_of_friends = 1
		intrigue = 5
		NOT = {
			intrigue = 10
		}
		NOT = {
			has_character_modifier = friend_intrigue_timer
		}
		any_friend = {
			war = no
			in_command_trigger = no
			prisoner = no
			intrigue = 11
			NOT = { has_job_title = job_spymaster }
			is_inaccessible_trigger = no
		}		
	}
	
	mean_time_to_happen = {
		months = 80
		
		modifier = {
			factor = 0.5
			trait = honest
		}
		modifier = {
			factor = 0.5
			trait = gregarious
		}
		modifier = {
			factor = 0.5
			trait = kind
		}
		modifier = {
			factor = 0.5
			trait = trusting
		}
		
		modifier = {
			factor = 2
			trait = deceitful
		}
		modifier = {
			factor = 2
			trait = shy
		}
		modifier = {
			factor = 2
			trait = cruel
		}
		modifier = {
			factor = 2
			trait = paranoid
		}
	}
	
	immediate = {
		hidden_tooltip = {
			add_character_modifier = {
				name = friend_intrigue_timer
				duration = 1825
				hidden = yes
			}
		}
	}
	
	option = {
		name = EVTOPTA100220
		random_friend = {
			limit = {
				war = no
				in_command_trigger = no
				prisoner = no
				intrigue = 11
				NOT = { has_job_title = job_spymaster }
				is_inaccessible_trigger = no
			}
			character_event = {
				id = 100221
				days = 15
				random = 15
				tooltip = EVTTOOLTIP100221
			}
		}
	}
	option = {
		name = EVTOPTB100220
		if = {
			limit = {
				trait = paranoid
			}
			remove_trait = paranoid
		}
		if = {
			limit = {
				trait = temperate
			}
			remove_trait = temperate
		}
		if = {
			limit = {
				NOT = {
					trait = temperate
				}
				NOT = {
					trait = paranoid
				}
			}
			prestige = 10
		}
		random = {
			chance = 10
			if = {
				limit = {
					NOT = {
						has_dlc = "Reapers"
					}
				}
				add_trait = ill
			}
			if = {
				limit = {
					has_dlc = "Reapers"
				}
				add_symptom_effect = yes
			}
			hidden_tooltip = {
				character_event = {
					id = 38290
				}
			}
		}
	}
}

#Friend is asked by ROOT for help
character_event = {
	id = 100221
	desc = EVTDESC100221
	picture = GFX_evt_courtiers_talking
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA100221
		FROM = {
			opinion = {
				modifier = opinion_very_grateful
				who = ROOT
				years = 5
			}
			character_event = {
				id = 100222
				days = 7
				random = 7
				tooltip = EVTTOOLTIP100222
			}
		}
	}
	option = {
		name = EVTOPTB100221
		random = {
			chance = 10
			if = {
				limit = {
					NOT = {
						has_dlc = "Reapers"
					}
				}
				add_trait = ill
			}
			if = {
				limit = {
					has_dlc = "Reapers"
				}
				add_symptom_effect = yes
			}
			hidden_tooltip = {
				character_event = {
					id = 38290
				}
			}
		}
		FROM = {
			opinion = {
				modifier = opinion_disappointed
				who = ROOT
				years = 5
			}
			character_event = {
				id = 100223
				days = 7
				random = 7
				tooltip = EVTTOOLTIP100223
			}
		}
	}
	option = {
		name = EVTOPTC100221
		ai_chance = {
			factor = 10
			
			modifier = {
				factor = 10
				trait = greedy
			}
			modifier = {
				factor = 0.1
				trait = charitable
			}
		}
		FROM = {
			opinion = {
				modifier = opinion_grateful
				who = ROOT
				years = 5
			}
			character_event = {
				id = 100224
				days = 7
				random = 7
				tooltip = EVTTOOLTIP100224
			}
		}
	}
}

#ROOT gets help from friend
character_event = {
	id = 100222
	desc = EVTDESC100222
	picture = GFX_evt_courtiers_talking
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA100222
		tooltip = {
			opinion = {
				modifier = opinion_very_grateful
				who = ROOT
				years = 5
			}
		}
		change_intrigue = 1
	}
}

#ROOT did not get help from friend
character_event = {
	id = 100223
	desc = EVTDESC100223
	picture = GFX_evt_courtiers_talking
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA100223
		tooltip = {
			opinion = {
				modifier = opinion_disappointed
				who = ROOT
				years = 5
			}
		}
		if = {
			limit = {
				NOT = {
					trait = paranoid
				}
			}
			add_trait = paranoid
		}
	}
}

#ROOT only gets help from friend if friend is paid
character_event = {
	id = 100224
	desc = EVTDESC100224
	picture = GFX_evt_courtiers_talking
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA100224
		ai_chance = {
			factor = 10
			
			modifier = {
				factor = 0.01
				scaled_wealth = 0.5
			}
			modifier = {
				factor = 10
				NOT = {
					scaled_wealth = 0.5
				}
			}
		}
		opinion = {
			modifier = opinion_disappointed
			who = FROM
			years = 5
		}
		FROM = {
			character_event = {
				id = 100225
				days = 7
				random = 7
				tooltip = EVTTOOLTIPA100225
			}
		}
	}
	option = {
		name = EVTOPTB100224
		ai_chance = {
			factor = 10
			
			modifier = {
				factor = 10
				scaled_wealth = 0.5
			}
			modifier = {
				factor = 0.01
				NOT = {
					scaled_wealth = 0.5
				}
			}
		}		
		tooltip = {
			transfer_scaled_wealth = {
				to = FROM
				value = 0.25
			}
		}
		FROM = {
			set_character_flag = paid_intrigue
			character_event = {
				id = 100225
				days = 7
				random = 7
				tooltip = EVTTOOLTIPB100225
			}
		}
	}
}

#Friend is/n't paid by ROOT
character_event = {
	id = 100225
	desc = EVTDESC100225
	picture = GFX_evt_courtiers_talking
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA100225
		trigger = {
			NOT = {
				has_character_flag = paid_intrigue
			}
		}
		tooltip = {
			reverse_opinion = {
				modifier = opinion_disappointed
				who = FROM
				years = 5
			}
		}
	}
	option = {
		name = EVTOPTB100225
		trigger = {
			has_character_flag = paid_intrigue
		}
		clr_character_flag = paid_intrigue
		FROM = {
			transfer_scaled_wealth = {
				to = ROOT
				value = 0.25
			}
			character_event = {
				id = 100226
				days = 7
				random = 7
				tooltip = EVTTOOLTIP100226
			}
		}
	}
}

#ROOT gets help from friend
character_event = {
	id = 100226
	desc = EVTDESC100226
	picture = GFX_evt_courtiers_talking
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA100226
		tooltip = {
			opinion = {
				modifier = opinion_very_grateful
				who = ROOT
				years = 5
			}
		}
		change_intrigue = 1
	}
}

### My friend has much better learning stats than me, ask for help? ###
character_event = {
	id = 100230
	desc = EVTDESC100230
	picture = GFX_evt_courtiers_talking
	border = GFX_event_normal_frame_religion
	
	prisoner = no
	min_age = 16
	capable_only = yes
	war = no
	friends = yes
	
	trigger = {
		in_command_trigger = no
		learning = 5
		NOT = {
			religion_group = muslim
		}
		NOT = {
			learning = 10
		}
		NOT = {
			has_character_modifier = friend_learning_timer
		}
		NOT = {
			has_character_modifier = pious_priests
		}
		is_inaccessible_trigger = no
		any_friend = {
			war = no
			in_command_trigger = no
			prisoner = no
			learning = 11
			NOT = {
				religion_group = muslim
			}
			OR = {
				piety = 100
				trait = zealous
			}
			religion = ROOT
			is_heretic = no
			is_inaccessible_trigger = no
		}		
	}
	
	mean_time_to_happen = {
		months = 80
		
		modifier = {
			factor = 0.5
			trait = honest
		}
		modifier = {
			factor = 0.5
			trait = gregarious
		}
		modifier = {
			factor = 0.5
			trait = kind
		}
		modifier = {
			factor = 0.5
			trait = trusting
		}
		
		modifier = {
			factor = 2
			trait = deceitful
		}
		modifier = {
			factor = 2
			trait = shy
		}
		modifier = {
			factor = 2
			trait = cruel
		}
		modifier = {
			factor = 2
			trait = paranoid
		}
	}
	
	immediate = {
		hidden_tooltip = {
			add_character_modifier = {
				name = friend_learning_timer
				duration = 1825
				hidden = yes
			}
		}
	}
	
	option = {
		name = EVTOPTA100230
		random_friend = {
			limit = {
				war = no
				in_command_trigger = no
				prisoner = no
				learning = 11
				NOT = {
					religion_group = muslim
				}
				is_inaccessible_trigger = no
			}
			character_event = {
				id = 100231
				days = 15
				random = 15
				tooltip = EVTTOOLTIP100231
			}
		}
	}
	option = {
		name = EVTOPTB100230
		piety = 10
	}
}

#Friend is asked by ROOT for help
character_event = {
	id = 100231
	desc = EVTDESC100231
	picture = GFX_evt_courtiers_talking
	border = GFX_event_normal_frame_religion
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA100231
		FROM = {
			opinion = {
				modifier = opinion_very_grateful
				who = ROOT
				years = 5
			}
			character_event = {
				id = 100232
				days = 7
				random = 7
				tooltip = EVTTOOLTIP100232
			}
		}
	}
	option = {
		name = EVTOPTB100231
		FROM = {
			opinion = {
				modifier = opinion_disappointed
				who = ROOT
				years = 5
			}
			character_event = {
				id = 100233
				days = 7
				random = 7
				tooltip = EVTTOOLTIP100233
			}
		}
	}
	option = {
		name = EVTOPTC100231
		FROM = {
			opinion = {
				modifier = opinion_grateful
				who = ROOT
				years = 5
			}
			character_event = {
				id = 100234
				days = 7
				random = 7
				tooltip = EVTTOOLTIP100234
			}
		}
	}
}

#ROOT gets help from friend
character_event = {
	id = 100232
	desc = EVTDESC100232
	picture = GFX_evt_courtiers_talking
	border = GFX_event_normal_frame_religion
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA100232
		trigger = {
			NOT = {
				has_character_flag = paid_advice
			}
		}
		tooltip = {
			opinion = {
				modifier = opinion_very_grateful
				who = ROOT
				years = 5
			}
		}
		change_learning = 1
		add_character_modifier = {
			name = pious_priests
			duration = 1095
		}
	}
	option = {
		name = EVTOPTB100232
		trigger = {
			has_character_flag = paid_advice
		}
		clr_character_flag = paid_advice
		tooltip = {
			opinion = {
				modifier = opinion_grateful
				who = ROOT
				years = 5
			}
		}
		change_learning = 1
		add_character_modifier = {
			name = pious_priests
			duration = 1095
		}
	}
}

#ROOT did not get help from friend
character_event = {
	id = 100233
	desc = EVTDESC100233
	picture = GFX_evt_courtiers_talking
	border = GFX_event_normal_frame_religion
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA100233
		tooltip = {
			opinion = {
				modifier = opinion_disappointed
				who = ROOT
				years = 5
			}
		}
		if = {
			limit = {
				NOR = {
					trait = stressed
					trait = depressed
				}
			}
			add_trait = stressed
		}
	}
}

#ROOT only gets help from friend if friend is paid
character_event = {
	id = 100234
	desc = EVTDESC100234
	picture = GFX_evt_courtiers_talking
	border = GFX_event_normal_frame_religion
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA100234
		ai_chance = {
			factor = 10
			
			modifier = {
				factor = 0.01
				scaled_wealth = 0.5
			}
			modifier = {
				factor = 10
				NOT = {
					scaled_wealth = 0.5
				}
			}
		}
		opinion = {
			modifier = opinion_disappointed
			who = FROM
			years = 5
		}
		FROM = {
			character_event = {
				id = 100235
				days = 7
				random = 7
				tooltip = EVTTOOLTIPA100235
			}
		}
	}
	option = {
		name = EVTOPTB100234
		ai_chance = {
			factor = 10
			
			modifier = {
				factor = 10
				scaled_wealth = 0.5
			}
			modifier = {
				factor = 0.01
				NOT = {
					scaled_wealth = 0.5
				}
			}
		}		
		tooltip = {
			transfer_scaled_wealth = {
				to = FROM
				value = 0.25
			}
		}
		FROM = {
			set_character_flag = paid_learning
			character_event = {
				id = 100235
				days = 7
				random = 7
				tooltip = EVTTOOLTIPB100235
			}
		}
	}
}

#Friend is/n't paid by ROOT
character_event = {
	id = 100235
	desc = EVTDESC100235
	picture = GFX_evt_courtiers_talking
	border = GFX_event_normal_frame_religion
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA100235
		trigger = {
			NOT = {
				has_character_flag = paid_learning
			}
		}
		tooltip = {
			reverse_opinion = {
				modifier = opinion_disappointed
				who = FROM
				years = 5
			}
		}
	}
	option = {
		name = EVTOPTB100235
		trigger = {
			has_character_flag = paid_learning
		}
		clr_character_flag = paid_learning
		FROM = {
			transfer_scaled_wealth = {
				to = ROOT
				value = 0.25
			}
			set_character_flag = paid_advice
			character_event = {
				id = 100232
				days = 7
				random = 7
				tooltip = EVTTOOLTIP100232
			}
		}
	}
}

### My friend is celibate ###
character_event = {
	id = 100240
	desc = EVTDESC100240
	picture = GFX_evt_courtiers_talking
	
	min_age = 23
	capable_only = yes
	prisoner = no
	war = no
	friends = yes
	
	trigger = {
		in_command_trigger = no
		num_of_children = 2
		NOT = { has_character_modifier = in_seclusion }
		NOR = {
			religion_group = muslim
			lifestyle_traits = 1
			has_character_flag = LE_ST
		}
		is_inaccessible_trigger = no
		any_friend = {
			war = no
			in_command_trigger = no
			prisoner = no
			trait = celibate
			same_sex = ROOT
			is_inaccessible_trigger = no
		}
	}
	
	mean_time_to_happen = {
		months = 200
		
		modifier = {
			factor = 0.5
			trait = ambitious
		}
		modifier = {
			factor = 0.5
			trait = chaste
		}
		
		modifier = {
			factor = 2
			trait = slothful
		}
		modifier = {
			factor = 2
			trait = lustful
		}
	}

	immediate = {
		set_character_flag = LE_ST
		random_friend = {
			limit = {
				war = no
				in_command_trigger = no
				prisoner = no
				trait = celibate
				same_sex = ROOT
				is_inaccessible_trigger = no
			}
			save_event_target_as = celibate_friend
		}
	}
	
	option = {
		name = EVTOPTA100240
		event_target:celibate_friend = {
			character_event = {
				id = 100241
				days = 7
				random = 7
				tooltip = EVTTOOLTIP100241
			}
		}
	}
	option = {
		name = EVTOPTB100240 #On second thought, what were [Root.GetSheHe] thinking!?
		event_target:celibate_friend = {
			tooltip = {
				opinion = {
					modifier = opinion_irritated
					who = ROOT
					years = 2
				}
			}
			character_event = {
				id = 100242
				days = 7
				random = 7
				tooltip = EVTTOOLTIP100242
			}
		}
	}
	option = {
		name = EVTOPTC100240 #No, celibacy certainly isn't for me...
		trigger = {
			trait = lustful
		}
		prestige = 5
		add_trait = hedonist
	}
}

#Friend is asked by ROOT about Celibacy
character_event = {
	id = 100241
	desc = EVTDESC100241
	picture = GFX_evt_bishop
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA100241 #...but I don't think celibacy is for you
		FROM = {
			character_event = {
				id = 100243
				days = 7
				random = 7
				tooltip = EVTTOOLTIP100243
			}
		}
	}
	option = {
		name = EVTOPTB100241 #Everyone should try celibacy!
		FROM = {
			character_event = {
				id = 100244
				days = 7
				random = 7
				tooltip = EVTTOOLTIP100244
			}
		}		
	}
}

#Friend is irritated about ROOT bedraggling his/her lifestyle
character_event = {
	id = 100242
	desc = EVTDESC100242
	picture = GFX_evt_bishop
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA100242
		opinion = {
			modifier = opinion_irritated
			who = FROM
			years = 5
		}
	}
}

#ROOT is discouraged by friend
character_event = {
	id = 100243
	desc = EVTDESC100243
	picture = GFX_evt_bishop
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA100243
		clr_character_flag = LE_ST
		opinion = {
			modifier = opinion_sad
			who = FROM
			years = 2
		}
	}
}

#ROOT is told about celibacy by friend
character_event = {
	id = 100244
	desc = EVTDESC100244
	picture = GFX_evt_bishop
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA100244 #I choose God's love
		clr_character_flag = LE_ST
		add_trait = celibate
		if = {
			limit = { has_character_modifier = sweet_temptation }
			remove_character_modifier = sweet_temptation
		}
	}
	option = {
		name = EVTOPTB100243
		clr_character_flag = LE_ST
		prestige = 5
	}
}

### My friend is a hedonist ###
character_event = {
	id = 100250
	desc = EVTDESC100250
	picture = GFX_evt_feast
	
	min_age = 23
	capable_only = yes
	prisoner = no
	war = no
	friends = yes
	
	trigger = {
		in_command_trigger = no
		NOR = {
			religion_group = muslim
			lifestyle_traits = 1
			has_character_flag = LE_ST
		}
		is_inaccessible_trigger = no
		any_friend = {
			war = no
			in_command_trigger = no
			prisoner = no
			trait = hedonist
			is_inaccessible_trigger = no
		}
	}
	
	mean_time_to_happen = {
		months = 200
		
		modifier = {
			factor = 2
			trait = ambitious
		}
		modifier = {
			factor = 2
			trait = chaste
		}
		
		modifier = {
			factor = 0.5
			trait = slothful
		}
		modifier = {
			factor = 0.5
			trait = lustful
		}
	}

	immediate = {
		set_character_flag = LE_ST
		random_friend = {
			limit = {
				war = no
				in_command_trigger = no
				prisoner = no
				trait = hedonist
				is_inaccessible_trigger = no
			}
			save_event_target_as = hedonist_friend
		}
	}

	
	option = {
		name = EVTOPTA100250
		event_target:hedonist_friend = {
			character_event = {
				id = 100251
				days = 7
				random = 7
				tooltip = EVTTOOLTIP100251
			}
		}
	}
	option = {
		name = EVTOPTB100250 #I don't want to become a hedonist like my friend!
		event_target:hedonist_friend = {
			tooltip = {
				opinion = {
					modifier = opinion_irritated
					who = ROOT
					years = 2
				}
			}
			character_event = {
				id = 100252
				days = 7
				random = 7
				tooltip = EVTTOOLTIP100252
			}
		}
	}
}

#Friend is asked by ROOT about hedonism
character_event = {
	id = 100251
	desc = EVTDESC100251
	picture = GFX_evt_feast
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA100251 #He/She would never forgive me...
		FROM = {
			character_event = {
				id = 100253
				days = 7
				random = 7
				tooltip = EVTTOOLTIP100253
			}
		}
	}
	option = {
		name = EVTOPTB100251 #Convincing him/her will be a piece of cake...
		FROM = {
			character_event = {
				id = 100254
				days = 7
				random = 7
				tooltip = EVTTOOLTIP100254
			}
		}		
	}
}

#Friend is irritated about ROOT bedraggling his/her lifestyle
character_event = {
	id = 100252
	desc = EVTDESC100252
	picture = GFX_evt_feast
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA100252
		opinion = {
			modifier = opinion_irritated
			who = FROM
			years = 2
		}
	}
}

#ROOT is discouraged by friend
character_event = {
	id = 100253
	desc = EVTDESC100253
	picture = GFX_evt_feast
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA100253
		clr_character_flag = LE_ST
		opinion = {
			modifier = opinion_confused
			who = FROM
			years = 2
		}
	}
}

#ROOT is told about hedonism by friend
character_event = {
	id = 100254
	desc = EVTDESC100254
	picture = GFX_evt_feast
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA100254
		clr_character_flag = LE_ST
		add_trait = hedonist
		if = {
			limit = { has_character_modifier = sweet_temptation }
			remove_character_modifier = sweet_temptation
		}
	}
	option = {
		name = EVTOPTB100253
		prestige = 5
		clr_character_flag = LE_ST
	}
}

### My friend is a scholar ###
character_event = {
	id = 100260
	desc = EVTDESC100260
	picture = GFX_evt_library
	border = GFX_event_normal_frame_religion
	
	min_age = 23
	capable_only = yes
	prisoner = no
	lacks_dlc = "Way of Life"
	war = no
	friends = yes
	
	trigger = {
		in_command_trigger = no
		NOT = {
			lifestyle_traits = 1
		}
		NOT = {
			has_character_flag = LE_ST
		}
		is_inaccessible_trigger = no
		any_friend = {
			war = no
			in_command_trigger = no
			prisoner = no
			trait = scholar
			is_inaccessible_trigger = no
		}
	}
	
	mean_time_to_happen = {
		months = 200
		
		modifier = {
			factor = 0.5
			trait = ambitious
		}
		modifier = {
			factor = 0.5
			learning = 15
		}
		
		modifier = {
			factor = 2
			trait = slothful
		}
		modifier = {
			factor = 2
			trait = content
		}
	}

	immediate = {
		set_character_flag = LE_ST
		random_friend = {
			limit = {
				war = no
				in_command_trigger = no
				prisoner = no
				trait = scholar
				is_inaccessible_trigger = no
			}
			save_event_target_as = scholar_friend
		}
	}
	
	option = {
		name = EVTOPTA100260
		event_target:scholar_friend = {
			character_event = {
				id = 100261
				days = 7
				random = 7
				tooltip = EVTTOOLTIP100261
			}
		}
	}
	option = {
		name = EVTOPTB100260 #It sounds incredibly boring
		event_target:scholar_friend = {
			tooltip = {
				opinion = {
					modifier = opinion_irritated
					who = ROOT
					years = 2
				}
			}
			character_event = {
				id = 100262
				days = 7
				random = 7
				tooltip = EVTTOOLTIP100262
			}
		}
	}
	option = {
		name = EVTOPTC100260 #I need more time to study so I can impress the group of scholars!
		trigger = {
			learning = 15
		}
		prestige = 5
		add_trait = scholar
		if = {
			limit = { has_character_modifier = illumination }
			remove_character_modifier = illumination
		}
	}
}


#Friend is asked by ROOT about being a scholar
character_event = {
	id = 100261
	desc = EVTDESC100261
	picture = GFX_evt_library
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA100261 #Being a scholar requires dedication, and you don't have it
		FROM = {
			character_event = {
				id = 100263
				days = 7
				random = 7
				tooltip = EVTTOOLTIP100263
			}
		}
	}
	option = {
		name = EVTOPTB100261 #Let me tell you why I became a scholar and then you can decide
		FROM = {
			character_event = {
				id = 100264
				days = 7
				random = 7
				tooltip = EVTTOOLTIP100264
			}
		}		
	}
}

#Friend is irritated about ROOT bedraggling his/her lifestyle
character_event = {
	id = 100262
	desc = EVTDESC100262
	picture = GFX_evt_library
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA100262
		opinion = {
			modifier = opinion_irritated
			who = FROM
			years = 2
		}
	}
}

#ROOT is discouraged by friend
character_event = {
	id = 100263
	desc = EVTDESC100263
	picture = GFX_evt_library
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA100263
		clr_character_flag = LE_ST
		tooltip = {
			opinion = {
				modifier = opinion_sad
				who = FROM
				years = 2
			}
		}
	}
}

#ROOT is told about scholar by friend
character_event = {
	id = 100264
	desc = EVTDESC100264
	picture = GFX_evt_library
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA100264 #I want this! I want the books, the philosophy - everything!
		clr_character_flag = LE_ST
		add_trait = scholar
		if = {
			limit = { has_character_modifier = illumination }
			remove_character_modifier = illumination
		}
	}
	option = {
		name = EVTOPTB100263 #I am not quite ready yet
		prestige = 5
	}
}

### I don't recognise my friend anymore, I don't know if we really are friends... ###
character_event = {
	id = 100350
	desc = EVTDESC100350
	picture = GFX_evt_courtiers_talking
	
	only_playable = yes
	min_age = 16
	prisoner = no
	capable_only = yes
	war = no
	friends = yes
	
	trigger = {
		in_command_trigger = no
		is_inaccessible_trigger = no
		any_friend = {
			war = no
			in_command_trigger = no
			prisoner = no
			NOT = {
				has_opinion_modifier = { who = ROOT modifier = opinion_not_abandon_friendship }
			}
			OR = {
				NOT = {
					reverse_opinion = {	who = ROOT value = 0 }
				}
				AND = {
					trait = cruel
					ROOT = { NOT = { trait = cruel } }
				}
				AND = {
					trait = deceitful
					ROOT = { NOT = { trait = deceitful } }
				}
				AND = {
					trait = wroth
					ROOT = { NOT = { trait = wroth } }
				}
			}
			is_inaccessible_trigger = no
		}
	}
	
	mean_time_to_happen = {
		months = 1000
		
		modifier = {
			factor = 4
			trait = gregarious
		}
		modifier = {
			factor = 4
			trait = trusting
		}
		
		modifier = {
			factor = 0.5
			trait = paranoid
		}
		modifier = {
			factor = 0.5
			trait = shy
		}
	}

	immediate = {
		random_friend = {
			limit = {
				war = no
				in_command_trigger = no
				prisoner = no
				OR = {
					NOT = {
						reverse_opinion = {	who = ROOT value = 0 }
					}
					AND = {
						trait = cruel
						ROOT = { NOT = { trait = cruel } }
					}
					AND = {
						trait = deceitful
						ROOT = { NOT = { trait = deceitful } }
					}
					AND = {
						trait = wroth
						ROOT = { NOT = { trait = wroth } }
					}
				}
				is_inaccessible_trigger = no
				NOT = { has_opinion_modifier = { who = ROOT modifier = opinion_not_abandon_friendship } }
			}
			save_event_target_as = mean_friend
		}
	}
	
	option = {
		name = EVTOPTA100350
		event_target:mean_friend = {
			remove_friend = ROOT
			character_event = {
				id = 100351
				tooltip = EVTTOOLTIP100351
			}
		}
	}
	option = {
		name = EVTOPTB100350
		event_target:mean_friend = {
			character_event = {
				id = 100352
				tooltip = EVTTOOLTIP100352
			}
		}
	}
	option = {
		name = EVTOPTC100350
		event_target:mean_friend = {
			reverse_opinion = {
				modifier = opinion_glad
				who = ROOT
				years = 2
			}
		}
	}
}

#Friend is notified about ROOT's feelings
character_event = {
	id = 100351
	desc = EVTDESC100351
	picture = GFX_evt_courtiers_talking
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA100351
		remove_friend = FROM
	}
	option = {
		name = EVTOPTB100351
		add_rival = FROM
		FROM = {
			character_event = {
				id = 100353
				days = 7
				random = 7
				tooltip = EVTTOOLTIP100353
			}
		}
	}
}

#Friend is notified about ROOT's feelings
character_event = {
	id = 100352
	desc = EVTDESC100352
	picture = GFX_evt_courtiers_talking
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA100352
		remove_friend = FROM
		FROM = {
			set_character_flag = friends_nomore
			character_event = {
				id = 100353
				days = 7
				random = 7
				tooltip = EVTTOOLTIP100353
			}
		}
	}
	option = {
		name = EVTOPTB100352
		reverse_opinion = {
			modifier = opinion_not_abandon_friendship
			who = FROM
			years = 100
		}
		FROM = {
			character_event = {
				id = 100354
				days = 7
				random = 7
				tooltip = EVTTOOLTIP100354
			}
		}
	}
}

#ROOT is notified about Friend's feelings
character_event = {
	id = 100353
	desc = EVTDESC100353
	picture = GFX_evt_courtiers_talking
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA100353
		trigger = {
			NOT = {
				has_character_flag = friends_nomore
			}
		}
		add_rival = FROM
	}
	option = {
		name = EVTOPTB100353
		trigger = {
			has_character_flag = friends_nomore
		}
		clr_character_flag = friends_nomore
		remove_friend = FROM
	}
}

#Friend is notified about ROOT's feelings
character_event = {
	id = 100354
	desc = EVTDESC100354
	picture = GFX_evt_courtiers_talking
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA100354
		reverse_opinion = {
			modifier = opinion_not_abandon_friendship
			who = FROM
			years = 5
		}
		tooltip = {
			opinion = {
				modifier = opinion_not_abandon_friendship
				who = FROM
				years = 5
			}
		}
	}
}

##################################################
#				RIVALRY EVENTS 					 #
##################################################

### My friend's rival tried to kill/maim/wound him/her! ###
character_event = {
	id = 100400
	desc = EVTDESC100400
	picture = GFX_evt_courtiers_talking
	
	min_age = 16
	only_men = yes
	prisoner = no
	capable_only = yes
	war = no
	friends = yes
	
	trigger = {
		in_command_trigger = no
		martial = 10
		is_inaccessible_trigger = no
		any_friend = {
			war = no
			in_command_trigger = no
			num_of_rivals = 1
			is_female = no
			prisoner = no
			NOT = {
				martial = 10
			}
			OR = {
				trait = wounded
				is_maimed_trigger = yes
			}
			is_inaccessible_trigger = no
			any_rival = {
				war = no
				in_command_trigger = no
				is_female = no
				prisoner = no
				NOT = {
					any_friend = {
						character = ROOT
					}
				}
				NOT = {
					trait = wounded
				}
				can_be_maimed_trigger = yes
				is_inaccessible_trigger = no
			}
		}
	}
	
	mean_time_to_happen = {
		months = 200
		
		modifier = {
			factor = 0.5
			trait = brave
		}
		
		modifier = {
			factor = 3
			trait = craven
		}
	}

	immediate = {
		random_friend = {
			limit = {
				war = no
				in_command_trigger = no
				num_of_rivals = 1
				is_female = no
				prisoner = no
				NOT = { martial = 10 }
				OR = {
					trait = wounded
					is_maimed_trigger = yes
				}
				is_inaccessible_trigger = no

				any_rival = {
					war = no
					in_command_trigger = no
					is_female = no
					prisoner = no
					NOT = {
						any_friend = {
							character = ROOT
						}
					}
					NOT = {
						trait = wounded
					}
					can_be_maimed_trigger = yes
					is_inaccessible_trigger = no
				}
			}
			save_event_target_as = friend_in_danger

			random_rival = {
				limit = {
					war = no
					in_command_trigger = no
					is_female = no
					prisoner = no
					NOT = {
						any_friend = {
							character = ROOT
						}
					}
					NOT = {
						trait = wounded
					}
					can_be_maimed_trigger = yes
					is_inaccessible_trigger = no
				}

				save_event_target_as = rival_of_friend
			}
		}
	}
	
	option = {
		name = EVTOPTA100400
		event_target:rival_of_friend = {
			tooltip = {
				random_list = {
					80 = {
					}
					10 = {
						add_trait = wounded
					}
					10 = {
						add_maimed_trait_effect = yes
					}
				}
			}
			add_rival = ROOT
			character_event = {
				id = 100401
				days = 7
				random = 7
				tooltip = EVTTOOLTIP100401
			}
		}
	}
	option = {
		name = EVTOPTB100400
		event_target:rival_of_friend = {
			set_character_flag = friendly_rival
			character_event = {
				id = 100401
				days = 7
				random = 7
				tooltip = EVTTOOLTIP100401
			}
		}		
	}
	option = {
		name = EVTOPTC100400
		event_target:friend_in_danger = {
			opinion = {
				modifier = opinion_disappointed
				who = ROOT
				years = 5
			}
			character_event = {
				id = 100402
				days = 7
				random = 7
				tooltip = EVTTOOLTIP100402
			}
		}
	}
}

#Friend's rival is notified
character_event = {
	id = 100401
	desc = EVTDESC100401
	picture = GFX_evt_courtiers_talking
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA100401
		if = {
			limit = {
				NOT = {
					has_character_flag = friendly_rival
				}
			}
			random_list = {
				60 = {
				}
				30 = {
					add_trait = wounded
					hidden_tooltip = {
						character_event = {
							id = 38280 #Notify Wounded
						}
					}
				}
				10 = {
					add_maimed_trait_effect = yes
				}
			}
		}
		if = {
			limit = {
				has_character_flag = friendly_rival
			}
			clr_character_flag = friendly_rival
		}
		add_rival = FROM
		opinion = {
			modifier = grievously_offended
			who = FROM
			years = 10
		}
	}
}

#Friend is notified about ROOT doing nothing
character_event = {
	id = 100402
	desc = EVTDESC100402
	picture = GFX_evt_courtiers_talking
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA100402
		opinion = {
			modifier = opinion_disappointed
			who = FROM
			years = 100
		}
	}
}

### I ask permission to challenge my rival into a duel ###
character_event = {
	id = 100410
	desc = EVTDESC100410
	picture = GFX_evt_emissary
	
	only_men = yes
	min_age = 16
	max_age = 60
	capable_only = yes
	prisoner = no
	war = no
	rivals = yes
	
	trigger = {
		liege = { war = no }
		independent = no
		NOR = {
			religion = jain
			religion = cathar
			trait = wounded
			is_maimed_trigger = yes
			is_inaccessible_trigger = yes
			is_ill = yes
		}
		is_not_busy_trigger = yes
		any_rival = {
			is_female = no
			war = no
			in_command_trigger = no
			prisoner = no
			is_adult = yes
			same_liege = ROOT
			NOR = {
				age = 60
				trait = wounded
				is_maimed_trigger = yes
				is_inaccessible_trigger = yes
				is_ill = yes
				is_liege_of = ROOT
				has_character_flag = duel_rival
				any_vassal = { character = ROOT }
				AND = {
					has_dlc = "Way of Life"
					OR = {
						has_opinion_modifier = { who = ROOT modifier = opinion_fought_duel }
						reverse_has_opinion_modifier = { who = ROOT modifier = opinion_fought_duel }
						reverse_has_opinion_modifier = { who = ROOT modifier = opinion_fled_duel }
					}
				}
			}
			is_not_busy_trigger = yes
		}
	}
	
	mean_time_to_happen = {
		months = 1500
		
		modifier = {
			factor = 0.5
			trait = duelist
		}
		modifier = {
			factor = 0.5
			trait = just
		}
		modifier = {
			factor = 0.5
			trait = cruel
		}
		
		modifier = {
			factor = 2
			trait = arbitrary
		}
		modifier = {
			factor = 2
			trait = kind
		}
		modifier = {
			factor = 2
			liege = {
				realm_size = 100
			}
		}
		modifier = {
			factor = 2
			liege = {
				realm_size = 150
			}
		}
	}
	
	immediate = {
		random_rival = {
			limit = {
				is_female = no
				war = no
				in_command_trigger = no
				prisoner = no
				is_adult = yes
				same_liege = ROOT
				NOR = {
					age = 60
					trait = wounded
					is_maimed_trigger = yes
					is_inaccessible_trigger = yes
					is_ill = yes
					is_liege_of = ROOT
					has_character_flag = duel_rival
					AND = {
						has_dlc = "Way of Life"
						OR = {
							has_opinion_modifier = { who = ROOT modifier = opinion_fought_duel }
							reverse_has_opinion_modifier = { who = ROOT modifier = opinion_fought_duel }
							reverse_has_opinion_modifier = { who = ROOT modifier = opinion_fled_duel }
						}
					}
				}
				is_not_busy_trigger = yes
			}
			save_event_target_as = duel_rival
		}
	}
	
	option = {
		name = EVTOPTA100410
		ai_chance = {
			factor = 10
			
			modifier = {
				factor = 5
				trait = duelist
			}
			modifier = {
				factor = 5
				trait = brave
			}
			modifier = {
				factor = 5
				trait = just
			}
			
			modifier = {
				factor = 0.01
				trait = kind
			}
		}
		set_character_flag = duel_rival
		event_target:duel_rival = {
			set_character_flag = duel_rival
			set_character_flag = flag_duel_friendly
		}
		liege = {
			character_event = {
				id = 100411
				days = 2
				random = 10
				tooltip = EVTTOOLTIPB100411
			}
		}
	}
	option = {
		name = EVTOPTB100410
		if = {
			limit = {
				NOT = {
					num_of_traits = 5
				}
				NOT = {
					trait = craven
				}
			}
			random = {
				chance = 25
				add_trait = craven
				hidden_tooltip = {
					character_event = {
						id = 38257 #Notify Craven
					}
				}
			}
		}
	}
}

#Liege decides if ROOT is allowed to duel
character_event = {
	id = 100411
	desc = EVTDESC100411
	picture = GFX_evt_emissary
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA100411
		ai_chance = {
			factor = 49
		}
		if = {
			limit = { religion = jain }
			piety = -20
			custom_tooltip = { text = jain_ahimsa_tooltip }
		}
		FROM = {
			opinion = {
				modifier = opinion_very_grateful
				who = ROOT
				years = 5
			}
			character_event = {
				id = 100412
				days = 7
				random = 7
				tooltip = EVTTOOLTIP100412
			}
		}
	}
	option = {
		name = EVTOPTB100411
		ai_chance = {
			factor = 50
		}
		FROM = {
			opinion = {
				modifier = opinion_very_disappointed
				who = ROOT
				years = 5
			}
			character_event = {
				id = 100413
				days = 7
				random = 7
				tooltip = EVTTOOLTIP100413
			}
		}
	}
	option = {
		name = EVTOPTC100411
		ai_chance = {
			factor = 1
			
			modifier = {
				factor = 0.01
				is_ruler = yes
			}
		}
		tooltip = {
			FROM = {
				banish = yes
			}
		}
		hidden_tooltip = {
			FROM = {
				character_event = {
					id = 100414
					days = 7
					random = 7
				}
			}
		}
	}
}

#Liege allows it
character_event = {
	id = 100412
	desc = EVTDESC100412
	picture = GFX_evt_melee

	is_triggered_only = yes
	
	option = {
		name = EVTOPTA100412
		tooltip = {
			opinion = {
				modifier = opinion_very_grateful
				who = FROM
				years = 5
			}
		}
		hidden_tooltip = { change_variable = { which = "lifestyle_martial" value = 1 } }
		event_target:duel_rival = {
			hidden_tooltip = { change_variable = { which = "lifestyle_martial" value = 1 } }
			character_event = {
				id = 100416 #New
				tooltip = EVTTOOLTIPA100411
			}
		}
	}
	option = {
		name = EVTOPTB100412
		prestige = -10
		tooltip = {
			opinion = {
				modifier = opinion_very_grateful
				who = FROM
				years = 5
			}
		}
	}
}

#Liege disallows it		
character_event = {
	id = 100413
	desc = EVTDESC100413
	picture = GFX_evt_emissary
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA100413
		tooltip = {
			opinion = {
				modifier = opinion_very_disappointed
				who = FROM
				years = 5
			}
		}
		hidden_tooltip = {
			if = {
				limit = {
					has_character_flag = duel_rival
						}
				clr_character_flag = duel_rival
					}
			random_rival = {
				limit = {
					has_character_flag = duel_rival
				}
				clr_character_flag = duel_rival
			}
		}
	}
}

#Liege banish you!		
character_event = {
	id = 100414
	desc = EVTDESC100414
	picture = GFX_evt_emissary
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA100414
		banish = yes
		tooltip = {
			opinion = {
				modifier = opinion_very_disappointed
				who = FROM
				years = 5
			}
		}
		hidden_tooltip = {
			if = {
				limit = {
					has_character_flag = duel_rival
				}
				clr_character_flag = duel_rival
			}
		random_rival = {
			limit = {
				has_character_flag = duel_rival
			}
			clr_character_flag = duel_rival
			}
		}
	}
}

#Your rival wants to duel you and your liege allows it
character_event = {
	id = 100416
	desc = "EVTDESC100416"
	picture = GFX_evt_emissary
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA100416
		ai_chance = {
			factor = 10
			
			modifier = {
				factor = 5
				trait = duelist
			}
			modifier = {
				factor = 5
				trait = brave
			}
			modifier = {
				factor = 5
				trait = just
			}			
			modifier = {
				factor = 0.01
				trait = kind
			}
		}
		set_character_flag = flag_duel_friendly
		hidden_tooltip = {	#duel begin
			e_rebels = { holder_scope = { character_event = { id = DuelEngine.0 } } }
		}
	}
	option = {
		name = EVTOPTB100416
		if = {
			limit = {
				NOT = { num_of_traits = 5 }
				NOT = { trait = craven }
			}
			random = {
				chance = 25
				add_trait = craven
				hidden_tooltip = {
					character_event = {
						id = 38257 #Notify Craven 
					}
				}
			}
		}
		prestige = -5
		hidden_tooltip = {
			clr_character_flag = duel_rival
			clr_character_flag = flag_duel_friendly
		}
		FROM = {
			character_event = {
				id = 100417
				tooltip = EVTTOOLTIPB100416
			}
			hidden_tooltip = {
				clr_character_flag = duel_rival
				clr_character_flag = flag_duel_friendly
			}
		}
	}
}

#Your rival is too afraid to duel you
character_event = {
	id = 100417
	desc = "EVTDESC100417"
	picture = GFX_evt_emissary
	
	is_triggered_only = yes
	
	option = {
		name = "EVTOPTA100416"
		prestige = 5
	}
}

### Accuse rival of cheating in tournament ###
character_event = {
	id = 100420
	desc = EVTDESC100420
	picture = GFX_evt_joust
	
	min_age = 16
	capable_only = yes
	only_rulers = yes
	only_men = yes
	prisoner = no
	has_character_flag = attending_tournament
	war = no
	rivals = yes
	
	trigger = {
		war = no
		is_inaccessible_trigger = no
		in_command_trigger = no
		num_of_rivals = 1
		any_rival = {
			war = no
			in_command_trigger = no
			is_female = no
			same_liege = ROOT
			prisoner = no
			NOT = {
				liege = {
					character = ROOT
				}
			}
			has_character_flag = attending_tournament
			is_inaccessible_trigger = no
		}
	}
	
	mean_time_to_happen = {
		months = 200
		
		modifier = {
			factor = 3
			trait = honest
		}
		modifier = {
			factor = 0.5
			trait = gregarious
		}
		modifier = {
			factor = 0.5
			trait = kind
		}
		modifier = {
			factor = 2
			trait = trusting
		}
		
		modifier = {
			factor = 0.5
			trait = deceitful
		}
		modifier = {
			factor = 2
			trait = shy
		}
		modifier = {
			factor = 2
			trait = cruel
		}
		modifier = {
			factor = 0.5
			trait = paranoid
		}
	}
	
	immediate = {
		random_rival = {
			limit = {
				war = no
				in_command_trigger = no
				same_liege = ROOT
				prisoner = no
				NOT = {
					liege = {
						character = ROOT
					}
				}
				has_character_flag = attending_tournament
				is_inaccessible_trigger = no
			}
			save_event_target_as = tournament_rival
		}
	}

	option = {
		name = EVTOPTA100420
		event_target:tournament_rival = {
			set_character_flag = tournament_cheater
		}
		liege = {
			character_event = {
				id = 100421
				days = 2
				random = 2
				tooltip = EVTTOOLTIP100421
			}
		}
	}
	option = {
		name = EVTOPTB100420
		event_target:tournament_rival = {
			opinion = {
				modifier = opinion_angry
				who = ROOT
				years = 10
			}
			character_event = {
				id = 100422
				days = 2
				random = 2
				tooltip = EVTTOOLTIP100422
			}
		}
	}
	option = {
		name = EVTOPTC100420
		event_target:tournament_rival = {
			reverse_opinion = {
				modifier = opinion_disgraceful
				who = ROOT
				years = 10
			}
			liege = {
				any_vassal = {
					limit = {
						prisoner = no
						NOT = {
							liege = {
								character = ROOT
							}
						}
						NOT = {
							character = ROOT
						}
					}
					opinion = {
						modifier = opinion_disgraceful
						who = PREV
						years = 10
					}
				}
			}
			character_event = {
				id = 100423
				days = 2
				random = 2
				tooltip = EVTTOOLTIP100423
			}
		}
	}
	option = {
		name = EVTOPTD100420
		prestige = -10
	}
}

#Liege is told about cheating rival
character_event = {
	id = 100421
	desc = EVTDESC100421
	picture = GFX_evt_joust
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA100421
		if = {
			limit = {
				NOT = {
					num_of_traits = 5
				}
				NOT = {
					trait = just
				}
			}
			random = {
				chance = 20
				add_trait = just
				hidden_tooltip = {
					character_event = {
						id = 38267 #Notify Just
					}
				}
			}
		}	
		FROM = {
			random_rival = {
				limit = {
					has_character_flag = tournament_cheater
				}
				clr_character_flag = tournament_cheater
				clr_character_flag = attending_tournament
				imprison = ROOT
				character_event = {
					id = 100424
					tooltip = EVTTOOLTIP100424
				}
			}
			set_character_flag = rival_imprisoned
			hidden_tooltip = {
				character_event = {
					id = 100426
					days = 7
					random = 7
				}
			}
		}
	}
	option = {
		name = EVTOPTB100421
		FROM = {
			random_rival = {
				limit = {
					has_character_flag = tournament_cheater
				}
				clr_character_flag = tournament_cheater
				clr_character_flag = attending_tournament
				banish = yes
				character_event = {
					id = 100425
					tooltip = EVTTOOLTIP100425
				}
			}
			set_character_flag = rival_banished
			hidden_tooltip = {
				character_event = {
					id = 100426
					days = 7
					random = 7
				}
			}
		}
	}
	option = {
		name = EVTOPTC100421
		if = {
			limit = {
				NOT = {
					num_of_traits = 5
				}
				NOT = {
					trait = arbitrary
				}
			}
			random = {
				chance = 20
				add_trait = arbitrary
				hidden_tooltip = {
					character_event = {
						id = 38266 #Notify Arbitrary
					}
				}
			}
		}
		FROM = {
			opinion = {
				modifier = opinion_disappointed
				who = ROOT
				years = 5
			}
			hidden_tooltip = {
				character_event = {
					id = 100426
					days = 7
					random = 7
				}
			}
		}
	}
}

#Cheating rival is confronted
character_event = {
	id = 100422
	desc = EVTDESC100422
	picture = GFX_evt_joust
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA100422
		tooltip = {
			opinion = {
				modifier = opinion_angry
				who = FROM
				years = 10
			}
		}
	}
	option = {
		name = EVTOPTB100422
		tooltip = {
			opinion = {
				modifier = opinion_angry
				who = FROM
				years = 10
			}
		}
		set_character_flag = tournament_cheater_duel_accused
		set_character_flag = flag_duel_friendly
		FROM = { set_character_flag = tournament_cheater_duel_accuser }
		FROM = { set_character_flag = flag_duel_friendly }
		character_event = {
			id = 100427
			days = 2
			random = 2
			tooltip = EVTTOOLTIP100427
		}
	}
}

#Cheating rival attempts to clear his name
character_event = {
	id = 100423
	desc = EVTDESC100423
	picture = GFX_evt_joust
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA100423
		scaled_wealth = -0.25
		liege = {
			any_vassal = {
				limit = {
					prisoner = no
					has_opinion_modifier = { who = ROOT modifier = opinion_disgraceful }
				}
				remove_opinion = { who = ROOT modifier = opinion_disgraceful }
			}
		}
	}
	option = {
		name = EVTOPTB100423
		prestige = -10
	}
}

#Cheating rival is imprisoned by liege
character_event = {
	id = 100424
	desc = EVTDESC100424
	picture = GFX_evt_into_the_dungeon
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA100424
		tooltip = {
			imprison = FROM
		}
		opinion = {
			modifier = opinion_revenge_seeker
			who = FROMFROM
			years = 10
		}
	}
}

#Cheating rival is banished by liege
character_event = {
	id = 100425
	desc = EVTDESC100425
	picture = GFX_evt_carriage
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA100425
		tooltip = {
			banish = yes
		}
		opinion = {
			modifier = opinion_furious
			who = FROMFROM
			years = 10
		}		
	}
}

#Liege banished/imprisoned/did nothing
character_event = {
	id = 100426
	desc = EVTDESC100426
	picture = GFX_evt_joust
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA100426
		trigger = {
			NOT = {
				has_character_flag = rival_banished
			}
			NOT = {
				has_character_flag = rival_imprisoned
			}
		}
		opinion = {
			modifier = opinion_disappointed
			who = FROM
			years = 5
		}
	}
	option = {
		name = EVTOPTB100426
		trigger = {
			has_character_flag = rival_imprisoned
			NOT = {
				has_character_flag = rival_banished
			}
		}
		clr_character_flag = rival_imprisoned
		opinion = {
			modifier = opinion_glad
			who = FROM
			years = 5
		}
	}
	option = {
		name = EVTOPTC100426
		trigger = {
			has_character_flag = rival_banished
			NOT = {
				has_character_flag = rival_imprisoned
			}
		}
		clr_character_flag = rival_banished
		opinion = {
			modifier = opinion_glad
			who = FROM
			years = 5
		}
	}
}

#ROOT is challenged to a duel
character_event = {
	id = 100427
	desc = EVTDESC100427
	picture = GFX_evt_melee
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA100427
		#duel begin
		e_rebels = { holder_scope = { character_event = { id = DuelEngine.0 } } }
	}
	option = {
		name = EVTOPTB100427
		prestige = -20
		reverse_opinion = {
			modifier = opinion_coward
			who = FROM
			years = 10
		}
		FROM = {
			character_event = {
				id = 100429
				tooltip = EVTTOOLTIP100429
			}
		}
		if = {
			limit = {
				NOT = {
					num_of_traits = 5
				}
				NOT = {
					trait = craven
				}
			}
			add_trait = craven
		}
	}
}

#Rival is disappointed in ROOT
character_event = {
	id = 100429
	desc = EVTDESC100429
	picture = GFX_evt_melee
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA100429
		reverse_opinion = {
			modifier = opinion_coward
			who = FROM
			years = 10
		}
	}
}

### Your fierce rival has embraced heretical ways ###
character_event = {
	id = 100440
	desc = EVTDESC100440
	picture = GFX_evt_heretic
	
	min_age = 16
	capable_only = yes
	only_rulers = yes
	prisoner = no
	religion_group = christian
	war = no
	rivals = yes
	
	trigger = {
		in_command_trigger = no
		is_heretic = no
		any_rival = {
			war = no
			is_adult = yes
			is_female = no
			in_command_trigger = no
			prisoner = no
			is_heresy_of = ROOT
			NOT = {
				trait = excommunicated
			}
		}
	}
	
	mean_time_to_happen = {
		months = 300
		
		modifier = {
			factor = 0.5
			trait = zealous
		}
		
		modifier = {
			factor = 2
			trait = cynical
		}
	}
	
	option = {
		name = EVTOPTA100440
		random_rival = {
			limit = {
				war = no
				is_adult = yes
				is_female = no
				in_command_trigger = no
				prisoner = no
				is_heresy_of = ROOT
				NOT = {
					trait = excommunicated
				}
			}
			set_character_flag = rival_excommunicated_me
		}
		religion_head = {
			character_event = {
				id = 100441
				days = 7
				random = 7
				tooltip = EVTTOOLTIP100441
			}
		}
	}
	option = {
		name = EVTOPTB100440
		piety = -10
	}
	option = {
		name = EVTOPTC100440
		random_rival = {
			limit = {
				war = no
				is_adult = yes
				is_female = no
				in_command_trigger = no
				prisoner = no
				is_heresy_of = ROOT
				NOT = {
					trait = excommunicated
				}
			}
			ROOT = {
				random = {
					chance = 20
					religion = PREV
					hidden_tooltip = {
						character_event = {
							id = 100442
						}
					}
				}
			}
		}
	}
}

#Head of Religion decides whether or not to excommunicate 
character_event = {
	id = 100441
	desc = EVTDESC100441
	picture = GFX_evt_heretic
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA100441
		FROM = {
			random_rival = {
				limit = {
					war = no
					is_adult = yes
					is_female = no
					in_command_trigger = no
					is_heresy_of = FROM
					prisoner = no
					has_character_flag = rival_excommunicated_me
				}
				clr_character_flag = rival_excommunicated_me
				tooltip = { add_trait = excommunicated }
				letter_event = {
					id = 100443
					days = 7
					random = 7
					tooltip = EVTTOOLTIP100443
				}	
			}
			set_character_flag = excommunicated_rival
			tooltip = {
				letter_event = {
					id = 100444
					days = 7
					random = 7
					tooltip = EVTTOOLTIP100444
				}
			}
		}
	}
	option = {
		name = EVTOPTB100441
		FROM = {
			letter_event = {
				id = 100445
				days = 7
				random = 7
				tooltip = EVTTOOLTIP100445
			}
		}
	}
}

#Root becomes a heretic!
character_event = {
	id = 100442
	desc = EVTDESC100442
	picture = GFX_evt_heretic
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA100442
		random_rival = {
			limit = {
				war = no
				is_adult = yes
				is_female = no
				in_command_trigger = no
				prisoner = no
				is_heresy_of = ROOT
				NOT = {
					trait = excommunicated
				}
			}
			ROOT = {
				religion = PREV
			}
		}
		piety = -10
	}
}

#Head of religion sends letter to excommunicated person
letter_event = {
	id = 100443
	desc = EVTDESC100443
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA100443
		add_trait = excommunicated
		hidden_tooltip = {
			random_courtier = {
				limit = {
					has_character_flag = excommunicated_rival
				}
				clr_character_flag = excommunicated_rival
				letter_event = {
					id = 100444
					days = 7
					random = 7
				}
			}
		}
	}
}

#Head of religion sends letter to ROOT
letter_event = {
	id = 100444
	desc = EVTDESC100444
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA100444
		piety = 10
	}
}

#Head of religion sends letter to ROOT telling him/her no can do
letter_event = {
	id = 100445
	desc = EVTDESC100445
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA100445
		piety = -10
	}
}

### Make your liege distrust your rival ###
character_event = {
	id = 100450
	desc = EVTDESC100450
	picture = GFX_evt_throne_room
	
	min_age = 16
	capable_only = yes
	only_rulers = yes
	prisoner = no
	war = no
	rivals = yes
	
	trigger = {
		in_command_trigger = no
		independent = no
		any_rival = {
			war = no
			is_adult = yes
			OR = {
				AND = {
					is_female = no
					ROOT = {
						is_female = no
					}
				}
				AND = {
					is_female = yes
					ROOT = {
						is_female = yes
					}
				}
			}
			in_command_trigger = no
			same_liege = ROOT
			prisoner = no
			liege = {
				NOT = {
					character = ROOT
				}
				opinion = { who = ROOT value = 10 }
				opinion = { who = PREV value = 10 }
			}
		}
	}
	
	mean_time_to_happen = {
		months = 300
		
		modifier = {
			factor = 0.5
			trait = wroth
		}
		
		modifier = {
			factor = 2
			trait = honest
		}
	}
	
	option = {
		name = EVTOTPA100450
		random_rival = {
			limit = {
				war = no
				is_adult = yes
				is_female = no
				in_command_trigger = no
				same_liege = ROOT
				prisoner = no
				liege = {
					NOT = {
						character = ROOT
					}
					opinion = { who = ROOT value = 10 }
					opinion = { who = PREV value = 10 }
				}
			}
			set_character_flag = devious_rival
			liege = {
				character_event = {
					id = 100451
					days = 7
					random = 7
					tooltip = EVTTOOLTIP100451
				}
			}
		}
	}
	option = {
		name = EVTOTPB100450
		if = {
			limit = {
				NOT = {
					num_of_traits = 5
				}
				NOT = {
					trait = honest
				}
			}
			random = {
				chance = 10
				add_trait = honest
				hidden_tooltip = {
					character_event = {
						id = 38262 #Notify Honest
					}
				}
			}
		}
		if = {
			limit = {
				NOT = {
					num_of_traits = 5
				}
				trait = honest
				NOT = {
					trait = content
				}
			}
			random = {
				chance = 10
				add_trait = content
				hidden_tooltip = {
					character_event = {
						id = 38279 #Notify Content
					}
				}
			}
		}
		if = {
			limit = {
				OR = {
					AND = {
						trait = honest
						trait = content
					}
					num_of_traits = 4
				}
			}
			prestige = 10
		}
	}
}

#Liege listens to you
character_event = {
	id = 100451
	desc = EVTDESC100451
	picture = GFX_evt_throne_room
	
	is_triggered_only = yes
	
	option = {
		name = EVTOTPA100451
		ai_chance = {
			factor = 10
			
			modifier = {
				factor = 0.01
				trait = gregarious
			}
		}
		FROM = {
			random_rival = {
				limit = {
					has_character_flag = devious_rival
				}
				reverse_opinion = {
					modifier = opinion_very_disappointed
					who = ROOT
					years = 5
				}
				if = {
					limit = {
						is_friend = ROOT
					}
					remove_friend = ROOT
				}
			}
			hidden_tooltip = {
				set_character_flag = liege_believes
				character_event = {
					id = 100452
					days = 5
					random = 2
				}
			}
		}
	}
	
	option = {
		name = EVTOTPB100451
		ai_chance = {
			factor = 10
			
			modifier = {
				factor = 10
				trait = gregarious
			}
		}
		FROM = {
			random_rival = {
				limit = {
					has_character_flag = devious_rival
				}
				clr_character_flag = devious_rival
			}
			reverse_opinion = {
				modifier = opinion_liar
				who = ROOT
				years = 5
			}	
			character_event = {
				id = 100452
				days = 5
				random = 2
				tooltip = EVTTOOLTIP100452
			}
		}
	}
}

#ROOT gets the message: Liege does/not believe ROOT
character_event = {
	id = 100452
	desc = EVTDESC100452
	picture = GFX_evt_heretic
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA100452
		trigger = {
			has_character_flag = liege_believes
		}
		opinion = {
			modifier = opinion_grateful
			who = FROM
			years = 5
		}
		random_rival = {
			limit = {
				has_character_flag = devious_rival
			}
			character_event = {
				id = 100453
				days = 5
				random = 2
				tooltip = EVTTOOLTIP100453
			}
		}
	}
	option = {
		name = EVTOPTB100452
		trigger = {
			NOT = {
				has_character_flag = liege_believes
			}
		}
		tooltip = {
			reverse_opinion = {
				modifier = opinion_liar
				who = FROM
				years = 5
			}
		}
	}
}

#Liege does not like ROOT's Rival
character_event = {
	id = 100453
	desc = EVTDESC100453
	picture = GFX_evt_heretic
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA100453
		clr_character_flag = devious_rival
		if = {
			limit = {
				is_friend = FROMFROM
			}
			remove_friend = FROMFROM
		}
		reverse_opinion = {
			modifier = opinion_very_disappointed
			who = FROMFROM
			years = 5
		}
		opinion = {
			modifier = opinion_revenge_seeker
			who = FROM
			years = 10
		}
	}
}

### My rival is homosexual! ###
character_event = {
	id = 100460
	desc = EVTDESC100460
	picture = GFX_evt_scandal
	
	min_age = 16
	capable_only = yes
	prisoner = no
	war = no
	rivals = yes
	
	trigger = {
		in_command_trigger = no
		any_rival = {
			war = no
			is_adult = yes
			in_command_trigger = no
			prisoner = no
			is_ruler = yes
			OR = {
				AND = {
					is_female = no
					ROOT = {
						is_female = no
					}
				}
				AND = {
					is_female = yes
					ROOT = {
						is_female = yes
					}
				}
			}		
			trait = homosexual
			num_of_vassals = 1
		}
	}
	
	mean_time_to_happen = {
		months = 300
		
		modifier = {
			factor = 0.5
			trait = cruel
		}
		modifier = {
			factor = 0.5
			trait = wroth
		}
		
		modifier = {
			factor = 2
			trait = kind
		}
		modifier = {
			factor = 2
			trait = charitable
		}
	}
	
	option = {
		name = EVTOTPA100460
		random_rival = {
			limit = {
				war = no
				is_adult = yes
				is_female = no
				in_command_trigger = no
				is_ruler = yes
				OR = {
					AND = {
						is_female = no
						ROOT = {
							is_female = no
						}
					}
					AND = {
						is_female = yes
						ROOT = {
							is_female = yes
						}
					}
				}
				prisoner = no
				trait = homosexual
			}
			any_vassal = {
				limit = {
					NOT = {
						trait = homosexual
					}
				}
				opinion = {
					modifier = opinion_lost_respect
					who = PREV
					years = 5
				}
			}
			character_event = {
				id = 100461
				tooltip = EVTTOOLTIP100461
			}
		}
	}
	option = {
		name = EVTOTPB100460
		if = {
			limit = {
				NOT = {
					num_of_traits = 5
				}
				NOT = {
					trait = kind
				}
			}
			random = {
				chance = 10
				add_trait = kind
				hidden_tooltip = {
					character_event = {
						id = 38268 #Notify Kind
					}
				}
			}
		}
		if = {
			limit = {
				trait = kind
				NOT = {
					trait = patient
				}
			}
			random = {
				chance = 10
				add_trait = patient
				hidden_tooltip = {
					character_event = {
						id = 38264 #Notify Patient
					}
				}
			}
		}
		if = {
			limit = {
				trait = kind
				trait = patient
			}
			piety = 10
		}
	}
	option = {
		name = EVTOTPC100460
		tooltip_info = homosexual
		trigger = {
			trait = homosexual
		}
		random_rival = {
			limit = {
				war = no
				is_adult = yes
				is_female = no
				in_command_trigger = no
				is_ruler = yes
				prisoner = no
				trait = homosexual
				OR = {
					AND = {
						is_female = no
						ROOT = {
							is_female = no
						}
					}
					AND = {
						is_female = yes
						ROOT = {
							is_female = yes
						}
					}
				}
			}
			remove_rival = ROOT
			character_event = {
				id = 100462
				days = 7
				random = 7
				tooltip = EVTTOOLTIP100462
			}
		}
	}
}

#Rival is told about ROOT spreading rumours
character_event = {
	id = 100461
	desc = EVTDESC100461
	picture = GFX_evt_scandal
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA100461
		opinion = {
			modifier = opinion_revenge_seeker
			who = FROM
			years = 10
		}
	}
}

#No longer rivals
character_event = {
	id = 100462
	desc = EVTDESC100462
	picture = GFX_evt_courtiers_talking
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA100462
		remove_rival = FROM
		opinion = {
			modifier = opinion_very_grateful
			who = FROM
			years = 10
		}
	}
}
	
### A rival of yours is so much beneath you that it seems a bit silly of you to hold him as an enemy ###	
character_event = {
	id = 100470
	desc = EVTDESC100470
	picture = GFX_evt_courtiers_talking
	
	min_age = 16
	capable_only = yes
	only_rulers = yes
	prisoner = no
	war = no
	rivals = yes
	
	trigger = {
		in_command_trigger = no
		NOT = {
			has_character_modifier = recalculate_rivalry_modifier
		}
		any_rival = {
			war = no
			is_adult = yes
			in_command_trigger = no
			is_ruler = yes
			prisoner = no
			same_sex = ROOT
			lower_tier_than = ROOT
		}
	}
	
	mean_time_to_happen = {
		months = 300
		
		modifier = {
			factor = 0.5
			trait = proud
		}
		
		modifier = {
			factor = 2
			trait = wroth
		}
	}
	
	immediate = {
		hidden_tooltip = {
			add_character_modifier = {
				name = recalculate_rivalry_modifier
				duration = 1825
				hidden = yes
			}
		}
	}
	
	option = {
		name = EVTOPTA100470
		random_rival = {
			limit = {
				war = no
				is_adult = yes
				in_command_trigger = no
				is_ruler = yes
				prisoner = no
				same_sex = ROOT
				lower_tier_than = ROOT
			}
			remove_rival = ROOT
			if = {
				limit = {
					reverse_has_opinion_modifier = { who = ROOT modifier = opinion_revenge_seeker }
				}
				reverse_remove_opinion = { who = ROOT modifier = opinion_revenge_seeker }
			}
			hidden_tooltip = {
				character_event = {
					id = 100471
					days = 7
					random = 7
				}
			}
		}
	}
	option = {
		name = EVTOPTB100470
		prestige = 10
	}
}

#Rivals are no longer rivals?
character_event = {
	id = 100471
	desc = EVTDESC100471
	picture = GFX_evt_courtiers_talking
	
	is_triggered_only = yes
	
	option = {	
		name = EVTOPTA100471
		remove_rival = FROM
	}
	option = {	
		name = EVTOPTB100471
		FROM = {
			character_event = {
				id = 100472
				days = 7
				random = 7
				tooltip = EVTTOOLTIP100472
			}
		}
	}
}

#Rivalry continues
character_event = {
	id = 100472
	desc = EVTDESC100472
	picture = GFX_evt_courtiers_talking
	
	is_triggered_only = yes
	
	option = {	
		name = EVTOPTA100472
		add_rival = FROM
	}
}

### Your rivalry to your liege is straining your commitment to your feudal duties ###
character_event = {
	id = 100480
	desc = EVTDESC100480
	picture = GFX_evt_courtiers_talking
	
	min_age = 16
	capable_only = yes
	only_rulers = yes
	prisoner = no
	war = no
	rivals = yes
	
	trigger = {
		in_command_trigger = no
		independent = no
		liege = {
			war = no
			is_adult = yes
			in_command_trigger = no
			prisoner = no
			num_of_rivals = 1
			any_rival = {
				character = ROOT
			}
		}
	}
	
	mean_time_to_happen = {
		months = 300
		
		modifier = {
			factor = 0.5
			trait = diligent
		}
		
		modifier = {
			factor = 2
			trait = envious
		}
	}
	
	option = {
		name = EVTOPTA100480
		any_liege = {
			limit = {
				war = no
				is_adult = yes
				in_command_trigger = no
				num_of_rivals = 1
				prisoner = no
				any_rival = {
					character = ROOT
				}
			}
			opinion = {
				modifier = opinion_stubborn_rival
				who = ROOT
				years = 10
			}
		}
	}
	option = {
		name = EVTOPTB100480
		any_liege = {
			limit = {
				war = no
				is_adult = yes
				in_command_trigger = no
				num_of_rivals = 1
				prisoner = no
				any_rival = {
					character = ROOT
				}
			}
			reverse_opinion = {
				modifier = opinion_respects_liege
				who = ROOT
				years = 10
			}
		}
	}
	option = {
		name = EVTOPTC100480
		any_liege = {
			limit = {
				war = no
				is_adult = yes
				in_command_trigger = no
				num_of_rivals = 1
				prisoner = no
				any_rival = {
					character = ROOT
				}
			}
			remove_rival = ROOT
			letter_event = {
				id = 100481
				days = 7
				random = 7
				tooltip = EVTTOOLTIP100481
			}				
		}
	}
}

#ROOT and Liege are no longer Rivals
letter_event = {
	id = 100481
	desc = EVTDESC100481
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA100481
		remove_rival = FROM
	}
}

### Your fierce rival has also become a follower of the new way of Christ ###
character_event = {
	id = 100500
	desc = EVTDESC100500
	picture = GFX_evt_bishop
	
	min_age = 16
	capable_only = yes
	only_rulers = yes
	prisoner = no
	religion_group = christian
	war = no
	rivals = yes
	
	is_triggered_only = yes
	
	trigger = {
		in_command_trigger = no
		NOT = {
			has_character_modifier = religious_rival_timer
		}
		FROM = {
			war = no
			age = 16
			in_command_trigger = no
			prisoner = no
			religion = ROOT
			NOT = {
				reverse_has_opinion_modifier = { who = ROOT modifier = opinion_continued_rivalry }
			}
			NOT = {
				has_opinion_modifier = { who = ROOT modifier = opinion_continued_rivalry }
			}
		}
	}
	
	immediate = {
		hidden_tooltip = {
			add_character_modifier = {
				name = religious_rival_timer
				duration = 2000
				hidden = yes
			}
		}
	}
	
	option = {
		name = EVTOPTA100500
		custom_tooltip = {
			text = EVTTOOLTIP100501
			hidden_tooltip = {
				FROM = {
					character_event = {
						id = 100501
						days = 7
						random = 7
					}
				}
			}
		}
	}
	option = {
		name = EVTOPTB100500
		if = {
			limit = {
				NOT = {
					trait = zealous
				}
				NOT = {
					trait = cynical
				}
			}
			add_trait = cynical
		}
		if = {
			limit = {
				NOT = {
					num_of_traits = 5
				}
				trait = zealous
			}
			remove_trait = zealous
		}
		if = {
			limit = {
				NOT = {
					num_of_traits = 5
				}
				trait = cynical
				NOT = {
					trait = wroth
				}
			}
			add_trait = wroth
		}
		if = {
			limit = {
				OR = {
					AND = {
						trait = cynical
						trait = wroth
					}
					num_of_traits = 4
				}
			}
			change_intrigue = 1
		}
	}
}

#Christian Rival decides if rivalry continues
character_event = {
	id = 100501
	desc = EVTDESC100501
	picture = GFX_evt_courtiers_talking
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA100501
		ai_chance = {
			factor = 10
			
			modifier = {
				factor = 10
				trait = zealous
			}
			modifier = {
				factor = 0.01
				trait = cynical
			}
		}
		remove_rival = FROM
		FROM = {
			character_event = {
				id = 100502
				days = 7
				random = 7
				tooltip = EVTTOOLTIP100502
			}
		}
	}
	option = {
		name = EVTOPTB100501
		ai_chance = {
			factor = 10
			
			modifier = {
				factor = 0.01
				trait = zealous
			}
			modifier = {
				factor = 10
				trait = cynical
			}
		}
		opinion = {
			modifier = opinion_continued_rivalry
			who = FROM
			years = 5
		}
		FROM = {
			character_event = {
				id = 100503
				days = 7
				random = 7
				tooltip = EVTTOOLTIP100503
			}
		}
	}
}

#ROOT learns Christian Rival decided rivalry discontinues
character_event = {
	id = 100502
	desc = EVTDESC100502
	picture = GFX_evt_courtiers_talking
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA100502
		remove_rival = FROM
	}
}

#ROOT learns Christian Rival decided rivalry continues
character_event = {
	id = 100503
	desc = EVTDESC100503
	picture = GFX_evt_courtiers_talking
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA100503
		opinion = {
			modifier = opinion_continued_rivalry
			who = FROM
			years = 5
		}
	}
}

### Root tries to wound rival during hunt ###
character_event = {
	id = 100510
	desc = EVTDESC100510
	picture = GFX_evt_hunt
	
	min_age = 16
	capable_only = yes
	only_rulers = yes
	prisoner = no
	war = no
	rivals = yes
	
	trigger = {
		in_command_trigger = no
		independent = no
		NOT = {
			has_character_flag = holding_grand_hunt
		}
		NOT = {
			has_character_modifier = hunting_rival_timer
		}
		liege = {
			war = no
			in_command_trigger = no
			is_abroad_trigger = no
			has_character_flag = holding_grand_hunt
		}
		any_rival = {
			war = no
			is_adult = yes
			in_command_trigger = no
			prisoner = no
			same_liege = ROOT
			NOT = {
				trait = wounded
			}
			can_be_maimed_trigger = yes
			NOT = {
				has_character_flag = holding_grand_hunt
			}
		}
	}
	
	mean_time_to_happen = {
		months = 300
		
		modifier = {
			factor = 0.5
			trait = brave
		}
		modifier = {
			factor = 0.5
			trait = deceitful
		}
		
		modifier = {
			factor = 2
			trait = craven
		}
		modifier = {
			factor = 2
			trait = honest
		}
	}
	
	immediate = {
		hidden_tooltip = {
			add_character_modifier = {
				name = hunting_rival_timer
				duration = 2000
				hidden = yes
			}
		}
	}
	
	option = {
		name = EVTOPTA100510
		random_rival = {
			limit = {
				war = no
				is_adult = yes
				in_command_trigger = no
				prisoner = no
				same_liege = ROOT
				NOT = {
					trait = wounded
				}
				can_be_maimed_trigger = yes
				NOT = {
					has_character_flag = holding_grand_hunt
				}
			}
			random_list = {
				65 = {
					hidden_tooltip = {
						character_event = {
							id = 100511
							days = 7
							random = 7
						}
					}
				}
				20 = {
					add_trait = wounded
					hidden_tooltip = {
						character_event = {
							id = 100511
						}
					}
				}
				10 = {
					add_maimed_trait_effect = yes
					hidden_tooltip = {
						character_event = {
							id = 100511
						}
					}
				}
				5 = {
					tooltip = {
						death = {
							death_reason = death_accident_arrow
						}
					}
					hidden_tooltip = {
						character_event = {
							id = 100511
						}
					}
				}
			}
		}	
	}
	option = {
		name = EVTOPTB100510
		trigger = {
			scaled_wealth = 0.5
			NOT = {
				martial = 10
			}
			any_courtier = {
				war = no
				in_command_trigger = no
				is_abroad_trigger = no
				is_female = no
				martial = 15
			}
		}
		random_courtier = {
			limit = {
				war = no
				in_command_trigger = no
				is_abroad_trigger = no
				is_female = no
				martial = 15
			}
			ROOT = {
				transfer_scaled_wealth = {
					to = PREV
					value = 0.25
				}
			}
			tooltip = {
				character_event = {
					id = 100511
					tooltip = EVTTOOLTIP100511
				}
			}
		}
		random_rival = {
			limit = {
				war = no
				is_adult = yes
				in_command_trigger = no
				prisoner = no
				same_liege = ROOT
				NOT = {
					trait = wounded
				}
				can_be_maimed_trigger = yes
				NOT = {
					has_character_flag = holding_grand_hunt
				}
			}
			random_list = {
				40 = {
					hidden_tooltip = {
						character_event = {
							id = 100511
						}
					}
				}
				30 = {
					add_trait = wounded
					hidden_tooltip = {
						character_event = {
							id = 100511
						}
					}
				}
				20 = {
					add_maimed_trait_effect = yes
					hidden_tooltip = {
						character_event = {
							id = 100511
						}
					}
				}
				10 = {
					set_character_flag = rival_killed_me
					tooltip = {
						death = {
							death_reason = death_accident_arrow
						}
					}
					hidden_tooltip = {
						character_event = {
							id = 100511
						}
					}
				}
			}
		}
	}
	option = {
		name = EVTOPTC100510
		random = {
			chance = 10
			character_event = {
				id = 36010
				days = 2
				random = 8
				tooltip = EVTTOOLTIP36010
			}
		}
	}
}

#Rival is wounded/maimed/killed
character_event = {
	id = 100511
	desc = EVTDESC100511
	picture = GFX_evt_hunt
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA100511
		tooltip_info = wounded
		trigger = {
			trait = wounded
		}
		if = {
			limit = {
				intrigue = 10
			}
			opinion = {
				modifier = opinion_revenge_seeker
				who = FROM
				years = 10
			}
			tooltip = {
				FROM = {
					character_event = {
						id = 100512
						days = 7
						random = 7
						tooltip = EVTTOOLTIPA100512
					}
				}
			}
		}
		hidden_tooltip = {
			FROM = {
				character_event = {
					id = 100512
					days = 7
					random = 7
				}
			}
		}
	}
	option = {
		name = EVTOPTB100511
		tooltip_info = maimed
		trigger = {
			is_maimed_trigger = yes
		}
		if = {
			limit = {
				intrigue = 10
			}
			opinion = {
				modifier = opinion_revenge_seeker
				who = FROM
				years = 10
			}
			tooltip = {
				FROM = {
					character_event = {
						id = 100512
						days = 7
						random = 7
						tooltip = EVTTOOLTIPA100512
					}
				}
			}
		}
		hidden_tooltip = {
			FROM = {
				character_event = {
					id = 100512
					days = 7
					random = 7
				}
			}
		}		
	}
	option = {
		name = EVTOPTC100511
		trigger = {
			has_character_flag = rival_killed_me
		}
		death = {
			death_reason = death_accident_arrow
		}
		clr_character_flag = rival_killed_me
		FROM = {
			character_event = {
				id = 100513
				days = 7
				random = 7
				tooltip = EVTTOOLTIPA100512
			}
		}
	}
	option = {
		name = EVTOPTD100511
		trigger = {
			NOT = {
				trait = wounded
			}
			NOT = {
				is_maimed_trigger = yes
			}
			NOT = {
				has_character_flag = rival_killed_me
			}
		}
		if = {
			limit = {
				intrigue = 10
			}
			opinion = {
				modifier = opinion_revenge_seeker
				who = FROM
				years = 10
			}
			tooltip = {
				FROM = {
					character_event = {
						id = 100512
						days = 7
						random = 7
						tooltip = EVTTOOLTIPB100512
					}
				}
			}
		}
		hidden_tooltip = {
			FROM = {
				character_event = {
					id = 100512
					days = 7
					random = 7
				}
			}
		}
	}
}

#The arrow missed its target OR wounded/maimed rival
character_event = {
	id = 100512
	desc = EVTDESC100512
	picture = GFX_evt_hunt
	
	is_triggered_only = yes

	option = {
		name = EVTOPTA100512
		trigger = {
			FROM ={
				trait = wounded
			}
		}
		prestige = 10
	}
	option = {
		name = EVTOPTB100512
		trigger = {
			FROM ={
				is_maimed_trigger = yes
			}
		}
		prestige = 50
	}
	option = {
		name = EVTOPTC100512
		trigger = {
			FROM ={
				NOT = {
					is_maimed_trigger = yes
				}
				NOT = {
					trait = wounded
				}
			}
		}
		prestige = -5
	}
}

#Rival is killed
character_event = {
	id = 100513
	desc = EVTDESC100513
	picture = GFX_evt_hunt
	
	is_triggered_only = yes

	option = {
		name = EVTOPTA100513
		prestige = 55
		if = {
			limit = {
				FROM = {
					any_child = {
						is_female = no
						is_primary_heir = yes
						is_abroad_trigger = no
						age = 10
					}
				}
			}
			FROM = {
				random_child = {
					limit = {
						is_female = no
						is_primary_heir = yes
						is_abroad_trigger = no
						age = 10
					}
				}
				random = {
					chance = 25
					opinion = {
						modifier = opinion_killed_father
						who = ROOT
						years = 100
					}
					character_event = {
						id = 100514
						days = 1
						random = 7
						tooltip = EVTTOOLTIP100514
					}
				}
			}
		}
	}
}

#Rival's son swears revenge
character_event = {
	id = 100514
	desc = EVTDESC100514
	picture = GFX_evt_death
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA100514
		tooltip = {
			opinion = {
				modifier = opinion_killed_father
				who = FROM
				years = 100
			}
		}
		add_rival = FROM
		opinion = {
			modifier = grievously_offended
			who = FROM
			years = 10
		}
	}
}

### Poison rival during liege's feast ###
character_event = {
	id = 100520
	desc = EVTDESC100520
	picture = GFX_evt_feast
	
	min_age = 16
	capable_only = yes
	prisoner = no
	has_character_flag = guest_feast_started
	war = no
	
	trigger = {
		in_command_trigger = no
		NOT = {
			has_character_modifier = master_poisoner
		}
		NOT = {
			has_character_modifier = the_content
		}
		any_rival = {
			war = no
			in_command_trigger = no
			prisoner = no
			same_liege = ROOT
			has_character_flag = guest_feast_started
		}
		liege = {
			has_character_flag = host_feast_started
		}
	}
	
	mean_time_to_happen = {
		months = 100
		
		modifier = {
			factor = 0.5
			trait = deceitful
		}
		modifier = {
			factor = 0.9
			intrigue = 10
		}
		modifier = {
			factor = 0.9
			intrigue = 15
		}
		modifier = {
			factor = 0.9
			intrigue = 20
		}
	}
	
	option = {
		name = EVTOPTA100520
		random_rival = {
			limit = {
				war = no
				in_command_trigger = no
				prisoner = no
				same_liege = ROOT
				has_character_flag = guest_feast_started
			}
			random_list = {
				50 = {
					hidden_tooltip = {
						ROOT = {
							character_event = {
								id = 100521
							}
						}
					}
				}
				20 = {
					tooltip = {
						if = {
							limit = {
								NOT = { has_dlc = "Reapers" }
							}
							add_trait = ill
						}
						if = {
							limit = {
								has_dlc = "Reapers"
							}
							add_trait = vomiting
							set_character_flag = disease_not_serious
							character_event = { id = RIP.11005 days = 10 random = 30 }
						}
					}
					set_character_flag = poisoned_ill
					hidden_tooltip = {
						character_event = {
							id = 100522
						}
					}
				}
				15 = {
					tooltip = { add_trait = infirm }
					set_character_flag = poisoned_infirm
					hidden_tooltip = {
						character_event = {
							id = 100522
						}
					}
				}
				10 = {
					tooltip = { 
						death = {
							death_reason = death_murder_poison
						}
					}
					set_character_flag = poisoned_killed
					hidden_tooltip = {
						character_event = {
							id = 100522
						}
					}
				}
				5 = {
					liege = {
						if = {
							limit = {
								NOT = {
									has_dlc = "Reapers"
								}
							}
							add_trait = ill
						}
						if = {
							limit = {
								has_dlc = "Reapers"
							}
							set_character_flag = disease_not_serious
							add_trait = vomiting
							character_event = { id = RIP.11005 days = 10 random = 30 }
						}
						character_event = {
							id = 100523
							tooltip = EVTTOOLTIP100523
						}
					}
				}
			}
		}
	}
	option = {
		name = EVTOPTB100520
		add_character_modifier = {
			name = the_content
			duration = 365
		}
	}
}

#Nothing happened
character_event = {
	id = 100521
	desc = EVTDESC100521
	picture = GFX_evt_feast
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA100521
		add_character_modifier = {
			name = the_failed_poisoner
			duration = 365
		}
	}
}
	
#Rival is poisoned!
character_event = {
	id = 100522
	desc = EVTDESC100522
	picture = GFX_evt_feast
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA100522
		trigger = {
			has_character_flag = death_murder_poison
		}
		if = {
			limit = {
				intrigue = 15
			}
			tooltip = {
				FROM = {
					character_event = {
						id = 100524
						tooltip = EVTTOOLTIP100524
					}
				}
			}
		}
		hidden_tooltip = {
			FROM = {
				character_event = {
					id = 100524
					days = 1
					random = 1
				}
			}
		}
		death = {
			death_reason = death_accident
		}
	}
	
	option = {
		name = EVTOPTB100522
		trigger = {
			has_character_flag = poisoned_infirm
		}
		add_trait = infirm
		if = {
			limit = {
				intrigue = 15
			}
			tooltip = {
				FROM = {
					character_event = {
						id = 100524
						tooltip = EVTTOOLTIP100524
					}
				}
			}
		}
		hidden_tooltip = {
			FROM = {
				character_event = {
					id = 100524
					days = 1
					random = 1
				}
			}
		}
	}
	
	option = {
		name = EVTOPTC100522
		trigger = {
			has_character_flag = poisoned_ill
		}
		if = {
			limit = {
				NOT = {
					has_dlc = "Reapers"
				}
			}
			add_trait = ill
		}
		if = {
			limit = {
				has_dlc = "Reapers"
			}
			set_character_flag = disease_not_serious
			add_trait = vomiting
			character_event = { id = RIP.11005 days = 10 random = 30 }
		}
		if = {
			limit = {
				intrigue = 15
			}
			tooltip = {
				FROM = {
					character_event = {
						id = 100524
						tooltip = EVTTOOLTIP100524
					}
				}
			}
		}
		hidden_tooltip = {
			FROM = {
				character_event = {
					id = 100524
					days = 1
					random = 1
				}
			}
		}
	}
}

#Liege is poisoned
character_event = {
	id = 100523
	desc = EVTDESC100523
	picture = GFX_evt_feast
	
	is_triggered_only = yes

	option = {
		name = EVTOPTA100523
		if = {
			limit = { NOT = { has_dlc = "Reapers" } }
			add_trait = ill
		}
		if = {
			limit = { has_dlc = "Reapers" }
			set_character_flag = disease_not_serious
			add_trait = vomiting
			character_event = { id = RIP.11005 days = 10 random = 30 }
		}
		if = {
			limit = {
				NOT = { num_of_vassals = 2 }
			}
			random_vassal = {
				limit = {
					age = 40
					has_character_flag = guest_feast_started
					NOT = { has_dlc = "Reapers" }
				}
				add_trait = ill
				set_character_flag = poisoned_at_feast
			}
			random_vassal = {
				limit = {
					age = 40
					has_character_flag = guest_feast_started
					has_dlc = "Reapers"
				}
				set_character_flag = poisoned_at_feast
				set_character_flag = disease_not_serious
				add_trait = vomiting
				character_event = { id = RIP.11005 days = 10 random = 30 }
			}
		}
		if = {
			limit = {
				NOT = { num_of_vassals = 3 }
			}
			random_vassal = {
				limit = {
					is_adult = yes
					trait = drunkard
					has_character_flag = guest_feast_started
					NOT = { has_dlc = "Reapers" }
				}
				add_trait = ill
				set_character_flag = poisoned_at_feast
			}
			random_vassal = {
				limit = {
					age = 16
					trait = drunkard
					has_character_flag = guest_feast_started
					has_dlc = "Reapers"
				}
				set_character_flag = poisoned_at_feast
				set_character_flag = disease_not_serious
				add_trait = vomiting
				character_event = { id = RIP.11005 days = 10 random = 30 }
			}
		}
		if = {
			limit = {
				num_of_vassals = 4
			}
			random_vassal = {
				limit = {
					is_adult = yes
					trait = gluttonous
					has_character_flag = guest_feast_started
					NOT = { has_dlc = "Reapers" }
				}
				add_trait = ill
				set_character_flag = poisoned_at_feast
			}
			random_vassal = {
				limit = {
					age = 16
					trait = gluttonous
					has_character_flag = guest_feast_started
					has_dlc = "Reapers"
				}
				set_character_flag = poisoned_at_feast
				set_character_flag = disease_not_serious
				add_trait = vomiting
				character_event = { id = RIP.11005 days = 10 random = 30 }
			}
		}
		if = {
			limit = {
				OR = {
					NOT = { intrigue = 15 }
					NOT = {
						any_courtier = {
							has_job_title = job_spymaster
							intrigue = 15
						}
					}
				}
			}
			any_vassal = {
				limit = {
					has_character_flag = guest_feast_started
				}
				opinion = {
					modifier = opinion_poisoner
					who = ROOT
					years = 5
				}
			}
		}
		if = {
			limit = {
				OR = {
					intrigue = 15
					any_courtier = {
						has_job_title = job_spymaster
						intrigue = 15
					}
				}
			}
			tooltip = {
				FROM = {
					character_event = {
						id = 100525
						tooltip = EVTTOOLTIP100525
					}
				}
			}
			hidden_tooltip = {
				character_event = {
					id = 100525
					tooltip = EVTTOOLTIP100525
				}
			}
		}
	}
}

#ROOT gets news about success: Rival is ill/infirm or dead
character_event = {
	id = 100524
	desc = EVTDESC100524
	picture = GFX_evt_feast
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA100524
		trigger = {
			FROM = {
				has_character_flag = death_accident
			}
		}
		FROM = {
			clr_character_flag = death_accident
		}
		add_character_modifier = {
			name = master_poisoner
			duration = 1095
		}
		if = {
			limit = {
				FROM = {
					any_child = {
						is_female = no
						is_primary_heir = yes
						is_abroad_trigger = no
						age = 10
					}
				}
			}
			FROM = {
				random_child = {
					limit = {
						is_female = no
						is_primary_heir = yes
						is_abroad_trigger = no
						age = 10
					}
				}
				random = {
					chance = 25
					opinion = {
						modifier = opinion_killed_father
						who = ROOT
						years = 100
					}
					character_event = {
						id = 100526
						days = 1
						random = 7
						tooltip = EVTTOOLTIP100526
					}
				}
			}
		}
	}
	option = {
		name = EVTOPTB100524
		trigger = {
			FROM = {
				has_character_flag = poisoned_infirm
			}
		}
		FROM = {
			clr_character_flag = poisoned_infirm
		}
		add_character_modifier = {
			name = master_poisoner
			duration = 730
		}
	}
	option = {
		name = EVTOPTC100524
		trigger = {
			FROM = {
				has_character_flag = poisoned_ill
			}
		}
		FROM = {
			clr_character_flag = poisoned_ill
		}
		add_character_modifier = {
			name = master_poisoner
			duration = 365
		}
	}
}

#Liege discovers ROOT was behind the poisoning
character_event = {
	id = 100525
	desc = EVTDESC100525
	picture = GFX_evt_feast
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA100525
		ai_chance = {
			factor = 10
		}
		FROM = {
			any_vassal = {
				limit = {
					OR = {
						has_character_flag = poisoned_at_feast
						has_character_flag = guest_feast_started
					}
				}
				clr_character_flag = poisoned_at_feast
				opinion = {
					modifier = opinion_poisoner
					who = ROOT
					years = 10
				}
			}
			opinion = {
				modifier = opinion_poisoner
				who = ROOT
				years = 10
			}
		}
		random_vassal = {
			limit = {
				has_character_flag = liege_knows_poison
			}
			clr_character_flag = liege_knows_poison
			imprison = ROOT
			hidden_tooltip = {
				set_character_flag = imprisoned_poisoner
				character_event = {
					id = 100527
				}
			}
		}
	}
	option = {
		name = EVTOPTB100525
		ai_chance = {
			factor = 1
		}
		FROM = {
			any_vassal = {
				limit = {
					OR = {
						has_character_flag = poisoned_at_feast
						has_character_flag = guest_feast_started
					}
				}
				clr_character_flag = poisoned_at_feast
				opinion = {
					modifier = opinion_poisoner
					who = ROOT
					years = 10
				}
			}
			opinion = {
				modifier = opinion_poisoner
				who = ROOT
				years = 10
			}
		}
		random_vassal = {
			limit = {
				has_character_flag = liege_knows_poison
			}
			clr_character_flag = liege_knows_poison
			banish = yes
			hidden_tooltip = {
				set_character_flag = banished_poisoner
				character_event = {
					id = 100527
				}
			}
		}
	}
	option = {
		name = EVTOPTC100525
		ai_chance = {
			factor = 61
		}
		add_character_modifier = {
			name = mod_forgives_poisoner
			duration = 365
		}
		FROM = {
			any_vassal = {
				limit = {
					OR = {
						has_character_flag = poisoned_at_feast
						has_character_flag = guest_feast_started
					}
				}
				clr_character_flag = poisoned_at_feast
				opinion = {
					modifier = opinion_poisoner
					who = ROOT
					years = 10
				}
			}
			opinion = {
				modifier = opinion_poisoner
				who = ROOT
				years = 10
			}
		}
		hidden_tooltip = {
			random_vassal = {
				limit = {
					has_character_flag = liege_knows_poison
				}
				clr_character_flag = liege_knows_poison
			}
		}
	}
}

#Rival's son swears revenge
character_event = {
	id = 100526
	desc = EVTDESC100526
	picture = GFX_evt_death
	
	is_triggered_only = yes
	
	option = {
		name = EVTOTPA100526
		tooltip = {
			opinion = {
				modifier = opinion_killed_father
				who = FROM
				years = 100
			}
		}
		add_rival = FROM
		opinion = {
			modifier = grievously_offended
			who = FROM
			years = 10
		}
	}
}

#ROOT is imprisoned/banished
character_event = {
	id = 100527
	desc = EVTDESC100527
	picture = GFX_evt_into_the_dungeon
	
	is_triggered_only = yes
	
	option = {
		name = EVTOTPA100527
		trigger = {
			has_character_flag = imprisoned_poisoner
		}
		clr_character_flag = imprisoned_poisoner
		tooltip = {
			imprison = FROM
		}
	}
	option = {
		name = EVTOTPB100527
		trigger = {
			has_character_flag = banished_poisoner
		}
		clr_character_flag = banished_poisoner
		tooltip = {
			banish = yes
		}
	}
}

### Revenge seeker seeks revenge ###
character_event = {
	id = 100530
	desc = EVTDESC100530
	picture = GFX_evt_council
	
	min_age = 16
	capable_only = yes
	prisoner = no
	rivals = yes
	
	trigger = {
		in_command_trigger = no
		any_rival = {
			in_command_trigger = no
			prisoner = no
			is_female = no
			reverse_has_opinion_modifier = { who = ROOT modifier = opinion_revenge_seeker }
		}
		NOT = {
			has_character_modifier = revenge_seeker_timer
		}
	}
	
	mean_time_to_happen = {
		months = 500
		
		modifier = {
			factor = 0.5
			trait = impaler
		}
		modifier = {
			factor = 0.5
			trait = wroth
		}
		
		modifier = {
			factor = 2
			trait = kind
		}
		modifier = {
			factor = 2
			trait = poet
		}
	}
	
	immediate = {
		hidden_tooltip = {
			add_character_modifier = {
				name = revenge_seeker_timer
				duration = 1825
				hidden = yes
			}
		}
	}
	
	option = {
		name = EVTOPTA100530 #Rumours
		trigger = {
			is_ruler = yes
			any_rival = {
				in_command_trigger = no
				prisoner = no
				is_ruler = yes
				is_female = no
				reverse_has_opinion_modifier = { who = ROOT modifier = opinion_revenge_seeker }
			}
		}
		random_rival = {
			limit = {
				in_command_trigger = no
				prisoner = no
				is_ruler = yes
				is_female = no
				reverse_has_opinion_modifier = { who = ROOT modifier = opinion_revenge_seeker }
			}
			random_list = {
				50 = {
					any_vassal = {
						opinion = {
							modifier = opinion_lost_respect
							who = PREV
							years = 5
						}
					}
					character_event = {
						id = 100531
						days = 7
						random = 7
						tooltip = EVTTOOLTIP100531
					}
				}
				50 = {
					ROOT = {
						character_event = {
							id = 100532
							days = 7
							random = 7
							tooltip = EVTTOOLTIP100532
						}
					}
				}
			}
		}
	}
	option = {
		name = EVTOPTB100530 #Kill
		ai_chance = {
			factor = 10
			
			modifier = {
				factor = 10
				is_maimed_trigger = yes
			}
			modifier = {
				factor = 5
				trait = wounded
			}
		}
		random_rival = {
			limit = {
				in_command_trigger = no
				prisoner = no
				reverse_has_opinion_modifier = { who = ROOT modifier = opinion_revenge_seeker }
			}
			character_event = {
				id = 100533
				days = 7
				random = 7
				tooltip = EVTTOOLTIP100533
			}			
		}
	}
	option = {
		name = EVTOPTC100530 #Maim/wound
		ai_chance = {
			factor = 10
			
			modifier = {
				factor = 10
				is_maimed_trigger = yes
			}
			modifier = {
				factor = 5
				trait = wounded
			}
		}
		random_rival = {
			limit = {
				in_command_trigger = no
				prisoner = no
				is_female = no
				reverse_has_opinion_modifier = { who = ROOT modifier = opinion_revenge_seeker }
			}
			character_event = {
				id = 100534
				days = 7
				random = 7
				tooltip = EVTTOOLTIP100534
			}
		}
	}
	option = {
		name = EVTOPTD100530 #Ignore
		random_rival = {
			limit = {
				in_command_trigger = no
				prisoner = no
				same_liege = ROOT
				is_female = no
				reverse_has_opinion_modifier = { who = ROOT modifier = opinion_revenge_seeker }
			}
			reverse_remove_opinion = { who = ROOT modifier = opinion_revenge_seeker }
		}
	}
}

#Rival is slandered
character_event = {
	id = 100531
	desc = EVTDESC100531
	picture = GFX_evt_scandal
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA100531
		any_vassal = {
			opinion = {
				modifier = opinion_lost_respect
				who = ROOT
				years = 5
			}
		}
		prestige = -10
		if = {
			limit = {
				OR = {
					intrigue = 15
					job_spymaster = {
						intrigue = 15
					}
				}
			}
			opinion = {
				modifier = opinion_revenge_seeker
				who = FROM
				years = 100
			}
			FROM = {
				set_character_flag = rival_discovered_slanderer
				tooltip = {
					character_event = {
						id = 100537
						tooltip = EVTTOOLTIP100537
					}
				}
			}
		}
		hidden_tooltip = {
			FROM = {
				character_event = {
					id = 100537
					days = 7
					random = 7
				}
			}
		}
	}
}

#ROOT: Rival got away
character_event = {
	id = 100532
	desc = EVTDESC100532
	picture = GFX_evt_spymaster
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA100532
		add_character_modifier = {
			name = poor_revenge_seeker
			duration = 365
		}
	}
}

#Rival is killed/got away
character_event = {
	id = 100533
	desc = EVTDESC100533
	picture = GFX_evt_peasants
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA100533
		if = {
			limit = {
				NOT = {
					trait = wounded
				}
				can_be_maimed_trigger = yes
				FROM = {
					OR = {
						intrigue = 15
						job_spymaster = {
							intrigue = 15
						}
					}
				}
			}
			random_list = {
				50 = {
					character_event = {
						id = 100538
						days = 1
						random = 1
						tooltip = EVTTOOLTIP100538
					}
					hidden_tooltip = {
						FROM = {
							character_event = {
								id = 100535
								days = 7
								random = 7
							}
						}
					}
				}
				25 = {
					add_trait = wounded
					hidden_tooltip = {
						FROM = {
							set_character_flag = revenge_wound
							character_event = {
								id = 100535
								days = 7
								random = 7
							}
						}
						character_event = {
							id = 38280 #Notify Wounded
						}
					}
				}
				15 = {
					add_maimed_trait_effect = yes
					hidden_tooltip = {
						FROM = {
							set_character_flag = revenge_maim
							character_event = {
								id = 100535
								days = 7
								random = 7
							}
						}
					}
				}
				10 = {
					death = {
						death_reason = death_rabble
					}
					FROM = {
						set_character_flag = revenge_killer
						character_event = {
							id = 100535
							days = 7
							random = 7
						}
					}
				}
			}
		}
		if = {
			limit = {
				NOT = {
					trait = wounded
				}
				NOT = {
					is_maimed_trigger = yes
				}
				FROM = {
					OR = {
						NOT = {
							intrigue = 15
						}
						NOT = {
							job_spymaster = {
								intrigue = 15
							}
						}
					}
				}
			}
			random_list = {
				70 = {
					character_event = {
						id = 100538
						days = 1
						random = 1
						tooltip = EVTTOOLTIP100538
					}
					hidden_tooltip = {
						FROM = {
							character_event = {
								id = 100535
								days = 7
								random = 7
							}
						}
					}
				}
				20 = {
					add_trait = wounded
					hidden_tooltip = {
						FROM = {
							set_character_flag = revenge_wound
							character_event = {
								id = 100535
								days = 7
								random = 7
							}
						}
						character_event = {
							id = 38280 #Notify Wounded
						}
					}
				}
				10 = {
					add_maimed_trait_effect = yes
					hidden_tooltip = {
						FROM = {
							set_character_flag = revenge_maim
							character_event = {
								id = 100535
								days = 7
								random = 7
							}
						}
					}
				}
				15 = {
					death = {
						death_reason = death_rabble
					}
					FROM = {
						set_character_flag = revenge_killer
						character_event = {
							id = 100535
							days = 7
							random = 7
						}
					}
				}
			}
		}
		if = {
			limit = {
				trait = wounded
				can_be_maimed_trigger = yes
				FROM = {
					OR = {
						intrigue = 15
						job_spymaster = {
							intrigue = 15
						}
					}
				}
			}
			random_list = {
				50 = {
					character_event = {
						id = 100538
						days = 1
						random = 1
						tooltip = EVTTOOLTIP100538
					}
					hidden_tooltip = {
						FROM = {
							character_event = {
								id = 100535
								days = 7
								random = 7
							}
						}
					}
				}
				30 = {
					add_maimed_trait_effect = yes
					hidden_tooltip = {
						FROM = {
							set_character_flag = revenge_maim
							character_event = {
								id = 100535
								days = 7
								random = 7
							}
						}
					}
				}
				20 = {
					death = {
						death_reason = death_rabble
					}
					FROM = {
						set_character_flag = revenge_killer
						character_event = {
							id = 100535
							days = 7
							random = 7
						}
					}
				}
			}
		}
		if = {
			limit = {
				NOT = {
					trait = wounded
				}
				is_maimed_trigger = yes
				FROM = {
					OR = {
						NOT = {
							intrigue = 15
						}
						NOT = {
							job_spymaster = {
								intrigue = 15
							}
						}
					}
				}
			}
			random_list = {
				30 = {
					character_event = {
						id = 100538
						days = 1
						random = 1
						tooltip = EVTTOOLTIP100538
					}
					hidden_tooltip = {
						FROM = {
							character_event = {
								id = 100535
								days = 7
								random = 7
							}
						}
					}
				}
				70 = {
					death = {
						death_reason = death_rabble
					}
					FROM = {
						set_character_flag = revenge_killer
						character_event = {
							id = 100535
							days = 7
							random = 7
						}
					}
				}
			}
		}
		if = {
			limit = {
				OR = {
					intrigue = 15
					job_spymaster = {
						intrigue = 15
					}
				}
			}
			opinion = {
				modifier = opinion_revenge_seeker
				who = FROM
				years = 100
			}
			tooltip = {
				FROM = {
					character_event = {
						id = 100535
						tooltip = EVTTOOLTIP100535
					}
				}
			}
		}
	}
}

#Rival is maimed/wounded
character_event = {
	id = 100534
	desc = EVTDESC100534
	picture = GFX_evt_peasants
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA100534
		if = {
			limit = {
				NOT = {
					trait = wounded
				}
				can_be_maimed_trigger = yes
				FROM = {
					OR = {
						intrigue = 15
						job_spymaster = {
							intrigue = 15
						}
					}
				}
			}
			random_list = {
				50 = {
					character_event = {
						id = 100538
						days = 1
						random = 1
						tooltip = EVTTOOLTIP100538
					}
					hidden_tooltip = {
						FROM = {
							character_event = {
								id = 100535
								days = 7
								random = 7
							}
						}
					}
				}
				25 = {
					add_trait = wounded
					hidden_tooltip = {
						FROM = {
							set_character_flag = revenge_wound
							character_event = {
								id = 100535
								days = 7
								random = 7
							}
						}
						character_event = {
							id = 38280 #Notify Wounded
						}
					}
				}
				15 = {
					add_maimed_trait_effect = yes
					hidden_tooltip = {
						FROM = {
							set_character_flag = revenge_maim
							character_event = {
								id = 100535
								days = 7
								random = 7
							}
						}
						character_event = {
							id = 38281 #Notify Maimed
						}
					}
				}
				10 = {
					death = {
						death_reason = death_rabble
					}
					FROM = {
						set_character_flag = revenge_killer
						character_event = {
							id = 100535
							days = 7
							random = 7
						}
					}
				}
			}
		}
		if = {
			limit = {
				NOT = {
					trait = wounded
				}
				can_be_maimed_trigger = yes
				FROM = {
					OR = {
						NOT = {
							intrigue = 15
						}
						NOT = {
							job_spymaster = {
								intrigue = 15
							}
						}
					}
				}
			}
			random_list = {
				70 = {
					character_event = {
						id = 100538
						days = 1
						random = 1
						tooltip = EVTTOOLTIP100538
					}
					hidden_tooltip = {
						FROM = {
							character_event = {
								id = 100535
								days = 7
								random = 7
							}
						}
					}
				}
				20 = {
					add_trait = wounded
					hidden_tooltip = {
						FROM = {
							set_character_flag = revenge_wound
							character_event = {
								id = 100535
								days = 7
								random = 7
							}
						}
						character_event = {
							id = 38280 #Notify Wounded
						}
					}
				}
				10 = {
					add_maimed_trait_effect = yes
					hidden_tooltip = {
						FROM = {
							set_character_flag = revenge_maim
							character_event = {
								id = 100535
								days = 7
								random = 7
							}
						}
					}
				}
				15 = {
					death = {
						death_reason = death_rabble
					}
					FROM = {
						set_character_flag = revenge_killer
						character_event = {
							id = 100535
							days = 7
							random = 7
						}
					}
				}
			}
		}
		if = {
			limit = {
				trait = wounded
				can_be_maimed_trigger = yes
				FROM = {
					OR = {
						intrigue = 15
						job_spymaster = {
							intrigue = 15
						}
					}
				}
			}
			random_list = {
				50 = {
					character_event = {
						id = 100538
						days = 1
						random = 1
						tooltip = EVTTOOLTIP100538
					}
					hidden_tooltip = {
						FROM = {
							character_event = {
								id = 100535
								days = 7
								random = 7
							}
						}
					}
				}
				30 = {
					add_maimed_trait_effect = yes
					hidden_tooltip = {
						FROM = {
							set_character_flag = revenge_maim
							character_event = {
								id = 100535
								days = 7
								random = 7
							}
						}
					}
				}
				20 = {
					death = {
						death_reason = death_rabble
					}
					FROM = {
						set_character_flag = revenge_killer
						character_event = {
							id = 100535
							days = 7
							random = 7
						}
					}
				}
			}
		}
		if = {
			limit = {
				NOT = {
					trait = wounded
				}
				is_maimed_trigger = yes
				FROM = {
					OR = {
						NOT = {
							intrigue = 15
						}
						NOT = {
							job_spymaster = {
								intrigue = 15
							}
						}
					}
				}
			}
			random_list = {
				30 = {
					character_event = {
						id = 100538
						days = 1
						random = 1
						tooltip = EVTTOOLTIP100538
					}
					hidden_tooltip = {
						FROM = {
							character_event = {
								id = 100535
								days = 7
								random = 7
							}
						}
					}
				}
				70 = {
					death = {
						death_reason = death_rabble
					}
					FROM = {
						set_character_flag = revenge_killer
						character_event = {
							id = 100535
							days = 7
							random = 7
						}
					}
				}
			}
		}
		if = {
			limit = {
				OR = {
					intrigue = 15
					job_spymaster = {
						intrigue = 15
					}
				}
			}
			tooltip = {
				FROM = {
					character_event = {
						id = 100536
						tooltip = EVTTOOLTIP100535
					}
				}
			}
		}
	}
}

#ROOT tried to kill Rival
character_event = {
	id = 100535
	desc = EVTDESC100535
	picture = GFX_evt_spymaster
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA100535
		trigger = {
			has_character_flag = revenge_killer
			NOT = {
				has_character_flag = revenge_maim
			}
			NOT = {
				has_character_flag = revenge_wound
			}
		}
		clr_character_flag = revenge_killer
		remove_opinion = { who = FROM modifier = opinion_revenge_seeker }
		add_character_modifier = {
			name = hot_revenge
			duration = 1825
		}
	}
	option = {
		name = EVTOPTB100535
		trigger = {
			NOT = {
				has_character_flag = revenge_killer
			}
			NOT = {
				has_character_flag = revenge_maim
			}
			NOT = {
				has_character_flag = revenge_wound
			}
		}
		add_character_modifier = {
			name = poor_revenge_seeker
			duration = 365
		}
	}
	option = {
		name = EVTOPTC100535
		trigger = {
			has_character_flag = revenge_wound
			NOT = {
				has_character_flag = revenge_killer
			}
			NOT = {
				has_character_flag = revenge_maim
			}
		}
		clr_character_flag = revenge_wound
		add_character_modifier = {
			name = hot_revenge
			duration = 730
		}
		remove_opinion = { who = FROM modifier = opinion_revenge_seeker }
	}
	option = {
		name = EVTOPTD100535
		trigger = {
			has_character_flag = revenge_maim
			NOT = {
				has_character_flag = revenge_killer
			}
			NOT = {
				has_character_flag = revenge_wound
			}
		}
		clr_character_flag = revenge_maim
		add_character_modifier = {
			name = hot_revenge
			duration = 1095
		}
		remove_opinion = { who = FROM modifier = opinion_revenge_seeker }
	}
}

#ROOT tried to wound/maim Rival
character_event = {
	id = 100536
	desc = EVTDESC100536
	picture = GFX_evt_spymaster
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA100536
		trigger = {
			has_character_flag = revenge_killer
			NOT = {
				has_character_flag = revenge_maim
			}
			NOT = {
				has_character_flag = revenge_wound
			}
		}
		clr_character_flag = revenge_killer
		remove_opinion = { who = FROM modifier = opinion_revenge_seeker }
		add_character_modifier = {
			name = hot_revenge
			duration = 1825
		}
	}
	option = {
		name = EVTOPTB100536
		trigger = {
			NOT = {
				has_character_flag = revenge_killer
			}
			NOT = {
				has_character_flag = revenge_maim
			}
			NOT = {
				has_character_flag = revenge_wound
			}
		}
		add_character_modifier = {
			name = poor_revenge_seeker
			duration = 365
		}
	}
	option = {
		name = EVTOPTC100536
		trigger = {
			has_character_flag = revenge_wound
			NOT = {
				has_character_flag = revenge_killer
			}
			NOT = {
				has_character_flag = revenge_maim
			}
		}
		add_character_modifier = {
			name = hot_revenge
			duration = 730
		}
		clr_character_flag = revenge_wound
		remove_opinion = { who = FROM modifier = opinion_revenge_seeker }
	}
	option = {
		name = EVTOPTD100536
		trigger = {
			has_character_flag = revenge_maim
			NOT = {
				has_character_flag = revenge_killer
			}
			NOT = {
				has_character_flag = revenge_wound
			}
		}
		clr_character_flag = revenge_maim
		add_character_modifier = {
			name = hot_revenge
			duration = 1095
		}
		remove_opinion = { who = FROM modifier = opinion_revenge_seeker }
	}
}

#ROOT: Rival is slandered
character_event = {
	id = 100537
	desc = EVTDESC100537
	picture = GFX_evt_scandal
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA100537
		trigger = {
			NOT = {
				has_character_flag = rival_discovered_slanderer
			}
		}
		add_character_modifier = {
			name = hot_revenge
			duration = 1095
		}
		remove_opinion = { who = FROM modifier = opinion_revenge_seeker }
	}
	option = {
		name = EVTOPTB100537
		trigger = {
			has_character_flag = rival_discovered_slanderer
		}
		clr_character_flag = rival_discovered_slanderer
		add_character_modifier = {
			name = hot_revenge
			duration = 730
		}
		remove_opinion = { who = FROM modifier = opinion_revenge_seeker }
	}
}

#Rival escaped!
character_event = {
	id = 100538
	desc = EVTDESC100538
	picture = GFX_evt_courier
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA100538
		if = {
			limit = {
				OR = {
					intrigue = 15
					job_spymaster = {
						intrigue = 15
					}
				}
			}
			tooltip = {
				FROM = {
					character_event = {
						id = 100536
						tooltip = EVTTOOLTIP100535
					}
				}
			}
		}
	}
}

### Son seeks revenge for his father ###
character_event = {
	id = 100540
	desc = EVTDESC100540
	picture = GFX_evt_council
	
	only_men = yes
	min_age = 16
	capable_only = yes
	prisoner = no
	war = no
	rivals = yes
	
	trigger = {
		in_command_trigger = no
		NOT = {
			has_character_modifier = killed_father_timer
		}
		NOT = {
			has_character_flag = avenged_father
		}
		any_rival = {
			war = no
			in_command_trigger = no
			prisoner = no
			reverse_has_opinion_modifier = { who = ROOT modifier = opinion_killed_father }
		}
	}
	
	mean_time_to_happen = {
		months = 500
		
		modifier = {
			factor = 0.5
			trait = impaler
		}
		modifier = {
			factor = 0.5
			trait = wroth
		}
		
		modifier = {
			factor = 2
			trait = kind
		}
		modifier = {
			factor = 2
			trait = poet
		}
	}
	
	immediate = {
		hidden_tooltip = {
			add_character_modifier = {
				name = killed_father_timer
				duration = 1825
				hidden = yes
			}
		}
	}
	
	option = {
		name = EVTOPTA100540 #Rumours
		trigger = {
			is_ruler = yes
			any_rival = {
				war = no
				in_command_trigger = no
				prisoner = no
				is_ruler = yes
				reverse_has_opinion_modifier = { who = ROOT modifier = opinion_killed_father }
			}
		}
		random_rival = {
			limit = {
				war = no
				in_command_trigger = no
				prisoner = no
				is_ruler = yes
				reverse_has_opinion_modifier = { who = ROOT modifier = opinion_killed_father }
			}
			random_list = {
				50 = {
					any_vassal = {
						opinion = {
							modifier = evil_murderer
							who = PREV
							years = 5
						}
					}
					character_event = {
						id = 100541
						days = 7
						random = 7
						tooltip = EVTTOOLTIP100541
					}
				}
				50 = {
					ROOT = {
						character_event = {
							id = 100542
							days = 7
							random = 7
							tooltip = EVTTOOLTIP100532
						}
					}
				}
			}
		}
	}
	option = {
		name = EVTOPTB100540 #Kill
		ai_chance = {
			factor = 10
			
			modifier = {
				factor = 10
				is_maimed_trigger = yes
			}
			modifier = {
				factor = 5
				trait = wounded
			}
		}
		random_rival = {
			limit = {
				war = no
				in_command_trigger = no
				prisoner = no
				reverse_has_opinion_modifier = { who = ROOT modifier = opinion_killed_father }
			}
			character_event = {
				id = 100543
				days = 7
				random = 7
				tooltip = EVTTOOLTIP100543
			}			
		}
	}
	option = {
		name = EVTOPTC100540 #Maim/wound
		ai_chance = {
			factor = 10
			
			modifier = {
				factor = 10
				is_maimed_trigger = yes
			}
			modifier = {
				factor = 5
				trait = wounded
			}
		}
		random_rival = {
			limit = {
				war = no
				in_command_trigger = no
				prisoner = no
				reverse_has_opinion_modifier = { who = ROOT modifier = opinion_killed_father }
			}
			character_event = {
				id = 100544
				days = 7
				random = 7
				tooltip = EVTTOOLTIP100544
			}
		}
	}
	option = {
		name = EVTOPTD100540 #Ignore
		random_rival = {
			limit = {
				war = no
				in_command_trigger = no
				prisoner = no
				same_liege = ROOT
				reverse_has_opinion_modifier = { who = ROOT modifier = opinion_killed_father }
			}
		}
	}
}

#Father's Murderer is slandered
character_event = {
	id = 100541
	desc = EVTDESC100541
	picture = GFX_evt_scandal
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA100541
		any_vassal = {
			opinion = {
				modifier = evil_murderer
				who = ROOT
				years = 5
			}
		}
		prestige = -10
		if = {
			limit = {
				OR = {
					intrigue = 15
					job_spymaster = {
						intrigue = 15
					}
				}
			}
			add_rival = FROM
			FROM = {
				set_character_flag = discovered_murderer
				tooltip = {
					character_event = {
						id = 100547
						tooltip = EVTTOOLTIP100547
					}
				}
			}
		}
		hidden_tooltip = {
			FROM = {
				character_event = {
					id = 100547
					days = 7
					random = 7
				}
			}
		}
	}
}

#ROOT: Father's Murderer got away
character_event = {
	id = 100542
	desc = EVTDESC100542
	picture = GFX_evt_spymaster
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA100542
		add_character_modifier = {
			name = poor_revenge_seeker
			duration = 365
		}
	}
}

#Father's Murderer is killed/got away
character_event = {
	id = 100543
	desc = EVTDESC100543
	picture = GFX_evt_peasants
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA100543
		if = {
			limit = {
				NOT = {
					trait = wounded
				}
				can_be_maimed_trigger = yes
				FROM = {
					OR = {
						intrigue = 15
						job_spymaster = {
							intrigue = 15
						}
					}
				}
			}
			random_list = {
				50 = {
					character_event = {
						id = 100538
						days = 1
						random = 1
						tooltip = EVTTOOLTIP100538
					}
					hidden_tooltip = {
						FROM = {
							character_event = {
								id = 100545
								days = 7
								random = 7
							}
						}
					}
				}
				25 = {
					add_trait = wounded
					hidden_tooltip = {
						FROM = {
							set_character_flag = revenge_wound
							character_event = {
								id = 100545
								days = 7
								random = 7
							}
						}
						character_event = {
							id = 38280 #Notify Wounded
						}
					}
				}
				15 = {
					add_maimed_trait_effect = yes
					hidden_tooltip = {
						FROM = {
							set_character_flag = revenge_maim
							character_event = {
								id = 100545
								days = 7
								random = 7
							}
						}
					}
				}
				10 = {
					death = {
						death_reason = death_rabble
					}
					FROM = {
						set_character_flag = revenge_killer
						character_event = {
							id = 100545
							days = 7
							random = 7
						}
					}
				}
			}
		}
		if = {
			limit = {
				NOT = {
					trait = wounded
				}
				can_be_maimed_trigger = yes
				FROM = {
					OR = {
						NOT = {
							intrigue = 15
						}
						NOT = {
							job_spymaster = {
								intrigue = 15
							}
						}
					}
				}
			}
			random_list = {
				70 = {
					character_event = {
						id = 100538
						days = 1
						random = 1
						tooltip = EVTTOOLTIP100538
					}
					hidden_tooltip = {
						FROM = {
							character_event = {
								id = 100545
								days = 7
								random = 7
							}
						}
					}
				}
				20 = {
					add_trait = wounded
					hidden_tooltip = {
						FROM = {
							set_character_flag = revenge_wound
							character_event = {
								id = 100545
								days = 7
								random = 7
							}
						}
						character_event = {
							id = 38280 #Notify Wounded
						}
					}
				}
				10 = {
					add_maimed_trait_effect = yes
					hidden_tooltip = {
						FROM = {
							set_character_flag = revenge_maim
							character_event = {
								id = 100545
								days = 7
								random = 7
							}
						}
					}
				}
				15 = {
					death = {
						death_reason = death_rabble
					}
					FROM = {
						set_character_flag = revenge_killer
						character_event = {
							id = 100545
							days = 7
							random = 7
						}
					}
				}
			}
		}
		if = {
			limit = {
				trait = wounded
				can_be_maimed_trigger = yes
				FROM = {
					OR = {
						intrigue = 15
						job_spymaster = {
							intrigue = 15
						}
					}
				}
			}
			random_list = {
				50 = {
					character_event = {
						id = 100538
						days = 1
						random = 1
						tooltip = EVTTOOLTIP100538
					}
					hidden_tooltip = {
						FROM = {
							character_event = {
								id = 100545
								days = 7
								random = 7
							}
						}
					}
				}
				30 = {
					add_maimed_trait_effect = yes
					hidden_tooltip = {
						FROM = {
							set_character_flag = revenge_maim
							character_event = {
								id = 100545
								days = 7
								random = 7
							}
						}
					}
				}
				20 = {
					death = {
						death_reason = death_rabble
					}
					FROM = {
						set_character_flag = revenge_killer
						character_event = {
							id = 100545
							days = 7
							random = 7
						}
					}
				}
			}
		}
		if = {
			limit = {
				NOT = {
					trait = wounded
				}
				is_maimed_trigger = yes
				FROM = {
					OR = {
						NOT = {
							intrigue = 15
						}
						NOT = {
							job_spymaster = {
								intrigue = 15
							}
						}
					}
				}
			}
			random_list = {
				30 = {
					character_event = {
						id = 100538
						days = 1
						random = 1
						tooltip = EVTTOOLTIP100538
					}
					hidden_tooltip = {
						FROM = {
							character_event = {
								id = 100545
								days = 7
								random = 7
							}
						}
					}
				}
				70 = {
					death = {
						death_reason = death_rabble
					}
					FROM = {
						set_character_flag = revenge_killer
						character_event = {
							id = 100545
							days = 7
							random = 7
						}
					}
				}
			}
		}
		if = {
			limit = {
				OR = {
					intrigue = 15
					job_spymaster = {
						intrigue = 15
					}
				}
			}
			opinion = {
				modifier = opinion_revenge_seeker
				who = FROM
				years = 100
			}
			tooltip = {
				FROM = {
					character_event = {
						id = 100545
						tooltip = EVTTOOLTIP100545
					}
				}
			}
		}
	}
}

#Father's Murderer is maimed/wounded
character_event = {
	id = 100544
	desc = EVTDESC100544
	picture = GFX_evt_peasants
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA100544
		if = {
			limit = {
				NOT = {
					trait = wounded
				}
				can_be_maimed_trigger = yes
				FROM = {
					OR = {
						intrigue = 15
						job_spymaster = {
							intrigue = 15
						}
					}
				}
			}
			random_list = {
				50 = {
					character_event = {
						id = 100538
						days = 1
						random = 1
						tooltip = EVTTOOLTIP100538
					}
					hidden_tooltip = {
						FROM = {
							character_event = {
								id = 100546
								days = 7
								random = 7
							}
						}
					}
				}
				25 = {
					add_trait = wounded
					hidden_tooltip = {
						FROM = {
							set_character_flag = revenge_wound
							character_event = {
								id = 100546
								days = 7
								random = 7
							}
						}
						character_event = {
							id = 38280 #Notify Wounded
						}
					}
				}
				15 = {
					add_maimed_trait_effect = yes
					hidden_tooltip = {
						FROM = {
							set_character_flag = revenge_maim
							character_event = {
								id = 100546
								days = 7
								random = 7
							}
						}
					}
				}
				10 = {
					death = {
						death_reason = death_rabble
					}
					FROM = {
						set_character_flag = revenge_killer
						character_event = {
							id = 100546
							days = 7
							random = 7
						}
					}
				}
			}
		}
		if = {
			limit = {
				NOT = {
					trait = wounded
				}
				can_be_maimed_trigger = yes
				FROM = {
					OR = {
						NOT = {
							intrigue = 15
						}
						NOT = {
							job_spymaster = {
								intrigue = 15
							}
						}
					}
				}
			}
			random_list = {
				70 = {
					character_event = {
						id = 100538
						days = 1
						random = 1
						tooltip = EVTTOOLTIP100538
					}
					hidden_tooltip = {
						FROM = {
							character_event = {
								id = 100546
								days = 7
								random = 7
							}
						}
					}
				}
				20 = {
					add_trait = wounded
					hidden_tooltip = {
						FROM = {
							set_character_flag = revenge_wound
							character_event = {
								id = 100546
								days = 7
								random = 7
							}
						}
						character_event = {
							id = 38280 #Notify Wounded
						}
					}
				}
				10 = {
					add_maimed_trait_effect = yes
					hidden_tooltip = {
						FROM = {
							set_character_flag = revenge_maim
							character_event = {
								id = 100546
								days = 7
								random = 7
							}
						}
					}
				}
				15 = {
					death = {
						death_reason = death_rabble
					}
					FROM = {
						set_character_flag = revenge_killer
						character_event = {
							id = 100546
							days = 7
							random = 7
						}
					}
				}
			}
		}
		if = {
			limit = {
				trait = wounded
				can_be_maimed_trigger = yes
				FROM = {
					OR = {
						intrigue = 15
						job_spymaster = {
							intrigue = 15
						}
					}
				}
			}
			random_list = {
				50 = {
					character_event = {
						id = 100538
						days = 1
						random = 1
						tooltip = EVTTOOLTIP100538
					}
					hidden_tooltip = {
						FROM = {
							character_event = {
								id = 100546
								days = 7
								random = 7
							}
						}
					}
				}
				30 = {
					add_maimed_trait_effect = yes
					hidden_tooltip = {
						FROM = {
							set_character_flag = revenge_maim
							character_event = {
								id = 100546
								days = 7
								random = 7
							}
						}
					}
				}
				20 = {
					death = {
						death_reason = death_rabble
					}
					FROM = {
						set_character_flag = revenge_killer
						character_event = {
							id = 100546
							days = 7
							random = 7
						}
					}
				}
			}
		}
		if = {
			limit = {
				NOT = {
					trait = wounded
				}
				is_maimed_trigger = yes
				FROM = {
					OR = {
						NOT = {
							intrigue = 15
						}
						NOT = {
							job_spymaster = {
								intrigue = 15
							}
						}
					}
				}
			}
			random_list = {
				30 = {
					character_event = {
						id = 100538
						days = 1
						random = 1
						tooltip = EVTTOOLTIP100538
					}
					hidden_tooltip = {
						FROM = {
							character_event = {
								id = 100546
								days = 7
								random = 7
							}
						}
					}
				}
				70 = {
					death = {
						death_reason = death_rabble
					}
					FROM = {
						set_character_flag = revenge_killer
						character_event = {
							id = 100546
							days = 7
							random = 7
						}
					}
				}
			}
		}
		if = {
			limit = {
				OR = {
					intrigue = 15
					job_spymaster = {
						intrigue = 15
					}
				}
			}
			tooltip = {
				FROM = {
					character_event = {
						id = 100546
						tooltip = EVTTOOLTIP100545
					}
				}
			}
		}
	}
}

#ROOT: Father's Murderer got away/is killed
character_event = {
	id = 100545
	desc = EVTDESC100545
	picture = GFX_evt_spymaster
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA100545
		trigger = {
			has_character_flag = revenge_killer
			NOT = {
				has_character_flag = revenge_maim
			}
			NOT = {
				has_character_flag = revenge_wound
			}
		}
		set_character_flag = avenged_father
		clr_character_flag = revenge_killer
		remove_opinion = { who = FROM modifier = opinion_revenge_seeker }
		add_character_modifier = {
			name = hot_revenge
			duration = 1825
		}
	}
	option = {
		name = EVTOPTB100545
		trigger = {
			NOT = {
				has_character_flag = revenge_killer
			}
			NOT = {
				has_character_flag = revenge_maim
			}
			NOT = {
				has_character_flag = revenge_wound
			}
		}
		add_character_modifier = {
			name = poor_revenge_seeker
			duration = 365
		}
	}
	option = {
		name = EVTOPTC100545
		trigger = {
			has_character_flag = revenge_wound
			NOT = {
				has_character_flag = revenge_killer
			}
			NOT = {
				has_character_flag = revenge_maim
			}
		}
		add_character_modifier = {
			name = hot_revenge
			duration = 730
		}
		clr_character_flag = revenge_wound
		set_character_flag = avenged_father
	}
	option = {
		name = EVTOPTD100545
		trigger = {
			has_character_flag = revenge_maim
			NOT = {
				has_character_flag = revenge_killer
			}
			NOT = {
				has_character_flag = revenge_wound
			}
		}
		add_character_modifier = {
			name = hot_revenge
			duration = 1095
		}
		clr_character_flag = revenge_maim
		set_character_flag = avenged_father
	}
}

#ROOT: Father's Murderer got away/is wounded/maimed
character_event = {
	id = 100546
	desc = EVTDESC100546
	picture = GFX_evt_spymaster
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA100546
		trigger = {
			has_character_flag = revenge_killer
			NOT = {
				has_character_flag = revenge_maim
			}
			NOT = {
				has_character_flag = revenge_wound
			}
		}
		set_character_flag = avenged_father
		clr_character_flag = revenge_killer
		add_character_modifier = {
			name = hot_revenge
			duration = 1825
		}
	}
	option = {
		name = EVTOPTB100546
		trigger = {
			NOT = {
				has_character_flag = revenge_killer
			}
			NOT = {
				has_character_flag = revenge_maim
			}
			NOT = {
				has_character_flag = revenge_wound
			}
		}
		add_character_modifier = {
			name = poor_revenge_seeker
			duration = 365
		}
	}
	option = {
		name = EVTOPTC100546
		trigger = {
			has_character_flag = revenge_wound
			NOT = {
				has_character_flag = revenge_killer
			}
			NOT = {
				has_character_flag = revenge_maim
			}
		}
		tooltip = {
			FROM = {
				add_trait = wounded
			}
		}
		clr_character_flag = revenge_wound
		set_character_flag = avenged_father
		add_character_modifier = {
			name = hot_revenge
			duration = 730
		}
	}
	option = {
		name = EVTOPTD100546
		trigger = {
			has_character_flag = revenge_maim
			NOT = {
				has_character_flag = revenge_killer
			}
			NOT = {
				has_character_flag = revenge_wound
			}
		}
		tooltip = {
			FROM = {
				add_maimed_trait_effect = yes
			}
		}
		clr_character_flag = revenge_maim
		set_character_flag = avenged_father
		add_character_modifier = {
			name = hot_revenge
			duration = 1095
		}
	}
}

#ROOT: Father's Murderer is slandered
character_event = {
	id = 100547
	desc = EVTDESC100547
	picture = GFX_evt_scandal
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA100547
		trigger = {
			NOT = {
				has_character_flag = discovered_murderer
			}
		}
		add_character_modifier = {
			name = hot_revenge
			duration = 1095
		}
		set_character_flag = avenged_father
	}
	option = {
		name = EVTOPTB100547
		trigger = {
			has_character_flag = discovered_murderer
		}
		clr_character_flag = discovered_murderer
		add_character_modifier = {
			name = hot_revenge
			duration = 730
		}
		set_character_flag = avenged_father
	}
}

### My friend has much better learning stats than me, ask for help? Muslim ###
character_event = {
	id = 100550
	desc = EVTDESC100550
	picture = GFX_evt_courtiers_talking
	
	prisoner = no
	min_age = 16
	capable_only = yes
	religion_group = muslim
	war = no
	friends = yes
	
	trigger = {
		in_command_trigger = no
		num_of_friends = 1
		learning = 5
		NOT = {
			learning = 10
		}
		NOT = {
			has_character_modifier = friend_learning_timer
		}
		NOT = {
			has_character_modifier = pious_imams
		}
		any_friend = {
			war = no
			in_command_trigger = no
			prisoner = no
			learning = 11
			religion_group = muslim
			OR = {
				piety = 100
				trait = zealous
			}
			religion = ROOT
			is_heretic = no
		}		
	}
	
	mean_time_to_happen = {
		months = 80
		
		modifier = {
			factor = 2
			trait = zealous
		}
		modifier = {
			factor = 0.5
			trait = cynical
		}
	}
	
	immediate = {
		hidden_tooltip = {
			add_character_modifier = {
				name = friend_learning_timer
				duration = 1825
				hidden = yes
			}
		}
	}
	
	option = {
		name = EVTOPTA100230
		random_friend = {
			limit = {
				war = no
				in_command_trigger = no
				prisoner = no
				learning = 11
				religion_group = muslim
			}
			character_event = {
				id = 100551
				days = 15
				random = 15
				tooltip = EVTTOOLTIP100231
			}
		}
	}
	option = {
		name = EVTOPTB100550
		piety = 10
	}
}

#Friend is asked by ROOT for help
character_event = {
	id = 100551
	desc = EVTDESC100551
	picture = GFX_evt_courtiers_talking
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA100231
		FROM = {
			opinion = {
				modifier = opinion_very_grateful
				who = ROOT
				years = 5
			}
			character_event = {
				id = 100552
				days = 7
				random = 7
				tooltip = EVTTOOLTIP100232
			}
		}
	}
	option = {
		name = EVTOPTB100551
		FROM = {
			opinion = {
				modifier = opinion_disappointed
				who = ROOT
				years = 5
			}
			character_event = {
				id = 100553
				days = 7
				random = 7
				tooltip = EVTTOOLTIP100553
			}
		}
	}
	option = {
		name = EVTOPTC100231
		FROM = {
			opinion = {
				modifier = opinion_grateful
				who = ROOT
				years = 5
			}
			character_event = {
				id = 100554
				days = 7
				random = 7
				tooltip = EVTTOOLTIP100234
			}
		}
	}
}

#ROOT gets help from friend
character_event = {
	id = 100552
	desc = EVTDESC100552
	picture = GFX_evt_courtiers_talking
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA100232
		trigger = {
			NOT = {
				has_character_flag = paid_advice
			}
		}
		tooltip = {
			opinion = {
				modifier = opinion_very_grateful
				who = ROOT
				years = 5
			}
		}
		change_learning = 1
		add_character_modifier = {
			name = pious_imams
			duration = 1095
		}
	}
	option = {
		name = EVTOPTB100552
		trigger = {
			has_character_flag = paid_advice
		}
		clr_character_flag = paid_advice
		tooltip = {
			opinion = {
				modifier = opinion_grateful
				who = ROOT
				years = 5
			}
		}
		change_learning = 1
		add_character_modifier = {
			name = pious_imams
			duration = 1095
		}
	}
}

#ROOT did not get help from friend
character_event = {
	id = 100553
	desc = EVTDESC100553
	picture = GFX_evt_courtiers_talking
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA100553
		tooltip = {
			opinion = {
				modifier = opinion_disappointed
				who = ROOT
				years = 5
			}
		}
		if = {
			limit = {
				NOR = {
					trait = stressed
					trait = depressed
				}
			}
			add_trait = stressed
		}
	}
}

#ROOT only gets help from friend if friend is paid
character_event = {
	id = 100554
	desc = EVTDESC100554
	picture = GFX_evt_courtiers_talking
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA100234
		ai_chance = {
			factor = 10
			
			modifier = {
				factor = 0.01
				scaled_wealth = 0.5
			}
			modifier = {
				factor = 10
				NOT = {
					scaled_wealth = 0.5
				}
			}
		}
		opinion = {
			modifier = opinion_disappointed
			who = FROM
			years = 5
		}
		FROM = {
			character_event = {
				id = 100555
				days = 7
				random = 7
				tooltip = EVTTOOLTIPA100235
			}
		}
	}
	option = {
		name = EVTOPTB100234
		ai_chance = {
			factor = 10
			
			modifier = {
				factor = 10
				scaled_wealth = 0.5
			}
			modifier = {
				factor = 0.01
				NOT = {
					scaled_wealth = 0.5
				}
			}
		}		
		tooltip = {
			transfer_scaled_wealth = {
				to = FROM
				value = 0.25
			}
		}
		FROM = {
			set_character_flag = paid_learning
			character_event = {
				id = 100555
				days = 7
				random = 7
				tooltip = EVTTOOLTIPB100235
			}
		}
	}
}

#Friend is/n't paid by ROOT
character_event = {
	id = 100555
	desc = EVTDESC100555
	picture = GFX_evt_courtiers_talking
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA100235
		trigger = {
			NOT = {
				has_character_flag = paid_learning
			}
		}
		tooltip = {
			reverse_opinion = {
				modifier = opinion_disappointed
				who = FROM
				years = 5
			}
		}
	}
	option = {
		name = EVTOPTB100235
		trigger = {
			has_character_flag = paid_learning
		}
		clr_character_flag = paid_learning
		FROM = {
			set_character_flag = paid_advice
			character_event = {
				id = 100552
				days = 7
				random = 7
				tooltip = EVTTOOLTIP100232
			}
			transfer_scaled_wealth = {
				to = ROOT
				value = 0.25
			}
		}
	}
}