﻿namespace = agse_squire_events

agse_squire_events.2430 = {
	type = character_event
	title = agse_squire_events.2430.t
	desc = {
		first_valid = {
			triggered_desc = {
				trigger = { scope:agse_squire = { any_parent = { this = root } } }
				desc = agse_squire_events.2430.desc_child
			}
			desc = agse_squire_events.2430.desc
		}
	}
	theme = dread
	override_background = { reference = courtyard }

	left_portrait = {
		character = root
		animation = disapproval
	}
	right_portrait = {
		character = scope:agse_squire
		animation = happiness
	}

	trigger = {
		agse_knight_with_squire_trigger = yes
		NOT = { exists = current_travel_plan }
		NOT = { exists = involved_activity }
		is_commanding_army = no
		NOT = { has_character_flag = agse_squire_event_cooldown }
		any_relation = {
			type = agot_squire
			agse_valid_home_squire_trigger = yes
			has_trait = sadistic
			NOT = { has_character_flag = agse_small_cruelty_seen }
		}
	}

	immediate = {
		random_relation = {
			type = agot_squire
			limit = {
				agse_valid_home_squire_trigger = yes
				has_trait = sadistic
				NOT = { has_character_flag = agse_small_cruelty_seen }
			}
			save_scope_as = agse_squire
		}
		add_character_flag = {
			flag = agse_squire_event_cooldown
			months = 6
		}
		scope:agse_squire = { add_character_flag = agse_small_cruelty_seen }
		debug_log = "AGSE: A Small Cruelty fired."
	}

	option = {
		name = {
			trigger = { has_trait = compassionate }
			text = agse_squire_events.2430.a.compassionate
		}
		name = {
			trigger = { scope:agse_squire = { any_parent = { this = root } } }
			text = agse_squire_events.2430.a.child
		}
		name = {
			trigger = { always = yes }
			text = agse_squire_events.2430.a
		}
		trait = compassionate
		agse_log_ai_squire_lesson_effect = { TRAIT = compassionate }
		ai_chance = {
			base = 10
			modifier = {
				add = 90
				has_trait = compassionate
			}
		}
		flavor = agse_squire_events.2430.a.flavor
		scope:agse_squire = {
			agse_try_squire_personality_imprint_effect = { TRAIT = compassionate }
			agot_add_squire_trait_xp_skip_chiv_bonus_effect = { MIN_VALUE = 1 MAX_VALUE = 1 }
			add_opinion = { target = root modifier = agse_condemned_my_cruelty_opinion }
			add_stress = minor_stress_gain
		}
		stress_impact = {
			compassionate = minor_stress_impact_loss
			callous = minor_stress_impact_gain
			sadistic = minor_stress_impact_gain
		}
	}

	option = {
		name = {
			trigger = { has_trait = just }
			text = agse_squire_events.2430.b.just
		}
		name = {
			trigger = { scope:agse_squire = { any_parent = { this = root } } }
			text = agse_squire_events.2430.b.child
		}
		name = {
			trigger = { always = yes }
			text = agse_squire_events.2430.b
		}
		trait = just
		agse_log_ai_squire_lesson_effect = { TRAIT = just }
		ai_chance = {
			base = 10
			modifier = {
				add = 90
				has_trait = just
			}
		}
		flavor = agse_squire_events.2430.b.flavor
		scope:agse_squire = {
			agse_try_squire_personality_imprint_effect = { TRAIT = just }
			agot_add_squire_trait_xp_skip_chiv_bonus_effect = { MIN_VALUE = 1 MAX_VALUE = 1 }
			add_opinion = { target = root modifier = agse_taught_me_restraint_opinion }
		}
		stress_impact = {
			just = minor_stress_impact_loss
			arbitrary = minor_stress_impact_gain
		}
	}

	option = {
		trigger = { NOT = { has_trait = sadistic } }
		name = agse_squire_events.2430.c
		trait = callous
		agse_log_ai_squire_lesson_effect = { TRAIT = callous }
		ai_chance = {
			base = 10
			modifier = {
				add = 90
				has_trait = callous
			}
		}
		flavor = agse_squire_events.2430.c.flavor
		scope:agse_squire = {
			agse_try_squire_personality_imprint_effect = { TRAIT = callous }
			agot_add_squire_trait_xp_skip_chiv_bonus_effect = { MIN_VALUE = 1 MAX_VALUE = 1 }
			add_opinion = { target = root modifier = agse_dismissed_my_cruelty_opinion }
		}
		stress_impact = {
			callous = minor_stress_impact_loss
			compassionate = minor_stress_impact_gain
		}
	}

	option = {
		trigger = { has_trait = sadistic }
		name = agse_squire_events.2430.c.sadistic
		trait = sadistic
		agse_log_ai_squire_lesson_effect = { TRAIT = sadistic }
		ai_chance = {
			base = 10
			modifier = {
				add = 90
				has_trait = sadistic
			}
		}
		flavor = agse_squire_events.2430.c.sadistic.flavor
		scope:agse_squire = {
			agot_add_squire_trait_xp_skip_chiv_bonus_effect = { MIN_VALUE = 1 MAX_VALUE = 1 }
			add_opinion = { target = root modifier = agse_approved_my_cruelty_opinion }
			add_stress = minor_stress_loss
		}
		hidden_effect = {
			trigger_event = { id = agse_squire_events.2435 days = 3 }
		}
		stress_impact = {
			sadistic = minor_stress_impact_loss
			compassionate = major_stress_impact_gain
		}
	}
}

agse_squire_events.2435 = {
	type = character_event
	title = agse_squire_events.2435.t
	desc = {
		first_valid = {
			triggered_desc = {
				trigger = { scope:agse_squire = { any_parent = { this = root } } }
				desc = agse_squire_events.2435.desc_child
			}
			desc = agse_squire_events.2435.desc
		}
	}
	theme = dread
	override_background = { reference = dungeon }

	left_portrait = {
		character = root
		animation = personality_callous
	}
	right_portrait = {
		character = scope:agse_squire
		animation = interested
	}
	lower_center_portrait = {
		character = scope:agse_rat_catcher
		animation = prisondungeon
	}

	trigger = {
		has_trait = sadistic
		exists = scope:agse_squire
		scope:agse_squire = {
			is_alive = yes
			has_trait = sadistic
			has_relation_agot_knight = root
		}
	}

	immediate = {
		create_character = {
			gender_female_chance = 0
			random_traits = yes
			age = { 25 55 }
			location = root.location
			faith = root.location.faith
			culture = root.location.culture
			dynasty = none
			after_creation = {
				set_to_lowborn = yes
			}
			save_scope_as = agse_rat_catcher
		}
		debug_log = "AGSE: A Better Subject fired."
	}

	option = {
		name = agse_squire_events.2435.a
		flavor = agse_squire_events.2435.a.flavor
		add_dread = minor_dread_gain
		add_stress = medium_stress_loss
		scope:agse_squire = {
			add_stress = minor_stress_loss
			add_opinion = { target = root modifier = agse_taught_me_cruelty_opinion }
		}
		if = {
			limit = { exists = location.county }
			location.county = {
				add_county_modifier = {
					modifier = agse_whispers_of_missing_rat_catcher_modifier
					years = 5
				}
			}
		}
	}

	after = {
		if = {
			limit = { exists = scope:agse_rat_catcher }
			scope:agse_rat_catcher = { silent_disappearance_effect = yes }
		}
	}
}

agse_squire_events.2440 = {
	type = character_event
	title = agse_squire_events.2440.t
	desc = {
		first_valid = {
			triggered_desc = {
				trigger = { scope:agse_squire = { any_parent = { this = root } } }
				desc = agse_squire_events.2440.desc_child
			}
			desc = agse_squire_events.2440.desc
		}
	}
	theme = diplomacy
	override_background = { reference = study }

	left_portrait = {
		character = root
		animation = disapproval
	}
	right_portrait = {
		character = scope:agse_squire
		animation = personality_bold
	}
	lower_center_portrait = {
		character = scope:agse_maester
		animation = personality_rational
	}

	trigger = {
		agse_knight_with_squire_trigger = yes
		NOT = { exists = current_travel_plan }
		NOT = { exists = involved_activity }
		is_commanding_army = no
		NOT = { has_character_flag = agse_squire_event_cooldown }
		any_relation = {
			type = agot_squire
			agse_valid_home_squire_trigger = yes
			has_trait = arrogant
			NOT = { has_character_flag = agse_little_lord_seen }
		}
		any_court_position_holder = {
			type = maester_court_position
			is_alive = yes
			is_imprisoned = no
			is_available = yes
			location = root.location
		}
	}

	immediate = {
		random_relation = {
			type = agot_squire
			limit = {
				agse_valid_home_squire_trigger = yes
				has_trait = arrogant
				NOT = { has_character_flag = agse_little_lord_seen }
			}
			save_scope_as = agse_squire
		}
		random_court_position_holder = {
			type = maester_court_position
			limit = {
				is_alive = yes
				is_imprisoned = no
				is_available = yes
				location = root.location
			}
			save_scope_as = agse_maester
		}
		add_character_flag = {
			flag = agse_squire_event_cooldown
			months = 6
		}
		scope:agse_squire = { add_character_flag = agse_little_lord_seen }
		debug_log = "AGSE: The Little Lord fired."
	}

	option = {
		name = {
			trigger = { has_trait = humble }
			text = agse_squire_events.2440.a.humble
		}
		name = {
			trigger = { scope:agse_squire = { any_parent = { this = root } } }
			text = agse_squire_events.2440.a.child
		}
		name = {
			trigger = { always = yes }
			text = agse_squire_events.2440.a
		}
		trait = humble
		agse_log_ai_squire_lesson_effect = { TRAIT = humble }
		ai_chance = {
			base = 10
			modifier = {
				add = 90
				has_trait = humble
			}
		}
		flavor = agse_squire_events.2440.a.flavor
		scope:agse_squire = {
			agse_try_squire_personality_imprint_effect = { TRAIT = humble }
			agot_add_squire_trait_xp_skip_chiv_bonus_effect = { MIN_VALUE = 1 MAX_VALUE = 1 }
			add_opinion = { target = root modifier = agse_made_me_serve_the_maester_opinion }
			add_stress = minor_stress_gain
		}
		scope:agse_maester = {
			add_opinion = { target = root modifier = agse_restored_my_dignity_opinion }
		}
		stress_impact = {
			humble = minor_stress_impact_loss
			arrogant = minor_stress_impact_gain
		}
	}

	option = {
		name = {
			trigger = { has_trait = just }
			text = agse_squire_events.2440.b.just
		}
		name = {
			trigger = { scope:agse_squire = { any_parent = { this = root } } }
			text = agse_squire_events.2440.b.child
		}
		name = {
			trigger = { always = yes }
			text = agse_squire_events.2440.b
		}
		trait = just
		agse_log_ai_squire_lesson_effect = { TRAIT = just }
		ai_chance = {
			base = 10
			modifier = {
				add = 90
				has_trait = just
			}
		}
		flavor = agse_squire_events.2440.b.flavor
		scope:agse_squire = {
			agse_try_squire_personality_imprint_effect = { TRAIT = just }
			agot_add_squire_trait_xp_skip_chiv_bonus_effect = { MIN_VALUE = 1 MAX_VALUE = 1 }
			add_opinion = { target = root modifier = agse_made_me_answer_fairly_opinion }
		}
		scope:agse_maester = {
			add_opinion = { target = root modifier = agse_corrected_my_squire_opinion }
		}
		stress_impact = {
			just = minor_stress_impact_loss
			arbitrary = minor_stress_impact_gain
		}
	}

	option = {
		name = {
			trigger = { has_trait = arrogant }
			text = agse_squire_events.2440.c.arrogant
		}
		name = {
			trigger = { scope:agse_squire = { any_parent = { this = root } } }
			text = agse_squire_events.2440.c.child
		}
		name = {
			trigger = { always = yes }
			text = agse_squire_events.2440.c
		}
		trait = arrogant
		agse_log_ai_squire_lesson_effect = { TRAIT = arrogant }
		ai_chance = {
			base = 10
			modifier = {
				add = 90
				has_trait = arrogant
			}
		}
		flavor = agse_squire_events.2440.c.flavor
		scope:agse_squire = {
			agot_add_squire_trait_xp_skip_chiv_bonus_effect = { MIN_VALUE = 1 MAX_VALUE = 1 }
			add_opinion = { target = root modifier = agse_approved_my_authority_opinion }
			add_stress = minor_stress_loss
		}
		scope:agse_maester = {
			add_opinion = { target = root modifier = agse_encouraged_my_tormentor_opinion }
		}
		stress_impact = {
			arrogant = minor_stress_impact_loss
			humble = minor_stress_impact_gain
		}
	}
}

