#######################################
#
# Byzantine Events
#
# Event ID LoR.800 - LoR.999 reserved
#
#######################################

# Written by Henrik Eklund

namespace = LoR

### Eunuchs

# Introduce Eunuch?
character_event = {
	id = LoR.800
	desc = EVTDESCLoR.800
	picture = { 
		trigger = { 
			NOT = {  
				culture_group = chinese_group
				has_dlc = "Jade Dragon"
			}
		} 
		picture = GFX_evt_emissary_byzantine
	}
	picture = { 
		trigger = { 
			culture_group = chinese_group
			has_dlc = "Jade Dragon"
		} 
		picture = GFX_evt_chinese_emissary
	}
	
	capable_only = yes
	prisoner = no
	only_playable = yes
	min_age = 16
	
	trigger = {
		NOT = { culture = wilderness}
		has_dlc = "Legacy of Rome"
		real_tier = emperor
		has_landed_title = e_nilfgaard
		NOR = {
			any_courtier = { has_minor_title = title_imperial_eunuch }
			any_courtier = { has_minor_title = title_court_eunuch }
		}
		NOT = { is_inaccessible_trigger = yes }
	}
	
	mean_time_to_happen = {
		months = 300
	}
	
	option = {
		name = EVTOPTALoR.800
		custom_tooltip = {
			text = introduce_eunuch
			hidden_tooltip = {
				random_list = {
					20 = { character_event = { id = LoR.801 } }
					20 = { character_event = { id = LoR.802 } }
					20 = { character_event = { id = LoR.803 } }
					20 = { character_event = { id = LoR.804 } }
					20 = { character_event = { id = LoR.805 } }
				}
			}
		}
	}
	option = {
		name = EVTOPTBLoR.800
		custom_tooltip = { text = no_to_eunuchs }
	}
}

# Martial Eunuch
character_event = {
	id = LoR.801
	desc = EVTDESCLoR.801
	picture = { 
		trigger = { 
			NOT = {  
				culture_group = chinese_group
				has_dlc = "Jade Dragon"
			}
		} 
		picture = GFX_evt_emissary_byzantine
	}
	picture = { 
		trigger = { 
			culture_group = chinese_group
			has_dlc = "Jade Dragon"
		} 
		picture = GFX_evt_chinese_emissary
	}
	
	hide_from = yes
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTALoR.801
		create_character = {
			random_traits = no
			dynasty = NONE
			female = no
			age = 20
			religion = ROOT
			culture = ROOT
			trait = eunuch
			trait = diligent
			trait = quick
			trait = brave
			trait = brilliant_strategist
			attributes = {
				martial = 10
			}
		}
		if = { 
			limit = {
				ROOT = { 
					OR = {
						has_landed_title = e_byzantium
						has_landed_title = e_roman_empire
					}
				}
			}
			new_character = {
				give_minor_title = title_imperial_eunuch
			}
		}
		else = { 
			new_character = {
				give_minor_title = title_court_eunuch
			}
		}
	}
}

# Diplomacy Eunuch 
character_event = {
	id = LoR.802
	desc = EVTDESCLoR.802
	picture = { 
		trigger = { 
			NOT = {  
				culture_group = chinese_group
				has_dlc = "Jade Dragon"
			}
		} 
		picture = GFX_evt_emissary_byzantine
	}
	picture = { 
		trigger = { 
			culture_group = chinese_group
			has_dlc = "Jade Dragon"
		} 
		picture = GFX_evt_chinese_emissary
	}
	
	hide_from = yes
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTALoR.801
		create_character = {
			random_traits = no
			dynasty = NONE
			female = no
			age = 20
			religion = ROOT
			culture = ROOT
			trait = eunuch
			trait = diligent
			trait = quick
			trait = gregarious
			trait = grey_eminence
			attributes = {
				diplomacy = 10
			}
		}
		if = { 
			limit = {
				ROOT = { 
					OR = {
						has_landed_title = e_byzantium
						has_landed_title = e_roman_empire
					}
				}
			}
			new_character = {
				give_minor_title = title_imperial_eunuch
			}
		}
		else = { 
			new_character = {
				give_minor_title = title_court_eunuch
			}
		}
	}
}

