﻿namespace = eoh_decisions

# 0001-0003 - 建立天国皇朝/通知/销毁信仰领袖
# 0005-0006 - 希腊立足点（建立拉丁帝国）
# 0007 - 拉丁入侵，转移法理
# 0008/0009 - 拉丁帝国凯旋
# 0011-0013 - 重建埃兰沙赫尔/通知/销毁信仰领袖
# 0021-0022 - 拉丁重建罗马

## 天国皇朝
eoh_decisions.0001 = {
	type = character_event
	window = big_event_window
	title = eoh_decisions.0001.t
	desc = eoh_decisions.0001.desc
	left_portrait = {
		character = root
		animation = personality_zealous
		camera = camera_event_table_right
	}
	theme = crown
	# override_background = ep2_holy_site_jerusalem #throne_room_mediterranean
	override_background = { reference = ep2_holy_site_jerusalem }
	override_effect_2d = { reference = legend_glow }
	widget = { gui = event_window_widget_vfx_godray container = foreground_shader_vfx_container }

	immediate = {
		play_music_cue = "mx_cue_crusade_starts"
		create_empire_of_heaven_effect = yes
		hidden_effect = {
			random_list = {
				10 = { set_nickname_effect = { NICKNAME = nick_the_crusader } }
				10 = { set_nickname_effect = { NICKNAME = nick_the_holy } }
				10 = { set_nickname_effect = { NICKNAME = nick_the_sword_of_god } }
				10 = { set_nickname_effect = { NICKNAME = nick_the_messenger_of_christ } }
				10 = {
					trigger = { is_female = yes }
					set_nickname_effect = { NICKNAME = nick_the_maiden_of_virgin }
				}
				10 = {
					trigger = { is_female = no }
					set_nickname_effect = { NICKNAME = nick_the_knight_of_gabriel }
				}
			}
		}
	}

	after = {
		hidden_effect = {
			every_player = {
				limit = {
					this != root
					NOT = { is_in_list = eoh_former_islamic_hofs }
				}
				trigger_event = eoh_decisions.0002
			}
			every_in_list = {
				list = eoh_former_islamic_hofs
				limit = { this != root }
				trigger_event = { id = eoh_decisions.0003 days = 1 }
			}
		}
	}
	option = {
		name = eoh_decisions.0001.a
		# 海外帝国
		custom_tooltip = {
			text = crusader_empire_set_title_name_outremer_tooltip
			title:h_dar_al_islam = {
				set_title_name = h_outremer
			}
		}
	}
	
	option = {
		name = eoh_decisions.0001.b
		# 十字军帝国
		custom_tooltip = {
			text = crusader_empire_set_title_name_crusader_tooltip
			title:h_dar_al_islam = {
				set_title_name = h_crusader
			}
		}
	}
	
	option = {
		name = eoh_decisions.0001.d
		# 地上天国
		custom_tooltip = {
			text = crusader_empire_set_title_name_god_tooltip
			title:h_dar_al_islam = {
				set_title_name = h_kingdom_of_god
			}
		}
	}
	
	option = {
		name = eoh_decisions.0001.c
		# 天国王朝
		custom_tooltip = {
			text = crusader_empire_set_title_name_heaven_tooltip
			title:h_dar_al_islam = {
				set_title_name = h_empire_of_heaven
			}
		}
	}
}

