#######################################
#
# Schism Events
#
# Event ID ID LoR.200 - LoR.399 reserved
#
#######################################

namespace = LoR

### The Pentarchy

# Patriarchate of Antioch
character_event = {
	id = LoR.200
	desc = EVTDESCLoR.200
	picture = GFX_evt_bishop_byzantine
	border = GFX_event_normal_frame_religion
	
	only_playable = yes
	only_independent = yes
	religion_group = christian
	
	trigger = {
		has_dlc = "Legacy of Rome"
		d_pentarch_antioch = {
			has_holder = yes
			holder_scope = {
				is_theocracy = yes
				religion = ROOT
				vassal_of = ROOT
			}
		}
		is_heretic = no
		primary_title = { NOT = { has_title_flag = pat_antioch } }
		NOT = { has_global_flag = schism_mended }
	}
	
	mean_time_to_happen = {
		days = 7
	}

	option = {
		name = EVTOPTALoR.200
		hidden_tooltip = { primary_title = { set_title_flag = pat_antioch } }
		piety = 100
	}
}

# Patriarchate of Jerusalem
character_event = {
	id = LoR.201
	desc = EVTDESCLoR.201
	picture = GFX_evt_bishop_byzantine
	border = GFX_event_normal_frame_religion

	only_playable = yes
	only_independent = yes
	religion_group = christian
	
	trigger = {
		has_dlc = "Legacy of Rome"
		d_pentarch_jerusalem = {
			has_holder = yes
			holder_scope = {
				is_theocracy = yes
				religion = ROOT
				vassal_of = ROOT
			}
		}
		is_heretic = no
		NOT = { has_global_flag = schism_mended }		
		primary_title = { NOT = { has_title_flag = pat_jerusalem } }
	}
	
	mean_time_to_happen = {
		days = 7
	}

	option = {
		name = EVTOPTALoR.200
		hidden_tooltip = { primary_title = { set_title_flag = pat_jerusalem } }
		piety = 100
	}
}

# Patriarchate of Alexandria
character_event = {
	id = LoR.202
	desc = EVTDESCLoR.202
	picture = GFX_evt_bishop_byzantine
	border = GFX_event_normal_frame_religion

	only_playable = yes
	only_independent = yes
	religion_group = christian
	
	trigger = {
		has_dlc = "Legacy of Rome"
		d_pentarch_alexandria = {
			has_holder = yes
			holder_scope = {
				is_theocracy = yes
				religion = ROOT
				vassal_of = ROOT
			}
		}
		is_heretic = no
		NOT = { has_global_flag = schism_mended }
		primary_title = { NOT = { has_title_flag = pat_alexandria } }
	}
	
	mean_time_to_happen = {
		days = 7
	}

	option = {
		name = "EVTOPTALoR.200"
		hidden_tooltip = { primary_title = { set_title_flag = pat_alexandria } }
		piety = 100
	}
}

# Patriarchate of Rome
character_event = {
	id = LoR.203
	desc = EVTDESCLoR.203
	picture = GFX_evt_bishop_byzantine
	border = GFX_event_normal_frame_religion
	
	only_playable = yes
	only_independent = yes
	religion_group = christian

	trigger = {
		has_dlc = "Legacy of Rome"
		d_pentarch_rome = {
			has_holder = yes
			holder_scope = {
				is_theocracy = yes
				religion = ROOT
				vassal_of = ROOT
			}
		}
		is_heretic = no
		NOT = { has_global_flag = schism_mended }
		primary_title = { NOT = { has_title_flag = pat_rome } }
	}
	
	mean_time_to_happen = {
		days = 7
	}

	option = {
		name = EVTOPTALoR.200
		hidden_tooltip = { primary_title = { set_title_flag = pat_rome } }
		piety = 100
	}
}