agse_squire_events.2450 = {
	type = character_event
	title = agse_squire_events.2450.t
	desc = {
		first_valid = {
			triggered_desc = {
				trigger = { scope:agse_squire = { any_parent = { this = root } } }
				desc = agse_squire_events.2450.desc_child
			}
			desc = agse_squire_events.2450.desc
		}
	}
	theme = intrigue
	override_background = { reference = study }

	left_portrait = {
		character = root
		animation = worry
	}
	right_portrait = {
		character = scope:agse_squire
		animation = storyteller
	}

	trigger = {
		agse_knight_with_squire_trigger = yes
		NOT = { exists = current_travel_plan }
		NOT = { exists = involved_activity }
		is_commanding_army = no
		NOT = { has_character_flag = agse_squire_event_cooldown }
		any_relation = {
			type = agot_squire
			agse_valid_home_squire_trigger = yes
			has_trait = lunatic
			NOT = { has_character_flag = agse_empty_chair_seen }
		}
	}

	immediate = {
		random_relation = {
			type = agot_squire
			limit = {
				agse_valid_home_squire_trigger = yes
				has_trait = lunatic
				NOT = { has_character_flag = agse_empty_chair_seen }
			}
			save_scope_as = agse_squire
		}
		add_character_flag = {
			flag = agse_squire_event_cooldown
			months = 6
		}
		scope:agse_squire = { add_character_flag = agse_empty_chair_seen }
		debug_log = "AGSE: The Empty Chair fired."
	}

	option = {
		name = {
			trigger = { has_trait = patient }
			text = agse_squire_events.2450.a.patient
		}
		name = {
			trigger = { scope:agse_squire = { any_parent = { this = root } } }
			text = agse_squire_events.2450.a.child
		}
		name = {
			trigger = { always = yes }
			text = agse_squire_events.2450.a
		}
		trait = patient
		agse_log_ai_squire_lesson_effect = { TRAIT = patient }
		ai_chance = {
			base = 10
			modifier = {
				add = 90
				has_trait = patient
			}
		}
		flavor = agse_squire_events.2450.a.flavor
		scope:agse_squire = {
			agse_try_squire_personality_imprint_effect = { TRAIT = patient }
			agot_add_squire_trait_xp_skip_chiv_bonus_effect = { MIN_VALUE = 1 MAX_VALUE = 1 }
			add_opinion = { target = root modifier = agse_listened_to_the_voice_opinion }
			add_stress = minor_stress_loss
		}
		stress_impact = {
			patient = minor_stress_impact_loss
			impatient = minor_stress_impact_gain
		}
	}

	option = {
		name = {
			trigger = { has_trait = honest }
			text = agse_squire_events.2450.b.honest
		}
		name = {
			trigger = { scope:agse_squire = { any_parent = { this = root } } }
			text = agse_squire_events.2450.b.child
		}
		name = {
			trigger = { always = yes }
			text = agse_squire_events.2450.b
		}
		trait = honest
		agse_log_ai_squire_lesson_effect = { TRAIT = honest }
		ai_chance = {
			base = 10
			modifier = {
				add = 90
				has_trait = honest
			}
		}
		flavor = agse_squire_events.2450.b.flavor
		scope:agse_squire = {
			agse_try_squire_personality_imprint_effect = { TRAIT = honest }
			agot_add_squire_trait_xp_skip_chiv_bonus_effect = { MIN_VALUE = 1 MAX_VALUE = 1 }
			add_opinion = { target = root modifier = agse_denied_what_i_saw_opinion }
			add_stress = minor_stress_gain
		}
		stress_impact = {
			honest = minor_stress_impact_loss
			deceitful = minor_stress_impact_gain
			lunatic_1 = minor_stress_impact_gain
			lunatic_genetic = minor_stress_impact_gain
		}
	}

	option = {
		trigger = { NOT = { has_trait = lunatic } }
		name = {
			trigger = { has_trait = zealous }
			text = agse_squire_events.2450.c.zealous
		}
		name = {
			trigger = { scope:agse_squire = { any_parent = { this = root } } }
			text = agse_squire_events.2450.c.child
		}
		name = {
			trigger = { always = yes }
			text = agse_squire_events.2450.c
		}
		trait = zealous
		agse_log_ai_squire_lesson_effect = { TRAIT = zealous }
		ai_chance = {
			base = 10
			modifier = {
				add = 90
				has_trait = zealous
			}
		}
		flavor = agse_squire_events.2450.c.flavor
		scope:agse_squire = {
			agse_try_squire_personality_imprint_effect = { TRAIT = zealous }
			agot_add_squire_trait_xp_skip_chiv_bonus_effect = { MIN_VALUE = 1 MAX_VALUE = 1 }
			add_opinion = { target = root modifier = agse_tried_to_banish_the_voice_opinion }
			add_stress = minor_stress_loss
		}
		stress_impact = {
			zealous = minor_stress_impact_loss
			cynical = minor_stress_impact_gain
		}
	}

	option = {
		trigger = { has_trait = lunatic_1 }
		name = agse_squire_events.2450.c.lunatic
		trait = lunatic_1
		agse_log_ai_squire_lesson_effect = { TRAIT = lunatic_1 }
		ai_chance = {
			base = 10
			modifier = {
				add = 90
				has_trait = lunatic_1
			}
		}
		flavor = agse_squire_events.2450.c.lunatic.flavor
		add_stress = minor_stress_loss
		scope:agse_squire = {
			agot_add_squire_trait_xp_skip_chiv_bonus_effect = { MIN_VALUE = 1 MAX_VALUE = 1 }
			add_opinion = { target = root modifier = agse_believed_what_i_saw_opinion }
			add_stress = minor_stress_loss
		}
		hidden_effect = {
			if = {
				limit = {
					any_court_position_holder = {
						type = maester_court_position
						is_alive = yes
						is_imprisoned = no
						is_available = yes
						location = root.location
					}
				}
				random_court_position_holder = {
					type = maester_court_position
					limit = {
						is_alive = yes
						is_imprisoned = no
						is_available = yes
						location = root.location
					}
					save_scope_as = agse_maester
				}
				random = {
					chance = 20
					trigger_event = { id = agse_squire_events.2455 days = 3 }
				}
			}
		}
	}

	option = {
		trigger = { has_trait = lunatic_genetic }
		name = agse_squire_events.2450.c.lunatic
		trait = lunatic_genetic
		agse_log_ai_squire_lesson_effect = { TRAIT = lunatic_genetic }
		ai_chance = {
			base = 10
			modifier = {
				add = 90
				has_trait = lunatic_genetic
			}
		}
		flavor = agse_squire_events.2450.c.lunatic.flavor
		add_stress = minor_stress_loss
		scope:agse_squire = {
			agot_add_squire_trait_xp_skip_chiv_bonus_effect = { MIN_VALUE = 1 MAX_VALUE = 1 }
			add_opinion = { target = root modifier = agse_believed_what_i_saw_opinion }
			add_stress = minor_stress_loss
		}
		hidden_effect = {
			if = {
				limit = {
					any_court_position_holder = {
						type = maester_court_position
						is_alive = yes
						is_imprisoned = no
						is_available = yes
						location = root.location
					}
				}
				random_court_position_holder = {
					type = maester_court_position
					limit = {
						is_alive = yes
						is_imprisoned = no
						is_available = yes
						location = root.location
					}
					save_scope_as = agse_maester
				}
				random = {
					chance = 20
					trigger_event = { id = agse_squire_events.2455 days = 3 }
				}
			}
		}
	}
}

agse_squire_events.2455 = {
	type = character_event
	title = agse_squire_events.2455.t
	desc = {
		first_valid = {
			triggered_desc = {
				trigger = { scope:agse_squire = { any_parent = { this = root } } }
				desc = agse_squire_events.2455.desc_child
			}
			desc = agse_squire_events.2455.desc
		}
	}
	theme = intrigue
	override_background = { reference = study }

	left_portrait = {
		character = root
		animation = anger
	}
	right_portrait = {
		character = scope:agse_squire
		animation = anger
	}
	lower_center_portrait = {
		character = scope:agse_maester
		animation = shock
	}

	trigger = {
		has_trait = lunatic
		exists = scope:agse_squire
		scope:agse_squire = {
			is_alive = yes
			has_trait = lunatic
			has_relation_agot_knight = root
		}
		exists = scope:agse_maester
		scope:agse_maester = {
			is_alive = yes
			is_imprisoned = no
			is_available = yes
			has_court_position = maester_court_position
			is_court_position_employer = {
				court_position = maester_court_position
				who = root
			}
			location = root.location
		}
	}

	immediate = {
		debug_log = "AGSE: A Difference of Opinion fired."
	}

	option = {
		name = agse_squire_events.2455.a
		flavor = agse_squire_events.2455.a.flavor
		scope:agse_maester = {
			add_opinion = { target = root modifier = agse_am_i_the_mad_one_opinion }
		}
	}
}

agse_squire_events.2460 = {
	type = character_event
	title = agse_squire_events.2460.t
	desc = {
		first_valid = {
			triggered_desc = {
				trigger = { scope:agse_squire = { any_parent = { this = root } } }
				desc = agse_squire_events.2460.desc_child
			}
			desc = agse_squire_events.2460.desc
		}
	}
	theme = dread
	override_background = { reference = bedchamber }

	left_portrait = {
		character = root
		animation = thinking
	}
	right_portrait = {
		character = scope:agse_squire
		animation = fear
	}

	trigger = {
		agse_knight_with_squire_trigger = yes
		NOT = { exists = current_travel_plan }
		NOT = { exists = involved_activity }
		is_commanding_army = no
		NOT = { has_character_flag = agse_squire_event_cooldown }
		any_relation = {
			type = agot_squire
			agse_valid_home_squire_trigger = yes
			has_trait = craven
			NOT = { has_character_flag = agse_something_at_window_seen }
		}
	}

	immediate = {
		random_relation = {
			type = agot_squire
			limit = {
				agse_valid_home_squire_trigger = yes
				has_trait = craven
				NOT = { has_character_flag = agse_something_at_window_seen }
			}
			save_scope_as = agse_squire
		}
		add_character_flag = {
			flag = agse_squire_event_cooldown
			months = 6
		}
		scope:agse_squire = { add_character_flag = agse_something_at_window_seen }
		debug_log = "AGSE: Something at the Window fired."
	}

	option = {
		name = {
			trigger = { AND = { has_trait = brave scope:agse_squire = { any_parent = { this = root } } } }
			text = agse_squire_events.2460.a.brave_child
		}
		name = {
			trigger = { has_trait = brave }
			text = agse_squire_events.2460.a.brave
		}
		name = {
			trigger = { scope:agse_squire = { any_parent = { this = root } } }
			text = agse_squire_events.2460.a.child
		}
		name = {
			trigger = { always = yes }
			text = agse_squire_events.2460.a
		}
		trait = brave
		agse_log_ai_squire_lesson_effect = { TRAIT = brave }
		ai_chance = {
			base = 10
			modifier = {
				add = 90
				has_trait = brave
			}
		}
		flavor = agse_squire_events.2460.a.flavor
		scope:agse_squire = {
			agse_try_squire_personality_imprint_effect = { TRAIT = brave }
			agot_add_squire_trait_xp_skip_chiv_bonus_effect = { MIN_VALUE = 1 MAX_VALUE = 1 }
			add_opinion = { target = root modifier = agse_faced_the_shadow_with_me_opinion }
			add_stress = minor_stress_loss
		}
		stress_impact = {
			brave = minor_stress_impact_loss
			craven = minor_stress_impact_gain
		}
	}

	option = {
		name = {
			trigger = { AND = { has_trait = patient scope:agse_squire = { any_parent = { this = root } } } }
			text = agse_squire_events.2460.b.patient_child
		}
		name = {
			trigger = { has_trait = patient }
			text = agse_squire_events.2460.b.patient
		}
		name = {
			trigger = { scope:agse_squire = { any_parent = { this = root } } }
			text = agse_squire_events.2460.b.child
		}
		name = {
			trigger = { always = yes }
			text = agse_squire_events.2460.b
		}
		trait = patient
		agse_log_ai_squire_lesson_effect = { TRAIT = patient }
		ai_chance = {
			base = 10
			modifier = {
				add = 90
				has_trait = patient
			}
		}
		flavor = agse_squire_events.2460.b.flavor
		scope:agse_squire = {
			agse_try_squire_personality_imprint_effect = { TRAIT = patient }
			agot_add_squire_trait_xp_skip_chiv_bonus_effect = { MIN_VALUE = 1 MAX_VALUE = 1 }
			add_opinion = { target = root modifier = agse_took_my_fear_seriously_opinion }
			add_stress = minor_stress_loss
		}
		stress_impact = {
			patient = minor_stress_impact_loss
			impatient = minor_stress_impact_gain
		}
	}

	option = {
		trigger = { NOT = { has_trait = craven } }
		name = {
			trigger = { AND = { has_trait = impatient scope:agse_squire = { any_parent = { this = root } } } }
			text = agse_squire_events.2460.c.impatient_child
		}
		name = {
			trigger = { has_trait = impatient }
			text = agse_squire_events.2460.c.impatient
		}
		name = {
			trigger = { scope:agse_squire = { any_parent = { this = root } } }
			text = agse_squire_events.2460.c.child
		}
		name = {
			trigger = { always = yes }
			text = agse_squire_events.2460.c
		}
		trait = impatient
		agse_log_ai_squire_lesson_effect = { TRAIT = impatient }
		ai_chance = {
			base = 10
			modifier = {
				add = 90
				has_trait = impatient
			}
		}
		flavor = agse_squire_events.2460.c.flavor
		scope:agse_squire = {
			agse_try_squire_personality_imprint_effect = { TRAIT = impatient }
			agot_add_squire_trait_xp_skip_chiv_bonus_effect = { MIN_VALUE = 1 MAX_VALUE = 1 }
			add_opinion = { target = root modifier = agse_forced_me_to_face_the_shadow_opinion }
			add_stress = minor_stress_gain
		}
		stress_impact = {
			impatient = minor_stress_impact_loss
			patient = minor_stress_impact_gain
		}
	}

	option = {
		trigger = { has_trait = craven }
		name = {
			trigger = { scope:agse_squire = { any_parent = { this = root } } }
			text = agse_squire_events.2460.c.craven_child
		}
		name = {
			trigger = { always = yes }
			text = agse_squire_events.2460.c.craven
		}
		trait = craven
		agse_log_ai_squire_lesson_effect = { TRAIT = craven }
		ai_chance = {
			base = 10
			modifier = {
				add = 90
				has_trait = craven
			}
		}
		flavor = agse_squire_events.2460.c.craven.flavor
		scope:agse_squire = {
			agot_add_squire_trait_xp_skip_chiv_bonus_effect = { MIN_VALUE = 1 MAX_VALUE = 1 }
		}
		hidden_effect = {
			trigger_event = { id = agse_squire_events.2465 days = 1 }
		}
	}
}

agse_squire_events.2465 = {
	type = character_event
	title = agse_squire_events.2465.t
	desc = {
		first_valid = {
			triggered_desc = {
				trigger = { scope:agse_squire = { any_parent = { this = root } } }
				desc = agse_squire_events.2465.desc_child
			}
			desc = agse_squire_events.2465.desc
		}
	}
	theme = diplomacy
	override_background = { reference = bedchamber }

	left_portrait = {
		character = root
		animation = shame
	}
	right_portrait = {
		character = scope:agse_squire
		animation = shame
	}

	trigger = {
		exists = scope:agse_squire
		scope:agse_squire = {
			is_alive = yes
			has_relation_agot_knight = root
		}
	}

	immediate = {
		debug_log = "AGSE: The Morning Watch fired."
	}

	option = {
		name = agse_squire_events.2465.a
		flavor = agse_squire_events.2465.a.flavor
		add_stress = minor_stress_loss
		scope:agse_squire = {
			add_stress = minor_stress_loss
			add_opinion = { target = root modifier = agse_shared_the_night_in_fear_opinion }
		}
	}
}