eoh_decisions.0002 = {
	type = character_event
	window = big_event_window
	title = eoh_decisions.0001.t
	desc = {
		first_valid = {
			# Christian reaction.
			triggered_desc = {
				trigger = {
					faith.religion = religion:christianity_religion
				}
				desc = eoh_decisions.0002.desc.christians
			}
			# Muslim reaction.
			triggered_desc = {
				trigger = {
					faith.religion = religion:islam_religion
				}
				desc = eoh_decisions.0002.desc.muslims
			}
			# Others.
			triggered_desc = {
				trigger = {
					NOR = {
						faith.religion = religion:christianity_religion
						faith.religion = religion:islam_religion
					}
				}
				desc = eoh_decisions.0002.desc.others
			}
		}
	}
	theme = crown
	override_background = { reference = ep2_holy_site_jerusalem }
	left_portrait = {
		character = scope:scoped_ruler
		animation = personality_zealous
		camera = camera_event_table_right
	}

	immediate = {
		#Play a suitably crusader-themed song for Christians.
		if = {
			limit = {
				faith = { religion_tag = christianity_religion }
			}
			play_music_cue = "mx_cue_crusade_starts"
		}
		#And something a bit more revenge-driven for non-Christians.
		else = { play_music_cue = "mx_cue_combat_2" }
	}

	option = {
		name = eoh_decisions.0002.christians
		trigger = {
			faith.religion = religion:christianity_religion
		}
	}
	option = {
		name = eoh_decisions.0002.muslims
		trigger = {
			faith.religion = religion:islam_religion
		}
		add_opinion = {
			target = scope:scoped_ruler
			modifier = destroyed_papacy_opinion
		}
		stress_impact = {
			zealous = minor_stress_impact_gain
		}
	}
	option = {
		name = eoh_decisions.0002.others
		trigger = {
			NOR = {
				faith.religion = religion:christianity_religion
				faith.religion = religion:islam_religion
			}
		}
	}
}

eoh_decisions.0003 = {
	type = character_event
	window = big_event_window
	title = eoh_decisions.0001.t
	desc = eoh_decisions.0003.desc
	theme = crown
	override_background = { reference = ep2_holy_site_mena }
	left_portrait = {
		character = scope:scoped_ruler
		animation = personality_zealous
		camera = camera_event_table_left
	}
	right_portrait = {
		character = ROOT
		animation = fear
		camera = camera_event_table_right
	}
	
	immediate = {
		show_as_tooltip = {
			scope:scoped_ruler = {
				get_title = title:h_dar_al_islam
			}
		}
		if = {
			limit = { exists = var:old_hof_title }
			destroy_title = var:old_hof_title
			remove_variable = old_hof_title
		}
	}
	
	option = {
		name = eoh_decisions.0003.a
	}
}

# 希腊立足点
eoh_decisions.0005 = {
	type = character_event
	window = big_event_window
	title = eoh_decisions.0005.t
	desc = eoh_decisions.0005.desc
	left_portrait = {
		character = scope:pope
		animation = crowning
		camera = camera_event_table_left
	}
	center_portrait = {
		character = scope:byz_emp
		animation = anger
		camera = camera_event_table_center_background
	}
	right_portrait = {
		character = ROOT
		animation = personality_zealous
		camera = camera_event_table_right
	}
	theme = byzantine
	override_background = { reference = throne_room_mediterranean }
	widget = { gui = event_window_widget_vfx_godray container = foreground_shader_vfx_container }

	immediate = {
		play_music_cue = "mx_cue_crusade_starts"
		faith = {
			religious_head = { save_scope_as = pope }
		}
		if = {
			limit = { exists = title:e_byzantium.holder }
			title:e_byzantium.holder = { save_scope_as = byz_emp }
		}
		else = {
			culture:greek.culture_head ?= { save_scope_as = byz_emp }
		}
		secure_byzantium_foothold_scripted_effect = yes
	}

	after = {
		hidden_effect = {
			every_player = {
				limit = {
					this != root
				}
				trigger_event = eoh_decisions.0006
			}
		}
	}
	option = {
		name = eoh_decisions.0005.a
	}
}

