#######################################
#
# Roman Events
#
# Event ID LoR.1 - LoR.199 reserved
#
#######################################

# Written by Henrik Eklund

namespace = LoR

### Lost Roman Provinces
### WARNING: completely_controls is a very demanding trigger

# Provincia Syria Palaestina
narrative_event = {
	id = LoR.1
	title = EVTNAMELoR.1
	desc = EVTDESCLoR.1
	picture = GFX_evt_victory_arch_byzantine

	ai = no
	has_dlc = "Legacy of Rome"

	trigger = {
		OR = {
			has_landed_title = e_byzantium
			has_landed_title = e_roman_empire
		}

		is_alternate_start = no
		NOT = { has_global_flag = syria_palaestina }

		OR = {
			religion_group = christian
			religion_openly_in_hellenic_subgroup_trigger = yes		### ACR ###
		}

		completely_controls = d_oultrejourdain
		completely_controls = d_edessa
		completely_controls = d_antioch
		completely_controls = d_aleppo
		completely_controls = d_tripoli
		completely_controls = d_palmyra
		completely_controls = d_damascus
		completely_controls = d_galilee
		completely_controls = d_jerusalem
		completely_controls = d_ascalon
	}

	mean_time_to_happen = {
		days = 1
	}

	immediate = {
		set_global_flag = syria_palaestina
	}

	option = {
		name = EVTOPTALoR.1

		prestige = 100
	}
}

# Provincia Aegyptus
narrative_event = {
	id = LoR.2
	title = EVTNAMELoR.2
	desc = EVTDESCLoR.2
	picture = GFX_evt_victory_arch_byzantine

	ai = no
	has_dlc = "Legacy of Rome"

	trigger = {
		OR = {
			has_landed_title = e_byzantium
			has_landed_title = e_roman_empire
		}

		is_alternate_start = no
		NOT = { has_global_flag = aegyptus }

		OR = {
			religion_group = christian
			religion_openly_in_hellenic_subgroup_trigger = yes		### ACR ###
		}

		## k_egypt
		completely_controls = d_alexandria
		completely_controls = d_asyut
		completely_controls = d_aswan
		completely_controls = d_cairo
		completely_controls = d_damietta
		completely_controls = d_faiyum
		completely_controls = d_paraetonium
		completely_controls = d_sinai
	}

	mean_time_to_happen = {
		days = 1
	}

	immediate = {
		set_global_flag = aegyptus
	}

	option = {
		name = EVTOPTALoR.1

		prestige = 100
	}
}

# Provincia Cyrenaica
narrative_event = {
	id = LoR.3
	title = EVTNAMELoR.3
	desc = EVTDESCLoR.3
	picture = GFX_evt_victory_arch_byzantine

	ai = no
	has_dlc = "Legacy of Rome"

	trigger = {
		OR = {
			has_landed_title = e_byzantium
			has_landed_title = e_roman_empire
		}

		is_alternate_start = no
		NOT = { has_global_flag = cyrenaica }

		OR = {
			religion_group = christian
			religion_openly_in_hellenic_subgroup_trigger = yes		### ACR ###
		}

		## k_africa
		completely_controls = d_cyrenaica
		completely_controls = d_syrte
	}

	mean_time_to_happen = {
		days = 1
	}

	immediate = {
		set_global_flag = cyrenaica
	}

	option = {
		name = EVTOPTALoR.1

		prestige = 100
	}
}

# Provincia Africa
narrative_event = {
	id = LoR.4
	title = EVTNAMELoR.4
	desc = EVTDESCLoR.4
	picture = GFX_evt_victory_arch_byzantine

	ai = no
	has_dlc = "Legacy of Rome"

	trigger = {
		OR = {
			has_landed_title = e_byzantium
			has_landed_title = e_roman_empire
		}

		is_alternate_start = no
		NOT = { has_global_flag = africa }

		OR = {
			religion_group = christian
			religion_openly_in_hellenic_subgroup_trigger = yes		### ACR ###
		}

		## k_africa
		completely_controls = d_jerid
		completely_controls = d_kabylia
		completely_controls = d_mzab
		completely_controls = d_tripolitania
		completely_controls = d_tunis
	}

	mean_time_to_happen = {
		days = 1
	}

	immediate = {
		set_global_flag = africa
	}

	option = {
		name = EVTOPTALoR.1

		prestige = 100
	}
}