# Steward Eunuch
character_event = {
	id = LoR.803
	desc = EVTDESCLoR.803
	picture = { 
		trigger = { 
			NOT = {  
				culture_group = chinese_group
				has_dlc = "Jade Dragon"
			}
		} 
		picture = GFX_evt_emissary_byzantine
	}
	picture = { 
		trigger = { 
			culture_group = chinese_group
			has_dlc = "Jade Dragon"
		} 
		picture = GFX_evt_chinese_emissary
	}
	
	hide_from = yes
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTALoR.801
		create_character = {
			random_traits = no
			dynasty = NONE
			female = no
			age = 20
			religion = ROOT
			culture = ROOT
			trait = eunuch
			trait = diligent
			trait = quick
			trait = temperate
			trait = midas_touched
			attributes = {
				stewardship = 10
			}
		}
		if = { 
			limit = {
				ROOT = { 
					OR = {
						has_landed_title = e_byzantium
						has_landed_title = e_roman_empire
					}
				}
			}
			new_character = {
				give_minor_title = title_imperial_eunuch
			}
		}
		else = { 
			new_character = {
				give_minor_title = title_court_eunuch
			}
		}
	}
}

# Spymaster Eunuch
character_event = {
	id = LoR.804
	desc = EVTDESCLoR.804
	picture = { 
		trigger = { 
			NOT = {  
				culture_group = chinese_group
				has_dlc = "Jade Dragon"
			}
		} 
		picture = GFX_evt_emissary_byzantine
	}
	picture = { 
		trigger = { 
			culture_group = chinese_group
			has_dlc = "Jade Dragon"
		} 
		picture = GFX_evt_chinese_emissary
	}
	
	hide_from = yes
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTALoR.801
		create_character = {
			random_traits = no
			dynasty = NONE
			female = no
			age = 20
			religion = ROOT
			culture = ROOT
			trait = eunuch
			trait = diligent
			trait = quick
			trait = deceitful
			trait = elusive_shadow
			attributes = {
				intrigue = 10
			}
		}
		if = { 
			limit = {
				ROOT = { 
					OR = {
						has_landed_title = e_byzantium
						has_landed_title = e_roman_empire
					}
				}
			}
			new_character = {
				give_minor_title = title_imperial_eunuch
			}
		}
		else = { 
			new_character = {
				give_minor_title = title_court_eunuch
			}
		}
	}
}

# Learning Eunuch
character_event = {
	id = LoR.805
	desc = EVTDESCLoR.805
	picture = { 
		trigger = { 
			NOT = {  
				culture_group = chinese_group
				has_dlc = "Jade Dragon"
			}
		} 
		picture = GFX_evt_emissary_byzantine
	}
	picture = { 
		trigger = { 
			culture_group = chinese_group
			has_dlc = "Jade Dragon"
		} 
		picture = GFX_evt_chinese_emissary
	}
	
	hide_from = yes
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTALoR.801
		create_character = {
			random_traits = no
			dynasty = NONE
			female = no
			age = 20
			religion = ROOT
			culture = ROOT
			trait = eunuch
			trait = diligent
			trait = quick
			trait = scholar
			trait = mastermind_theologian
			attributes = {
				learning = 10
			}
		}
		if = { 
			limit = {
				ROOT = { 
					OR = {
						has_landed_title = e_byzantium
						has_landed_title = e_roman_empire
					}
				}
			}
			new_character = {
				give_minor_title = title_imperial_eunuch
			}
		}
		else = { 
			new_character = {
				give_minor_title = title_court_eunuch
			}
		}
	}
}

### Prisoner Events

# Jailer Blind
character_event = {
	id = LoR.830
	desc = EVTDESCLoR.830
	picture = GFX_evt_torture
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTALoR.830
	}
}

# Prisoner Blind
character_event = {
	id = LoR.831
	desc = EVTDESCLoR.831
	picture = GFX_evt_torture
	
	hide_from = yes
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTALoR.831
	}
}

# Jailer Castrate
character_event = {
	id = LoR.832
	desc = EVTDESCLoR.832
	picture = GFX_evt_torture
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTALoR.832
	}
}

# Prisoner Castrate
character_event = {
	id = LoR.833
	desc = EVTDESCLoR.833
	picture = GFX_evt_torture
	
	hide_from = yes
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTALoR.833
	}
}

