namespace = Plus
namespace = LoR

# Provincia Sicilia
# TODO: Add Kingdom province title and decision?
narrative_event = {
	id = LoR.1200
	title = EVTNAME_LoR_1200
	desc = EVTDESC_LoR_1200
	picture = GFX_evt_victory_arch_byzantine

	has_dlc = "Legacy of Rome"
	only_independent = yes

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

		OR = {
			religion_group = christian
			religion_openly_hellenic_or_reformed_trigger = yes
		}

		NOT = { has_global_flag = sicilia }
		completely_controls = d_sicily
	}

	mean_time_to_happen = {
		days = 1
	}

	option = {
		name = EVTOPTALoR.1

		set_global_flag = sicilia
		prestige = 50
	}
}

# Provincia Viennensis
narrative_event = {
	id = LoR.1202
	title = EVTNAME_LoR_1202
	desc = EVTDESC_LoR_1202
	picture = GFX_evt_victory_arch_byzantine

	is_triggered_only = yes

	option = {
		name = EVTOPTALoR.1
	}
}

# Provincia Asia
narrative_event = {
	id = LoR.15
	title = EVTNAMELoR.15
	desc = EVTDESCLoR.15
	picture = GFX_evt_victory_arch_byzantine

	is_triggered_only = yes

	option = {
		name = EVTOPTALoR.1
	}
}

# Provincia Macedonia
narrative_event = {
	id = LoR.16
	title = EVTNAMELoR.16
	desc = EVTDESCLoR.16
	picture = GFX_evt_victory_arch_byzantine

	is_triggered_only = yes

	option = {
		name = EVTOPTALoR.1
	}
}

# Provincia Pontus
narrative_event = {
	id = LoR.17
	title = EVTNAMELoR.17
	desc = EVTDESCLoR.17
	picture = GFX_evt_victory_arch_byzantine

	is_triggered_only = yes

	option = {
		name = EVTOPTALoR.1
	}
}

# Provincia Thracia
narrative_event = {
	id = LoR.18
	title = EVTNAMELoR.18
	desc = EVTDESCLoR.18
	picture = GFX_evt_victory_arch_byzantine

	is_triggered_only = yes

	option = {
		name = EVTOPTALoR.1
	}
}

# Provincia Pannonia-Dacia
narrative_event = {
	id = LoR.100
	title = EVTNAMELoR.100
	desc = EVTDESCLoR.100
	picture = GFX_evt_victory_arch_byzantine

	is_triggered_only = yes

	option = {
		name = EVTOPTALoR.1
	}
}

# Provincia Armenia
narrative_event = {
	id = LoR.101
	title = EVTNAMELoR.101
	desc = EVTDESCLoR.101
	picture = GFX_evt_victory_arch_byzantine

	is_triggered_only = yes

	option = {
		name = EVTOPTALoR.1
	}
}

# Provincia Sardinia-Corsica
narrative_event = {
	id = LoR.102
	title = EVTNAMELoR.102
	desc = EVTDESCLoR.102
	picture = GFX_evt_victory_arch_byzantine

	is_triggered_only = yes

	option = {
		name = EVTOPTALoR.1
	}
}

# Jerusalem Restored
# TODO: Turn into decision and notification event?
character_event = {
	id = LoR.1203

	hide_window = yes

	only_independent = yes
	war = no

	trigger = {
		has_landed_title = c_jerusalem # Just to make sure the event only fires once
		is_title_active = k_provincia_syria_palaestina

		NOR = {
			is_title_active = k_jerusalem
			has_landed_title = e_roman_empire
			has_landed_title = e_byzantium
			has_landed_title = k_provincia_syria_palaestina

			any_liege = {
				OR = {
					has_landed_title = e_roman_empire
					has_landed_title = e_byzantium
					has_landed_title = k_provincia_syria_palaestina
				}
			}
		}

		OR = {
			religion_group = christian
			religion_group = muslim
			religion_group = jewish_group
		}
	}

	mean_time_to_happen = {
		days = 1
	}

	immediate = {
		activate_title = {
			title = k_jerusalem
			status = yes
		}

		d_oultrejourdain = { de_jure_liege = k_jerusalem }
		d_ascalon = { de_jure_liege = k_jerusalem }
		d_jerusalem = { de_jure_liege = k_jerusalem }
		d_galilee = { de_jure_liege = k_jerusalem }
	}
}