eoh_decisions.0006 = {
	type = character_event
	window = big_event_window
	title = eoh_decisions.0005.t
	desc = {
		first_valid = {
			# Byzantium reaction.
			triggered_desc = {
				trigger = {
					OR = {
						liege = title:e_byzantium.holder
						this = title:e_byzantium.holder
					}
				}
				desc = eoh_decisions.0006.desc.byz
			}
			# Catholic reaction.
			triggered_desc = {
				trigger = {
					OR = {
						faith = faith:catholic
						faith = {
							religion = religion:christianity_religion
							faith_hostility_level = {
 								target = faith:catholic
 								value < faith_hostile_level
 							}
						}
					}
				}
				desc = eoh_decisions.0006.desc.catholic
			}
			# Others.
			triggered_desc = {
				trigger = {
					NOR = {
						liege = title:e_byzantium.holder
						this = title:e_byzantium.holder
						faith = faith:catholic
						faith = {
							religion = religion:christianity_religion
							faith_hostility_level = {
 								target = faith:catholic
 								value < faith_hostile_level
 							}
						}
					}
				}
				desc = eoh_decisions.0006.desc.others
			}
		}
	}
	theme = byzantine
	override_background = { reference = throne_room_mediterranean }
	left_portrait = {
		character = scope:pope
		animation = crowning
		camera = camera_event_table_left
	}
	center_portrait = {
		character = scope:byz_emp
		animation = anger
		camera = camera_event_table_center_background
	}
	right_portrait = {
		character = ROOT
		animation = personality_zealous
		camera = camera_event_table_right
	}

	immediate = {
		#Play a suitably crusader-themed song for Christians.
		if = {
			limit = {
				OR = {
					faith = faith:catholic
					faith = {
						religion = religion:christianity_religion
						faith_hostility_level = {
 							target = faith:catholic
 							value < faith_hostile_level
 						}
					}
				}
			}
			play_music_cue = "mx_cue_crusade_starts"
		}
		else = { play_music_cue = "mx_cue_combat_2" }
	}

	option = {
		name = eoh_decisions.0006.byz
		trigger = {
			OR = {
				liege = title:e_byzantium.holder
				this = title:e_byzantium.holder
			}
		}
	}
	option = {
		name = eoh_decisions.0006.catholic
		trigger = {
			OR = {
				faith = faith:catholic
				faith = {
					religion = religion:christianity_religion
					faith_hostility_level = {
 						target = faith:catholic
 						value < faith_hostile_level
 					}
				}
			}
		}
	}
	option = {
		name = eoh_decisions.0006.others
		trigger = {
			NOR = {
				liege = title:e_byzantium.holder
				this = title:e_byzantium.holder
				faith = faith:catholic
				faith = {
					religion = religion:christianity_religion
					faith_hostility_level = {
 						target = faith:catholic
 						value < faith_hostile_level
 					}
				}
			}
		}
	}
}

# 胜利后转移法理
eoh_decisions.0007 = {
	hidden = yes
	immediate = {
		frankokratia_invasion_war_set_de_jure_effect = yes
	}
}

# 拉丁化
eoh_decisions.0008 = {
	type = character_event
	window = big_event_window
	title = eoh_decisions.0008.t
	desc = eoh_decisions.0008.desc
	left_portrait = {
		character = scope:byz_emp
		animation = fear
		camera = camera_event_table_left
	}
	right_portrait = {
		character = ROOT
		animation = scepter #personality_bold
		camera = camera_event_table_right
	}
	theme = byzantine
	override_background = { reference = ep3_constantinople }
	widget = { gui = event_window_widget_vfx_godray container = foreground_shader_vfx_container }

	immediate = {
		play_music_cue = "mx_cue_crusade_starts"
		frankokratia_victory_scripted_effect = yes
	}

	after = {
		hidden_effect = {
			every_player = {
				limit = {
					this != root
				}
				trigger_event = eoh_decisions.0009
			}
		}
		# 我是罗马，比你更罗马
		custom_tooltip = {
			text = latin_empire_become_roman_empire_tooltip
			title:e_latin_empire = {
				set_title_name = h_roman_empire
			}
			title:e_byzantium = {
				set_title_name = e_empire_of_the_greeks
			}
		}
		# 迁都君堡
		if = { #Usurp if not held personally.
			limit = {
				NOT = { title:c_byzantion.holder = { this = root } }
			}
			title:c_byzantion.holder = { save_scope_as = target_for_denunciation }
			create_title_and_vassal_change = {
				type = returned
				save_scope_as = change
				add_claim_on_loss = no
			}
			title:c_byzantion = {
				change_title_holder = {
					holder = root
					change = scope:change
				}
			}
			resolve_title_and_vassal_change = scope:change

		}
		set_realm_capital = title:c_byzantion
		if = {
			limit = {
				exists = scope:target_for_denunciation
			}
			scope:target_for_denunciation = {
				trigger_event = {
					id = roman_restoration.1204
				}
			}
		}
		custom_tooltip = ep3_roman_restoration.0001.a.tt
	}
	option = {
		# 不变色
		custom_tooltip = latin_empire_become_roman_empire_original_color_tooltip
		name = eoh_decisions.0008.a
	}
	option = {
		# 变红色
		custom_tooltip = {
			text = latin_empire_become_roman_empire_red_color_tooltip
			title:e_latin_empire = {
				set_title_color = { 167 10 0 }
			}
		}
		name = eoh_decisions.0008.b
	}
	option = {
		# 变紫色
		custom_tooltip = {
			text = latin_empire_become_roman_empire_violet_color_tooltip
			title:e_latin_empire = {
				set_title_color = { 76 0 45 }
			}
		}
		name = eoh_decisions.0008.c
	}
}

