namespace = CIML

# The Great Schism Mended
narrative_event = {
	id = CIML.220
	title = EVTNAMECIML.220
	desc = EVTDESCCIML.220
	
	picture = GFX_evt_pope
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTACIML.220

		set_global_flag = schism_mended
		give_nickname = nick_the_glorious
		hidden_tooltip = {
			any_playable_ruler = {
				limit = {
					OR = {
						religion = orthodox
						religion = miaphysite
						religion = barlaamite
					}
					controls_religion = no
				}
				narrative_event = { id = CIML.221 }
			}
			any_playable_ruler = {
				limit = {
					NOT = {
						religion = orthodox
						religion = miaphysite
						religion = barlaamite
					}
					controls_religion = no
				}
				narrative_event = { id = CIML.222 }
			}
		}
	}
}

# Convert or Not?
narrative_event = {
	id = CIML.221
	title = EVTNAMECIML.220
	desc = EVTDESCCIML.220
	
	picture = GFX_evt_pope
	
	is_triggered_only = yes
	
	option = { # Yes
		name = EVTOPTACIML.221
		ai_chance = { factor = 75 }
		religion = FROM
		any_courtier = {
			limit = {
				OR = {
					religion = orthodox
					religion = miaphysite
					religion = barlaamite
					}
				liege = { character = ROOT }
			}
			religion = FROM
		}
		capital_scope = {
			religion = FROM
		}
	}
	option = { # No
		name = EVTOPTBCIML.211
		ai_chance = { factor = 25 }
	}
}

narrative_event = {
	id = CIML.222
	title = EVTNAMECIML.220
	desc = EVTDESCCIML.220
	
	picture = GFX_evt_pope
	
	is_triggered_only = yes
	
	option = { # Yes
		trigger = {
		religion = monothelite
	}
		name = EVTOPTACIML.220
	}
	option = { # No
		trigger = {
			NOT = {
				religion = monothelite
				}
	}
		name = EVTOPTCCIML.211
	}
}