namespace = SoA

# Confirm decision and check religion

character_event = {
	id = SoA.5000
	desc =EVTDESC_SoA_5000
	picture = GFX_evt_bishop
	border = GFX_event_normal_frame_religion
	
	is_triggered_only = yes

	option = {
		name = EVTOPTA_SoA_5000
		piety = 20
		set_character_flag = do_not_disturb
		set_character_flag = preparing_pilgrimage
		clr_character_flag = activated_pilgrimage
		hidden_tooltip = {
			if = {
				limit = {
					OR = {
						religion = orthodox  # Jeru, Const, Antio
						religion = iconoclast
						religion = monothelite
						religion = nestorian
						religion = bogomilist
						religion = messalian
						religion = paulician
						religion = maryite
					}
				}
				character_event = { id = SoA.5011 }
			}
			if = {
				limit = {
					OR = {
						religion = miaphysite # Jeru, Antio, Axum
						religion = monophysite
						religion = lilithian
					}
				}
				character_event = { id = SoA.5011 }
			}
			if = {
				limit = {
					OR = {
						religion = catholic # All Catholic holy places
						religion = cathar
						religion = fraticelli
						religion = waldensian
						religion = lollard
					}
				}
				character_event = { id = SoA.5008 }
			}
		}
	}
}

# Choose destination as Eastern Christian
character_event = {
	id = SoA.5011
	desc =EVTDESC_SoA_5011
	picture = GFX_evt_icon
	border = GFX_event_normal_frame_religion
	
	is_triggered_only = yes

	option = {
		name = EVTOPTA_SoA_5011
		trigger = {
			NOT = { at_location = 774 }
		}
		set_character_flag = pilgrimage_to_jerusalem
		hidden_tooltip = {
			character_event = { id = SoA.5022 days = 15 }
		}
	}

	option = {
		name = EVTOPTB_SoA_5011
		trigger = {
			NOT = { at_location = 496 }
			NOT = { religion = miaphysite }
			NOT = { religion = monophysite }
			NOT = { religion = lilithian }
		}
		set_character_flag = pilgrimage_to_constantinople
		hidden_tooltip = {
			character_event = { id = SoA.5094 days = 15 }
		}
	}
	option = {
		name = EVTOPTC_SoA_5011
		trigger = {
			NOT = { at_location = 764 }
		}
		set_character_flag = pilgrimage_to_antioch
		hidden_tooltip = {
			character_event = { id = SoA.5096 days = 15 }
		}
	}
	option = {
		name = EVTOPTD_SoA_5011
		trigger = {
			OR = {
				religion = miaphysite
				religion = monophysite
				religion = lilithian
			}
		NOT = { at_location = 875 }
		}
		set_character_flag = pilgrimage_to_axum
		hidden_tooltip = {
			character_event = { id = SoA.5095 days = 15 }
		}
	}
}