# Jailer Castrate Boy
character_event = {
	id = LoR.834
	desc = EVTDESCLoR.834
	picture = GFX_evt_torture
	
	hide_from = yes
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTALoR.834
	}
}


# AI Event for Daughter
# Explosion
narrative_event = {
	id = LoR.860
	title = EVTNAMELoR.860
	desc = EVTDESCLoR.860
	picture = GFX_evt_throne_room_byzantine
	
	ai = no
	capable_only = yes
	prisoner = no
	only_playable = yes
	min_age = 15
	
	trigger = {
		NOT = { culture = wilderness}
		has_dlc = "Legacy of Rome"
		has_landed_title = e_nilfgaard
		NOT = { has_global_flag = greek_fire }
		in_command = no
		capital_scope = { province_id = 162 }
		NOT = { is_inaccessible_trigger = yes }
	}
	
	mean_time_to_happen = {
		months = 780
	}
	
	option = {
		name = EVTOPTALoR.860
		narrative_event = { id = LoR.861 days = 3 tooltip = EVTTOOLTIPLoR.861 }
		set_global_flag = greek_fire
	}
	option = {
		name = EVTOPTBLoR.860
		custom_tooltip = { text = not_interested_in_explosion }
		set_global_flag = greek_fire
	}
}

# Aftermath
narrative_event = {
	id = LoR.861
	title = EVTNAMELoR.861
	desc = EVTDESCLoR.861
	picture = GFX_evt_market_byzantine
	
	is_triggered_only = yes
	
	hide_from = yes
	
	option = {
		name = EVTOPTALoR.861
		narrative_event = { id = LoR.862 days = 120 random = 20 tooltip = EVTTOOLTIPLoR.862 }
	}
}

# Pirate Fleet
narrative_event = {
	id = LoR.862
	title = EVTNAMELoR.862
	desc = EVTDESCLoR.862
	picture = GFX_evt_emissary_byzantine
	
	is_triggered_only = yes
	
	hide_from = yes
	
	option = { # Naval fleet
		name = EVTOPTALoR.862
		
		custom_tooltip = {
			text = deploy_fleet
			hidden_tooltip = {
				random_list = {
					33 = { narrative_event = { id = LoR.863 days = 38 random = 8 } }
					33 = { narrative_event = { id = LoR.864 days = 38 random = 8 } }
					33 = { narrative_event = { id = LoR.865 days = 38 random = 8 } }
				}
			}
		}
	}
	option = { # Spies
		name = EVTOPTBLoR.862
		custom_tooltip = { 
			text = send_in_spies
			hidden_tooltip = {
				random_list = {
					33 = { narrative_event = { id = LoR.866 days = 38 random = 8 } }
					33 = { narrative_event = { id = LoR.867 days = 38 random = 8 } }
					33 = { narrative_event = { id = LoR.868 days = 38 random = 8 } }
				}
			}
		}
	}
}

# Naval Battle Won (Daughter)
narrative_event = {
	id = LoR.863
	title = EVTNAMELoR.863
	desc = EVTDESCLoR.863
	picture = GFX_evt_kraken
	
	is_triggered_only = yes
	
	hide_from = yes
	
	option = {
		name = EVTOPTALoR.863
		change_martial = 1
		narrative_event = { id = LoR.869 days = 65 random = 10 tooltip = EVTTOOLTIPLoR.869 }
	}
}

# Naval Battle Won (Wife)
narrative_event = {
	id = LoR.864
	title = EVTNAMELoR.863
	desc = EVTDESCLoR.864
	picture = GFX_evt_kraken
	
	is_triggered_only = yes
	
	hide_from = yes
	
	option = {
		name = EVTOPTALoR.863
		change_martial = 1
		narrative_event = { id = LoR.870 days = 65 random = 10 tooltip = EVTTOOLTIPLoR.869 }
	}
}

# Naval Battle Lost
narrative_event = {
	id = LoR.865
	title = EVTNAMELoR.863
	desc = EVTDESCLoR.865
	picture = GFX_evt_kraken
	
	is_triggered_only = yes
	
	hide_from = yes
	
	option = {
		name = EVTOPTALoR.865
		prestige = -25
		narrative_event = { id = LoR.871 days = 65 random = 10 tooltip = EVTTOOLTIPLoR.869 }
	}
}