agse_squire_events.2470 = {
	type = character_event
	title = agse_squire_events.2470.t
	desc = {
		first_valid = {
			triggered_desc = {
				trigger = { scope:agse_squire = { any_parent = { this = root } } }
				desc = agse_squire_events.2470.desc_child
			}
			desc = agse_squire_events.2470.desc
		}
	}
	theme = stewardship
	override_background = { reference = armory }

	left_portrait = {
		character = root
		animation = disapproval
	}
	right_portrait = {
		character = scope:agse_squire
		animation = happiness
	}

	trigger = {
		agse_knight_with_squire_trigger = yes
		NOT = { exists = current_travel_plan }
		NOT = { exists = involved_activity }
		is_commanding_army = no
		NOT = { has_character_flag = agse_squire_event_cooldown }
		any_relation = {
			type = agot_squire
			agse_valid_home_squire_trigger = yes
			has_trait = greedy
			NOT = { has_character_flag = agse_knights_price_seen }
		}
	}

	immediate = {
		random_relation = {
			type = agot_squire
			limit = {
				agse_valid_home_squire_trigger = yes
				has_trait = greedy
				NOT = { has_character_flag = agse_knights_price_seen }
			}
			save_scope_as = agse_squire
		}
		add_character_flag = {
			flag = agse_squire_event_cooldown
			months = 6
		}
		scope:agse_squire = { add_character_flag = agse_knights_price_seen }
		debug_log = "AGSE: A Knight's Price fired."
	}

	option = {
		name = {
			trigger = { has_trait = generous }
			text = agse_squire_events.2470.a.generous
		}
		name = {
			trigger = { scope:agse_squire = { any_parent = { this = root } } }
			text = agse_squire_events.2470.a.child
		}
		name = {
			trigger = { always = yes }
			text = agse_squire_events.2470.a
		}
		trait = generous
		agse_log_ai_squire_lesson_effect = { TRAIT = generous }
		ai_chance = {
			base = 10
			modifier = {
				add = 90
				has_trait = generous
			}
		}
		flavor = agse_squire_events.2470.a.flavor
		scope:agse_squire = {
			agse_try_squire_personality_imprint_effect = { TRAIT = generous }
			agot_add_squire_trait_xp_skip_chiv_bonus_effect = { MIN_VALUE = 1 MAX_VALUE = 1 }
			add_opinion = { target = root modifier = agse_made_me_return_the_coins_opinion }
			add_stress = minor_stress_gain
		}
		stress_impact = {
			generous = minor_stress_impact_loss
			greedy = minor_stress_impact_gain
		}
	}

	option = {
		name = {
			trigger = { has_trait = just }
			text = agse_squire_events.2470.b.just
		}
		name = {
			trigger = { scope:agse_squire = { any_parent = { this = root } } }
			text = agse_squire_events.2470.b.child
		}
		name = {
			trigger = { always = yes }
			text = agse_squire_events.2470.b
		}
		trait = just
		agse_log_ai_squire_lesson_effect = { TRAIT = just }
		ai_chance = {
			base = 10
			modifier = {
				add = 90
				has_trait = just
			}
		}
		flavor = agse_squire_events.2470.b.flavor
		scope:agse_squire = {
			agse_try_squire_personality_imprint_effect = { TRAIT = just }
			agot_add_squire_trait_xp_skip_chiv_bonus_effect = { MIN_VALUE = 1 MAX_VALUE = 1 }
			add_opinion = { target = root modifier = agse_taught_me_what_was_mine_opinion }
		}
		stress_impact = {
			just = minor_stress_impact_loss
			arbitrary = minor_stress_impact_gain
			greedy = minor_stress_impact_gain
		}
	}

	option = {
		name = {
			trigger = { has_trait = greedy }
			text = agse_squire_events.2470.c.greedy
		}
		name = {
			trigger = { scope:agse_squire = { any_parent = { this = root } } }
			text = agse_squire_events.2470.c.child
		}
		name = {
			trigger = { always = yes }
			text = agse_squire_events.2470.c
		}
		trait = greedy
		agse_log_ai_squire_lesson_effect = { TRAIT = greedy }
		ai_chance = {
			base = 10
			modifier = {
				add = 90
				has_trait = greedy
			}
		}
		flavor = agse_squire_events.2470.c.flavor
		add_gold = 5
		add_stress = minor_stress_loss
		scope:agse_squire = {
			agot_add_squire_trait_xp_skip_chiv_bonus_effect = { MIN_VALUE = 1 MAX_VALUE = 1 }
			add_opinion = { target = root modifier = agse_took_a_share_of_my_earnings_opinion }
			add_stress = minor_stress_loss
		}
		stress_impact = {
			greedy = minor_stress_impact_loss
			generous = minor_stress_impact_gain
			just = minor_stress_impact_gain
		}
	}
}

agse_squire_events.2480 = {
	type = character_event
	title = agse_squire_events.2480.t
	desc = {
		first_valid = {
			triggered_desc = {
				trigger = { scope:agse_squire = { any_parent = { this = root } } }
				desc = agse_squire_events.2480.desc_child
			}
			desc = agse_squire_events.2480.desc
		}
	}
	theme = diplomacy
	override_background = { reference = study }

	left_portrait = {
		character = root
		animation = thinking
	}
	right_portrait = {
		character = scope:agse_squire
		animation = worry
	}

	trigger = {
		agse_knight_with_squire_trigger = yes
		NOT = { exists = current_travel_plan }
		NOT = { exists = involved_activity }
		is_commanding_army = no
		NOT = { has_character_flag = agse_squire_event_cooldown }
		any_relation = {
			type = agot_squire
			agse_valid_home_squire_trigger = yes
			has_trait = shy
			NOT = { has_character_flag = agse_behind_the_tapestry_seen }
		}
	}

	immediate = {
		random_relation = {
			type = agot_squire
			limit = {
				agse_valid_home_squire_trigger = yes
				has_trait = shy
				NOT = { has_character_flag = agse_behind_the_tapestry_seen }
			}
			save_scope_as = agse_squire
		}
		add_character_flag = {
			flag = agse_squire_event_cooldown
			months = 6
		}
		scope:agse_squire = { add_character_flag = agse_behind_the_tapestry_seen }
		debug_log = "AGSE: Behind the Tapestry fired."
	}

	option = {
		name = {
			trigger = { has_trait = compassionate }
			text = agse_squire_events.2480.a.compassionate
		}
		name = {
			trigger = { scope:agse_squire = { any_parent = { this = root } } }
			text = agse_squire_events.2480.a.child
		}
		name = {
			trigger = { always = yes }
			text = agse_squire_events.2480.a
		}
		trait = compassionate
		agse_log_ai_squire_lesson_effect = { TRAIT = compassionate }
		ai_chance = {
			base = 10
			modifier = {
				add = 90
				has_trait = compassionate
			}
		}
		flavor = agse_squire_events.2480.a.flavor
		scope:agse_squire = {
			agse_try_squire_personality_imprint_effect = { TRAIT = compassionate }
			agot_add_squire_trait_xp_skip_chiv_bonus_effect = { MIN_VALUE = 1 MAX_VALUE = 1 }
			add_opinion = { target = root modifier = agse_entered_the_hall_beside_me_opinion }
			add_stress = minor_stress_loss
		}
		stress_impact = {
			compassionate = minor_stress_impact_loss
			callous = minor_stress_impact_gain
		}
	}

	option = {
		name = {
			trigger = { has_trait = brave }
			text = agse_squire_events.2480.b.brave
		}
		name = {
			trigger = { scope:agse_squire = { any_parent = { this = root } } }
			text = agse_squire_events.2480.b.child
		}
		name = {
			trigger = { always = yes }
			text = agse_squire_events.2480.b
		}
		trait = brave
		agse_log_ai_squire_lesson_effect = { TRAIT = brave }
		ai_chance = {
			base = 10
			modifier = {
				add = 90
				has_trait = brave
			}
		}
		flavor = agse_squire_events.2480.b.flavor
		scope:agse_squire = {
			agse_try_squire_personality_imprint_effect = { TRAIT = brave }
			agot_add_squire_trait_xp_skip_chiv_bonus_effect = { MIN_VALUE = 1 MAX_VALUE = 1 }
			add_opinion = { target = root modifier = agse_taught_me_to_face_the_hall_opinion }
			add_stress = minor_stress_gain
		}
		stress_impact = {
			brave = minor_stress_impact_loss
			craven = minor_stress_impact_gain
			shy = minor_stress_impact_gain
		}
	}

	option = {
		name = {
			trigger = { has_trait = shy }
			text = agse_squire_events.2480.c.shy
		}
		name = {
			trigger = { scope:agse_squire = { any_parent = { this = root } } }
			text = agse_squire_events.2480.c.child
		}
		name = {
			trigger = { always = yes }
			text = agse_squire_events.2480.c
		}
		trait = shy
		agse_log_ai_squire_lesson_effect = { TRAIT = shy }
		ai_chance = {
			base = 10
			modifier = {
				add = 90
				has_trait = shy
			}
		}
		flavor = agse_squire_events.2480.c.flavor
		add_stress = minor_stress_loss
		scope:agse_squire = {
			agot_add_squire_trait_xp_skip_chiv_bonus_effect = { MIN_VALUE = 1 MAX_VALUE = 1 }
			add_opinion = { target = root modifier = agse_shared_my_hiding_place_opinion }
			add_stress = minor_stress_loss
		}
		stress_impact = {
			shy = minor_stress_impact_loss
			gregarious = minor_stress_impact_gain
		}
	}
}

agse_squire_events.2490 = {
	type = character_event
	title = agse_squire_events.2490.t
	desc = {
		first_valid = {
			triggered_desc = {
				trigger = { scope:agse_squire = { any_parent = { this = root } } }
				desc = agse_squire_events.2490.desc_child
			}
			desc = agse_squire_events.2490.desc
		}
	}
	theme = intrigue
	override_background = { reference = study }

	left_portrait = {
		character = root
		animation = thinking
	}
	right_portrait = {
		character = scope:agse_squire
		animation = worry
	}

	trigger = {
		agse_knight_with_squire_trigger = yes
		NOT = { exists = current_travel_plan }
		NOT = { exists = involved_activity }
		is_commanding_army = no
		NOT = { has_character_flag = agse_squire_event_cooldown }
		any_relation = {
			type = agot_squire
			agse_valid_home_squire_trigger = yes
			has_trait = paranoid
			NOT = { has_character_flag = agse_an_inch_is_enough_seen }
		}
	}

	immediate = {
		random_relation = {
			type = agot_squire
			limit = {
				agse_valid_home_squire_trigger = yes
				has_trait = paranoid
				NOT = { has_character_flag = agse_an_inch_is_enough_seen }
			}
			save_scope_as = agse_squire
		}
		add_character_flag = {
			flag = agse_squire_event_cooldown
			months = 6
		}
		scope:agse_squire = { add_character_flag = agse_an_inch_is_enough_seen }
		debug_log = "AGSE: An Inch Is Enough fired."
	}

	option = {
		name = {
			trigger = { has_trait = trusting }
			text = agse_squire_events.2490.a.trusting
		}
		name = {
			trigger = { scope:agse_squire = { any_parent = { this = root } } }
			text = agse_squire_events.2490.a.child
		}
		name = {
			trigger = { always = yes }
			text = agse_squire_events.2490.a
		}
		trait = trusting
		agse_log_ai_squire_lesson_effect = { TRAIT = trusting }
		ai_chance = {
			base = 10
			modifier = {
				add = 90
				has_trait = trusting
			}
		}
		flavor = agse_squire_events.2490.a.flavor
		scope:agse_squire = {
			agse_try_squire_personality_imprint_effect = { TRAIT = trusting }
			agot_add_squire_trait_xp_skip_chiv_bonus_effect = { MIN_VALUE = 1 MAX_VALUE = 1 }
			add_opinion = { target = root modifier = agse_dismissed_my_suspicion_opinion }
			add_stress = minor_stress_gain
		}
		stress_impact = {
			trusting = minor_stress_impact_loss
			paranoid = minor_stress_impact_gain
		}
	}

	option = {
		name = {
			trigger = { has_trait = patient }
			text = agse_squire_events.2490.b.patient
		}
		name = {
			trigger = { scope:agse_squire = { any_parent = { this = root } } }
			text = agse_squire_events.2490.b.child
		}
		name = {
			trigger = { always = yes }
			text = agse_squire_events.2490.b
		}
		trait = patient
		agse_log_ai_squire_lesson_effect = { TRAIT = patient }
		ai_chance = {
			base = 10
			modifier = {
				add = 90
				has_trait = patient
			}
		}
		flavor = agse_squire_events.2490.b.flavor
		scope:agse_squire = {
			agse_try_squire_personality_imprint_effect = { TRAIT = patient }
			agot_add_squire_trait_xp_skip_chiv_bonus_effect = { MIN_VALUE = 1 MAX_VALUE = 1 }
			add_opinion = { target = root modifier = agse_heard_my_suspicion_opinion }
			add_stress = minor_stress_loss
		}
		stress_impact = {
			patient = minor_stress_impact_loss
			impatient = minor_stress_impact_gain
		}
	}

	option = {
		name = {
			trigger = { has_trait = paranoid }
			text = agse_squire_events.2490.c.paranoid
		}
		name = {
			trigger = { scope:agse_squire = { any_parent = { this = root } } }
			text = agse_squire_events.2490.c.child
		}
		name = {
			trigger = { always = yes }
			text = agse_squire_events.2490.c
		}
		trait = paranoid
		agse_log_ai_squire_lesson_effect = { TRAIT = paranoid }
		ai_chance = {
			base = 10
			modifier = {
				add = 90
				has_trait = paranoid
			}
		}
		flavor = agse_squire_events.2490.c.flavor
		add_stress = minor_stress_loss
		scope:agse_squire = {
			agot_add_squire_trait_xp_skip_chiv_bonus_effect = { MIN_VALUE = 1 MAX_VALUE = 1 }
			add_opinion = { target = root modifier = agse_shared_their_suspicion_opinion }
			add_stress = minor_stress_loss
		}
		hidden_effect = {
			if = {
				limit = {
					has_trait = paranoid
					any_councillor = {
						has_council_position = councillor_spymaster
						is_alive = yes
						is_imprisoned = no
						location = root.location
					}
				}
				random_councillor = {
					limit = {
						has_council_position = councillor_spymaster
						is_alive = yes
						is_imprisoned = no
						location = root.location
					}
					save_scope_as = agse_spymaster
				}
				random = {
					chance = 20
					trigger_event = { id = agse_squire_events.2495 days = 3 }
				}
			}
		}
		stress_impact = {
			paranoid = minor_stress_impact_loss
			trusting = minor_stress_impact_gain
		}
	}
}

agse_squire_events.2495 = {
	type = character_event
	title = agse_squire_events.2495.t
	desc = {
		first_valid = {
			triggered_desc = {
				trigger = { scope:agse_squire = { any_parent = { this = root } } }
				desc = agse_squire_events.2495.desc_child
			}
			desc = agse_squire_events.2495.desc
		}
	}
	theme = intrigue
	override_background = { reference = study }

	left_portrait = {
		character = root
		animation = thinking
	}
	right_portrait = {
		character = scope:agse_squire
		animation = worry
	}
	lower_center_portrait = {
		character = scope:agse_spymaster
		animation = disapproval
	}

	trigger = {
		has_trait = paranoid
		exists = scope:agse_squire
		exists = scope:agse_spymaster
		scope:agse_squire = {
			is_alive = yes
			has_trait = paranoid
			has_relation_agot_knight = root
		}
		scope:agse_spymaster = {
			is_alive = yes
			is_imprisoned = no
			has_council_position = councillor_spymaster
			location = root.location
		}
	}

	immediate = {
		debug_log = "AGSE: Nothing to Report fired."
	}

	option = {
		name = agse_squire_events.2495.a
		trait = paranoid
		agse_log_ai_squire_lesson_effect = { TRAIT = paranoid }
		ai_chance = {
			base = 10
			modifier = {
				add = 90
				has_trait = paranoid
			}
		}
		flavor = agse_squire_events.2495.a.flavor
		scope:agse_squire = {
			add_opinion = { target = root modifier = agse_shared_their_suspicion_opinion }
			add_stress = minor_stress_loss
		}
		scope:agse_spymaster = {
			add_opinion = { target = root modifier = agse_suspected_my_loyalty_opinion }
		}
	}
}