# Provincia Illyricum
narrative_event = {
	id = LoR.5
	title = EVTNAMELoR.5
	desc = EVTDESCLoR.5
	picture = GFX_evt_victory_arch_byzantine

	ai = no
	has_dlc = "Legacy of Rome"

	trigger = {
		OR = {
			has_landed_title = e_byzantium
			has_landed_title = e_roman_empire
		}

		is_alternate_start = no
		NOT = { has_global_flag = illyricum }

		OR = {
			religion_group = christian
			religion_openly_in_hellenic_subgroup_trigger = yes		### ACR ###
		}

		## k_carinthia
		completely_controls = d_carinthia
		completely_controls = d_carniola
		completely_controls = d_friuli

		## k_serbia
		completely_controls = d_dioclea
		completely_controls = d_rashka

		## k_croatia
		completely_controls = d_bosnia
		completely_controls = d_croatia
		completely_controls = d_hum
		completely_controls = d_slavonia
		completely_controls = d_syrmia
	}

	mean_time_to_happen = {
		days = 1
	}

	immediate = {
		set_global_flag = illyricum
	}

	option = {
		name = EVTOPTALoR.1

		prestige = 100
	}
}

# Provincia Italia
narrative_event = {
	id = LoR.6
	title = EVTNAMELoR.6
	desc = EVTDESCLoR.6
	picture = GFX_evt_victory_arch_byzantine

	ai = no
	has_dlc = "Legacy of Rome"

	trigger = {
		OR = {
			has_landed_title = e_byzantium
			has_landed_title = e_roman_empire
		}

		is_alternate_start = no
		NOT = { has_global_flag = italia }

		OR = {
			religion_group = christian
			religion_openly_in_hellenic_subgroup_trigger = yes		### ACR ###
		}

		## k_italy
		completely_controls = d_genoa
		completely_controls = d_milano
		completely_controls = d_modena
		completely_controls = d_pisa
		completely_controls = d_susa
		completely_controls = d_toscana
		completely_controls = d_verona

		## k_papal_state
		completely_controls = d_ancona
		completely_controls = d_ferrara
		completely_controls = d_latium
		completely_controls = d_spoleto

		## k_sardinia
		completely_controls = d_corsica
		completely_controls = d_sardinia

		## k_sicily
		completely_controls = d_abruzzo
		completely_controls = d_apulia
		completely_controls = d_benevento
		completely_controls = d_calabria
		completely_controls = d_capua
		completely_controls = d_sicily
		completely_controls = d_salerno

		## k_venice
		completely_controls = d_venice
	}

	mean_time_to_happen = {
		days = 1
	}

	immediate = {
		set_global_flag = italia
	}

	option = {
		name = EVTOPTALoR.1

		prestige = 100
	}
}

# Provincia Gallia
narrative_event = {
	id = LoR.7
	title = EVTNAMELoR.7
	desc = EVTDESCLoR.7
	picture = GFX_evt_victory_arch_byzantine

	ai = no
	has_dlc = "Legacy of Rome"

	trigger = {
		OR = {
			has_landed_title = e_byzantium
			has_landed_title = e_roman_empire
		}

		is_alternate_start = no
		NOT = { has_global_flag = gallia }

		OR = {
			religion_group = christian
			religion_openly_in_hellenic_subgroup_trigger = yes		### ACR ###
		}

		# k_france
		completely_controls = d_anjou
		completely_controls = d_berry
		completely_controls = d_burgundy
		completely_controls = d_champagne
		completely_controls = d_normandy
		completely_controls = d_blois
		completely_controls = d_picardie
		completely_controls = d_paris


		## k_aquitaine
		completely_controls = d_aquitaine
		completely_controls = d_auvergne
		completely_controls = d_bourbon
		completely_controls = d_gascogne
		completely_controls = d_poitou
		completely_controls = d_toulouse

		## k_brittany
		completely_controls = d_brittany
		completely_controls = d_upper_brittany
		completely_controls = d_penthievre

		## k_burgundy
		completely_controls = d_dauphine
		completely_controls = d_franche_comte
		completely_controls = d_provence
		completely_controls = d_savoie
		completely_controls = d_transjurania
	}

	mean_time_to_happen = {
		days = 1
	}

	immediate = {
		set_global_flag = gallia
	}

	option = {
		name = EVTOPTALoR.1

		prestige = 100
	}
}