eoh_decisions.0009 = {
	type = character_event
	window = big_event_window
	title = eoh_decisions.0008.t
	desc = eoh_decisions.0008.desc
	theme = byzantine
	override_background = { reference = throne_room_mediterranean }
	left_portrait = {
		character = scope:byz_emp
		animation = fear
		camera = camera_event_table_left
	}
	right_portrait = {
		character = ROOT
		animation = scepter #personality_bold
		camera = camera_event_table_right
	}

	immediate = {
		#Play a suitably crusader-themed song for Christians.
		if = {
			limit = {
				OR = {
					faith = faith:catholic
					faith = {
						religion = religion:christianity_religion
						faith_hostility_level = {
 							target = faith:catholic
 							value < faith_hostile_level
 						}
					}
				}
			}
			play_music_cue = "mx_cue_crusade_starts"
		}
		else = { play_music_cue = "mx_cue_combat_2" }
	}

	option = {
		name = eoh_decisions.0006.a
	}
}

## 埃兰沙赫尔
eoh_decisions.0011 = {
	type = character_event
	window = big_event_window
	title = eoh_decisions.0011.t
	desc = eoh_decisions.0011.desc
	left_portrait = {
		character = root
		animation = personality_zealous
		camera = camera_event_table_right
	}
	theme = crown
	override_background = { reference = ep2_holy_site_mena }

	immediate = {
		play_music_cue = "mx_cue_faith_conversion"
		hidden_effect = {
			create_eranshahr_effect = yes
			random_list = {
				10 = { set_nickname_effect = { NICKNAME = nick_the_rekindler_of_iran } }
			}
		}
	}

	after = {
		hidden_effect = {
			every_player = {
				limit = {
					this != root
					NOT = { is_in_list = eoh_former_islamic_hofs }
				}
				trigger_event = eoh_decisions.0012
			}
			every_in_list = {
				list = eoh_former_islamic_hofs
				limit = { this != root }
				trigger_event = { id = eoh_decisions.0013 days = 1 }
			}
		}
	}
	option = {
		name = eoh_decisions.0011.a
	}
}