# Spies Succeed (Daughter)
narrative_event = {
	id = LoR.866
	title = EVTNAMELoR.866
	desc = EVTDESCLoR.866
	picture = GFX_evt_shadow
	
	is_triggered_only = yes
	
	hide_from = yes
	
	option = {
		name = EVTOPTALoR.863
		change_intrigue = 1
		narrative_event = { id = LoR.869 days = 65 random = 10 tooltip = EVTTOOLTIPLoR.869 }
	}
}

# Spies Succeed (Wife)
narrative_event = {
	id = LoR.867
	title = EVTNAMELoR.866
	desc = EVTDESCLoR.867
	picture = GFX_evt_shadow
	
	is_triggered_only = yes
	
	hide_from = yes
	
	option = {
		name = EVTOPTALoR.863
		change_intrigue = 1
		narrative_event = { id = LoR.870 days = 65 random = 10 tooltip = EVTTOOLTIPLoR.869 }
	}
}

# Spies Lose
narrative_event = {
	id = LoR.868
	title = EVTNAMELoR.866
	desc = EVTDESCLoR.868
	picture = GFX_evt_shadow
	
	is_triggered_only = yes
	
	hide_from = yes
	
	option = {
		name = EVTOPTALoR.865
		prestige = -25
		narrative_event = { id = LoR.871 days = 65 random = 10 tooltip = EVTTOOLTIPLoR.869 }
	}
}

# The Letter (has daughter)
narrative_event = {
	id = LoR.869
	title = EVTNAMELoR.869
	desc = EVTDESCLoR.869
	picture = GFX_evt_recieve_letter
	
	is_triggered_only = yes
	
	hide_from = yes
	
	option = {
		name = EVTOPTALoR.869
		narrative_event = { id = LoR.872 days = 7 tooltip = EVTTOOLTIPLoR.872 }
	}
	option = {
		name = EVTOPTBLoR.869
		narrative_event = { id = LoR.873 days = 7 tooltip = EVTTOOLTIPLoR.873 }
	}
}

# The Letter (has wife)
narrative_event = {
	id = LoR.870
	title = EVTNAMELoR.869
	desc = EVTDESCLoR.870
	picture = GFX_evt_recieve_letter
	
	is_triggered_only = yes
	
	hide_from = yes
	
	option = {
		name = EVTOPTALoR.869
		narrative_event = { id = LoR.874 days = 7 tooltip = EVTTOOLTIPLoR.872 }
	}
	option = {
		name = EVTOPTBLoR.869
		narrative_event = { id = LoR.875 days = 7 tooltip = EVTTOOLTIPLoR.873 }
	}
}

# The Letter (no daughter or wife)
narrative_event = {
	id = LoR.871
	title = EVTNAMELoR.869
	desc = EVTDESCLoR.870
	picture = GFX_evt_recieve_letter
	
	is_triggered_only = yes
	
	hide_from = yes
	
	option = {
		name = EVTOPTALoR.869
		narrative_event = { id = LoR.876 days = 7 tooltip = EVTTOOLTIPLoR.872 }
	}
	option = {
		name = EVTOPTBLoR.869
		narrative_event = { id = LoR.877 days = 7 tooltip = EVTTOOLTIPLoR.873 }
	}
}

# The Deal (Backstabbing with Daughter)
narrative_event = {
	id = LoR.872
	title = EVTNAMELoR.872
	desc = EVTDESCLoR.872
	picture = GFX_evt_shadowy_cabal
	
	is_triggered_only = yes
	
	hide_from = yes
	
	option = {
		name = EVTOPTALoR.872
		custom_tooltip = { 
			text = ship_hoists_sails
			hidden_tooltip = {
				random_list = {
					30 = { narrative_event = { id = LoR.880 days = 2 } }
					70 = { narrative_event = { id = LoR.878 days = 2 } }
				}
			}
		}
	}
}

# The Deal (with Daughter)
narrative_event = {
	id = LoR.873
	title = EVTNAMELoR.872
	desc = EVTDESCLoR.873
	picture = GFX_evt_shadowy_cabal
	
	is_triggered_only = yes
	
	hide_from = yes
	
	option = {
		name = EVTOPTALoR.872
		narrative_event = { id = LoR.881 days = 2 tooltip = EVTTOOLTIPLoR.878 }
	}
}