# Provincia Germania
narrative_event = {
	id = LoR.8
	title = EVTNAMELoR.8
	desc = EVTDESCLoR.8
	picture = GFX_evt_victory_arch_byzantine

	ai = no
	has_dlc = "Legacy of Rome"

	trigger = {
		OR = {
			has_landed_title = e_byzantium
			has_landed_title = e_roman_empire
		}

		is_alternate_start = no
		NOT = { has_global_flag = germania }

		OR = {
			religion_group = christian
			religion_openly_in_hellenic_subgroup_trigger = yes		### ACR ###
		}

		## k_pommerania
		completely_controls = d_brandenburg
		completely_controls = d_lausitz
		completely_controls = d_mecklemburg
		completely_controls = d_meissen
		completely_controls = d_pomerelia
		completely_controls = d_pomerania
		completely_controls = d_rugen

		## k_saxony
		completely_controls = d_angria
		completely_controls = d_bremen
		completely_controls = d_westphalia
		completely_controls = d_saxony
		completely_controls = d_brunswick

		## k_lotharingia
		completely_controls = d_lower_lorraine
		completely_controls = d_koln
		completely_controls = d_trier
		completely_controls = d_upper_lorraine

		## k_germany
		completely_controls = d_alsace
		completely_controls = d_baden
		completely_controls = d_franconia
		completely_controls = d_hesse
		completely_controls = d_raetia
		completely_controls = d_rhine
		completely_controls = d_swabia
		completely_controls = d_thurgau
		completely_controls = d_thuringia

		## k_bavaria
		completely_controls = d_bavaria
		completely_controls = d_nordgau
		completely_controls = d_osterreich
		completely_controls = d_salzburg
		completely_controls = d_styria
		completely_controls = d_tyrol

		## k_frisia
		completely_controls = d_holland
		completely_controls = d_gelre

		## k_france
		completely_controls = d_flanders
		completely_controls = d_brabant

		## k_bohemia
		completely_controls = d_bohemia
		completely_controls = d_moravia
	}

	mean_time_to_happen = {
		days = 1
	}

	immediate = {
		set_global_flag = germania
	}

	option = {
		name = EVTOPTALoR.1

		prestige = 100
	}
}

# Provincia Britannia
narrative_event = {
	id = LoR.9
	title = EVTNAMELoR.9
	desc = EVTDESCLoR.9
	picture = GFX_evt_victory_arch_byzantine

	ai = no
	has_dlc = "Legacy of Rome"

	trigger = {
		OR = {
			has_landed_title = e_byzantium
			has_landed_title = e_roman_empire
		}

		is_alternate_start = no
		NOT = { has_global_flag = britannia }

		OR = {
			religion_group = christian
			religion_openly_in_hellenic_subgroup_trigger = yes		### ACR ###
		}

		completely_controls_region = custom_england
		# completely_controls = d_bedford			# Essex
		# completely_controls = d_canterbury		# Sussex
		# completely_controls = d_cumbria
		# completely_controls = d_gloucester		# Hwicce
		# completely_controls = d_hampshire
		# completely_controls = d_hereford			# Mercia
		# completely_controls = d_lancaster
		# completely_controls = d_norfolk
		# completely_controls = d_northumberland
		# completely_controls = d_somerset
		# completely_controls = d_york

		## k_wales
		completely_controls = d_cornwall
		completely_controls = d_deheubarth
		completely_controls = d_gwent
		completely_controls = d_gwynedd
		completely_controls = d_powys
	}

	mean_time_to_happen = {
		days = 1
	}

	immediate = {
		set_global_flag = britannia
	}

	option = {
		name = EVTOPTALoR.1

		prestige = 100
	}
}