eoh_decisions.0012 = {
	type = character_event
	window = big_event_window
	title = eoh_decisions.0001.t
	desc = {
		first_valid = {
			# Mazdayasnas reaction.
			triggered_desc = {
				trigger = {
					faith.religion = religion:mazdayasna_religion
				}
				desc = eoh_decisions.0012.desc.mazdayans
			}
			# Muslim reaction.
			triggered_desc = {
				trigger = {
					faith.religion = religion:islam_religion
				}
				desc = eoh_decisions.0012.desc.muslims
			}
			# Others.
			triggered_desc = {
				trigger = {
					NOR = {
						faith.religion = religion:mazdayasna_religion
						faith.religion = religion:islam_religion
					}
				}
				desc = eoh_decisions.0012.desc.others
			}
		}
	}
	theme = crown
	override_background = { reference = ep2_holy_site_mena }
	left_portrait = {
		character = scope:scoped_ruler
		animation = personality_zealous
		camera = camera_event_table_right
	}

	immediate = {
		#Play a suitably crusader-themed song for Christians.
		if = {
			limit = {
				faith = { religion_tag = religion:mazdayasna_religion }
			}
			play_music_cue = "mx_cue_faith_conversion"
		}
		#And something a bit more revenge-driven for non-Christians.
		else = { play_music_cue = "mx_cue_combat_2" }
	}

	option = {
		name = eoh_decisions.0012.mazdayasnas
		trigger = {
			faith.religion = religion:mazdayasna_religion
		}
	}
	option = {
		name = eoh_decisions.0012.muslims
		trigger = {
			faith.religion = religion:islam_religion
		}
		add_opinion = {
			target = scope:scoped_ruler
			modifier = destroyed_papacy_opinion
		}
		stress_impact = {
			zealous = minor_stress_impact_gain
		}
	}
	option = {
		name = eoh_decisions.0012.others
		trigger = {
			NOR = {
				faith.religion = religion:mazdayasna_religion
				faith.religion = religion:islam_religion
			}
		}
	}
}

eoh_decisions.0013 = {
	type = character_event
	window = big_event_window
	title = eoh_decisions.0011.t
	desc = eoh_decisions.0013.desc
	theme = crown
	override_background = { reference = ep2_holy_site_mena }
	left_portrait = {
		character = scope:scoped_ruler
		animation = personality_zealous
		camera = camera_event_table_left
	}
	right_portrait = {
		character = ROOT
		animation = fear
		camera = camera_event_table_right
	}
	
	immediate = {
		show_as_tooltip = {
			scope:scoped_ruler = {
				get_title = title:h_dar_al_islam
			}
		}
		if = {
			limit = { exists = var:old_hof_title }
			destroy_title = var:old_hof_title
			remove_variable = old_hof_title
		}
	}
	
	option = {
		name = eoh_decisions.0013.a
	}
}