agse_squire_events.2500 = {
	type = character_event
	title = agse_squire_events.2500.t
	desc = {
		first_valid = {
			triggered_desc = {
				trigger = { scope:agse_squire = { any_parent = { this = root } } }
				desc = agse_squire_events.2500.desc_child
			}
			desc = agse_squire_events.2500.desc
		}
	}
	theme = diplomacy
	override_background = { reference = courtyard }

	left_portrait = {
		character = root
		animation = thinking
	}
	right_portrait = {
		character = scope:agse_squire
		animation = happiness
	}

	trigger = {
		agse_knight_with_squire_trigger = yes
		NOT = { exists = current_travel_plan }
		NOT = { exists = involved_activity }
		is_commanding_army = no
		NOT = { has_character_flag = agse_squire_event_cooldown }
		any_relation = {
			type = agot_squire
			agse_valid_home_squire_trigger = yes
			has_trait = content
			NOT = { has_character_flag = agse_no_songs_for_me_seen }
		}
	}

	immediate = {
		random_relation = {
			type = agot_squire
			limit = {
				agse_valid_home_squire_trigger = yes
				has_trait = content
				NOT = { has_character_flag = agse_no_songs_for_me_seen }
			}
			save_scope_as = agse_squire
		}
		add_character_flag = {
			flag = agse_squire_event_cooldown
			months = 6
		}
		scope:agse_squire = { add_character_flag = agse_no_songs_for_me_seen }
		debug_log = "AGSE: No Songs for Me fired."
	}

	option = {
		name = {
			trigger = { has_trait = ambitious }
			text = agse_squire_events.2500.a.ambitious
		}
		name = {
			trigger = { scope:agse_squire = { any_parent = { this = root } } }
			text = agse_squire_events.2500.a.child
		}
		name = {
			trigger = { always = yes }
			text = agse_squire_events.2500.a
		}
		trait = ambitious
		agse_log_ai_squire_lesson_effect = { TRAIT = ambitious }
		ai_chance = {
			base = 10
			modifier = {
				add = 90
				has_trait = ambitious
			}
		}
		flavor = agse_squire_events.2500.a.flavor
		scope:agse_squire = {
			agse_try_squire_personality_imprint_effect = { TRAIT = ambitious }
			agot_add_squire_trait_xp_skip_chiv_bonus_effect = { MIN_VALUE = 1 MAX_VALUE = 1 }
			add_opinion = { target = root modifier = agse_urged_me_to_seek_greater_things_opinion }
			stress_impact = { content = minor_stress_impact_gain }
		}
		stress_impact = {
			ambitious = minor_stress_impact_loss
			content = minor_stress_impact_gain
		}
	}

	option = {
		name = {
			trigger = { has_trait = diligent }
			text = agse_squire_events.2500.b.diligent
		}
		name = {
			trigger = { scope:agse_squire = { any_parent = { this = root } } }
			text = agse_squire_events.2500.b.child
		}
		name = {
			trigger = { always = yes }
			text = agse_squire_events.2500.b
		}
		trait = diligent
		agse_log_ai_squire_lesson_effect = { TRAIT = diligent }
		ai_chance = {
			base = 10
			modifier = {
				add = 90
				has_trait = diligent
			}
		}
		flavor = agse_squire_events.2500.b.flavor
		scope:agse_squire = {
			agse_try_squire_personality_imprint_effect = { TRAIT = diligent }
			agot_add_squire_trait_xp_skip_chiv_bonus_effect = { MIN_VALUE = 1 MAX_VALUE = 1 }
			add_opinion = { target = root modifier = agse_taught_me_to_earn_my_holdfast_opinion }
			add_stress = minor_stress_loss
		}
		stress_impact = {
			diligent = minor_stress_impact_loss
			lazy = minor_stress_impact_gain
		}
	}

	option = {
		name = {
			trigger = { has_trait = content }
			text = agse_squire_events.2500.c.content
		}
		name = {
			trigger = { scope:agse_squire = { any_parent = { this = root } } }
			text = agse_squire_events.2500.c.child
		}
		name = {
			trigger = { always = yes }
			text = agse_squire_events.2500.c
		}
		trait = content
		agse_log_ai_squire_lesson_effect = { TRAIT = content }
		ai_chance = {
			base = 10
			modifier = {
				add = 90
				has_trait = content
			}
		}
		flavor = agse_squire_events.2500.c.flavor
		add_stress = minor_stress_loss
		scope:agse_squire = {
			agot_add_squire_trait_xp_skip_chiv_bonus_effect = { MIN_VALUE = 1 MAX_VALUE = 1 }
			add_opinion = { target = root modifier = agse_respected_my_simple_dream_opinion }
			add_stress = minor_stress_loss
		}
		stress_impact = {
			content = minor_stress_impact_loss
			ambitious = minor_stress_impact_gain
		}
	}
}

agse_squire_events.2510 = {
	type = character_event
	title = agse_squire_events.2510.t
	desc = {
		first_valid = {
			triggered_desc = {
				trigger = { scope:agse_squire = { any_parent = { this = root } } }
				desc = agse_squire_events.2510.desc_child
			}
			desc = agse_squire_events.2510.desc
		}
	}
	theme = martial
	override_background = { reference = courtyard }

	left_portrait = {
		character = root
		animation = disapproval
	}
	right_portrait = {
		character = scope:agse_squire
		animation = happiness
	}

	trigger = {
		agse_knight_with_squire_trigger = yes
		NOT = { exists = current_travel_plan }
		NOT = { exists = involved_activity }
		is_commanding_army = no
		NOT = { has_character_flag = agse_squire_event_cooldown }
		any_relation = {
			type = agot_squire
			agse_valid_home_squire_trigger = yes
			has_trait = impatient
			NOT = { has_character_flag = agse_before_cockcrow_seen }
		}
	}

	immediate = {
		random_relation = {
			type = agot_squire
			limit = {
				agse_valid_home_squire_trigger = yes
				has_trait = impatient
				NOT = { has_character_flag = agse_before_cockcrow_seen }
			}
			save_scope_as = agse_squire
		}
		add_character_flag = {
			flag = agse_squire_event_cooldown
			months = 6
		}
		scope:agse_squire = { add_character_flag = agse_before_cockcrow_seen }
		debug_log = "AGSE: Before Cockcrow fired."
	}

	option = {
		name = {
			trigger = { has_trait = patient }
			text = agse_squire_events.2510.a.patient
		}
		name = {
			trigger = { scope:agse_squire = { any_parent = { this = root } } }
			text = agse_squire_events.2510.a.child
		}
		name = {
			trigger = { always = yes }
			text = agse_squire_events.2510.a
		}
		trait = patient
		agse_log_ai_squire_lesson_effect = { TRAIT = patient }
		ai_chance = {
			base = 10
			modifier = {
				add = 90
				has_trait = patient
			}
		}
		flavor = agse_squire_events.2510.a.flavor
		scope:agse_squire = {
			agse_try_squire_personality_imprint_effect = { TRAIT = patient }
			agot_add_squire_trait_xp_skip_chiv_bonus_effect = { MIN_VALUE = 1 MAX_VALUE = 1 }
			add_opinion = { target = root modifier = agse_made_me_wait_for_dawn_opinion }
			stress_impact = { impatient = minor_stress_impact_gain }
		}
		stress_impact = {
			patient = minor_stress_impact_loss
			impatient = minor_stress_impact_gain
		}
	}

	option = {
		name = {
			trigger = { has_trait = diligent }
			text = agse_squire_events.2510.b.diligent
		}
		name = {
			trigger = { scope:agse_squire = { any_parent = { this = root } } }
			text = agse_squire_events.2510.b.child
		}
		name = {
			trigger = { always = yes }
			text = agse_squire_events.2510.b
		}
		trait = diligent
		agse_log_ai_squire_lesson_effect = { TRAIT = diligent }
		ai_chance = {
			base = 10
			modifier = {
				add = 90
				has_trait = diligent
			}
		}
		flavor = agse_squire_events.2510.b.flavor
		scope:agse_squire = {
			agse_try_squire_personality_imprint_effect = { TRAIT = diligent }
			agot_add_squire_trait_xp_skip_chiv_bonus_effect = { MIN_VALUE = 1 MAX_VALUE = 1 }
			add_opinion = { target = root modifier = agse_put_my_early_hour_to_use_opinion }
			add_stress = minor_stress_loss
		}
		stress_impact = {
			diligent = minor_stress_impact_loss
			lazy = minor_stress_impact_gain
		}
	}

	option = {
		name = {
			trigger = { has_trait = impatient }
			text = agse_squire_events.2510.c.impatient
		}
		name = {
			trigger = { scope:agse_squire = { any_parent = { this = root } } }
			text = agse_squire_events.2510.c.child
		}
		name = {
			trigger = { always = yes }
			text = agse_squire_events.2510.c
		}
		trait = impatient
		agse_log_ai_squire_lesson_effect = { TRAIT = impatient }
		ai_chance = {
			base = 10
			modifier = {
				add = 90
				has_trait = impatient
			}
		}
		flavor = agse_squire_events.2510.c.flavor
		add_stress = minor_stress_loss
		scope:agse_squire = {
			agot_add_squire_trait_xp_skip_chiv_bonus_effect = { MIN_VALUE = 1 MAX_VALUE = 1 }
			add_opinion = { target = root modifier = agse_rode_before_dawn_with_me_opinion }
			add_stress = minor_stress_loss
		}
		stress_impact = {
			impatient = minor_stress_impact_loss
			patient = minor_stress_impact_gain
		}
	}
}

agse_squire_events.2520 = {
	type = character_event
	title = agse_squire_events.2520.t
	desc = {
		first_valid = {
			triggered_desc = {
				trigger = { scope:agse_squire = { any_parent = { this = root } } }
				desc = agse_squire_events.2520.desc_child
			}
			desc = agse_squire_events.2520.desc
		}
	}
	theme = stewardship
	override_background = { reference = bedchamber }

	left_portrait = {
		character = root
		animation = disapproval
	}
	right_portrait = {
		character = scope:agse_squire
		animation = worry
	}

	trigger = {
		agse_knight_with_squire_trigger = yes
		NOT = { exists = current_travel_plan }
		NOT = { exists = involved_activity }
		is_commanding_army = no
		NOT = { has_character_flag = agse_squire_event_cooldown }
		any_relation = {
			type = agot_squire
			agse_valid_home_squire_trigger = yes
			has_trait = gluttonous
			NOT = { has_character_flag = agse_hidden_larder_seen }
		}
	}

	immediate = {
		random_relation = {
			type = agot_squire
			limit = {
				agse_valid_home_squire_trigger = yes
				has_trait = gluttonous
				NOT = { has_character_flag = agse_hidden_larder_seen }
			}
			save_scope_as = agse_squire
		}
		add_character_flag = {
			flag = agse_squire_event_cooldown
			months = 6
		}
		scope:agse_squire = { add_character_flag = agse_hidden_larder_seen }
		debug_log = "AGSE: The Hidden Larder fired."
	}

	option = {
		name = {
			trigger = { has_trait = temperate }
			text = agse_squire_events.2520.a.temperate
		}
		name = {
			trigger = { scope:agse_squire = { any_parent = { this = root } } }
			text = agse_squire_events.2520.a.child
		}
		name = {
			trigger = { always = yes }
			text = agse_squire_events.2520.a
		}
		trait = temperate
		agse_log_ai_squire_lesson_effect = { TRAIT = temperate }
		ai_chance = {
			base = 10
			modifier = {
				add = 90
				has_trait = temperate
			}
		}
		flavor = agse_squire_events.2520.a.flavor
		scope:agse_squire = {
			agse_try_squire_personality_imprint_effect = { TRAIT = temperate }
			agot_add_squire_trait_xp_skip_chiv_bonus_effect = { MIN_VALUE = 1 MAX_VALUE = 1 }
			add_opinion = { target = root modifier = agse_made_me_return_my_provisions_opinion }
			stress_impact = { gluttonous = minor_stress_impact_gain }
		}
		stress_impact = {
			temperate = minor_stress_impact_loss
			gluttonous = minor_stress_impact_gain
		}
	}

	option = {
		name = {
			trigger = { has_trait = generous }
			text = agse_squire_events.2520.b.generous
		}
		name = {
			trigger = { scope:agse_squire = { any_parent = { this = root } } }
			text = agse_squire_events.2520.b.child
		}
		name = {
			trigger = { always = yes }
			text = agse_squire_events.2520.b
		}
		trait = generous
		agse_log_ai_squire_lesson_effect = { TRAIT = generous }
		ai_chance = {
			base = 10
			modifier = {
				add = 90
				has_trait = generous
			}
		}
		flavor = agse_squire_events.2520.b.flavor
		scope:agse_squire = {
			agse_try_squire_personality_imprint_effect = { TRAIT = generous }
			agot_add_squire_trait_xp_skip_chiv_bonus_effect = { MIN_VALUE = 1 MAX_VALUE = 1 }
			add_opinion = { target = root modifier = agse_turned_my_hoard_into_a_feast_opinion }
			add_stress = minor_stress_loss
		}
		stress_impact = {
			generous = minor_stress_impact_loss
			greedy = minor_stress_impact_gain
		}
	}

	option = {
		name = {
			trigger = { has_trait = gluttonous }
			text = agse_squire_events.2520.c.gluttonous
		}
		name = {
			trigger = { scope:agse_squire = { any_parent = { this = root } } }
			text = agse_squire_events.2520.c.child
		}
		name = {
			trigger = { always = yes }
			text = agse_squire_events.2520.c
		}
		trait = gluttonous
		agse_log_ai_squire_lesson_effect = { TRAIT = gluttonous }
		ai_chance = {
			base = 10
			modifier = {
				add = 90
				has_trait = gluttonous
			}
		}
		flavor = agse_squire_events.2520.c.flavor
		add_stress = minor_stress_loss
		scope:agse_squire = {
			agot_add_squire_trait_xp_skip_chiv_bonus_effect = { MIN_VALUE = 1 MAX_VALUE = 1 }
			add_opinion = { target = root modifier = agse_shared_my_hidden_larder_opinion }
			add_stress = minor_stress_loss
		}
		stress_impact = {
			gluttonous = minor_stress_impact_loss
			temperate = minor_stress_impact_gain
		}
	}
}