# Provincia Hispania
narrative_event = {
	id = LoR.10
	title = EVTNAMELoR.10
	desc = EVTDESCLoR.10
	picture = GFX_evt_victory_arch_byzantine

	ai = no
	has_dlc = "Legacy of Rome"

	trigger = {
		OR = {
			has_landed_title = e_byzantium
			has_landed_title = e_roman_empire
		}

		is_alternate_start = no
		NOT = { has_global_flag = hispania }

		OR = {
			religion_group = christian
			religion_openly_in_hellenic_subgroup_trigger = yes		### ACR ###
		}

		# k_andalusia
		completely_controls = d_cordoba
		completely_controls = d_granada
		completely_controls = d_sevilla
		completely_controls = d_toledo

		# k_aragon
		completely_controls = d_aragon
		completely_controls = d_barcelona
		completely_controls = d_mallorca

		# k_asturias
		completely_controls = d_asturias
		completely_controls = d_leon

		# k_badajoz
		completely_controls = d_algarve
		completely_controls = d_badajoz
		completely_controls = d_lisboa
		completely_controls = d_beja

		# k_castille
		completely_controls = d_castilla

		# k_navarra
		completely_controls = d_navarra

		# k_galicia
		completely_controls = d_galicia

		# k_portugal
		completely_controls = d_portucale

		# k_valencia
		completely_controls = d_valencia
		completely_controls = d_murcia
	}

	mean_time_to_happen = {
		days = 1
	}

	immediate = {
		set_global_flag = hispania
	}

	option = {
		name = EVTOPTALoR.1

		prestige = 100
	}
}

# Provincia Mauretania
narrative_event = {
	id = LoR.11
	title = EVTNAMELoR.11
	desc = EVTDESCLoR.11
	picture = GFX_evt_victory_arch_byzantine

	ai = no
	has_dlc = "Legacy of Rome"

	trigger = {
		OR = {
			has_landed_title = e_byzantium
			has_landed_title = e_roman_empire
		}

		is_alternate_start = no
		NOT = { has_global_flag = mauretania }

		OR = {
			religion_group = christian
			religion_openly_in_hellenic_subgroup_trigger = yes		### ACR ###
		}

		## k_mauratania (coastal duchies)
		completely_controls = d_marrakech
		completely_controls = d_tangier
		completely_controls = d_fes
		completely_controls = d_alger
		completely_controls = d_tlemcen
		completely_controls = d_tahert
	}

	mean_time_to_happen = {
		days = 1
	}

	immediate = {
		set_global_flag = mauretania
	}

	option = {
		name = EVTOPTALoR.1

		prestige = 100
	}
}

# Provincia Mesopotamia
narrative_event = {
	id = LoR.12
	title = EVTNAMELoR.12
	desc = EVTDESCLoR.12
	picture = GFX_evt_victory_arch_byzantine

	ai = no
	has_dlc = "Legacy of Rome"

	trigger = {
		OR = {
			has_landed_title = e_byzantium
			has_landed_title = e_roman_empire
		}

		is_alternate_start = no
		NOT = { has_global_flag = mesopotamia }

		OR = {
			religion_group = christian
			religion_openly_in_hellenic_subgroup_trigger = yes		### ACR ###
		}

		## k_armenia
		completely_controls = d_mesopotamia
		completely_controls = d_edessa
		completely_controls = d_coloneia

		## k_mesopotamia
		completely_controls = d_jazira
		completely_controls = d_mosul
		completely_controls = d_mudar

		## k_anatolia
		completely_controls = d_armenia

		## k_iraq
		completely_controls = d_baghdad
		completely_controls = d_basra
		completely_controls = d_samarra
	}

	mean_time_to_happen = {
		days = 1
	}

	immediate = {
		set_global_flag = mesopotamia
	}

	option = {
		name = EVTOPTALoR.1

		prestige = 100
	}
}

# Provincia Caledonia
narrative_event = {
	id = LoR.13
	title = EVTNAMELoR.13
	desc = EVTDESCLoR.13
	picture = GFX_evt_victory_arch_byzantine

	ai = no
	has_dlc = "Legacy of Rome"

	trigger = {
		OR = {
			has_landed_title = e_byzantium
			has_landed_title = e_roman_empire
		}

		is_alternate_start = no
		NOT = { has_global_flag = caledonia }

		OR = {
			religion_group = christian
			religion_openly_in_hellenic_subgroup_trigger = yes		### ACR ###
		}

		completely_controls_region = custom_scotland

		# completely_controls = d_albany
		# completely_controls = d_galloway
		# completely_controls = d_the_isles
		# completely_controls = d_lothian
		# completely_controls = d_moray
		# completely_controls = d_man
	}

	mean_time_to_happen = {
		days = 1
	}

	immediate = {
		set_global_flag = caledonia
	}

	option = {
		name = EVTOPTALoR.1

		prestige = 100
	}
}