# The Deal (Backstabbing with Wife)
narrative_event = {
	id = LoR.874
	title = EVTNAMELoR.872
	desc = EVTDESCLoR.874
	picture = GFX_evt_shadowy_cabal
	
	is_triggered_only = yes
	
	hide_from = yes
	
	option = {
		name = EVTOPTALoR.872
		scaled_wealth = -0.25
		custom_tooltip = { 
			text = ship_hoists_sails 
			hidden_tooltip = {
				random_list = {
					30 = { narrative_event = { id = LoR.880 days = 2 } }
					70 = { narrative_event = { id = LoR.879 days = 2 } }
				}
			}
		}
	}
}

# The Deal (with Wife)
narrative_event = {
	id = LoR.875
	title = EVTNAMELoR.872
	desc = EVTDESCLoR.875
	picture = GFX_evt_shadowy_cabal
	
	is_triggered_only = yes
	
	hide_from = yes
	
	option = {
		name = EVTOPTALoR.872
		scaled_wealth = -0.25
		narrative_event = { id = LoR.881 days = 2 tooltip = EVTTOOLTIPLoR.878 }
	}
}

# The Deal (Backstabbing with Money)
narrative_event = {
	id = LoR.876
	title = EVTNAMELoR.872
	desc = EVTDESCLoR.876
	picture = GFX_evt_shadowy_cabal
	
	is_triggered_only = yes
	
	hide_from = yes
	
	option = {
		name = EVTOPTALoR.872
		scaled_wealth = -0.35
		custom_tooltip = { 
			text = ship_hoists_sails 
			hidden_tooltip = {
				random_list = {
					30 = { narrative_event = { id = LoR.880 days = 2 } }
					70 = { narrative_event = { id = LoR.879 days = 2 } }
				}
			}
		}
	}
}

# The Deal (with Money)
narrative_event = {
	id = LoR.877
	title = EVTNAMELoR.872
	desc = EVTDESCLoR.877
	picture = GFX_evt_shadowy_cabal
	
	is_triggered_only = yes
	
	hide_from = yes
	
	option = {
		name = EVTOPTALoR.872
		scaled_wealth = -0.35
		narrative_event = { id = LoR.881 days = 2 tooltip = EVTTOOLTIPLoR.878 }
	}
}

# Conclusion (Ambush success with daughter)
narrative_event = {
	id = LoR.878
	title = EVTNAMELoR.878
	desc = EVTDESCLoR.878
	picture = GFX_evt_victory_arch_byzantine
	
	is_triggered_only = yes
	
	hide_from = yes
	
	option = {
		name = EVTOPTALoR.878
		create_character = {
			random_traits = no
			dynasty = NONE
			female = no
			age = 47
			trait = intricate_webweaver
			trait = brave
			trait = drunkard
			trait = hedonist
			trait = wroth
			trait = greedy
			trait = proud
			trait = ambitious
			attributes = {
				learning = 2
				martial = 5
				diplomacy = 2
				intrigue = 1
				stewardship = 1
			}
		}
		new_character = {
			prisoner = yes
			create_character = {
				random_traits = no
				dynasty = NONE
				female = yes
				age = 21
				trait = intricate_webweaver
				trait = brave
				trait = hedonist
				trait = wroth
				trait = fair
				trait = proud
				trait = ambitious
				attributes = {
					learning = 1
					martial = 3
					diplomacy = 3
					intrigue = 2
					stewardship = 2
				}
			}
			new_character = {
				prisoner = yes
				set_father = prev
			}
		}
		change_intrigue = 1
		wealth = 25
		custom_tooltip = { text = liquid_fire_settled }
	}
}

# Conclusion (Ambush success without daughter)
narrative_event = {
	id = LoR.879
	title = EVTNAMELoR.878
	desc = EVTDESCLoR.879
	picture = GFX_evt_victory_arch_byzantine
	
	is_triggered_only = yes
	
	hide_from = yes
	
	option = {
		name = EVTOPTALoR.878
		create_character = {
			random_traits = no
			dynasty = NONE
			female = no
			age = 47
			trait = intricate_webweaver
			trait = brave
			trait = drunkard
			trait = hedonist
			trait = wroth
			trait = greedy
			trait = proud
			trait = ambitious
			attributes = {
				learning = 2
				martial = 5
				diplomacy = 2
				intrigue = 1
				stewardship = 1
			}
		}
		new_character = {
			prisoner = yes
		}
		change_intrigue = 1
		scaled_wealth = 0.35
		custom_tooltip = { text = liquid_fire_settled }
	}
}