## 海外帝国
eoh_decisions.0015 = {
	type = character_event
	window = big_event_window
	title = eoh_decisions.0015.t
	desc = eoh_decisions.0015.desc
	right_portrait = {
		character = root
		animation = personality_zealous
		camera = camera_event_table_right
	}
	theme = crown
	override_background = { reference = ep2_holy_site_jerusalem }
	override_effect_2d = { reference = legend_glow }
	widget = { gui = event_window_widget_vfx_godray container = foreground_shader_vfx_container }

	immediate = {
		play_music_cue = "mx_cue_crusade_starts"
		hidden_effect = {
			form_outremer_dejure_scripted_effect = yes
			random_list = {
				10 = { set_nickname_effect = { NICKNAME = nick_the_crusader } }
				10 = { set_nickname_effect = { NICKNAME = nick_the_holy } }
				10 = { set_nickname_effect = { NICKNAME = nick_the_sword_of_god } }
				10 = { set_nickname_effect = { NICKNAME = nick_the_messenger_of_christ } }
				10 = {
					trigger = { is_female = yes }
					set_nickname_effect = { NICKNAME = nick_the_maiden_of_virgin }
				}
				10 = {
					trigger = { is_female = no }
					set_nickname_effect = { NICKNAME = nick_the_knight_of_gabriel }
				}
			}
		}
	}

	option = {
		name = eoh_decisions.0015.a
		form_outremer_main_scripted_effect = yes
		# Send narrative fluff to other players (if any).
		every_ruler = {
			limit = {
				is_landed = yes
				this != root
				capital_province = {
					OR = {
						geographical_region = world_europe_west
						geographical_region = world_middle_east
					}
				}
			}
			trigger_event = middle_east_decisions.0002
		}
		hidden_effect = {
			random = {
				chance = 35
				every_held_title = {
					title_tier = county
					limit = {
						faith != root.faith
					}
					set_county_faith = root.faith
				}
			}
			every_vassal = { # Muslims abandon Faith.
				limit = {
					faith.religion = faith:ashari.religion
					NOT = { has_trait = zealous }
				}
				random = {
					chance = 35
					set_character_faith = root.faith
					every_held_title = {
						title_tier = county
						set_county_faith = root.faith
					}
				}
			}
			every_vassal = { # Culture conversion.
				limit = {
					culture = { has_same_culture_heritage = root.culture }
				}
				if = {
					limit = { exists = scope:new_culture }
					random = {
						chance = 50
						set_culture = scope:new_culture
						if = {
							limit = { exists = capital_county }
							capital_county = { set_county_culture = scope:new_culture }
						}
					}
				}
			}
		}
		
		# 加新传统
		show_as_tooltip = {
			culture = {
				add_culture_tradition = tradition_crusader_warrior
				if = {
					limit = { has_cultural_tradition = tradition_mubarizuns }
					remove_cultural_tradition = tradition_mubarizuns
				}
				else_if = {
					limit = { has_cultural_tradition = tradition_futuwaa }
					remove_cultural_tradition = tradition_futuwaa
				}
				# else_if = {
				# 	limit = { has_cultural_tradition = tradition_ep3_audacious_cadets }
				# 	remove_cultural_tradition = tradition_ep3_audacious_cadets
				# }
			}
		}
		custom_tooltip = {
			text = form_outremer_tradition_crusader_warrior_addition_desc
			every_culture_global = {
				limit = {
					has_innovation = innovation_desert_tactics 
					NOT = { has_cultural_tradition = tradition_crusader_warrior }
				}
				add_culture_tradition = tradition_crusader_warrior
				if = {
					limit = { has_cultural_tradition = tradition_mubarizuns }
					remove_cultural_tradition = tradition_mubarizuns
				}
				else_if = {
					limit = { has_cultural_tradition = tradition_futuwaa }
					remove_cultural_tradition = tradition_futuwaa
				}
				# else_if = {
				# 	limit = { has_cultural_tradition = tradition_ep3_audacious_cadets }
				# 	remove_cultural_tradition = tradition_ep3_audacious_cadets
				# }
			}
		}
	}
	option = {
		name = eoh_decisions.0015.b
		form_outremer_main_scripted_effect = yes
		# Send narrative fluff to other players (if any).
		every_ruler = {
			limit = {
				is_landed = yes
				this != root
				capital_province = {
					OR = {
						geographical_region = world_europe_west
						geographical_region = world_middle_east
					}
				}
			}
			trigger_event = middle_east_decisions.0002
		}
		hidden_effect = {
			random = {
				chance = 35
				every_held_title = {
					title_tier = county
					limit = {
						faith != root.faith
					}
					set_county_faith = root.faith
				}
			}
			every_vassal = { # Muslims abandon Faith.
				limit = {
					faith.religion = faith:ashari.religion
					NOT = { has_trait = zealous }
				}
				random = {
					chance = 35
					set_character_faith = root.faith
					every_held_title = {
						title_tier = county
						set_county_faith = root.faith
					}
				}
			}
			every_vassal = { # Culture conversion.
				limit = {
					culture = { has_same_culture_heritage = root.culture }
				}
				if = {
					limit = { exists = scope:new_culture }
					random = {
						chance = 50
						set_culture = scope:new_culture
						if = {
							limit = { exists = capital_county }
							capital_county = { set_county_culture = scope:new_culture }
						}
					}
				}
			}
		}
		
		# 加新传统
		show_as_tooltip = {
			culture = {
				add_culture_tradition = tradition_holyland_guardian
				if = {
					limit = { has_cultural_tradition = tradition_religious_patronage }
					remove_cultural_tradition = tradition_religious_patronage
				}
				# else_if = {
				# 	limit = { has_cultural_tradition = tradition_zealous_people }
				# 	remove_cultural_tradition = tradition_zealous_people
				# }
				else_if = {
					limit = { has_cultural_tradition = tradition_ep3_cultivated_sophistication }
					remove_cultural_tradition = tradition_ep3_cultivated_sophistication
				}
			}
		}
		custom_tooltip = {
			text = form_outremer_tradition_holyland_guardian_addition_desc
			every_culture_global = {
				limit = {
					has_innovation = innovation_desert_tactics 
					NOT = { has_cultural_tradition = tradition_holyland_guardian }
				}
				add_culture_tradition = tradition_holyland_guardian
				if = {
					limit = { has_cultural_tradition = tradition_religious_patronage }
					remove_cultural_tradition = tradition_religious_patronage
				}
				# else_if = {
				# 	limit = { has_cultural_tradition = tradition_zealous_people }
				# 	remove_cultural_tradition = tradition_zealous_people
				# }
				else_if = {
					limit = { has_cultural_tradition = tradition_ep3_cultivated_sophistication }
					remove_cultural_tradition = tradition_ep3_cultivated_sophistication
				}
			}
		}
	}
}