# Provincia Hibernia
narrative_event = {
	id = LoR.14
	title = EVTNAMELoR.14
	desc = EVTDESCLoR.14
	picture = GFX_evt_victory_arch_byzantine

	ai = no
	has_dlc = "Legacy of Rome"

	trigger = {
		OR = {
			has_landed_title = e_byzantium
			has_landed_title = e_roman_empire
		}

		is_alternate_start = no
		NOT = { has_global_flag = hibernia }

		OR = {
			religion_group = christian
			religion_openly_in_hellenic_subgroup_trigger = yes		### ACR ###
		}

		completely_controls_region = world_europe_west_ireland

		# completely_controls = d_ulster
		# completely_controls = d_meath
		# completely_controls = d_leinster
		# completely_controls = d_munster
	}

	mean_time_to_happen = {
		days = 1
	}

	immediate = {
		set_global_flag = hibernia
	}

	option = {
		name = EVTOPTALoR.1

		prestige = 100
	}
}

### Roman Empire Restored

# The Restoration of Rome
narrative_event = {
	id = LoR.20
	title = EVTNAMELoR.20
	picture = GFX_evt_rome_restored_byzantine

	desc = {
		text = EVTDESCLoR.20
		trigger = { is_alternate_start = no }
	}
	desc = {
		text = EVTDESCLoR20_HF
		trigger = { is_alternate_start = yes }
	}

	is_triggered_only = yes # restore_roman_empire, realm_decisions.txt

	immediate = {
		if = {
			limit = {
				ai = no
				is_ironman = yes
			}

			set_character_flag = achievement_legacy_of_rome
		}
	}

	option = {
		name = EVTOPTALoR.20

		hidden_effect = {
			primary_title = {
				any_direct_de_jure_vassal_title = {
					de_jure_liege = e_roman_empire
				}
			}
		}

		grant_title = e_roman_empire

		hidden_effect = {
			e_roman_empire = {
				copy_title_laws = e_byzantium
				copy_title_history = e_byzantium
				make_primary_title = yes
			}

			destroy_landed_title = e_byzantium

			activate_title = {
				title = e_byzantium
				status = no
			}

			any_player = {
				limit = {
					NOT = { character = ROOT }
				}

				narrative_event = { id = LoR.21 }
			}

			if = { # Hellenic Resurgence
				limit = {
					has_dlc = "Holy Fury"
					religion_group = christian

					has_game_rule = {
						name = hellenism_rule
						value = on
					}

					OR = {
						culture = greek
						culture = italian
						culture = roman
					}
				}

				character_event = {
					id = HF.23106
					days = 15
				}
			}

			if = { # Burn and Rebuild Rome
				limit = {
					has_dlc = "Holy Fury"

					c_roma = {
						location = {
							# Check if Gengis Khan or whomever hasn't already leveled the place
							any_province_holding = {
								holding_type = temple
								count >= 2
							}
						}
					}
				}

				c_roma = { # Ping by province to ensure event fires in case the emperor dies in the meantime
					location = {
						province_event = {
							id = HF.23100
							days = 155
						}
					}
				}
			}
		}

		add_trait = augustus
		give_nickname = nick_the_glorious

		if = { # New Imperial Bloodline
			limit = {
				has_dlc = "Holy Fury"
				is_alternate_start = no

				OR = {
					religion_group = christian
					religion_openly_in_hellenic_subgroup_trigger = yes		### ACR ###
				}

				NOT = {
					any_owned_bloodline = {
						has_bloodline_flag = roman_bloodline # Not if already member of a famous historical Roman Bloodline
						bloodline_is_active_for = PREV
					}
				}
			}

			if = {
				limit = { is_female = no }

				create_bloodline = {
					type = roman_emperor_male
				}
			}
			else = {
				create_bloodline = {
					type = roman_emperor_female
				}
			}

			new_bloodline = {
				set_description = bloodline_desc_roman
			}

			sound_effect = bloodline_added
		}
	}
}

