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

namespace = MES

### The Pentarchy

### Schism Mended

# The Nestorian Schism Mended
narrative_event = {
	id = MES.1
	title = EVTNAMEMES.1
	desc = EVTDESCMES.1
	
	picture = GFX_evt_icon
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTALoR.200

		if = {
			limit = { religion = ROOT }
			set_parent_religion = { religion = orthodox parent = ROOT }
		}

		set_global_flag = nestorian_schism_mended
		give_nickname = nick_the_saint
		hidden_tooltip = {
			any_playable_ruler = {
				limit = {
					religion = orthodox
					controls_religion = no
				}
				narrative_event = { id = MES.11 }
			}
		}
	}
}

# Convert or Not?
narrative_event = {
	id = MES.11
	title = EVTNAMEMES.1
	desc = EVTDESCMES.11
	
	picture = GFX_evt_icon
	
	is_triggered_only = yes
	
	option = { # Yes
		name = EVTOPTALoR.211
		ai_chance = { factor = 60 }
		religion = FROM
		any_courtier = {
			limit = {
				religion = orthodox
				liege = { character = ROOT }
			}
			religion = FROM
		}
		capital_scope = {
			religion = FROM
		}
	}
	option = { # No
		name = EVTOPTBLoR.211
		ai_chance = { factor = 40 }
	}
}

# The Miaphysite Schism Mended
narrative_event = {
	id = MES.2
	title = EVTNAMEMES.2
	desc = EVTDESCMES.2
	
	picture = GFX_evt_icon
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTALoR.200

		if = {
			limit = { religion = ROOT }
			set_parent_religion = { religion = orthodox parent = ROOT }
		}

		set_global_flag = miaphysite_schism_mended
		give_nickname = nick_the_saint
		hidden_tooltip = {
			any_playable_ruler = {
				limit = {
					religion = orthodox
					controls_religion = no
				}
				narrative_event = { id = MES.21 }
			}
		}
	}
}

# Convert or Not?
narrative_event = {
	id = MES.21
	title = EVTNAMEMES.2
	desc = EVTDESCMES.21
	
	picture = GFX_evt_icon
	
	is_triggered_only = yes
	
	option = { # Yes
		name = EVTOPTALoR.211
		ai_chance = { factor = 60 }
		religion = FROM
		any_courtier = {
			limit = {
				religion = orthodox
				liege = { character = ROOT }
			}
			religion = FROM
		}
		capital_scope = {
			religion = FROM
		}
	}
	option = { # No
		name = EVTOPTBLoR.211
		ai_chance = { factor = 40 }
	}
}

# The Orthodox > Nestorian Schism Mended
narrative_event = {
	id = MES.3
	title = EVTNAMEMES.3
	desc = EVTDESCMES.3
	
	picture = GFX_evt_icon
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTALoR.200

		if = {
			limit = { religion = ROOT }
			set_parent_religion = { religion = nestorian parent = ROOT }
		}

		set_global_flag = orthodox_nestorian_schism_mended
		give_nickname = nick_the_saint
		hidden_tooltip = {
			any_playable_ruler = {
				limit = {
					religion = nestorian
					controls_religion = no
				}
				narrative_event = { id = MES.31 }
			}
		}
	}
}

# Convert or Not?
narrative_event = {
	id = MES.31
	title = EVTNAMEMES.3
	desc = EVTDESCMES.31
	
	picture = GFX_evt_icon
	
	is_triggered_only = yes
	
	option = { # Yes
		name = EVTOPTALoR.211
		ai_chance = { factor = 60 }
		religion = FROM
		any_courtier = {
			limit = {
				religion = nestorian
				liege = { character = ROOT }
			}
			religion = FROM
		}
		capital_scope = {
			religion = FROM
		}
	}
	option = { # No
		name = EVTOPTBLoR.211
		ai_chance = { factor = 40 }
	}
}

# The Orthodox > Miaphysite Schism Mended
narrative_event = {
	id = MES.4
	title = EVTNAMEMES.4
	desc = EVTDESCMES.4
	
	picture = GFX_evt_icon
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTALoR.200

		if = {
			limit = { religion = ROOT }
			set_parent_religion = { religion = miaphysite parent = ROOT }
		}

		set_global_flag = orthodox_miaphysite_schism_mended
		give_nickname = nick_the_saint
		hidden_tooltip = {
			any_playable_ruler = {
				limit = {
					religion = miaphysite
					controls_religion = no
				}
				narrative_event = { id = MES.41 }
			}
		}
	}
}

# Convert or Not?
narrative_event = {
	id = MES.41
	title = EVTNAMEMES.4
	desc = EVTDESCMES.41
	
	picture = GFX_evt_icon
	
	is_triggered_only = yes
	
	option = { # Yes
		name = EVTOPTALoR.211
		ai_chance = { factor = 60 }
		religion = FROM
		any_courtier = {
			limit = {
				religion = miaphysite
				liege = { character = ROOT }
			}
			religion = FROM
		}
		capital_scope = {
			religion = FROM
		}
	}
	option = { # No
		name = EVTOPTBLoR.211
		ai_chance = { factor = 40 }
	}
}

# The Eastern > Catholic Schism Mended
narrative_event = {
	id = MES.5
	title = EVTNAMEMES.5
	desc = EVTDESCMES.5
	
	picture = GFX_evt_icon
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTALoR.200

		if = {
			limit = { religion = ROOT }
			set_parent_religion = { religion = catholic parent = ROOT }
		}

		set_global_flag = eastern_great_schism_mended
		give_nickname = nick_the_saint
		hidden_tooltip = {
			any_playable_ruler = {
				limit = {
					religion = catholic
					controls_religion = no
				}
				narrative_event = { id = MES.51 }
			}
		}
	}
}

# Convert or Not?
narrative_event = {
	id = MES.51
	title = EVTNAMEMES.5
	desc = EVTDESCMES.51
	
	picture = GFX_evt_icon
	
	is_triggered_only = yes
	
	option = { # Yes
		name = EVTOPTALoR.211
		ai_chance = { factor = 60 }
		religion = FROM
		any_courtier = {
			limit = {
				religion = catholic
				liege = { character = ROOT }
			}
			religion = FROM
		}
		capital_scope = {
			religion = FROM
		}
	}
	option = { # No
		name = EVTOPTBLoR.211
		ai_chance = { factor = 40 }
	}
}