agse_squire_events.2530 = {
	type = character_event
	title = agse_squire_events.2530.t
	desc = {
		first_valid = {
			triggered_desc = {
				trigger = { scope:agse_squire = { any_parent = { this = root } } }
				desc = agse_squire_events.2530.desc_child
			}
			desc = agse_squire_events.2530.desc
		}
	}
	theme = stewardship
	override_background = { reference = courtyard }

	left_portrait = {
		character = root
		animation = disapproval
	}
	right_portrait = {
		character = scope:agse_squire
		animation = worry
	}

	trigger = {
		agse_knight_with_squire_trigger = yes
		NOT = { exists = current_travel_plan }
		NOT = { exists = involved_activity }
		is_commanding_army = no
		NOT = { has_character_flag = agse_squire_event_cooldown }
		any_relation = {
			type = agot_squire
			agse_valid_home_squire_trigger = yes
			has_trait = honest
			NOT = { has_character_flag = agse_short_measure_seen }
		}
	}

	immediate = {
		random_relation = {
			type = agot_squire
			limit = {
				agse_valid_home_squire_trigger = yes
				has_trait = honest
				NOT = { has_character_flag = agse_short_measure_seen }
			}
			save_scope_as = agse_squire
		}
		add_character_flag = {
			flag = agse_squire_event_cooldown
			months = 6
		}
		scope:agse_squire = { add_character_flag = agse_short_measure_seen }
		debug_log = "AGSE: The Short Measure fired."
	}

	option = {
		name = {
			trigger = { has_trait = deceitful }
			text = agse_squire_events.2530.a.deceitful
		}
		name = {
			trigger = { scope:agse_squire = { any_parent = { this = root } } }
			text = agse_squire_events.2530.a.child
		}
		name = {
			trigger = { always = yes }
			text = agse_squire_events.2530.a
		}
		trait = deceitful
		agse_log_ai_squire_lesson_effect = { TRAIT = deceitful }
		ai_chance = {
			base = 10
			modifier = {
				add = 90
				has_trait = deceitful
			}
		}
		flavor = agse_squire_events.2530.a.flavor
		scope:agse_squire = {
			agse_try_squire_personality_imprint_effect = { TRAIT = deceitful }
			agot_add_squire_trait_xp_skip_chiv_bonus_effect = { MIN_VALUE = 1 MAX_VALUE = 1 }
			add_opinion = { target = root modifier = agse_taught_me_to_sheathe_the_truth_opinion }
			stress_impact = { honest = minor_stress_impact_gain }
		}
		stress_impact = {
			deceitful = minor_stress_impact_loss
			honest = minor_stress_impact_gain
		}
	}

	option = {
		name = {
			trigger = { has_trait = brave }
			text = agse_squire_events.2530.b.brave
		}
		name = {
			trigger = { scope:agse_squire = { any_parent = { this = root } } }
			text = agse_squire_events.2530.b.child
		}
		name = {
			trigger = { always = yes }
			text = agse_squire_events.2530.b
		}
		trait = brave
		agse_log_ai_squire_lesson_effect = { TRAIT = brave }
		ai_chance = {
			base = 10
			modifier = {
				add = 90
				has_trait = brave
			}
		}
		flavor = agse_squire_events.2530.b.flavor
		scope:agse_squire = {
			agse_try_squire_personality_imprint_effect = { TRAIT = brave }
			agot_add_squire_trait_xp_skip_chiv_bonus_effect = { MIN_VALUE = 1 MAX_VALUE = 1 }
			add_opinion = { target = root modifier = agse_taught_me_to_stand_by_my_word_opinion }
			add_stress = minor_stress_loss
		}
		stress_impact = {
			brave = minor_stress_impact_loss
			craven = minor_stress_impact_gain
		}
	}

	option = {
		name = {
			trigger = { has_trait = honest }
			text = agse_squire_events.2530.c.honest
		}
		name = {
			trigger = { scope:agse_squire = { any_parent = { this = root } } }
			text = agse_squire_events.2530.c.child
		}
		name = {
			trigger = { always = yes }
			text = agse_squire_events.2530.c
		}
		trait = honest
		agse_log_ai_squire_lesson_effect = { TRAIT = honest }
		ai_chance = {
			base = 10
			modifier = {
				add = 90
				has_trait = honest
			}
		}
		flavor = agse_squire_events.2530.c.flavor
		add_stress = minor_stress_loss
		scope:agse_squire = {
			agot_add_squire_trait_xp_skip_chiv_bonus_effect = { MIN_VALUE = 1 MAX_VALUE = 1 }
			add_opinion = { target = root modifier = agse_stood_by_my_truth_opinion }
			add_stress = minor_stress_loss
		}
		stress_impact = {
			honest = minor_stress_impact_loss
			deceitful = minor_stress_impact_gain
		}
	}
}

agse_squire_events.2540 = {
	type = character_event
	title = agse_squire_events.2540.t
	desc = {
		first_valid = {
			triggered_desc = {
				trigger = { scope:agse_squire = { any_parent = { this = root } } }
				desc = agse_squire_events.2540.desc_child
			}
			desc = agse_squire_events.2540.desc
		}
	}
	theme = dread
	override_background = { reference = courtyard }

	left_portrait = {
		character = root
		animation = disapproval
	}
	right_portrait = {
		character = scope:agse_squire
		animation = happiness
	}

	trigger = {
		agse_knight_with_squire_trigger = yes
		NOT = { exists = current_travel_plan }
		NOT = { exists = involved_activity }
		is_commanding_army = no
		NOT = { has_character_flag = agse_squire_event_cooldown }
		any_relation = {
			type = agot_squire
			agse_valid_home_squire_trigger = yes
			has_trait = vengeful
			NOT = { has_character_flag = agse_debt_in_horsehair_seen }
		}
	}

	immediate = {
		random_relation = {
			type = agot_squire
			limit = {
				agse_valid_home_squire_trigger = yes
				has_trait = vengeful
				NOT = { has_character_flag = agse_debt_in_horsehair_seen }
			}
			save_scope_as = agse_squire
		}
		add_character_flag = {
			flag = agse_squire_event_cooldown
			months = 6
		}
		scope:agse_squire = { add_character_flag = agse_debt_in_horsehair_seen }
		debug_log = "AGSE: A Debt in Horsehair fired."
	}

	option = {
		name = {
			trigger = { has_trait = forgiving }
			text = agse_squire_events.2540.a.forgiving
		}
		name = {
			trigger = { scope:agse_squire = { any_parent = { this = root } } }
			text = agse_squire_events.2540.a.child
		}
		name = {
			trigger = { always = yes }
			text = agse_squire_events.2540.a
		}
		trait = forgiving
		agse_log_ai_squire_lesson_effect = { TRAIT = forgiving }
		ai_chance = {
			base = 10
			modifier = {
				add = 90
				has_trait = forgiving
			}
		}
		flavor = agse_squire_events.2540.a.flavor
		scope:agse_squire = {
			agse_try_squire_personality_imprint_effect = { TRAIT = forgiving }
			agot_add_squire_trait_xp_skip_chiv_bonus_effect = { MIN_VALUE = 1 MAX_VALUE = 1 }
			add_opinion = { target = root modifier = agse_made_me_swallow_the_insult_opinion }
			stress_impact = { vengeful = minor_stress_impact_gain }
		}
		stress_impact = {
			forgiving = minor_stress_impact_loss
			vengeful = minor_stress_impact_gain
		}
	}

	option = {
		name = {
			trigger = { has_trait = just }
			text = agse_squire_events.2540.b.just
		}
		name = {
			trigger = { scope:agse_squire = { any_parent = { this = root } } }
			text = agse_squire_events.2540.b.child
		}
		name = {
			trigger = { always = yes }
			text = agse_squire_events.2540.b
		}
		trait = just
		agse_log_ai_squire_lesson_effect = { TRAIT = just }
		ai_chance = {
			base = 10
			modifier = {
				add = 90
				has_trait = just
			}
		}
		flavor = agse_squire_events.2540.b.flavor
		scope:agse_squire = {
			agse_try_squire_personality_imprint_effect = { TRAIT = just }
			agot_add_squire_trait_xp_skip_chiv_bonus_effect = { MIN_VALUE = 1 MAX_VALUE = 1 }
			add_opinion = { target = root modifier = agse_taught_me_to_answer_wrongs_openly_opinion }
			add_stress = minor_stress_loss
		}
		stress_impact = {
			just = minor_stress_impact_loss
			arbitrary = minor_stress_impact_gain
		}
	}

	option = {
		name = {
			trigger = { has_trait = vengeful }
			text = agse_squire_events.2540.c.vengeful
		}
		name = {
			trigger = { scope:agse_squire = { any_parent = { this = root } } }
			text = agse_squire_events.2540.c.child
		}
		name = {
			trigger = { always = yes }
			text = agse_squire_events.2540.c
		}
		trait = vengeful
		agse_log_ai_squire_lesson_effect = { TRAIT = vengeful }
		ai_chance = {
			base = 10
			modifier = {
				add = 90
				has_trait = vengeful
			}
		}
		flavor = agse_squire_events.2540.c.flavor
		add_stress = minor_stress_loss
		scope:agse_squire = {
			agot_add_squire_trait_xp_skip_chiv_bonus_effect = { MIN_VALUE = 1 MAX_VALUE = 1 }
			add_opinion = { target = root modifier = agse_taught_me_to_choose_the_debtor_opinion }
			add_stress = minor_stress_loss
		}
		stress_impact = {
			vengeful = minor_stress_impact_loss
			forgiving = minor_stress_impact_gain
		}
	}
}

agse_squire_events.2550 = {
	type = character_event
	title = agse_squire_events.2550.t
	desc = {
		first_valid = {
			triggered_desc = {
				trigger = { scope:agse_squire = { any_parent = { this = root } } }
				desc = agse_squire_events.2550.desc_child
			}
			desc = agse_squire_events.2550.desc
		}
	}
	theme = diplomacy
	override_background = { reference = courtyard }

	left_portrait = {
		character = root
		animation = thinking
	}
	right_portrait = {
		character = scope:agse_squire
		animation = happiness
	}

	trigger = {
		agse_knight_with_squire_trigger = yes
		NOT = { exists = current_travel_plan }
		NOT = { exists = involved_activity }
		is_commanding_army = no
		NOT = { has_character_flag = agse_squire_event_cooldown }
		any_relation = {
			type = agot_squire
			agse_valid_home_squire_trigger = yes
			has_trait = gregarious
			NOT = { has_character_flag = agse_known_at_every_fire_seen }
		}
	}

	immediate = {
		random_relation = {
			type = agot_squire
			limit = {
				agse_valid_home_squire_trigger = yes
				has_trait = gregarious
				NOT = { has_character_flag = agse_known_at_every_fire_seen }
			}
			save_scope_as = agse_squire
		}
		add_character_flag = {
			flag = agse_squire_event_cooldown
			months = 6
		}
		scope:agse_squire = { add_character_flag = agse_known_at_every_fire_seen }
		debug_log = "AGSE: Known at Every Fire fired."
	}

	option = {
		name = {
			trigger = { has_trait = shy }
			text = agse_squire_events.2550.a.shy
		}
		name = {
			trigger = { scope:agse_squire = { any_parent = { this = root } } }
			text = agse_squire_events.2550.a.child
		}
		name = {
			trigger = { always = yes }
			text = agse_squire_events.2550.a
		}
		trait = shy
		agse_log_ai_squire_lesson_effect = { TRAIT = shy }
		ai_chance = {
			base = 10
			modifier = {
				add = 90
				has_trait = shy
			}
		}
		flavor = agse_squire_events.2550.a.flavor
		scope:agse_squire = {
			agse_try_squire_personality_imprint_effect = { TRAIT = shy }
			agot_add_squire_trait_xp_skip_chiv_bonus_effect = { MIN_VALUE = 1 MAX_VALUE = 1 }
			add_opinion = { target = root modifier = agse_told_me_to_keep_to_myself_opinion }
			stress_impact = { gregarious = minor_stress_impact_gain }
		}
		stress_impact = {
			shy = minor_stress_impact_loss
			gregarious = minor_stress_impact_gain
		}
	}

	option = {
		name = {
			trigger = { has_trait = diligent }
			text = agse_squire_events.2550.b.diligent
		}
		name = {
			trigger = { scope:agse_squire = { any_parent = { this = root } } }
			text = agse_squire_events.2550.b.child
		}
		name = {
			trigger = { always = yes }
			text = agse_squire_events.2550.b
		}
		trait = diligent
		agse_log_ai_squire_lesson_effect = { TRAIT = diligent }
		ai_chance = {
			base = 10
			modifier = {
				add = 90
				has_trait = diligent
			}
		}
		flavor = agse_squire_events.2550.b.flavor
		scope:agse_squire = {
			agse_try_squire_personality_imprint_effect = { TRAIT = diligent }
			agot_add_squire_trait_xp_skip_chiv_bonus_effect = { MIN_VALUE = 1 MAX_VALUE = 1 }
			add_opinion = { target = root modifier = agse_put_my_talk_to_work_opinion }
			add_stress = minor_stress_loss
		}
		stress_impact = {
			diligent = minor_stress_impact_loss
			lazy = minor_stress_impact_gain
		}
	}

	option = {
		name = {
			trigger = { has_trait = gregarious }
			text = agse_squire_events.2550.c.gregarious
		}
		name = {
			trigger = { scope:agse_squire = { any_parent = { this = root } } }
			text = agse_squire_events.2550.c.child
		}
		name = {
			trigger = { always = yes }
			text = agse_squire_events.2550.c
		}
		trait = gregarious
		agse_log_ai_squire_lesson_effect = { TRAIT = gregarious }
		ai_chance = {
			base = 10
			modifier = {
				add = 90
				has_trait = gregarious
			}
		}
		flavor = agse_squire_events.2550.c.flavor
		add_stress = minor_stress_loss
		scope:agse_squire = {
			agot_add_squire_trait_xp_skip_chiv_bonus_effect = { MIN_VALUE = 1 MAX_VALUE = 1 }
			add_opinion = { target = root modifier = agse_remembered_every_name_with_me_opinion }
			add_stress = minor_stress_loss
		}
		stress_impact = {
			gregarious = minor_stress_impact_loss
			shy = minor_stress_impact_gain
		}
	}
}