# Conclusion (Ambush fails)
narrative_event = {
	id = LoR.880
	title = EVTNAMELoR.878
	desc = EVTDESCLoR.880
	picture = GFX_evt_hagia_sofia
	
	is_triggered_only = yes
	
	hide_from = yes
	
	option = {
		name = EVTOPTALoR.878
		prestige = -50
		custom_tooltip = { text = liquid_fire_settled }
	}
}

# Conclusion (no Ambush)
narrative_event = {
	id = LoR.881
	title = EVTNAMELoR.878
	desc = EVTDESCLoR.881
	picture = GFX_evt_hagia_sofia
	
	is_triggered_only = yes
	
	hide_from = yes
	
	option = {
		name = EVTOPTALoR.878
		prestige = -50
		custom_tooltip = { text = liquid_fire_settled }
	}
}

### The Eunuch Merchant

# Merchant Arrives
character_event = {
	id = LoR.885
	desc = EVTDESCLoR.885
	picture = GFX_evt_carriage
	
	ai = no
	capable_only = yes
	only_playable = yes
	prisoner = no
	min_age = 16
	
	trigger = {
		NOT = { culture = wilderness}
		has_dlc = "Legacy of Rome"
		in_command = no
		NOT = { is_inaccessible_trigger = yes }
	}
	
	mean_time_to_happen = {
		months = 780
	}
	
	option = {
		name = EVTOPTALoR.885
		character_event = { id = LoR.886 days = 3 tooltip = EVTTOOLTIPLoR.886 }
	}
	option = {
		name = EVTOPTBLoR.885
		custom_tooltip = { text = send_merchants_away }
	}
}

# Spends the Night
character_event = {
	id = LoR.886
	desc = EVTDESCLoR.886
	picture = GFX_evt_feast
	
	hide_from = yes
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTALoR.886
		custom_tooltip = { 
			text = eunuch_offer
			hidden_tooltip = {
				random_list = {
					25 = { character_event = { id = LoR.887 days = 3 } }
					25 = { character_event = { id = LoR.888 days = 3 } }
					25 = { character_event = { id = LoR.889 days = 3 } }
					25 = { character_event = { id = LoR.890 days = 3 } }
				}
			}
		}
	}
}

# Gift 1
character_event = {
	id = LoR.887
	desc = EVTDESCLoR.887
	picture = GFX_evt_emissary
	
	hide_from = yes
	
	is_triggered_only = yes
	
	immediate = {
		create_random_steward = {
			random_traits = no
			dynasty = NONE
			female = no
			age = 22
			religion = ROOT
			attributes = {
				stewardship = 6
			}
			trait = eunuch
			trait = diligent
			trait = temperate
			trait = humble
		}
		new_character = {
			opinion = {
				modifier = opinion_loyal_servant
				who = ROOT
			}
			random_list = {
				25 = {
					add_trait = just
				}
				25 = {
					add_trait = shrewd
				}
				25 = {
					add_trait = stubborn
				}
				25 = {
					add_trait = patient
				}
			}
			random_list = {
				33 = {
					add_trait = administrator
				}
				33 = {
					add_trait = architect
				}
				33 = {
					add_trait = gardener
				}
			}
			save_event_target_as = eunuch_gift
			set_character_flag = eunuch_gift
		}
	}
	
	option = {
		name = EVTOPTALoR.887
		custom_tooltip = {
			text = eunuch_gift_tooltip
		}
	}
	option = {
		name = EVTOPTBLoR.887
		custom_tooltip = { text = eunuch_declined }
		hidden_tooltip = {
			event_target:eunuch_gift = {
				death = {
					death_reason = death_missing
				}
			}
		}
	}
}