# Informed about Restoration of Rome
narrative_event = {
	id = LoR.21
	title = EVTNAMELoR.21
	picture = GFX_evt_rome_restored_byzantine

	desc = {
		text = EVTDESCLoR.21
		trigger = { is_alternate_start = no }
	}
	desc = {
		text = EVTDESCLoR21_HF
		trigger = { is_alternate_start = yes }
	}

	is_triggered_only = yes

	option = {
		name = EVTOPTALoR.21

		trigger = {
			NOT = { has_landed_title = e_hre }
		}
	}

	option = {
		name = EVTOPTBLoR.21

		trigger = { has_landed_title = e_hre }

		prestige = -500
	}
}

### Victory Triumphs

# Triumph Expected
character_event = {
	id = LoR.30
	desc = EVTDESCLoR.30
	picture = GFX_evt_victory_arch_byzantine

	hide_from = yes
	is_triggered_only = yes

	trigger = {
		OR = {
			has_landed_title = e_byzantium
			has_landed_title = e_roman_empire
		}

		OR = {
			religion_group = christian
			religion_openly_in_hellenic_subgroup_trigger = yes		### ACR ###
		}
	}

	option = {
		name = EVTOPTALoR.30

		character_event = {
			id = LoR.31
			days = 12
			tooltip = EVTTOOLTIPLoR.31
		}

		scaled_wealth = -0.3
		prestige = 75
	}

	option = {
		name = EVTOPTBLoR.30

		scaled_wealth = -0.1
		prestige = 25
	}

	option = {
		name = EVTOPTCLoR.30

		prestige = -30
	}
}

# Triumph Held
character_event = {
	id = LoR.31
	desc = EVTDESCLoR.31
	picture = GFX_evt_victory_arch_byzantine

	hide_from = yes
	is_triggered_only = yes

	option = {
		name = EVTOPTALoR.31

		custom_tooltip = {
			text = triumph_held

			any_realm_lord = {
				limit = {
					higher_real_tier_than = BARON
					NOT = { character = ROOT }
				}

				opinion = {
					name = opinion_triumph_held
					who = ROOT
				}

				character_event = { id = LoR.32 }
			}
		}
	}
}

# Triumph Held Vassals
character_event = {
	id = LoR.32
	desc = EVTDESCLoR.32
	picture = GFX_evt_victory_arch_byzantine

	is_triggered_only = yes

	ai = no

	option = {
		name = EVTOPTALoR.32
	}
}

### Roman Borders Restored