agse_squire_events.2560 = {
	type = character_event
	title = agse_squire_events.2560.t
	desc = {
		first_valid = {
			triggered_desc = {
				trigger = { scope:agse_squire = { any_parent = { this = root } } }
				desc = agse_squire_events.2560.desc_child
			}
			desc = agse_squire_events.2560.desc
		}
	}
	theme = intrigue
	override_background = { reference = study }

	left_portrait = {
		character = root
		animation = thinking
	}
	right_portrait = {
		character = scope:agse_squire
		animation = personality_bold
	}

	trigger = {
		agse_knight_with_squire_trigger = yes
		NOT = { exists = current_travel_plan }
		NOT = { exists = involved_activity }
		is_commanding_army = no
		NOT = { has_character_flag = agse_squire_event_cooldown }
		any_relation = {
			type = agot_squire
			agse_valid_home_squire_trigger = yes
			has_trait = deceitful
			NOT = { has_character_flag = agse_wax_remembers_seen }
		}
	}

	immediate = {
		random_relation = {
			type = agot_squire
			limit = {
				agse_valid_home_squire_trigger = yes
				has_trait = deceitful
				NOT = { has_character_flag = agse_wax_remembers_seen }
			}
			save_scope_as = agse_squire
		}
		add_character_flag = {
			flag = agse_squire_event_cooldown
			months = 6
		}
		scope:agse_squire = { add_character_flag = agse_wax_remembers_seen }
		debug_log = "AGSE: Wax Remembers fired."
	}

	option = {
		name = {
			trigger = { has_trait = honest }
			text = agse_squire_events.2560.a.honest
		}
		name = {
			trigger = { scope:agse_squire = { any_parent = { this = root } } }
			text = agse_squire_events.2560.a.child
		}
		name = {
			trigger = { always = yes }
			text = agse_squire_events.2560.a
		}
		trait = honest
		agse_log_ai_squire_lesson_effect = { TRAIT = honest }
		ai_chance = {
			base = 10
			modifier = {
				add = 90
				has_trait = honest
			}
		}
		flavor = agse_squire_events.2560.a.flavor
		scope:agse_squire = {
			agse_try_squire_personality_imprint_effect = { TRAIT = honest }
			agot_add_squire_trait_xp_skip_chiv_bonus_effect = { MIN_VALUE = 1 MAX_VALUE = 1 }
			add_opinion = { target = root modifier = agse_made_me_confess_the_broken_seal_opinion }
			stress_impact = { deceitful = minor_stress_impact_gain }
		}
		stress_impact = {
			honest = minor_stress_impact_loss
			deceitful = minor_stress_impact_gain
		}
	}

	option = {
		name = {
			trigger = { has_trait = patient }
			text = agse_squire_events.2560.b.patient
		}
		name = {
			trigger = { scope:agse_squire = { any_parent = { this = root } } }
			text = agse_squire_events.2560.b.child
		}
		name = {
			trigger = { always = yes }
			text = agse_squire_events.2560.b
		}
		trait = patient
		agse_log_ai_squire_lesson_effect = { TRAIT = patient }
		ai_chance = {
			base = 10
			modifier = {
				add = 90
				has_trait = patient
			}
		}
		flavor = agse_squire_events.2560.b.flavor
		scope:agse_squire = {
			agse_try_squire_personality_imprint_effect = { TRAIT = patient }
			agot_add_squire_trait_xp_skip_chiv_bonus_effect = { MIN_VALUE = 1 MAX_VALUE = 1 }
			add_opinion = { target = root modifier = agse_taught_me_to_wait_before_using_a_secret_opinion }
			add_stress = minor_stress_loss
		}
		stress_impact = {
			patient = minor_stress_impact_loss
			impatient = minor_stress_impact_gain
		}
	}

	option = {
		name = {
			trigger = { has_trait = deceitful }
			text = agse_squire_events.2560.c.deceitful
		}
		name = {
			trigger = { scope:agse_squire = { any_parent = { this = root } } }
			text = agse_squire_events.2560.c.child
		}
		name = {
			trigger = { always = yes }
			text = agse_squire_events.2560.c
		}
		trait = deceitful
		agse_log_ai_squire_lesson_effect = { TRAIT = deceitful }
		ai_chance = {
			base = 10
			modifier = {
				add = 90
				has_trait = deceitful
			}
		}
		flavor = agse_squire_events.2560.c.flavor
		add_stress = minor_stress_loss
		scope:agse_squire = {
			agot_add_squire_trait_xp_skip_chiv_bonus_effect = { MIN_VALUE = 1 MAX_VALUE = 1 }
			add_opinion = { target = root modifier = agse_perfected_my_false_seal_opinion }
			add_stress = minor_stress_loss
		}
		stress_impact = {
			deceitful = minor_stress_impact_loss
			honest = minor_stress_impact_gain
		}
	}
}

agse_squire_events.2570 = {
	type = character_event
	title = agse_squire_events.2570.t
	desc = {
		first_valid = {
			triggered_desc = {
				trigger = {
					scope:agse_squire = {
						faith = root.faith
						any_parent = { this = root }
					}
				}
				desc = agse_squire_events.2570.desc_same_child
			}
			triggered_desc = {
				trigger = { scope:agse_squire = { any_parent = { this = root } } }
				desc = agse_squire_events.2570.desc_different_child
			}
			triggered_desc = {
				trigger = { scope:agse_squire = { faith = root.faith } }
				desc = agse_squire_events.2570.desc_same
			}
			desc = agse_squire_events.2570.desc_different
		}
	}
	theme = faith
	override_background = { reference = study }

	left_portrait = {
		character = root
		animation = thinking
	}
	right_portrait = {
		character = scope:agse_squire
		animation = prayer
	}

	trigger = {
		agse_knight_with_squire_trigger = yes
		NOT = { exists = current_travel_plan }
		NOT = { exists = involved_activity }
		is_commanding_army = no
		NOT = { has_character_flag = agse_squire_event_cooldown }
		any_relation = {
			type = agot_squire
			agse_valid_home_squire_trigger = yes
			has_trait = zealous
			NOT = { has_character_flag = agse_before_gods_and_men_seen }
		}
	}

	immediate = {
		random_relation = {
			type = agot_squire
			limit = {
				agse_valid_home_squire_trigger = yes
				has_trait = zealous
				NOT = { has_character_flag = agse_before_gods_and_men_seen }
			}
			save_scope_as = agse_squire
		}
		add_character_flag = {
			flag = agse_squire_event_cooldown
			months = 6
		}
		scope:agse_squire = { add_character_flag = agse_before_gods_and_men_seen }
		debug_log = "AGSE: Before Gods and Men fired."
	}

	option = {
		name = {
			trigger = { has_trait = cynical }
			text = agse_squire_events.2570.a.cynical
		}
		name = {
			trigger = { scope:agse_squire = { any_parent = { this = root } } }
			text = agse_squire_events.2570.a.child
		}
		name = {
			trigger = { always = yes }
			text = agse_squire_events.2570.a
		}
		trait = cynical
		agse_log_ai_squire_lesson_effect = { TRAIT = cynical }
		ai_chance = {
			base = 10
			modifier = {
				add = 90
				has_trait = cynical
			}
		}
		flavor = agse_squire_events.2570.a.flavor
		scope:agse_squire = {
			agse_try_squire_personality_imprint_effect = { TRAIT = cynical }
			agot_add_squire_trait_xp_skip_chiv_bonus_effect = { MIN_VALUE = 1 MAX_VALUE = 1 }
			add_opinion = { target = root modifier = agse_told_me_gods_do_not_hold_shields_opinion }
			stress_impact = { zealous = minor_stress_impact_gain }
		}
		stress_impact = {
			cynical = minor_stress_impact_loss
			zealous = minor_stress_impact_gain
		}
	}

	option = {
		name = {
			trigger = { has_trait = compassionate }
			text = agse_squire_events.2570.b.compassionate
		}
		name = {
			trigger = { scope:agse_squire = { any_parent = { this = root } } }
			text = agse_squire_events.2570.b.child
		}
		name = {
			trigger = { always = yes }
			text = agse_squire_events.2570.b
		}
		trait = compassionate
		agse_log_ai_squire_lesson_effect = { TRAIT = compassionate }
		ai_chance = {
			base = 10
			modifier = {
				add = 90
				has_trait = compassionate
			}
		}
		flavor = agse_squire_events.2570.b.flavor
		scope:agse_squire = {
			agse_try_squire_personality_imprint_effect = { TRAIT = compassionate }
			agot_add_squire_trait_xp_skip_chiv_bonus_effect = { MIN_VALUE = 1 MAX_VALUE = 1 }
			add_opinion = { target = root modifier = agse_honored_my_prayers_opinion }
			add_stress = minor_stress_loss
		}
		stress_impact = {
			compassionate = minor_stress_impact_loss
			callous = minor_stress_impact_gain
		}
	}

	option = {
		name = {
			trigger = { has_trait = zealous }
			text = agse_squire_events.2570.c.zealous
		}
		name = {
			trigger = { scope:agse_squire = { any_parent = { this = root } } }
			text = agse_squire_events.2570.c.child
		}
		name = {
			trigger = { always = yes }
			text = agse_squire_events.2570.c
		}
		trait = zealous
		agse_log_ai_squire_lesson_effect = { TRAIT = zealous }
		ai_chance = {
			base = 10
			modifier = {
				add = 90
				has_trait = zealous
			}
		}
		flavor = agse_squire_events.2570.c.flavor
		add_stress = minor_stress_loss
		scope:agse_squire = {
			agot_add_squire_trait_xp_skip_chiv_bonus_effect = { MIN_VALUE = 1 MAX_VALUE = 1 }
			add_opinion = { target = root modifier = agse_strengthened_my_faith_opinion }
			add_stress = minor_stress_loss
		}
		stress_impact = {
			zealous = minor_stress_impact_loss
			cynical = minor_stress_impact_gain
		}
	}
}

agse_squire_events.2580 = {
	type = character_event
	title = agse_squire_events.2580.t
	desc = {
		first_valid = {
			triggered_desc = {
				trigger = {
					exists = scope:agse_squire_house_target
					scope:agse_squire = { any_parent = { this = root } }
				}
				desc = agse_squire_events.2580.desc_squire_house_child
			}
			triggered_desc = {
				trigger = { exists = scope:agse_squire_house_target }
				desc = agse_squire_events.2580.desc_squire_house
			}
			triggered_desc = {
				trigger = {
					exists = scope:agse_knight_house_target
					scope:agse_squire = { any_parent = { this = root } }
				}
				desc = agse_squire_events.2580.desc_knight_house_child
			}
			triggered_desc = {
				trigger = { exists = scope:agse_knight_house_target }
				desc = agse_squire_events.2580.desc_knight_house
			}
			triggered_desc = {
				trigger = { scope:agse_squire = { any_parent = { this = root } } }
				desc = agse_squire_events.2580.desc_child
			}
			desc = agse_squire_events.2580.desc
		}
	}
	theme = dread
	override_background = { reference = courtyard }

	left_portrait = {
		character = root
		animation = disapproval
	}
	right_portrait = {
		character = scope:agse_squire
		animation = anger
	}
	lower_center_portrait = {
		trigger = { exists = scope:agse_house_target }
		character = scope:agse_house_target
		animation = worry
	}

	trigger = {
		agse_knight_with_squire_trigger = yes
		NOT = { exists = current_travel_plan }
		NOT = { exists = involved_activity }
		is_commanding_army = no
		NOT = { has_character_flag = agse_squire_event_cooldown }
		any_relation = {
			type = agot_squire
			agse_valid_home_squire_trigger = yes
			has_trait = wrathful
			NOT = { has_character_flag = agse_weight_of_a_name_seen }
		}
	}

	immediate = {
		random_relation = {
			type = agot_squire
			limit = {
				agse_valid_home_squire_trigger = yes
				has_trait = wrathful
				NOT = { has_character_flag = agse_weight_of_a_name_seen }
			}
			save_scope_as = agse_squire
		}
		if = {
			limit = {
				exists = scope:agse_squire.house
				any_courtier_or_guest = {
					this != root
					this != scope:agse_squire
					NOT = { is_close_or_extended_family_of = root }
					NOT = { is_close_or_extended_family_of = scope:agse_squire }
					is_alive = yes
					is_adult = yes
					is_imprisoned = no
					is_available = yes
					location = root.location
					exists = house
					house = {
						NOT = { this = scope:agse_squire.house }
						any_house_relation = {
							OR = {
								has_house_relation_level = feud
								has_house_relation_level = rivalry
								has_house_relation_level = quarrel
							}
							any_relation_house = { this = scope:agse_squire.house }
						}
					}
				}
			}
			random_courtier_or_guest = {
				limit = {
					this != root
					this != scope:agse_squire
					NOT = { is_close_or_extended_family_of = root }
					NOT = { is_close_or_extended_family_of = scope:agse_squire }
					is_alive = yes
					is_adult = yes
					is_imprisoned = no
					is_available = yes
					location = root.location
					exists = house
					house = {
						NOT = { this = scope:agse_squire.house }
						any_house_relation = {
							OR = {
								has_house_relation_level = feud
								has_house_relation_level = rivalry
								has_house_relation_level = quarrel
							}
							any_relation_house = { this = scope:agse_squire.house }
						}
					}
				}
				save_scope_as = agse_house_target
				save_scope_as = agse_squire_house_target
			}
		}
		else_if = {
			limit = {
				exists = root.house
				any_courtier_or_guest = {
					this != root
					this != scope:agse_squire
					NOT = { is_close_or_extended_family_of = root }
					NOT = { is_close_or_extended_family_of = scope:agse_squire }
					is_alive = yes
					is_adult = yes
					is_imprisoned = no
					is_available = yes
					location = root.location
					exists = house
					house = {
						NOT = { this = root.house }
						any_house_relation = {
							OR = {
								has_house_relation_level = feud
								has_house_relation_level = rivalry
								has_house_relation_level = quarrel
							}
							any_relation_house = { this = root.house }
						}
					}
				}
			}
			random_courtier_or_guest = {
				limit = {
					this != root
					this != scope:agse_squire
					NOT = { is_close_or_extended_family_of = root }
					NOT = { is_close_or_extended_family_of = scope:agse_squire }
					is_alive = yes
					is_adult = yes
					is_imprisoned = no
					is_available = yes
					location = root.location
					exists = house
					house = {
						NOT = { this = root.house }
						any_house_relation = {
							OR = {
								has_house_relation_level = feud
								has_house_relation_level = rivalry
								has_house_relation_level = quarrel
							}
							any_relation_house = { this = root.house }
						}
					}
				}
				save_scope_as = agse_house_target
				save_scope_as = agse_knight_house_target
			}
		}
		add_character_flag = {
			flag = agse_squire_event_cooldown
			months = 6
		}
		scope:agse_squire = { add_character_flag = agse_weight_of_a_name_seen }
		debug_log = "AGSE: The Weight of a Name fired."
	}

	option = {
		name = {
			trigger = { has_trait = calm }
			text = agse_squire_events.2580.a.calm
		}
		name = {
			trigger = { scope:agse_squire = { any_parent = { this = root } } }
			text = agse_squire_events.2580.a.child
		}
		name = {
			trigger = { always = yes }
			text = agse_squire_events.2580.a
		}
		trait = calm
		agse_log_ai_squire_lesson_effect = { TRAIT = calm }
		ai_chance = {
			base = 10
			modifier = {
				add = 90
				has_trait = calm
			}
		}
		flavor = agse_squire_events.2580.a.flavor
		scope:agse_squire = {
			agse_try_squire_personality_imprint_effect = { TRAIT = calm }
			agot_add_squire_trait_xp_skip_chiv_bonus_effect = { MIN_VALUE = 1 MAX_VALUE = 1 }
			add_opinion = { target = root modifier = agse_taught_me_to_leash_my_anger_opinion }
			stress_impact = { wrathful = minor_stress_impact_gain }
		}
		if = {
			limit = { exists = scope:agse_house_target }
			scope:agse_house_target = {
				add_opinion = { target = root modifier = agse_restrained_their_squire_opinion }
			}
		}
		stress_impact = {
			calm = minor_stress_impact_loss
			wrathful = minor_stress_impact_gain
		}
	}

	option = {
		name = {
			trigger = { has_trait = just }
			text = agse_squire_events.2580.b.just
		}
		name = {
			trigger = { scope:agse_squire = { any_parent = { this = root } } }
			text = agse_squire_events.2580.b.child
		}
		name = {
			trigger = { always = yes }
			text = agse_squire_events.2580.b
		}
		trait = just
		agse_log_ai_squire_lesson_effect = { TRAIT = just }
		ai_chance = {
			base = 10
			modifier = {
				add = 90
				has_trait = just
			}
		}
		flavor = agse_squire_events.2580.b.flavor
		scope:agse_squire = {
			agse_try_squire_personality_imprint_effect = { TRAIT = just }
			agot_add_squire_trait_xp_skip_chiv_bonus_effect = { MIN_VALUE = 1 MAX_VALUE = 1 }
			add_opinion = { target = root modifier = agse_taught_me_to_answer_only_the_wrong_opinion }
			add_stress = minor_stress_loss
		}
		if = {
			limit = { exists = scope:agse_house_target }
			scope:agse_house_target = {
				add_opinion = { target = root modifier = agse_judged_our_quarrel_opinion }
			}
		}
		stress_impact = {
			just = minor_stress_impact_loss
			arbitrary = minor_stress_impact_gain
		}
	}

	option = {
		name = {
			trigger = { has_trait = wrathful }
			text = agse_squire_events.2580.c.wrathful
		}
		name = {
			trigger = { scope:agse_squire = { any_parent = { this = root } } }
			text = agse_squire_events.2580.c.child
		}
		name = {
			trigger = { always = yes }
			text = agse_squire_events.2580.c
		}
		trait = wrathful
		agse_log_ai_squire_lesson_effect = { TRAIT = wrathful }
		ai_chance = {
			base = 10
			modifier = {
				add = 90
				has_trait = wrathful
			}
		}
		flavor = agse_squire_events.2580.c.flavor
		add_stress = minor_stress_loss
		scope:agse_squire = {
			agot_add_squire_trait_xp_skip_chiv_bonus_effect = { MIN_VALUE = 1 MAX_VALUE = 1 }
			add_opinion = { target = root modifier = agse_taught_me_where_to_spend_my_anger_opinion }
			add_stress = minor_stress_loss
		}
		if = {
			limit = { exists = scope:agse_house_target }
			scope:agse_house_target = {
				add_opinion = { target = root modifier = agse_encouraged_their_squire_against_me_opinion }
			}
		}
		stress_impact = {
			wrathful = minor_stress_impact_loss
			calm = minor_stress_impact_gain
		}
	}
}