# Gift 2
character_event = {
	id = LoR.888
	desc = EVTDESCLoR.887
	picture = GFX_evt_emissary
	
	hide_from = yes
	
	is_triggered_only = yes
	
	immediate = {
		create_random_diplomat = {
			random_traits = no
			dynasty = NONE
			female = no
			age = 22
			religion = ROOT
			attributes = {
				diplomacy = 6
			}
			trait = eunuch
			trait = diligent
			trait = temperate
			trait = humble
		}
		new_character = {
			opinion = {
				modifier = opinion_loyal_servant
				who = ROOT
			}
			random_list = {
				25 = {
					add_trait = honest
				}
				25 = {
					add_trait = kind
				}
				25 = {
					add_trait = gregarious
				}
				25 = {
					add_trait = trusting
				}
			}
			random_list = {
				25 = {
					add_trait = socializer
				}
				25 = {
					add_trait = gamer
				}
				25 = {
					add_trait = poet
				}
				25 = {
					add_trait = falconer
				}
			}
			save_event_target_as = eunuch_gift
			set_character_flag = eunuch_gift
		}
	}
	option = {
		name = EVTOPTALoR.887
		custom_tooltip = {
			text = eunuch_gift_tooltip
		}
	}
	option = {
		name = EVTOPTBLoR.887
		custom_tooltip = { text = eunuch_declined }
		hidden_tooltip = {
			event_target:eunuch_gift = {
				death = {
					death_reason = death_missing
				}
			}
		}
	}
}

# Gift 3
character_event = {
	id = LoR.889
	desc = EVTDESCLoR.887
	picture = GFX_evt_emissary
	
	hide_from = yes
	
	is_triggered_only = yes
	
	immediate = {
		create_random_intriguer = {
			random_traits = no
			dynasty = NONE
			female = no
			age = 22
			religion = ROOT
			attributes = {
				intrigue = 6
			}
			trait = eunuch
			trait = diligent
			trait = temperate
			trait = humble
		}
		new_character = {
			opinion = {
				modifier = opinion_loyal_servant
				who = ROOT
			}
			random_list = {
				25 = {
					add_trait = deceitful
				}
				25 = {
					add_trait = paranoid
				}
				25 = {
					add_trait = shrewd
				}
				25 = {
					add_trait = cynical
				}
			}
			random_list = {
				50 = {
					add_trait = schemer
				}
				50 = {
					add_trait = impaler
				}
			}
			save_event_target_as = eunuch_gift
			set_character_flag = eunuch_gift
		}
	}
	option = {
		name = EVTOPTALoR.887
		custom_tooltip = {
			text = eunuch_gift_tooltip
		}
	}
	option = {
		name = EVTOPTBLoR.887
		custom_tooltip = { text = eunuch_declined }
		hidden_tooltip = {
			event_target:eunuch_gift = {
				death = {
					death_reason = death_missing
				}
			}
		}
	}
}

# Gift 4
character_event = {
	id = LoR.890
	desc = EVTDESCLoR.887
	picture = GFX_evt_emissary
	
	hide_from = yes
	
	is_triggered_only = yes
	
	immediate = {
		create_random_soldier = {
			random_traits = no
			dynasty = NONE
			female = no
			age = 22
			religion = ROOT
			attributes = {
				martial = 6
			}
			trait = eunuch
			trait = diligent
			trait = temperate
			trait = humble
		}
		new_character = {
			opinion = {
				modifier = opinion_loyal_servant
				who = ROOT
			}
			random_list = {
				25 = {
					add_trait = brave
				}
				25 = {
					add_trait = wroth
				}
				25 = {
					add_trait = cruel
				}
				25 = {
					add_trait = robust
				}
			}
			random_list = {
				25 = {
					add_trait = organizer
				}
				25 = {
					add_trait = inspiring_leader
				}
				25 = {
					add_trait = defensive_leader
				}
				25 = {
					add_trait = desert_terrain_leader
				}
			}
			random_list = {
				33 = {
					add_trait = duelist
				}
				33 = {
					add_trait = strategist
				}
				33 = {
					add_trait = hunter
				}
			}
			save_event_target_as = eunuch_gift
			set_character_flag = eunuch_gift
		}
	}
	
	option = {
		name = EVTOPTALoR.887
		custom_tooltip = {
			text = eunuch_gift_tooltip
		}
	}
	option = {
		name = EVTOPTBLoR.887
		custom_tooltip = { text = eunuch_declined }
		hidden_tooltip = {
			event_target:eunuch_gift = {
				death = {
					death_reason = death_missing
				}
			}
		}
	}
}