# Roman Borders
narrative_event = {
	id = LoR.40
	title = EVTNAMELoR.40
	picture = GFX_evt_rome_restored_byzantine

	desc = {
		text = EVTDESCLoR.40
		trigger = { religion_group = christian }
	}
	desc = {
		text = EVTDESCLoR40_HELLENIC
		trigger = { religion_openly_in_hellenic_subgroup_trigger = yes }		### ACR ###
	}
	# desc = {
	# 	text = EVTDESCLoR40_GENERIC
	# 	trigger = {
	# 		NOT = { religion_group = christian }
	# 		religion_openly_hellenic_or_reformed_trigger = no
	# 	}
	# }

	ai = no
	has_dlc = "Legacy of Rome"

	trigger = {
		OR = {
			has_landed_title = e_byzantium
			has_landed_title = e_roman_empire
		}

		is_alternate_start = no
		NOT = { has_global_flag = roman_borders }

		OR = {
			religion_group = christian
			religion_openly_in_hellenic_subgroup_trigger = yes		### ACR ###
		}

		completely_controls_region = world_europe_west_great_britain

		## k_england
		# d_bedford					# Essex
		# d_canterbury				# Sussex
		# d_cumbria
		# d_gloucester				# Hwicce
		# d_hampshire
		# d_hereford				# Mercia
		# d_lancaster
		# d_norfolk
		# d_northumberland
		# d_somerset
		# d_york

		## k_scotland
		# d_albany
		# d_galloway
		# d_lothian
		# d_moray
		# d_the_isles
		# d_man

		## k_wales
		# d_cornwall
		# d_deheubarth
		# d_gwent
		# d_gwynedd
		# d_powys

		completely_controls_region = world_europe_west_gaul

		## k_aquitaine
		# d_aquitaine
		# d_auvergne
		# d_bourbon
		# d_gascogne
		# d_poitou
		# d_toulouse

		## k_brittany
		# d_brittany
		# d_loire
		# d_penthievre

		## k_burgundy
		# d_dauphine
		# d_franche_comte
		# d_provence minus Nice

		## k_france
		# d_anjou
		# d_berry
		# d_burgundy			# Lower Burgundy
		# d_champagne
		# d_flanders
		# d_normandy
		# d_orleans
		# d_picardie
		# d_valois

		## k_lotharingia
		# d_brabant

		## k_burgundy
		completely_controls = d_savoie
		completely_controls = d_transjurania

		## k_anatolia
		completely_controls = d_anatolia
		completely_controls = d_cilicia
		completely_controls = d_bucellarian
		completely_controls = d_cappadocia
		completely_controls = d_charsianon
		completely_controls = d_cibyrrhaeot
		completely_controls = d_cyprus
		completely_controls = d_opsikion
		completely_controls = d_samos
		completely_controls = d_thracesia

		## k_armenia
		completely_controls = d_armenia
		completely_controls = d_coloneia
		completely_controls = d_edessa
		completely_controls = d_palmyra
		completely_controls = d_damascus

		## k_thrace
		completely_controls = d_abydos
		completely_controls = d_optimatoi

		## k_trebizond
		completely_controls = d_armeniacon
		completely_controls = d_paphlagonia
		completely_controls = d_trebizond

		completely_controls_region = world_middle_east_levant

		## k_jerusalem
		# completely_controls = d_ascalon
		# completely_controls = d_galilee
		# completely_controls = d_jerusalem
		# completely_controls = d_oultrejourdain

		## k_syria
		# completely_controls = d_aleppo
		# completely_controls = d_antioch
		# completely_controls = d_tripoli

		completely_controls_region = world_europe_south

		### completely_controls_region = world_europe_south_east

		## k_byzantium
		# completely_controls = d_achaia
		# completely_controls = d_aegean_islands
		# completely_controls = d_athens		# Hellas
		# completely_controls = d_krete
		# completely_controls = d_thessalonika

		## k_bulgaria
		# completely_controls = d_karvuna
		# completely_controls = d_strymon
		# completely_controls = d_turnovo		# Moesia
		# completely_controls = d_vidin			# Bononia

		## k_croatia
		# completely_controls = d_bosnia
		# completely_controls = d_croatia
		# completely_controls = d_dalmatia		# Hum
		# completely_controls = d_slavonia
		# completely_controls = d_syrmia

		## k_epirus
		# completely_controls = d_cephalonia
		# completely_controls = d_dyrrachion
		# completely_controls = d_epirus
		# completely_controls = d_ohrid			# Lychnidos

		## k_serbia
		# completely_controls = d_dioclea
		# completely_controls = d_rashka

		## k_thrace
		# completely_controls = d_adrianopolis
		# completely_controls = d_thrace

		### completely_controls_region = world_europe_south_sardinia_corsica

		## k_sardinia
		# completely_controls = d_corsica
		# completely_controls = d_sardinia

		### completely_controls_region = world_europe_south_sicily

		## k_sicily
		# completely_controls = d_sicily

		### completely_controls_region = world_europe_south_italy

		## k_bavaria
		# completely_controls = d_tyrol # (minus Innsbruck, Tirol)

		## k_burgundy
		# completely_controls = d_provence # (only c_nice)

		## k_carinthia
		# completely_controls = d_carinthia
		# completely_controls = d_carniola
		# completely_controls = d_friuli

		## k_italy
		# completely_controls = d_genoa
		# completely_controls = d_milano
		# completely_controls = d_modena
		# completely_controls = d_pisa
		# completely_controls = d_susa
		# completely_controls = d_toscana
		# completely_controls = d_verona

		## k_papal_state
		# completely_controls = d_ancona
		# completely_controls = d_ferrara
		# completely_controls = d_latium
		# completely_controls = d_spoleto

		## k_sicily
		# completely_controls = d_abruzzo
		# completely_controls = d_apulia
		# completely_controls = d_benevento
		# completely_controls = d_calabria
		# completely_controls = d_capua
		# completely_controls = d_salerno

		## k_venice
		# completely_controls = d_venice

		completely_controls_region = world_europe_west_iberia

		# k_andalusia
		# completely_controls = d_cordoba
		# completely_controls = d_granada
		# completely_controls = d_sevilla
		# completely_controls = d_toledo

		# k_aragon
		# completely_controls = d_aragon
		# completely_controls = d_barcelona
		# completely_controls = d_mallorca

		# k_asturias
		# completely_controls = d_asturias
		# completely_controls = d_leon

		# k_badajoz
		# completely_controls = d_algarve
		# completely_controls = d_badajoz
		# completely_controls = d_balata
		# completely_controls = d_beja

		# k_castille
		# completely_controls = d_castilla

		# k_navarra
		# completely_controls = d_navarra

		# k_galicia
		# completely_controls = d_galicia

		# k_portugal
		# completely_controls = d_porto

		# k_valencia
		# completely_controls = d_valencia
		# completely_controls = d_murcia

		completely_controls_region = world_africa_north

		## k_africa
		# completely_controls = d_cyrenaica
		# completely_controls = d_jerid
		# completely_controls = d_kabylia
		# completely_controls = d_mzab
		# completely_controls = d_syrte
		# completely_controls = d_tripolitania
		# completely_controls = d_tunis

		# k_egypt minus Sinai
		# completely_controls = d_alexandria
		# completely_controls = d_asyut
		# completely_controls = d_aswan
		# completely_controls = d_cairo
		# completely_controls = d_damietta
		# completely_controls = d_faiyum
		# completely_controls = d_paraetonium

		## k_kanem
		# completely_controls = d_fezzan

		## k_mauratania
		# completely_controls = d_adrar
		# completely_controls = d_alger
		# completely_controls = d_fes
		# completely_controls = d_marrakech
		# completely_controls = d_sijilmasa
		# completely_controls = d_sous
		# completely_controls = d_tahert
		# completely_controls = d_tangiers
		# completely_controls = d_tlemcen

		completely_controls = d_sinai
	}

	mean_time_to_happen = {
		days = 1
	}

	immediate = {
		set_global_flag = roman_borders

		if = {
			limit = {
				ai = no
				is_ironman = yes
			}

			set_character_flag = achievement_spqr
		}
	}

	option = {
		name = EVTOPTALoR.40

		prestige = 1000
	}
}