agse_squire_events.2590 = {
	type = character_event
	title = agse_squire_events.2590.t
	desc = {
		first_valid = {
			triggered_desc = {
				trigger = {
					scope:agse_criminal = { has_character_flag = agse_ravisher_criminal }
					scope:agse_squire = { any_parent = { this = root } }
				}
				desc = agse_squire_events.2590.desc_ravisher_child
			}
			triggered_desc = {
				trigger = { scope:agse_criminal = { has_character_flag = agse_ravisher_criminal } }
				desc = agse_squire_events.2590.desc_ravisher
			}
			triggered_desc = {
				trigger = { scope:agse_squire = { any_parent = { this = root } } }
				desc = agse_squire_events.2590.desc_thief_child
			}
			desc = agse_squire_events.2590.desc_thief
		}
	}
	theme = dread
	override_background = { reference = courtyard }

	left_portrait = {
		character = root
		animation = personality_rational
	}
	right_portrait = {
		character = scope:agse_squire
		animation = worry
	}
	lower_center_portrait = {
		character = scope:agse_criminal
		animation = beg
	}

	weight_multiplier = {
		base = 1
		modifier = {
			factor = 0.2
			is_ai = yes
		}
	}

	trigger = {
		agse_knight_with_squire_trigger = yes
		is_landed = yes
		is_landless_adventurer = no
		NOT = { exists = current_travel_plan }
		NOT = { exists = involved_activity }
		is_commanding_army = no
		NOT = { has_character_flag = agse_squire_event_cooldown }
		culture = { agot_is_wildling_culture = no }
		primary_title = {
			title_capital_county.title_province = {
				geographical_region = world_westeros_seven_kingdoms
			}
		}
		OR = {
			title:k_the_wall.holder ?= { government_has_flag = government_is_nw }
			title:d_the_wall.holder ?= { government_has_flag = government_is_nw }
		}
		any_relation = {
			type = agot_squire
			agse_valid_home_squire_trigger = yes
			has_trait = just
			NOT = { has_character_flag = agse_sword_and_sentence_seen }
		}
	}

	immediate = {
		random_relation = {
			type = agot_squire
			limit = {
				agse_valid_home_squire_trigger = yes
				has_trait = just
				NOT = { has_character_flag = agse_sword_and_sentence_seen }
			}
			save_scope_as = agse_squire
		}
		create_character = {
			template = servant_character
			location = root.capital_province
			age = { 18 50 }
			gender = male
			dynasty = none
			culture = root.culture
			faith = root.faith
			trait = gallowsbait
			save_scope_as = agse_criminal
		}
		hidden_effect = {
			random_list = {
				55 = {
					scope:agse_criminal = {
						add_trait_xp = {
							trait = gallowsbait
							track = thief
							value = 35
						}
					}
				}
				45 = {
					scope:agse_criminal = {
						add_character_flag = agse_ravisher_criminal
						add_trait_xp = {
							trait = gallowsbait
							track = marauder
							value = 35
						}
					}
				}
			}
		}
		add_character_flag = {
			flag = agse_squire_event_cooldown
			months = 6
		}
		scope:agse_squire = { add_character_flag = agse_sword_and_sentence_seen }
		debug_log = "AGSE: The Sword and the Sentence fired."
	}

	option = {
		name = {
			trigger = { has_trait = just }
			text = agse_squire_events.2590.a.just
		}
		name = {
			trigger = { scope:agse_squire = { any_parent = { this = root } } }
			text = agse_squire_events.2590.a.child
		}
		name = {
			trigger = { always = yes }
			text = agse_squire_events.2590.a
		}
		trait = just
		agse_log_ai_squire_lesson_effect = { TRAIT = just }
		ai_chance = {
			base = 10
			modifier = {
				add = 90
				has_trait = just
			}
		}
		flavor = agse_squire_events.2590.a.flavor
		scope:agse_squire = {
			agot_add_squire_trait_xp_skip_chiv_bonus_effect = { MIN_VALUE = 1 MAX_VALUE = 1 }
			add_character_flag = {
				flag = agse_knight_bore_the_sentence
				days = 30
			}
		}
		scope:agse_criminal = {
			death = {
				killer = root
				death_reason = death_execution
			}
		}
		stress_impact = {
			just = minor_stress_impact_loss
			arbitrary = medium_stress_impact_gain
			compassionate = minor_stress_impact_gain
		}
		trigger_event = {
			id = agse_squire_events.2591
			days = 3
		}
	}

	option = {
		trigger = {
			agot_nw_can_banish = {
				BANISHER = root
				BANISHEE = scope:agse_criminal
			}
		}
		name = {
			trigger = { has_trait = compassionate }
			text = agse_squire_events.2590.b.compassionate
		}
		name = {
			trigger = { scope:agse_squire = { any_parent = { this = root } } }
			text = agse_squire_events.2590.b.child
		}
		name = {
			trigger = { always = yes }
			text = agse_squire_events.2590.b
		}
		trait = compassionate
		agse_log_ai_squire_lesson_effect = { TRAIT = compassionate }
		ai_chance = {
			base = 10
			modifier = {
				add = 90
				has_trait = compassionate
			}
		}
		flavor = agse_squire_events.2590.b.flavor
		scope:agse_squire = {
			agse_try_squire_personality_imprint_effect = { TRAIT = compassionate }
			agot_add_squire_trait_xp_skip_chiv_bonus_effect = { MIN_VALUE = 1 MAX_VALUE = 1 }
			add_character_flag = {
				flag = agse_criminal_took_the_black
				days = 30
			}
			stress_impact = { just = minor_stress_impact_gain }
		}
		show_as_tooltip = {
			agot_send_to_nightswatch_effect = {
				ACTOR = root
				NIGHTSWATCH_CANDIDATE = scope:agse_criminal
			}
		}
		hidden_effect = {
			agot_send_to_nightswatch_effect = {
				ACTOR = root
				NIGHTSWATCH_CANDIDATE = scope:agse_criminal
			}
		}
		stress_impact = {
			compassionate = minor_stress_impact_loss
			callous = minor_stress_impact_gain
		}
		trigger_event = {
			id = agse_squire_events.2591
			days = 3
		}
	}

	option = {
		name = {
			trigger = { has_trait = wrathful }
			text = agse_squire_events.2590.c.wrathful
		}
		name = {
			trigger = { scope:agse_squire = { any_parent = { this = root } } }
			text = agse_squire_events.2590.c.child
		}
		name = {
			trigger = { always = yes }
			text = agse_squire_events.2590.c
		}
		trait = wrathful
		agse_log_ai_squire_lesson_effect = { TRAIT = wrathful }
		ai_chance = {
			base = 10
			modifier = {
				add = 90
				has_trait = wrathful
			}
		}
		flavor = agse_squire_events.2590.c.flavor
		scope:agse_squire = {
			agse_try_squire_personality_imprint_effect = { TRAIT = wrathful }
			agot_add_squire_trait_xp_skip_chiv_bonus_effect = { MIN_VALUE = 1 MAX_VALUE = 1 }
			stress_impact = {
				just = medium_stress_impact_gain
				wrathful = minor_stress_impact_loss
				sadistic = medium_stress_impact_loss
			}
		}
		scope:agse_criminal = {
			death = {
				killer = scope:agse_squire
				death_reason = death_execution
			}
		}
		stress_impact = {
			wrathful = minor_stress_impact_loss
			compassionate = major_stress_impact_gain
			just = minor_stress_impact_gain
		}
		trigger_event = {
			id = agse_squire_events.2591
			days = 3
		}
	}
}

agse_squire_events.2591 = {
	type = character_event
	title = agse_squire_events.2591.t
	desc = {
		first_valid = {
			triggered_desc = {
				trigger = {
					scope:agse_squire = {
						has_character_flag = agse_knight_bore_the_sentence
						any_parent = { this = root }
					}
				}
				desc = agse_squire_events.2591.desc_knight_child
			}
			triggered_desc = {
				trigger = { scope:agse_squire = { has_character_flag = agse_knight_bore_the_sentence } }
				desc = agse_squire_events.2591.desc_knight
			}
			triggered_desc = {
				trigger = {
					scope:agse_squire = {
						has_character_flag = agse_criminal_took_the_black
						any_parent = { this = root }
					}
				}
				desc = agse_squire_events.2591.desc_wall_child
			}
			triggered_desc = {
				trigger = { scope:agse_squire = { has_character_flag = agse_criminal_took_the_black } }
				desc = agse_squire_events.2591.desc_wall
			}
			triggered_desc = {
				trigger = { scope:agse_squire = { any_parent = { this = root } } }
				desc = agse_squire_events.2591.desc_squire_child
			}
			desc = agse_squire_events.2591.desc_squire
		}
	}
	theme = dread
	override_background = { reference = study }

	left_portrait = {
		character = root
		animation = thinking
	}
	right_portrait = {
		character = scope:agse_squire
		animation = worry
	}

	trigger = {
		exists = scope:agse_squire
		scope:agse_squire = { is_alive = yes }
	}

	option = {
		name = {
			trigger = { scope:agse_squire = { has_character_flag = agse_knight_bore_the_sentence } }
			text = agse_squire_events.2591.a.knight
		}
		name = {
			trigger = { scope:agse_squire = { has_character_flag = agse_criminal_took_the_black } }
			text = agse_squire_events.2591.a.wall
		}
		name = {
			trigger = { always = yes }
			text = agse_squire_events.2591.a.squire
		}
		if = {
			limit = { scope:agse_squire = { has_character_flag = agse_knight_bore_the_sentence } }
			scope:agse_squire = {
				add_opinion = { target = root modifier = agse_saw_me_bear_the_sentence_opinion }
			}
		}
		else_if = {
			limit = { scope:agse_squire = { has_character_flag = agse_criminal_took_the_black } }
			scope:agse_squire = {
				add_opinion = { target = root modifier = agse_taught_me_mercy_in_black_opinion }
			}
		}
		else = {
			scope:agse_squire = {
				add_opinion = { target = root modifier = agse_made_me_bear_the_sentence_opinion }
			}
		}
	}
}