# Patriarchate of Constantinople
character_event = {
	id = LoR.220
	desc = EVTDESC_LoR_230
	picture = GFX_evt_bishop_byzantine
	border = GFX_event_normal_frame_religion
	
	only_playable = yes
	only_independent = yes
	religion_group = christian
	
	trigger = {
		has_dlc = "Legacy of Rome"
		NOT = { religion = orthodox }
		NOT = { religion = chalcedonian }
		d_pentarch_constantinople = {
			has_holder = yes
			holder_scope = {
				is_theocracy = yes
				religion = ROOT
				vassal_of = ROOT
			}
		}
		is_heretic = no
		NOT = { has_global_flag = schism_mended }
		primary_title = { NOT = { has_title_flag = pat_constantinople } }
	}
	
	mean_time_to_happen = {
		days = 7
	}
	
	option = {
		name = EVTOPTALoR.200
		hidden_tooltip = { primary_title = { set_title_flag = pat_constantinople } }
		piety = 100
	}
}

### Latin Patriarchates

# Latin Patriarchate of Antioch
character_event = {
	id = LoR.221
	desc = EVTDESCLoR.200
	picture = GFX_evt_bishop
	border = GFX_event_normal_frame_religion
	
	only_playable = yes
	only_independent = yes
	religion_group = christian
	
	trigger = {
		has_dlc = "Legacy of Rome"
		d_latin_antioch = {
			has_holder = yes
			holder_scope = {
				is_theocracy = yes
				religion = ROOT
				vassal_of = ROOT
			}
		}
		is_heretic = no
		primary_title = { NOT = { has_title_flag = pat_latin_antioch } }
		NOT = { has_global_flag = schism_mended }
	}
	
	mean_time_to_happen = {
		days = 7
	}

	option = {
		name = EVTOPTALoR.200
		hidden_tooltip = { primary_title = { set_title_flag = pat_latin_antioch } }
		piety = 100
	}
}

# Latin Patriarchate of Jerusalem
character_event = {
	id = LoR.222
	desc = EVTDESCLoR.201
	picture = GFX_evt_bishop
	border = GFX_event_normal_frame_religion

	only_playable = yes
	only_independent = yes
	religion_group = christian
	
	trigger = {
		has_dlc = "Legacy of Rome"
		d_latin_jerusalem = {
			has_holder = yes
			holder_scope = {
				is_theocracy = yes
				religion = ROOT
				vassal_of = ROOT
			}
		}
		is_heretic = no
		NOT = { has_global_flag = schism_mended }		
		primary_title = { NOT = { has_title_flag = pat_latin_jerusalem } }
	}
	
	mean_time_to_happen = {
		days = 7
	}

	option = {
		name = EVTOPTALoR.200
		hidden_tooltip = { primary_title = { set_title_flag = pat_latin_jerusalem } }
		piety = 100
	}
}

# Latin Patriarchate of Alexandria
character_event = {
	id = LoR.223
	desc = EVTDESCLoR.202
	picture = GFX_evt_bishop
	border = GFX_event_normal_frame_religion

	only_playable = yes
	only_independent = yes
	religion_group = christian
	
	trigger = {
		has_dlc = "Legacy of Rome"
		d_latin_alexandria = {
			has_holder = yes
			holder_scope = {
				is_theocracy = yes
				religion = ROOT
				vassal_of = ROOT
			}
		}
		is_heretic = no
		NOT = { has_global_flag = schism_mended }
		primary_title = { NOT = { has_title_flag = pat_latin_alexandria } }
	}
	
	mean_time_to_happen = {
		days = 7
	}

	option = {
		name = "EVTOPTALoR.200"
		hidden_tooltip = { primary_title = { set_title_flag = pat_latin_alexandria } }
		piety = 100
	}
}

# Latin Patriarchate of Constantinople
character_event = {
	id = LoR.224
	desc = EVTDESC_LoR_230
	picture = GFX_evt_bishop
	border = GFX_event_normal_frame_religion
	
	only_playable = yes
	only_independent = yes
	religion_group = christian
	
	trigger = {
		has_dlc = "Legacy of Rome"
		d_latin_constantinople = {
			has_holder = yes
			holder_scope = {
				is_theocracy = yes
				religion = ROOT
				vassal_of = ROOT
			}
		}
		is_heretic = no
		NOT = { has_global_flag = schism_mended }
		primary_title = { NOT = { has_title_flag = pat_latin_constantinople } }
	}
	
	mean_time_to_happen = {
		days = 7
	}
	
	option = {
		name = EVTOPTALoR.200
		hidden_tooltip = { primary_title = { set_title_flag = pat_latin_constantinople } }
		piety = 100
	}
}