### The Augustus Trait

# Augustus Trait Gained
character_event = {
	id = LoR.45
	picture = GFX_evt_rome_restored_byzantine

	desc = {
		text = EVTDESCLoR.45
		trigger = { is_alternate_start = no }
	}
	desc = {
		text = EVTDESCLoR45_HF
		trigger = { is_alternate_start = yes }
	}

	is_triggered_only = yes # on_five_year_pulse and on_new_holder

	only_independent = yes
	has_global_flag = rome_restored
	has_dlc = "Legacy of Rome"

	trigger = {
		has_landed_title = e_roman_empire
		NOT = { trait = augustus }
	}

	option = {
		name = EVTOPTALoR.45

		add_trait = augustus
	}
}

# Augustus Trait Lost
character_event = {
	id = LoR.46
	desc = EVTDESCLoR.46
	picture = GFX_evt_rome_restored_byzantine

	is_triggered_only = yes # on_yearly_pulse

	has_dlc = "Legacy of Rome"
	has_global_flag = rome_restored

	trigger = {
		trait = augustus
		NOT = { has_landed_title = e_roman_empire }
	}

	option = {
		name = EVTOPTALoR.46

		remove_trait = augustus
	}
}

# Augustus Trait inheritance
character_event = {
	id = LoR.47

	is_triggered_only = yes # on_death
	hide_window = yes

	only_independent = yes
	has_global_flag = rome_restored
	has_dlc = "Legacy of Rome"

	trigger = {
		has_landed_title = e_roman_empire
	}

	immediate = {
		e_roman_empire = {
			current_heir = {
				character_event = {
					id = LoR.45
					days = 2
				}
			}
		}
	}
}

# Augustus Trait inheritance
character_event = {
	id = LoR.48

	is_triggered_only = yes # on_new_holder_usurpation
	hide_window = yes

	only_playable = yes
	has_global_flag = rome_restored
	has_dlc = "Legacy of Rome"

	trigger = {
		FROM = { title = e_roman_empire }
		NOT = { trait = augustus }
	}

	immediate = {
		character_event = {
			id = LoR.45
			days = 2
		}
	}
}