agse_squire_events.2600 = {
	type = character_event
	title = agse_squire_events.2600.t
	desc = {
		first_valid = {
			triggered_desc = {
				trigger = { scope:agse_squire = { any_parent = { this = root } } }
				desc = agse_squire_events.2600.desc_beneath_hedge_child
			}
			desc = agse_squire_events.2600.desc
		}
	}
	theme = diplomacy_family_focus
	override_background = { reference = wilderness }

	left_portrait = {
		character = root
		animation = personality_rational
	}
	right_portrait = {
		character = scope:agse_squire
		animation = idle
	}
	lower_center_portrait = {
		character = scope:agse_hedge_knight
		animation = beg
	}

	# Hedge knights still happen for AI; we just do not need one behind every bush.
	weight_multiplier = {
		base = 1
		modifier = {
			factor = 0.15
			is_ai = yes
		}
	}

	trigger = {
		agse_knight_with_squire_trigger = yes
		trigger_if = {
			limit = { is_ai = yes }
			OR = {
				is_landed = yes
				is_landless_adventurer = yes
			}
		}
		NOT = { exists = current_travel_plan }
		NOT = { exists = involved_activity }
		is_commanding_army = no
		NOT = { has_character_flag = agse_squire_event_cooldown }
		any_relation = {
			type = agot_squire
			agse_valid_home_squire_trigger = yes
			has_trait = humble
			NOT = { has_character_flag = agse_beneath_the_hedge_seen }
		}
	}

	immediate = {
		random_relation = {
			type = agot_squire
			limit = {
				agse_valid_home_squire_trigger = yes
				has_trait = humble
				NOT = { has_character_flag = agse_beneath_the_hedge_seen }
			}
			save_scope_as = agse_squire
		}
		create_character = {
			template = agot_hedgeknight_character
			location = root.location
			trait = humble
			save_scope_as = agse_hedge_knight
		}
		add_character_flag = {
			flag = agse_squire_event_cooldown
			months = 6
		}
		scope:agse_squire = { add_character_flag = agse_beneath_the_hedge_seen }
		debug_log = "AGSE: Beneath the Hedge fired."
	}

	option = {
		name = {
			trigger = { has_trait = arrogant }
			text = agse_squire_events.2600.a.arrogant
		}
		name = {
			trigger = { scope:agse_squire = { any_parent = { this = root } } }
			text = agse_squire_events.2600.a.child
		}
		name = {
			trigger = { always = yes }
			text = agse_squire_events.2600.a
		}
		trait = arrogant
		agse_log_ai_squire_lesson_effect = { TRAIT = arrogant }
		ai_chance = {
			base = 10
			modifier = {
				add = 90
				has_trait = arrogant
			}
		}
		flavor = agse_squire_events.2600.a.flavor
		scope:agse_squire = {
			agse_try_squire_personality_imprint_effect = { TRAIT = arrogant }
			agot_add_squire_trait_xp_skip_chiv_bonus_effect = { MIN_VALUE = 1 MAX_VALUE = 1 }
			add_opinion = { target = root modifier = agse_sent_a_true_knight_away_opinion }
			stress_impact = { humble = minor_stress_impact_gain }
		}
		scope:agse_hedge_knight = {
			add_opinion = { target = root modifier = agse_drove_me_from_their_fire_opinion }
		}
		hidden_effect = {
			scope:agse_hedge_knight = { death = { death_reason = death_vanished } }
		}
		stress_impact = {
			arrogant = minor_stress_impact_loss
			humble = minor_stress_impact_gain
		}
	}

	option = {
		name = {
			trigger = { has_trait = generous }
			text = agse_squire_events.2600.b.generous
		}
		name = {
			trigger = { scope:agse_squire = { any_parent = { this = root } } }
			text = agse_squire_events.2600.b.child
		}
		name = {
			trigger = { always = yes }
			text = agse_squire_events.2600.b
		}
		trait = generous
		agse_log_ai_squire_lesson_effect = { TRAIT = generous }
		ai_chance = {
			base = 10
			modifier = {
				add = 90
				has_trait = generous
			}
			modifier = {
				factor = 0
				gold < 10
			}
		}
		flavor = agse_squire_events.2600.b.flavor
		remove_short_term_gold = 10
		add_courtier = scope:agse_hedge_knight
		scope:agse_squire = {
			agse_try_squire_personality_imprint_effect = { TRAIT = generous }
			agot_add_squire_trait_xp_skip_chiv_bonus_effect = { MIN_VALUE = 1 MAX_VALUE = 1 }
			add_opinion = { target = root modifier = agse_shared_our_fire_opinion }
			add_stress = minor_stress_loss
		}
		scope:agse_hedge_knight = {
			add_opinion = { target = root modifier = agse_gave_me_a_place_by_their_fire_opinion }
		}
		stress_impact = {
			generous = minor_stress_impact_loss
			greedy = minor_stress_impact_gain
		}
	}

	option = {
		name = {
			trigger = { has_trait = humble }
			text = agse_squire_events.2600.c.humble
		}
		name = {
			trigger = { scope:agse_squire = { any_parent = { this = root } } }
			text = agse_squire_events.2600.c.child
		}
		name = {
			trigger = { always = yes }
			text = agse_squire_events.2600.c
		}
		trait = humble
		agse_log_ai_squire_lesson_effect = { TRAIT = humble }
		ai_chance = {
			base = 10
			modifier = {
				add = 90
				has_trait = humble
			}
		}
		flavor = agse_squire_events.2600.c.flavor
		scope:agse_squire = {
			agot_add_squire_trait_xp_skip_chiv_bonus_effect = { MIN_VALUE = 1 MAX_VALUE = 1 }
			add_opinion = { target = root modifier = agse_taught_me_a_knights_true_measure_opinion }
			add_character_modifier = {
				modifier = agse_hedge_knights_lesson_modifier
				years = 3
			}
			add_stress = minor_stress_loss
		}
		scope:agse_hedge_knight = {
			add_opinion = { target = root modifier = agse_honored_my_ragged_vows_opinion }
		}
		hidden_effect = {
			if = {
				limit = { is_ai = yes }
				scope:agse_hedge_knight = { death = { death_reason = death_vanished } }
			}
		}
		stress_impact = {
			humble = minor_stress_impact_loss
			arrogant = minor_stress_impact_gain
		}
	}
}

agse_squire_events.2610 = {
	type = character_event
	title = agse_squire_events.2610.t
	desc = {
		first_valid = {
			triggered_desc = {
				trigger = { scope:agse_squire = { any_parent = { this = root } } }
				desc = agse_squire_events.2610.desc_child
			}
			desc = agse_squire_events.2610.desc
		}
	}
	theme = diplomacy_majesty_focus
	override_background = { reference = courtyard }

	left_portrait = {
		character = root
		animation = thinking
	}
	right_portrait = {
		character = scope:agse_squire
		animation = personality_bold
	}

	trigger = {
		agse_knight_with_squire_trigger = yes
		NOT = { exists = current_travel_plan }
		NOT = { exists = involved_activity }
		is_commanding_army = no
		NOT = { has_character_flag = agse_squire_event_cooldown }
		any_relation = {
			type = agot_squire
			agse_valid_home_squire_trigger = yes
			has_trait = ambitious
			NOT = { has_character_flag = agse_higher_than_a_hall_seen }
		}
	}

	immediate = {
		random_relation = {
			type = agot_squire
			limit = {
				agse_valid_home_squire_trigger = yes
				has_trait = ambitious
				NOT = { has_character_flag = agse_higher_than_a_hall_seen }
			}
			save_scope_as = agse_squire
		}
		add_character_flag = {
			flag = agse_squire_event_cooldown
			months = 6
		}
		scope:agse_squire = { add_character_flag = agse_higher_than_a_hall_seen }
		debug_log = "AGSE: Higher Than a Hall fired."
	}

	option = {
		name = {
			trigger = { has_trait = content }
			text = agse_squire_events.2610.a.content
		}
		name = {
			trigger = { scope:agse_squire = { any_parent = { this = root } } }
			text = agse_squire_events.2610.a.child
		}
		name = {
			trigger = { always = yes }
			text = agse_squire_events.2610.a
		}
		trait = content
		agse_log_ai_squire_lesson_effect = { TRAIT = content }
		ai_chance = {
			base = 10
			modifier = {
				add = 90
				has_trait = content
			}
		}
		flavor = agse_squire_events.2610.a.flavor
		scope:agse_squire = {
			agse_try_squire_personality_imprint_effect = { TRAIT = content }
			agot_add_squire_trait_xp_skip_chiv_bonus_effect = { MIN_VALUE = 1 MAX_VALUE = 1 }
			add_opinion = { target = root modifier = agse_taught_me_worth_without_rank_opinion }
			stress_impact = { ambitious = minor_stress_impact_gain }
		}
		stress_impact = {
			content = minor_stress_impact_loss
			ambitious = minor_stress_impact_gain
		}
	}

	option = {
		name = {
			trigger = { has_trait = diligent }
			text = agse_squire_events.2610.b.diligent
		}
		name = {
			trigger = { scope:agse_squire = { any_parent = { this = root } } }
			text = agse_squire_events.2610.b.child
		}
		name = {
			trigger = { always = yes }
			text = agse_squire_events.2610.b
		}
		trait = diligent
		agse_log_ai_squire_lesson_effect = { TRAIT = diligent }
		ai_chance = {
			base = 10
			modifier = {
				add = 90
				has_trait = diligent
			}
		}
		flavor = agse_squire_events.2610.b.flavor
		scope:agse_squire = {
			agse_try_squire_personality_imprint_effect = { TRAIT = diligent }
			agot_add_squire_trait_xp_skip_chiv_bonus_effect = { MIN_VALUE = 1 MAX_VALUE = 1 }
			add_opinion = { target = root modifier = agse_set_my_ambition_to_work_opinion }
			add_stress = minor_stress_loss
		}
		stress_impact = {
			diligent = minor_stress_impact_loss
			lazy = minor_stress_impact_gain
		}
	}

	option = {
		name = {
			trigger = { has_trait = ambitious }
			text = agse_squire_events.2610.c.ambitious
		}
		name = {
			trigger = { scope:agse_squire = { any_parent = { this = root } } }
			text = agse_squire_events.2610.c.child
		}
		name = {
			trigger = { always = yes }
			text = agse_squire_events.2610.c
		}
		trait = ambitious
		agse_log_ai_squire_lesson_effect = { TRAIT = ambitious }
		ai_chance = {
			base = 10
			modifier = {
				add = 90
				has_trait = ambitious
			}
		}
		flavor = agse_squire_events.2610.c.flavor
		add_prestige = minor_prestige_gain
		add_stress = minor_stress_loss
		scope:agse_squire = {
			agot_add_squire_trait_xp_skip_chiv_bonus_effect = { MIN_VALUE = 1 MAX_VALUE = 1 }
			add_opinion = { target = root modifier = agse_encouraged_me_to_reach_higher_opinion }
			add_stress = minor_stress_loss
		}
		stress_impact = {
			ambitious = minor_stress_impact_loss
			content = minor_stress_impact_gain
		}
	}
}

agse_squire_events.2611 = {
	type = character_event
	title = agse_squire_events.2611.t
	desc = {
		first_valid = {
			triggered_desc = {
				trigger = {
					has_trait = kingsguard
					scope:agse_squire = { any_parent = { this = root } }
				}
				desc = agse_squire_events.2611.desc_kingsguard_child
			}
			triggered_desc = {
				trigger = { has_trait = kingsguard }
				desc = agse_squire_events.2611.desc_kingsguard
			}
			triggered_desc = {
				trigger = { scope:agse_squire = { any_parent = { this = root } } }
				desc = agse_squire_events.2611.desc_child
			}
			desc = agse_squire_events.2611.desc
		}
	}
	theme = martial_chivalry_focus
	override_background = { reference = courtyard }

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

	weight_multiplier = {
		base = 1
		modifier = {
			factor = 4
			has_trait = kingsguard
		}
	}

	trigger = {
		agse_knight_with_squire_trigger = yes
		NOT = { exists = current_travel_plan }
		NOT = { exists = involved_activity }
		is_commanding_army = no
		NOT = { has_character_flag = agse_squire_event_cooldown }
		any_relation = {
			type = agot_squire
			agse_valid_home_squire_trigger = yes
			agse_kingsguard_aspiration_squire_trigger = yes
			NOT = { has_character_flag = agse_white_cloak_dream_seen }
		}
	}

	immediate = {
		random_relation = {
			type = agot_squire
			limit = {
				agse_valid_home_squire_trigger = yes
				agse_kingsguard_aspiration_squire_trigger = yes
				NOT = { has_character_flag = agse_white_cloak_dream_seen }
			}
			save_scope_as = agse_squire
		}
		add_character_flag = {
			flag = agse_squire_event_cooldown
			months = 6
		}
		scope:agse_squire = { add_character_flag = agse_white_cloak_dream_seen }
		debug_log = "AGSE: A Cloak of White fired."
	}

	option = {
		name = {
			trigger = { has_trait = diligent }
			text = agse_squire_events.2611.a.diligent
		}
		name = {
			trigger = { scope:agse_squire = { any_parent = { this = root } } }
			text = agse_squire_events.2611.a.child
		}
		name = {
			trigger = { always = yes }
			text = agse_squire_events.2611.a
		}
		trait = diligent
		agse_log_ai_squire_lesson_effect = { TRAIT = diligent }
		flavor = agse_squire_events.2611.a.flavor
		scope:agse_squire = {
			agse_try_squire_personality_imprint_effect = { TRAIT = diligent }
			agot_add_squire_trait_xp_skip_chiv_bonus_effect = { MIN_VALUE = 1 MAX_VALUE = 1 }
			add_opinion = { target = root modifier = agse_set_me_on_the_road_to_white_opinion }
			add_trait = refusing_marriage
			add_character_flag = kingsguard_ambition
			add_prowess_skill = 1
			add_character_modifier = training_for_kingsguard
			if = {
				limit = { NOT = { has_focus = education_martial } }
				set_focus = education_martial
			}
		}
		stress_impact = {
			diligent = minor_stress_impact_loss
			lazy = minor_stress_impact_gain
		}
		ai_chance = {
			base = 60
			modifier = {
				add = 30
				has_trait = kingsguard
			}
			modifier = {
				add = 20
				has_trait = diligent
			}
		}
	}

	option = {
		name = {
			trigger = { has_trait = content }
			text = agse_squire_events.2611.b.content
		}
		name = {
			trigger = { scope:agse_squire = { any_parent = { this = root } } }
			text = agse_squire_events.2611.b.child
		}
		name = {
			trigger = { always = yes }
			text = agse_squire_events.2611.b
		}
		trait = content
		agse_log_ai_squire_lesson_effect = { TRAIT = content }
		flavor = agse_squire_events.2611.b.flavor
		scope:agse_squire = {
			agse_try_squire_personality_imprint_effect = { TRAIT = content }
			agot_add_squire_trait_xp_skip_chiv_bonus_effect = { MIN_VALUE = 1 MAX_VALUE = 1 }
			add_opinion = { target = root modifier = agse_denied_my_white_cloak_opinion }
			stress_impact = { ambitious = medium_stress_impact_gain }
		}
		stress_impact = {
			content = minor_stress_impact_loss
			ambitious = minor_stress_impact_gain
		}
		ai_chance = {
			base = 20
			modifier = {
				add = 30
				has_trait = content
			}
		}
	}

	option = {
		name = {
			trigger = { has_trait = ambitious }
			text = agse_squire_events.2611.c.ambitious
		}
		name = {
			trigger = { scope:agse_squire = { any_parent = { this = root } } }
			text = agse_squire_events.2611.c.child
		}
		name = {
			trigger = { always = yes }
			text = agse_squire_events.2611.c
		}
		trait = ambitious
		agse_log_ai_squire_lesson_effect = { TRAIT = ambitious }
		flavor = agse_squire_events.2611.c.flavor
		add_prestige = minor_prestige_gain
		scope:agse_squire = {
			agot_add_squire_trait_xp_skip_chiv_bonus_effect = { MIN_VALUE = 1 MAX_VALUE = 1 }
			add_opinion = { target = root modifier = agse_told_me_to_dream_beyond_white_opinion }
			add_stress = minor_stress_loss
		}
		stress_impact = {
			ambitious = minor_stress_impact_loss
			content = minor_stress_impact_gain
		}
		ai_chance = {
			base = 20
			modifier = {
				add = 30
				has_trait = ambitious
			}
		}
	}
}