## 拉丁帝国重建罗马
eoh_decisions.0021 = {
	type = character_event
	window = fullscreen_event
	title = roman_restoration.0001.t
	desc = {
		desc = roman_restoration.0001.desc.intro
		first_valid = {
			# Doing it as the Greeks.
			triggered_desc = {
				trigger = {
					root.culture = culture:greek
				}
				desc = roman_restoration.0001.desc.greeks
			}
			# Doing it as somebody else.
			desc = eoh_decisions.0021.other
		}
		first_valid = {
			# Doing it as Christians.
			triggered_desc = {
				trigger = {
					faith.religion = religion:christianity_religion
				}
				desc = roman_restoration.0001.desc.christians
			}
			# Doing it as Hellenics
			triggered_desc = {
				trigger = {
					faith.religion = faith:hellenic_pagan.religion
				}
				desc = roman_restoration.0001.desc.hellenics
			}
			desc = roman_restoration.0001.desc.fallback
		}
	}
	theme = emperor
	override_background = { reference = ep3_fullscreen_restore_rome }

	immediate = {
		play_music_cue = "mx_cue_epic_sacral_moment"
		save_scope_as = scoped_emperor
		create_roman_empire_latin_scripted_effect = yes
	}

	option = {
		name = roman_restoration.0001.a
		set_nickname_effect = { NICKNAME = nick_the_glorious }
		# Send narrative fluff to other players (if any).
		every_player = {
			limit = {
				this != root
				is_within_diplo_range = { CHARACTER = root }
			}
			trigger_event = eoh_decisions.0022
		}
	}
}

# Some chucklefuck restored Rome
eoh_decisions.0022 = {
	type = character_event
	window = fullscreen_event
	title = roman_restoration.0002.t
	desc = {
		desc = eoh_decisions.0022.desc
		first_valid = {
			# Christians freaking out.
			triggered_desc = {
				trigger = {
					scope:scoped_emperor = { faith.religion = faith:hellenic_pagan.religion }
					faith.religion = faith:catholic.religion
				}
				desc = roman_restoration.0002.desc.hellenics
			}
			# Regular.
			desc = roman_restoration.0002.desc.christians
		}
	}
	theme = emperor
	override_background = { reference = ep3_fullscreen_restore_rome }
	
	immediate = {
		#Same-faith non-empire tier rulers are over-awed.
		if = {
			limit = { faith = scope:scoped_emperor.primary_title.state_faith }
			play_music_cue = "mx_cue_epic_sacral_moment"
		}
		#Otherwise, this is a tacit statement of imperial threat.
		else = { play_music_cue = "mx_cue_combat_2" }
	}

	option = { 
		name = roman_restoration.0002.a
	}
}
