﻿# namespace = holy_stuff_go_on_relic_pilgrimage_event

# ##################################################
# # Relic Pilgrimage Events
# ##################################################

# holy_stuff_go_on_relic_pilgrimage_event.0001 = {
# 	hidden = yes

# 	immediate = {
# 		every_barony = {
# 			limit = { 
#                         is_capital_barony = yes
#                         county_is_pilgrimage_site_trigger = yes
# 				NOT = { is_holy_site_of = root.faith }
# 				NOT = { holder = root }
# 				OR = {
# 					AND = {
# 						root.capital_province = { geographical_region = world_africa }
# 						OR = {
# 							title_province = { geographical_region = world_africa }
# 							title_province = { geographical_region = world_middle_east }
# 						}
# 					}
# 					AND = {
# 						root.capital_province = { geographical_region = world_asia_minor }
# 						OR = {
# 							title_province = { geographical_region = world_asia_minor }
# 							title_province = { geographical_region = world_europe_south_east }
# 						}
# 					}
# 					AND = {
# 						root.capital_province = { geographical_region = world_burma }
# 						title_province = { geographical_region = world_burma }
# 						OR = {
# 							title_province = { geographical_region = world_burma }
# 							title_province = { geographical_region = world_india }
# 						}
# 					}
# 					AND = {
# 						root.capital_province = { geographical_region = world_europe_east }
# 						OR = {
# 							title_province = { geographical_region = world_europe_east }
# 							title_province = { geographical_region = world_europe_south_east }
# 						}
# 					}
# 					AND = {
# 						root.capital_province = { geographical_region = world_europe_north }
# 						OR = {
# 							title_province = { geographical_region = world_europe_north }
# 							title_province = { geographical_region = world_europe_west_britannia }
# 						}
# 					}
# 					AND = {
# 						root.capital_province = { geographical_region = world_europe_south_east }
# 						OR = {
# 							title_province = { geographical_region = world_europe_south_east }
# 							title_province = { geographical_region = world_europe_south_italy }
# 						}
# 					}
# 					AND = {
# 						root.capital_province = { geographical_region = world_europe_south_italy }
# 						OR = {
# 							title_province = { geographical_region = world_europe_south_italy }
# 							title_province = { geographical_region = world_europe_south_east }
# 						}
# 					}
# 					AND = {
# 						root.capital_province = { geographical_region = world_europe_west_britannia }
# 						OR = {
# 							title_province = { geographical_region = world_europe_west_britannia }
# 							title_province = { geographical_region = world_europe_west_francia }
# 						}
# 					}
# 					AND = {
# 						root.capital_province = { geographical_region = world_europe_west_francia }
# 						title_province = { geographical_region = world_europe_west_francia }
# 					}
# 					AND = {
# 						root.capital_province = { geographical_region = world_europe_west_germania }
# 						title_province = { geographical_region = world_europe_west_germania }
# 					}
# 					AND = {
# 						root.capital_province = { geographical_region = world_europe_west_iberia }
# 						OR = {
# 							title_province = { geographical_region = world_europe_west_iberia }
# 							title_province = { geographical_region = world_europe_west_francia }
# 						}
# 					}
# 					AND = {
# 						root.capital_province = { geographical_region = world_india }
# 						OR = {
# 							title_province = { geographical_region = world_india }
# 							title_province = { geographical_region = world_burma }
# 						}
# 					}
# 					AND = {
# 						root.capital_province = { geographical_region = world_middle_east }
# 						OR = {
# 							title_province = { geographical_region = world_middle_east }
# 							title_province = { geographical_region = world_asia_minor }
# 						}
# 					}
# 					AND = {
# 						root.capital_province = { geographical_region = world_steppe }
# 						OR = {
# 							title_province = { geographical_region = world_steppe }
# 							title_province = { geographical_region = world_tibet }
# 						}
# 					}
# 					AND = {
# 						root.capital_province = { geographical_region = world_tibet }
# 						OR = {
# 							title_province = { geographical_region = world_tibet }
# 							title_province = { geographical_region = world_steppe }
# 						}
# 					}
# 				}
# 			}
# 			add_to_list = relic_pilgrimage_site_counties_list
# 		}

# 		ordered_in_list = {
# 			list = relic_pilgrimage_site_counties_list
# 			max = 20
# 			order_by = { add = development_level }
# 			if = {
# 				limit = {
# 					NOT = { 
# 						exists = scope:relic_pilgrimage_site_county_1 
# 					}
# 				}
# 				save_scope_as = relic_pilgrimage_site_county_1
# 				save_scope_as = potential_relic_pilgrimage_site
# 			}
# 			else_if = {
# 				limit = {
# 					NOR = {
# 						this = scope:relic_pilgrimage_site_county_1
# 						exists = scope:relic_pilgrimage_site_county_2
# 					}
# 				}
# 				save_scope_as = relic_pilgrimage_site_county_2
# 				save_scope_as = potential_relic_pilgrimage_site
# 			}
# 			else_if = {
# 				limit = {
# 					NOR = {
# 						this = scope:relic_pilgrimage_site_county_1
# 						this = scope:relic_pilgrimage_site_county_2
# 						exists = scope:relic_pilgrimage_site_county_3
# 					}
# 				}
# 				save_scope_as = relic_pilgrimage_site_county_3
# 				save_scope_as = potential_relic_pilgrimage_site
# 			}
# 			else_if = {
# 				limit = {
# 					NOR = {
# 						this = scope:relic_pilgrimage_site_county_1
# 						this = scope:relic_pilgrimage_site_county_2
# 						this = scope:relic_pilgrimage_site_county_3
# 						exists = scope:relic_pilgrimage_site_county_4
# 					}
# 				}
# 				save_scope_as = relic_pilgrimage_site_county_4
# 				save_scope_as = potential_relic_pilgrimage_site
# 			}
# 			else_if = {
# 				limit = {
# 					NOR = {
# 						this = scope:relic_pilgrimage_site_county_1
# 						this = scope:relic_pilgrimage_site_county_2
# 						this = scope:relic_pilgrimage_site_county_3
# 						this = scope:relic_pilgrimage_site_county_4
# 						exists = scope:relic_pilgrimage_site_county_5
# 					}
# 				}
# 				save_scope_as = relic_pilgrimage_site_county_5
# 				save_scope_as = potential_relic_pilgrimage_site
# 			}
# 			else_if = {
# 				limit = {
# 					NOR = {
# 						this = scope:relic_pilgrimage_site_county_1
# 						this = scope:relic_pilgrimage_site_county_2
# 						this = scope:relic_pilgrimage_site_county_3
# 						this = scope:relic_pilgrimage_site_county_4
# 						this = scope:relic_pilgrimage_site_county_5
# 						exists = scope:relic_pilgrimage_site_county_6
# 					}
# 				}
# 				save_scope_as = relic_pilgrimage_site_county_6
# 			}
# 			else_if = {
# 				limit = {
# 					NOR = {
# 						this = scope:relic_pilgrimage_site_county_1
# 						this = scope:relic_pilgrimage_site_county_2
# 						this = scope:relic_pilgrimage_site_county_3
# 						this = scope:relic_pilgrimage_site_county_4
# 						this = scope:relic_pilgrimage_site_county_5
# 						this = scope:relic_pilgrimage_site_county_6
# 						exists = scope:relic_pilgrimage_site_county_7
# 					}
# 				}
# 				save_scope_as = relic_pilgrimage_site_county_7
# 			}
# 			else_if = {
# 				limit = {
# 					NOR = {
# 						this = scope:relic_pilgrimage_site_county_1
# 						this = scope:relic_pilgrimage_site_county_2
# 						this = scope:relic_pilgrimage_site_county_3
# 						this = scope:relic_pilgrimage_site_county_4
# 						this = scope:relic_pilgrimage_site_county_5
# 						this = scope:relic_pilgrimage_site_county_6
# 						this = scope:relic_pilgrimage_site_county_7
# 						exists = scope:relic_pilgrimage_site_county_8
# 					}
# 				}
# 				save_scope_as = relic_pilgrimage_site_county_8
# 			}
# 			else_if = {
# 				limit = {
# 					NOR = {
# 						this = scope:relic_pilgrimage_site_county_1
# 						this = scope:relic_pilgrimage_site_county_2
# 						this = scope:relic_pilgrimage_site_county_3
# 						this = scope:relic_pilgrimage_site_county_4
# 						this = scope:relic_pilgrimage_site_county_5
# 						this = scope:relic_pilgrimage_site_county_6
# 						this = scope:relic_pilgrimage_site_county_7
# 						this = scope:relic_pilgrimage_site_county_8
# 						exists = scope:relic_pilgrimage_site_county_9
# 					}
# 				}
# 				save_scope_as = relic_pilgrimage_site_county_9
# 			}
# 			else_if = {
# 				limit = {
# 					NOR = {
# 						this = scope:relic_pilgrimage_site_county_1
# 						this = scope:relic_pilgrimage_site_county_2
# 						this = scope:relic_pilgrimage_site_county_3
# 						this = scope:relic_pilgrimage_site_county_4
# 						this = scope:relic_pilgrimage_site_county_5
# 						this = scope:relic_pilgrimage_site_county_6
# 						this = scope:relic_pilgrimage_site_county_7
# 						this = scope:relic_pilgrimage_site_county_8
# 						this = scope:relic_pilgrimage_site_county_9
# 						exists = scope:relic_pilgrimage_site_county_10
# 					}
# 				}
# 				save_scope_as = relic_pilgrimage_site_county_10
# 			}
# 			else_if = {
# 				limit = {
# 					NOR = {
# 						this = scope:relic_pilgrimage_site_county_1
# 						this = scope:relic_pilgrimage_site_county_2
# 						this = scope:relic_pilgrimage_site_county_3
# 						this = scope:relic_pilgrimage_site_county_4
# 						this = scope:relic_pilgrimage_site_county_5
# 						this = scope:relic_pilgrimage_site_county_6
# 						this = scope:relic_pilgrimage_site_county_7
# 						this = scope:relic_pilgrimage_site_county_8
# 						this = scope:relic_pilgrimage_site_county_9
# 						this = scope:relic_pilgrimage_site_county_10
# 						exists = scope:relic_pilgrimage_site_county_11
# 					}
# 				}
# 				save_scope_as = relic_pilgrimage_site_county_11
# 			}
# 			else_if = {
# 				limit = {
# 					NOR = {
# 						this = scope:relic_pilgrimage_site_county_1
# 						this = scope:relic_pilgrimage_site_county_2
# 						this = scope:relic_pilgrimage_site_county_3
# 						this = scope:relic_pilgrimage_site_county_4
# 						this = scope:relic_pilgrimage_site_county_5
# 						this = scope:relic_pilgrimage_site_county_6
# 						this = scope:relic_pilgrimage_site_county_7
# 						this = scope:relic_pilgrimage_site_county_8
# 						this = scope:relic_pilgrimage_site_county_9
# 						this = scope:relic_pilgrimage_site_county_10
# 						this = scope:relic_pilgrimage_site_county_11
# 						exists = scope:relic_pilgrimage_site_county_12
# 					}
# 				}
# 				save_scope_as = relic_pilgrimage_site_county_12
# 			}
# 			else_if = {
# 				limit = {
# 					NOR = {
# 						this = scope:relic_pilgrimage_site_county_1
# 						this = scope:relic_pilgrimage_site_county_2
# 						this = scope:relic_pilgrimage_site_county_3
# 						this = scope:relic_pilgrimage_site_county_4
# 						this = scope:relic_pilgrimage_site_county_5
# 						this = scope:relic_pilgrimage_site_county_6
# 						this = scope:relic_pilgrimage_site_county_7
# 						this = scope:relic_pilgrimage_site_county_8
# 						this = scope:relic_pilgrimage_site_county_9
# 						this = scope:relic_pilgrimage_site_county_10
# 						this = scope:relic_pilgrimage_site_county_11
# 						this = scope:relic_pilgrimage_site_county_12
# 						exists = scope:relic_pilgrimage_site_county_13
# 					}
# 				}
# 				save_scope_as = relic_pilgrimage_site_county_13
# 			}
# 			else_if = {
# 				limit = {
# 					NOR = {
# 						this = scope:relic_pilgrimage_site_county_1
# 						this = scope:relic_pilgrimage_site_county_2
# 						this = scope:relic_pilgrimage_site_county_3
# 						this = scope:relic_pilgrimage_site_county_4
# 						this = scope:relic_pilgrimage_site_county_5
# 						this = scope:relic_pilgrimage_site_county_6
# 						this = scope:relic_pilgrimage_site_county_7
# 						this = scope:relic_pilgrimage_site_county_8
# 						this = scope:relic_pilgrimage_site_county_9
# 						this = scope:relic_pilgrimage_site_county_10
# 						this = scope:relic_pilgrimage_site_county_11
# 						this = scope:relic_pilgrimage_site_county_12
# 						this = scope:relic_pilgrimage_site_county_13
# 						exists = scope:relic_pilgrimage_site_county_14
# 					}
# 				}
# 				save_scope_as = relic_pilgrimage_site_county_14
# 			}
# 			else_if = {
# 				limit = {
# 					NOR = {
# 						this = scope:relic_pilgrimage_site_county_1
# 						this = scope:relic_pilgrimage_site_county_2
# 						this = scope:relic_pilgrimage_site_county_3
# 						this = scope:relic_pilgrimage_site_county_4
# 						this = scope:relic_pilgrimage_site_county_5
# 						this = scope:relic_pilgrimage_site_county_6
# 						this = scope:relic_pilgrimage_site_county_7
# 						this = scope:relic_pilgrimage_site_county_8
# 						this = scope:relic_pilgrimage_site_county_9
# 						this = scope:relic_pilgrimage_site_county_10
# 						this = scope:relic_pilgrimage_site_county_11
# 						this = scope:relic_pilgrimage_site_county_12
# 						this = scope:relic_pilgrimage_site_county_13
# 						this = scope:relic_pilgrimage_site_county_14
# 						exists = scope:relic_pilgrimage_site_county_15
# 					}
# 				}
# 				save_scope_as = relic_pilgrimage_site_county_15
# 			}
# 			else_if = {
# 				limit = {
# 					NOR = {
# 						this = scope:relic_pilgrimage_site_county_1
# 						this = scope:relic_pilgrimage_site_county_2
# 						this = scope:relic_pilgrimage_site_county_3
# 						this = scope:relic_pilgrimage_site_county_4
# 						this = scope:relic_pilgrimage_site_county_5
# 						this = scope:relic_pilgrimage_site_county_6
# 						this = scope:relic_pilgrimage_site_county_7
# 						this = scope:relic_pilgrimage_site_county_8
# 						this = scope:relic_pilgrimage_site_county_9
# 						this = scope:relic_pilgrimage_site_county_10
# 						this = scope:relic_pilgrimage_site_county_11
# 						this = scope:relic_pilgrimage_site_county_12
# 						this = scope:relic_pilgrimage_site_county_13
# 						this = scope:relic_pilgrimage_site_county_14
# 						this = scope:relic_pilgrimage_site_county_15
# 						exists = scope:relic_pilgrimage_site_county_16
# 					}
# 				}
# 				save_scope_as = relic_pilgrimage_site_county_16
# 			}
# 			else_if = {
# 				limit = {
# 					NOR = {
# 						this = scope:relic_pilgrimage_site_county_1
# 						this = scope:relic_pilgrimage_site_county_2
# 						this = scope:relic_pilgrimage_site_county_3
# 						this = scope:relic_pilgrimage_site_county_4
# 						this = scope:relic_pilgrimage_site_county_5
# 						this = scope:relic_pilgrimage_site_county_6
# 						this = scope:relic_pilgrimage_site_county_7
# 						this = scope:relic_pilgrimage_site_county_8
# 						this = scope:relic_pilgrimage_site_county_9
# 						this = scope:relic_pilgrimage_site_county_10
# 						this = scope:relic_pilgrimage_site_county_11
# 						this = scope:relic_pilgrimage_site_county_12
# 						this = scope:relic_pilgrimage_site_county_13
# 						this = scope:relic_pilgrimage_site_county_14
# 						this = scope:relic_pilgrimage_site_county_15
# 						this = scope:relic_pilgrimage_site_county_16
# 						exists = scope:relic_pilgrimage_site_county_17
# 					}
# 				}
# 				save_scope_as = relic_pilgrimage_site_county_17
# 			}
# 			else_if = {
# 				limit = {
# 					NOR = {
# 						this = scope:relic_pilgrimage_site_county_1
# 						this = scope:relic_pilgrimage_site_county_2
# 						this = scope:relic_pilgrimage_site_county_3
# 						this = scope:relic_pilgrimage_site_county_4
# 						this = scope:relic_pilgrimage_site_county_5
# 						this = scope:relic_pilgrimage_site_county_6
# 						this = scope:relic_pilgrimage_site_county_7
# 						this = scope:relic_pilgrimage_site_county_8
# 						this = scope:relic_pilgrimage_site_county_9
# 						this = scope:relic_pilgrimage_site_county_10
# 						this = scope:relic_pilgrimage_site_county_11
# 						this = scope:relic_pilgrimage_site_county_12
# 						this = scope:relic_pilgrimage_site_county_13
# 						this = scope:relic_pilgrimage_site_county_14
# 						this = scope:relic_pilgrimage_site_county_15
# 						this = scope:relic_pilgrimage_site_county_16
# 						this = scope:relic_pilgrimage_site_county_17
# 						exists = scope:relic_pilgrimage_site_county_18
# 					}
# 				}
# 				save_scope_as = relic_pilgrimage_site_county_18
# 			}
# 			else_if = {
# 				limit = {
# 					NOR = {
# 						this = scope:relic_pilgrimage_site_county_1
# 						this = scope:relic_pilgrimage_site_county_2
# 						this = scope:relic_pilgrimage_site_county_3
# 						this = scope:relic_pilgrimage_site_county_4
# 						this = scope:relic_pilgrimage_site_county_5
# 						this = scope:relic_pilgrimage_site_county_6
# 						this = scope:relic_pilgrimage_site_county_7
# 						this = scope:relic_pilgrimage_site_county_8
# 						this = scope:relic_pilgrimage_site_county_9
# 						this = scope:relic_pilgrimage_site_county_10
# 						this = scope:relic_pilgrimage_site_county_11
# 						this = scope:relic_pilgrimage_site_county_12
# 						this = scope:relic_pilgrimage_site_county_13
# 						this = scope:relic_pilgrimage_site_county_14
# 						this = scope:relic_pilgrimage_site_county_15
# 						this = scope:relic_pilgrimage_site_county_16
# 						this = scope:relic_pilgrimage_site_county_17
# 						this = scope:relic_pilgrimage_site_county_18
# 						exists = scope:relic_pilgrimage_site_county_19
# 					}
# 				}
# 				save_scope_as = relic_pilgrimage_site_county_19
# 			}
# 			else_if = {
# 				limit = {
# 					NOR = {
# 						this = scope:relic_pilgrimage_site_county_1
# 						this = scope:relic_pilgrimage_site_county_2
# 						this = scope:relic_pilgrimage_site_county_3
# 						this = scope:relic_pilgrimage_site_county_4
# 						this = scope:relic_pilgrimage_site_county_5
# 						this = scope:relic_pilgrimage_site_county_6
# 						this = scope:relic_pilgrimage_site_county_7
# 						this = scope:relic_pilgrimage_site_county_8
# 						this = scope:relic_pilgrimage_site_county_9
# 						this = scope:relic_pilgrimage_site_county_10
# 						this = scope:relic_pilgrimage_site_county_11
# 						this = scope:relic_pilgrimage_site_county_12
# 						this = scope:relic_pilgrimage_site_county_13
# 						this = scope:relic_pilgrimage_site_county_14
# 						this = scope:relic_pilgrimage_site_county_15
# 						this = scope:relic_pilgrimage_site_county_16
# 						this = scope:relic_pilgrimage_site_county_17
# 						this = scope:relic_pilgrimage_site_county_18
# 						this = scope:relic_pilgrimage_site_county_19
# 						exists = scope:relic_pilgrimage_site_county_20
# 					}
# 				}
# 				save_scope_as = relic_pilgrimage_site_county_20
# 			}
# 		}
# 		trigger_event = holy_stuff_go_on_relic_pilgrimage_event.0002
# 	}
# }

# # First selection event
# holy_stuff_go_on_relic_pilgrimage_event.0002 = {
# 	type = character_event
# 	title = holy_stuff_go_on_relic_pilgrimage_event.0002.t
# 	desc = holy_stuff_go_on_relic_pilgrimage_event.0002.desc
# 	theme = pilgrimage_activity
# 	override_background = {
# 		reference = temple
# 	}
# 	left_portrait = root

# 	immediate = {
# 		# Stop characters from planning multiple activities at once.
# 		add_character_flag = {
# 			flag = planning_an_activity
# 			days = 30
# 		}

# 		#set_up_holy_sites_for_selection_effect = yes
# 	}
	
# 	option = {
# 		name = holy_stuff_go_on_relic_pilgrimage_event.0002.a
# 		trigger = {
# 			exists = scope:relic_pilgrimage_site_county_1
# 		}
# 		scope:relic_pilgrimage_site_county_1 = {
#             	save_scope_as = relic_pilgrimage_target
# 		}
# 		relic_pilgrimage_site_selection_event_option_effect = {
# 			HOLY_SITE = scope:relic_pilgrimage_site_county_1
# 		}
# 	}

# 	option = {
# 		name = holy_stuff_go_on_relic_pilgrimage_event.0002.b
# 		trigger = {
# 			exists = scope:relic_pilgrimage_site_county_2
# 		}
# 		scope:relic_pilgrimage_site_county_2 = {
#             	save_scope_as = relic_pilgrimage_target
# 		}
# 		relic_pilgrimage_site_selection_event_option_effect = {
# 			HOLY_SITE = scope:relic_pilgrimage_site_county_2
# 		}
# 	}

# 	option = {
# 		name = holy_stuff_go_on_relic_pilgrimage_event.0002.c
# 		trigger = {
# 			exists = scope:relic_pilgrimage_site_county_3
# 		}
# 		scope:relic_pilgrimage_site_county_3 = {
#             	save_scope_as = relic_pilgrimage_target
# 		}
# 		relic_pilgrimage_site_selection_event_option_effect = {
# 			HOLY_SITE = scope:relic_pilgrimage_site_county_3
# 		}
# 	}

# 	option = {
# 		name = holy_stuff_go_on_relic_pilgrimage_event.0002.d
# 		trigger = {
# 			exists = scope:relic_pilgrimage_site_county_4
# 		}
# 		scope:relic_pilgrimage_site_county_4 = {
#             	save_scope_as = relic_pilgrimage_target
# 		}
# 		relic_pilgrimage_site_selection_event_option_effect = {
# 			HOLY_SITE = scope:relic_pilgrimage_site_county_4
# 		}
# 	}

# 	option = {
# 		name = holy_stuff_go_on_relic_pilgrimage_event.0002.e
# 		trigger = {
# 			exists = scope:relic_pilgrimage_site_county_5
# 		}
# 		scope:relic_pilgrimage_site_county_5 = {
#             	save_scope_as = relic_pilgrimage_target
# 		}
# 		relic_pilgrimage_site_selection_event_option_effect = {
# 			HOLY_SITE = scope:relic_pilgrimage_site_county_5
# 		}
# 	}


# 	option = { 
# 		name = holy_stuff_go_on_relic_pilgrimage_event.0002.f
# 		trigger = {
# 			exists = scope:relic_pilgrimage_site_county_6
# 		}
# 		trigger_event = {
# 			id = holy_stuff_go_on_relic_pilgrimage_event.0003
# 		}
# 	}

# 	option = { 
# 		name = holy_stuff_go_on_relic_pilgrimage_event.0002.g

# 		remove_decision_cooldown = go_on_relic_pilgrimage_decision

# 		remove_character_flag = planning_an_activity
# 	}
# }

# # Second selection event
# holy_stuff_go_on_relic_pilgrimage_event.0003 = {
# 	type = character_event
# 	title = holy_stuff_go_on_relic_pilgrimage_event.0003.t
# 	desc = holy_stuff_go_on_relic_pilgrimage_event.0003.desc
# 	theme = pilgrimage_activity
# 	override_background = {
# 		reference = temple
# 	}
# 	left_portrait = root

# 	immediate = {
# 		# Stop characters from planning multiple activities at once.
# 		add_character_flag = {
# 			flag = planning_an_activity
# 			days = 30
# 		}

# 		#set_up_holy_sites_for_selection_effect = yes
# 	}
	
# 	option = {
# 		name = holy_stuff_go_on_relic_pilgrimage_event.0003.a
# 		trigger = {
# 			exists = scope:relic_pilgrimage_site_county_6
# 		}
# 		scope:relic_pilgrimage_site_county_6 = {
#             	save_scope_as = relic_pilgrimage_target
# 		}
# 		relic_pilgrimage_site_selection_event_option_effect = {
# 			HOLY_SITE = scope:relic_pilgrimage_site_county_6
# 		}
# 	}

# 	option = {
# 		name = holy_stuff_go_on_relic_pilgrimage_event.0003.b
# 		trigger = {
# 			exists = scope:relic_pilgrimage_site_county_7
# 		}
# 		scope:relic_pilgrimage_site_county_7 = {
#             	save_scope_as = relic_pilgrimage_target
# 		}
# 		relic_pilgrimage_site_selection_event_option_effect = {
# 			HOLY_SITE = scope:relic_pilgrimage_site_county_7
# 		}
# 	}

# 	option = {
# 		name = holy_stuff_go_on_relic_pilgrimage_event.0003.c
# 		trigger = {
# 			exists = scope:relic_pilgrimage_site_county_8
# 		}
# 		scope:relic_pilgrimage_site_county_8 = {
#             	save_scope_as = relic_pilgrimage_target
# 		}
# 		relic_pilgrimage_site_selection_event_option_effect = {
# 			HOLY_SITE = scope:relic_pilgrimage_site_county_8
# 		}
# 	}

# 	option = {
# 		name = holy_stuff_go_on_relic_pilgrimage_event.0003.d
# 		trigger = {
# 			exists = scope:relic_pilgrimage_site_county_9
# 		}
# 		scope:relic_pilgrimage_site_county_9 = {
#             	save_scope_as = relic_pilgrimage_target
# 		}
# 		relic_pilgrimage_site_selection_event_option_effect = {
# 			HOLY_SITE = scope:relic_pilgrimage_site_county_9
# 		}
# 	}

# 	option = {
# 		name = holy_stuff_go_on_relic_pilgrimage_event.0003.e
# 		trigger = {
# 			exists = scope:relic_pilgrimage_site_county_10
# 		}
# 		scope:relic_pilgrimage_site_county_10 = {
#             	save_scope_as = relic_pilgrimage_target
# 		}
# 		relic_pilgrimage_site_selection_event_option_effect = {
# 			HOLY_SITE = scope:relic_pilgrimage_site_county_10
# 		}
# 	}


# 	option = { 
# 		name = holy_stuff_go_on_relic_pilgrimage_event.0003.f
# 		trigger = {
# 			exists = scope:relic_pilgrimage_site_county_11
# 		}
# 		trigger_event = {
# 			id = holy_stuff_go_on_relic_pilgrimage_event.0004
# 		}
# 	}

# 	option = { 
# 		name = holy_stuff_go_on_relic_pilgrimage_event.0003.g

# 		remove_decision_cooldown = go_on_relic_pilgrimage_decision

# 		remove_character_flag = planning_an_activity
# 	}
# }

# # Third selection event
# holy_stuff_go_on_relic_pilgrimage_event.0004 = {
# 	type = character_event
# 	title = holy_stuff_go_on_relic_pilgrimage_event.0004.t
# 	desc = holy_stuff_go_on_relic_pilgrimage_event.0004.desc
# 	theme = pilgrimage_activity
# 	override_background = {
# 		reference = temple
# 	}
# 	left_portrait = root

# 	immediate = {
# 		# Stop characters from planning multiple activities at once.
# 		add_character_flag = {
# 			flag = planning_an_activity
# 			days = 30
# 		}

# 		#set_up_holy_sites_for_selection_effect = yes
# 	}
	
# 	option = {
# 		name = holy_stuff_go_on_relic_pilgrimage_event.0004.a
# 		trigger = {
# 			exists = scope:relic_pilgrimage_site_county_11
# 		}
# 		scope:relic_pilgrimage_site_county_11 = {
#             	save_scope_as = relic_pilgrimage_target
# 		}
# 		relic_pilgrimage_site_selection_event_option_effect = {
# 			HOLY_SITE = scope:relic_pilgrimage_site_county_11
# 		}
# 	}

# 	option = {
# 		name = holy_stuff_go_on_relic_pilgrimage_event.0004.b
# 		trigger = {
# 			exists = scope:relic_pilgrimage_site_county_12
# 		}
# 		scope:relic_pilgrimage_site_county_12 = {
#             	save_scope_as = relic_pilgrimage_target
# 		}
# 		relic_pilgrimage_site_selection_event_option_effect = {
# 			HOLY_SITE = scope:relic_pilgrimage_site_county_12
# 		}
# 	}

# 	option = {
# 		name = holy_stuff_go_on_relic_pilgrimage_event.0004.c
# 		trigger = {
# 			exists = scope:relic_pilgrimage_site_county_13
# 		}
# 		scope:relic_pilgrimage_site_county_13 = {
#             	save_scope_as = relic_pilgrimage_target
# 		}
# 		relic_pilgrimage_site_selection_event_option_effect = {
# 			HOLY_SITE = scope:relic_pilgrimage_site_county_13
# 		}
# 	}

# 	option = {
# 		name = holy_stuff_go_on_relic_pilgrimage_event.0004.d
# 		trigger = {
# 			exists = scope:relic_pilgrimage_site_county_14
# 		}
# 		scope:relic_pilgrimage_site_county_14 = {
#             	save_scope_as = relic_pilgrimage_target
# 		}
# 		relic_pilgrimage_site_selection_event_option_effect = {
# 			HOLY_SITE = scope:relic_pilgrimage_site_county_14
# 		}
# 	}

# 	option = {
# 		name = holy_stuff_go_on_relic_pilgrimage_event.0004.e
# 		trigger = {
# 			exists = scope:relic_pilgrimage_site_county_15
# 		}
# 		scope:relic_pilgrimage_site_county_15 = {
#             	save_scope_as = relic_pilgrimage_target
# 		}
# 		relic_pilgrimage_site_selection_event_option_effect = {
# 			HOLY_SITE = scope:relic_pilgrimage_site_county_15
# 		}
# 	}

# 	option = { 
# 		name = holy_stuff_go_on_relic_pilgrimage_event.0004.f
# 		trigger = {
# 			exists = scope:relic_pilgrimage_site_county_16
# 		}
# 		trigger_event = {
# 			id = holy_stuff_go_on_relic_pilgrimage_event.0005
# 		}
# 	}

# 	option = { 
# 		name = holy_stuff_go_on_relic_pilgrimage_event.0004.g

# 		remove_decision_cooldown = go_on_relic_pilgrimage_decision

# 		remove_character_flag = planning_an_activity
# 	}
# }

# # Fourth selection event
# holy_stuff_go_on_relic_pilgrimage_event.0005 = {
# 	type = character_event
# 	title = holy_stuff_go_on_relic_pilgrimage_event.0005.t
# 	desc = holy_stuff_go_on_relic_pilgrimage_event.0005.desc
# 	theme = pilgrimage_activity
# 	override_background = {
# 		reference = temple
# 	}
# 	left_portrait = root

# 	immediate = {
# 		# Stop characters from planning multiple activities at once.
# 		add_character_flag = {
# 			flag = planning_an_activity
# 			days = 30
# 		}

# 		#set_up_holy_sites_for_selection_effect = yes
# 	}
	
# 	option = {
# 		name = holy_stuff_go_on_relic_pilgrimage_event.0005.a
# 		trigger = {
# 			exists = scope:relic_pilgrimage_site_county_16
# 		}
# 		scope:relic_pilgrimage_site_county_16 = {
#             	save_scope_as = relic_pilgrimage_target
# 		}
# 		relic_pilgrimage_site_selection_event_option_effect = {
# 			HOLY_SITE = scope:relic_pilgrimage_site_county_16
# 		}
# 	}

# 	option = {
# 		name = holy_stuff_go_on_relic_pilgrimage_event.0005.b
# 		trigger = {
# 			exists = scope:relic_pilgrimage_site_county_17
# 		}
# 		scope:relic_pilgrimage_site_county_17 = {
#             	save_scope_as = relic_pilgrimage_target
# 		}
# 		relic_pilgrimage_site_selection_event_option_effect = {
# 			HOLY_SITE = scope:relic_pilgrimage_site_county_17
# 		}
# 	}

# 	option = {
# 		name = holy_stuff_go_on_relic_pilgrimage_event.0005.c
# 		trigger = {
# 			exists = scope:relic_pilgrimage_site_county_18
# 		}
# 		scope:relic_pilgrimage_site_county_18 = {
#             	save_scope_as = relic_pilgrimage_target
# 		}
# 		relic_pilgrimage_site_selection_event_option_effect = {
# 			HOLY_SITE = scope:relic_pilgrimage_site_county_18
# 		}
# 	}

# 	option = {
# 		name = holy_stuff_go_on_relic_pilgrimage_event.0005.d
# 		trigger = {
# 			exists = scope:relic_pilgrimage_site_county_19
# 		}
# 		scope:relic_pilgrimage_site_county_19 = {
#             	save_scope_as = relic_pilgrimage_target
# 		}
# 		relic_pilgrimage_site_selection_event_option_effect = {
# 			HOLY_SITE = scope:relic_pilgrimage_site_county_19
# 		}
# 	}

# 	option = {
# 		name = holy_stuff_go_on_relic_pilgrimage_event.0005.e
# 		trigger = {
# 			exists = scope:relic_pilgrimage_site_county_20
# 		}
# 		scope:relic_pilgrimage_site_county_20 = {
#             	save_scope_as = relic_pilgrimage_target
# 		}
# 		relic_pilgrimage_site_selection_event_option_effect = {
# 			HOLY_SITE = scope:relic_pilgrimage_site_county_20
# 		}
# 	}

# 	option = { 
# 		name = holy_stuff_go_on_relic_pilgrimage_event.0004.f
# 		trigger_event = {
# 			id = holy_stuff_go_on_relic_pilgrimage_event.0002
# 		}
# 	}

# 	option = { 
# 		name = holy_stuff_go_on_relic_pilgrimage_event.0005.g

# 		remove_decision_cooldown = go_on_relic_pilgrimage_decision

# 		remove_character_flag = planning_an_activity
# 	}
# }

# # AI Destination selection event
# holy_stuff_go_on_relic_pilgrimage_event.0006 = {
# 	hidden = yes

# 	immediate = {
# 		# Stop characters from planning multiple activities at once.
# 		add_character_flag = {
# 			flag = planning_an_activity
# 			days = 30
# 		}

# 		if = {
# 			# Instead of spawning an actual pilgrimage activity for barons, we just give them the pilgrim trait to save on processing power.
# 			limit = {
# 				primary_title.tier = tier_barony
# 			}
# 			remove_short_term_gold = pilgrimage_medium_extra_cost
# 			add_trait = pilgrim
# 		}
# 		else = {	
# 			set_up_holy_sites_for_selection_effect = yes
# 			random_list = {
# 				100 = {
# 					relic_pilgrimage_site_selection_event_option_effect = {
# 						HOLY_SITE = scope:relic_pilgrimage_site_county_5
# 					}
# 				}
# 				100 = {
# 					trigger = { exists = scope:relic_pilgrimage_site_county_2 }
# 					relic_pilgrimage_site_selection_event_option_effect = {
# 						HOLY_SITE = scope:relic_pilgrimage_site_county_2
# 					}
# 				}
# 				100 = {
# 					trigger = { exists = scope:relic_pilgrimage_site_county_3 }
# 					relic_pilgrimage_site_selection_event_option_effect = {
# 						HOLY_SITE = scope:relic_pilgrimage_site_county_3
# 					}
# 				}
# 				100 = {
# 					trigger = { exists = scope:relic_pilgrimage_site_county_4 }
# 					relic_pilgrimage_site_selection_event_option_effect = {
# 						HOLY_SITE = scope:relic_pilgrimage_site_county_4
# 					}
# 				}
# 				100 = {
# 					trigger = { exists = scope:relic_pilgrimage_site_county_5 }
# 					relic_pilgrimage_site_selection_event_option_effect = {
# 						HOLY_SITE = scope:relic_pilgrimage_site_county_5
# 					}
# 				}
# 				100 = {
# 					trigger = { exists = scope:relic_pilgrimage_site_county_6 }
# 					relic_pilgrimage_site_selection_event_option_effect = {
# 						HOLY_SITE = scope:relic_pilgrimage_site_county_6
# 					}
# 				}
# 				100 = {
# 					trigger = { exists = scope:relic_pilgrimage_site_county_7 }
# 					relic_pilgrimage_site_selection_event_option_effect = {
# 						HOLY_SITE = scope:relic_pilgrimage_site_county_7
# 					}
# 				}
# 				100 = {
# 					trigger = { exists = scope:relic_pilgrimage_site_county_8 }
# 					relic_pilgrimage_site_selection_event_option_effect = {
# 						HOLY_SITE = scope:relic_pilgrimage_site_county_8
# 					}
# 				}
# 				100 = {
# 					trigger = { exists = scope:relic_pilgrimage_site_county_9 }
# 					relic_pilgrimage_site_selection_event_option_effect = {
# 						HOLY_SITE = scope:relic_pilgrimage_site_county_9
# 					}
# 				}
# 				100 = {
# 					trigger = { exists = scope:relic_pilgrimage_site_county_10 }
# 					relic_pilgrimage_site_selection_event_option_effect = {
# 						HOLY_SITE = scope:relic_pilgrimage_site_county_10
# 					}
# 				}
# 				100 = {
# 					trigger = { exists = scope:relic_pilgrimage_site_county_11 }
# 					relic_pilgrimage_site_selection_event_option_effect = {
# 						HOLY_SITE = scope:relic_pilgrimage_site_county_11
# 					}
# 				}
# 				100 = {
# 					trigger = { exists = scope:relic_pilgrimage_site_county_12 }
# 					relic_pilgrimage_site_selection_event_option_effect = {
# 						HOLY_SITE = scope:relic_pilgrimage_site_county_12
# 					}
# 				}
# 				100 = {
# 					trigger = { exists = scope:relic_pilgrimage_site_county_13 }
# 					relic_pilgrimage_site_selection_event_option_effect = {
# 						HOLY_SITE = scope:relic_pilgrimage_site_county_13
# 					}
# 				}
# 				100 = {
# 					trigger = { exists = scope:relic_pilgrimage_site_county_14 }
# 					relic_pilgrimage_site_selection_event_option_effect = {
# 						HOLY_SITE = scope:relic_pilgrimage_site_county_14
# 					}
# 				}
# 				100 = {
# 					trigger = { exists = scope:relic_pilgrimage_site_county_15 }
# 					relic_pilgrimage_site_selection_event_option_effect = {
# 						HOLY_SITE = scope:relic_pilgrimage_site_county_15
# 					}
# 				}
# 			}
# 		}
# 	}
# }

# # Start Event
# holy_stuff_go_on_relic_pilgrimage_event.0007 = {
# 	type = character_event
# 	title = holy_stuff_go_on_relic_pilgrimage_event.0007.t
# 	desc = {
# 		desc = holy_stuff_go_on_relic_pilgrimage_event.0007.desc.opening
# 		first_valid = {
# 			triggered_desc = {
# 				trigger = {
# 					scope:activity.var:pilgrimage_distance >= very_long_pilgrimage_var
# 				}
# 				desc = holy_stuff_go_on_relic_pilgrimage_event.0007.desc.very_long
# 			}
# 			triggered_desc = {
# 				trigger = {
# 					scope:activity.var:pilgrimage_distance >= long_pilgrimage_var
# 				}
# 				desc = holy_stuff_go_on_relic_pilgrimage_event.0007.desc.long
# 			}
# 			triggered_desc = {
# 				trigger = {
# 					scope:activity.var:pilgrimage_distance >= medium_pilgrimage_var
# 				}
# 				desc = holy_stuff_go_on_relic_pilgrimage_event.0007.desc.medium
# 			}
# 			desc = holy_stuff_go_on_relic_pilgrimage_event.0007.desc.short
# 		}
# 	}
# 	theme = pilgrimage_activity
# 	left_portrait = root

# 	weight_multiplier = {
# 		base = 1
# 	}

# 	option = {
# 		name = holy_stuff_go_on_relic_pilgrimage_event.0007.a
# 	}

# 	after = {
# 		set_up_next_relic_pilgrimage_event_effect = { DAYS = 30 }
# 	}

# 	immediate = {
# 		play_music_cue = "mx_cue_epic_sacral_moment"
# 	}

# }

# # Thunderstorm
# holy_stuff_go_on_relic_pilgrimage_event.0008 = {
# 	type = character_event
# 	title = holy_stuff_go_on_relic_pilgrimage_event.0008.t
# 	desc = holy_stuff_go_on_relic_pilgrimage_event.0008.desc
# 	theme = pilgrimage_activity
# 	override_background = {
# 		reference = terrain_activity
# 	}
# 	left_portrait = {
# 		character = root
# 		animation = worry
# 	}

# 	trigger = {
# 		save_holy_site_for_loc_effect = yes
# 		exists = scope:activity
# 		NOT = {
# 			exists = scope:activity.var:had_relic_pilgrimage_0008
# 		}
# 	}

# 	immediate = {
# 		scope:activity = {
# 			set_variable = {
# 				name = had_relic_pilgrimage_0008
# 				value = yes
# 			}
# 		}
# 		save_holy_site_for_loc_effect = yes
# 		play_music_cue = "mx_cue_general_crusade_event_2"
# 	}
	
# 	option = { # Wait until the storm subsides
# 		name = holy_stuff_go_on_relic_pilgrimage_event.0008.a

# 		add_character_modifier = {
# 			modifier = relic_pilgrimage_delayed_travel_modifier
# 			years = 1
# 		}

# 		stress_impact = {
# 			brave = medium_stress_impact_loss
# 			impatient = medium_stress_impact_gain
# 		}

# 		custom_tooltip = holy_stuff_go_on_relic_pilgrimage_event.0008.a.tt

# 		set_up_next_relic_pilgrimage_event_effect = { DAYS = 50 }
# 	}

# 	option = { # We travel further
# 		name = holy_stuff_go_on_relic_pilgrimage_event.0008.b

# 		random = {
# 			chance = {
# 				value = 35
# 				add = {
# 					value = health
# 					multiply = -2.5
# 				}
# 			}

# 			show_as_tooltip = { add_trait = ill }
# 			hidden_effect = {
# 				trigger_event = {
# 					id = health.1001
# 					days = { 3 10 }
# 				}
# 			}				
# 		}
# 		random = {
# 			chance = {
# 				value = 25
# 				add = {
# 					value = health
# 					multiply = -2.5
# 				}
# 			}

# 			show_as_tooltip = { add_trait = wounded_1 }
# 		}
# 		custom_tooltip = holy_stuff_go_on_relic_pilgrimage_event.0008.b.tt

# 		stress_impact = {
# 			craven = medium_stress_impact_gain
# 			cynical = medium_stress_impact_gain
# 			impatient = medium_stress_impact_loss
# 			zealous = medium_stress_impact_loss
# 		}

# 		set_up_next_relic_pilgrimage_event_effect = { DAYS = 30 }
# 	}
# }

# # Dream of a relic collection
# holy_stuff_go_on_relic_pilgrimage_event.0009 = {
# 	type = character_event
# 	title = holy_stuff_go_on_relic_pilgrimage_event.0009.t
# 	desc = holy_stuff_go_on_relic_pilgrimage_event.0009.desc
# 	theme = pilgrimage_activity
# 	override_background = {
# 		reference = bp1_bonfire
# 	}
# 	left_portrait = {
# 		character = root
# 		animation = personality_zealous
# 	}

# 	trigger = {
# 		exists = scope:activity
# 		NOT = {
# 			exists = scope:activity.var:had_relic_pilgrimage_0009
# 		}
# 		relic_collection_dream_trigger = yes
# 	}

# 	immediate = {
# 		scope:activity = {
# 			set_variable = {
# 				name = had_relic_pilgrimage_0009
# 				value = yes
# 			}
# 		}
# 		play_music_cue = "mx_cue_epic_sacral_moment"
# 	}
	
# 	option = {
# 		name = holy_stuff_go_on_relic_pilgrimage_event.0009.a
#             add_trait = relic_collector
# 	}
	
# 	option = {
# 		name = holy_stuff_go_on_relic_pilgrimage_event.0009.b
# 		trigger = { has_trait = zealous }
#             add_trait = relic_collector
#             add_piety = miniscule_piety_gain
# 	}

# 	option = {
# 		name = holy_stuff_go_on_relic_pilgrimage_event.0009.c

# 		stress_impact = {
# 			cynical = minor_stress_impact_loss
# 			zealous = minor_stress_impact_gain
# 		}
# 	}

# 	after = {
# 		set_up_next_relic_pilgrimage_event_effect = { DAYS = 30 }
# 	}
# }

# # Wild dogs!
# holy_stuff_go_on_relic_pilgrimage_event.0010 = {
# 	type = character_event
# 	title = holy_stuff_go_on_relic_pilgrimage_event.0010.t
# 	desc = holy_stuff_go_on_relic_pilgrimage_event.0010.desc
# 	theme = pilgrimage_activity
# 	override_background = {
# 		reference = terrain_activity
# 	}
# 	left_portrait = {
# 		character = root
# 		triggered_animation = {
# 			trigger = { ai_boldness > 0 }
# 			animation = anger
# 		}
# 		triggered_animation = {
# 			trigger = { always = yes }
# 			animation = fear
# 		}
# 	}

# 	trigger = {
# 		exists = scope:activity
# 		NOT = {
# 			exists = scope:activity.var:had_relic_pilgrimage_0010
# 		}
# 	}

# 	immediate = {
# 		scope:activity = {
# 			set_variable = {
# 				name = had_relic_pilgrimage_0010
# 				value = yes
# 			}
# 		}
# 		play_music_cue = "mx_cue_combat_stinger"
# 		hidden_effect = {
# 			# if = {
# 			# 	limit = {
# 			# 		NOT = { has_trait = blademaster_3 }
# 			# 	}
# 				random = {
# 					chance = 25
# 					save_scope_value_as = {
# 						name = increase_blademaster
# 						value = yes
# 					}
# 				}
# 			# }
# 		}
# 	}
	
# 	option = { # Fight back
# 		name = holy_stuff_go_on_relic_pilgrimage_event.0010.a
# 		duel = {
# 			skill = prowess
# 			value = average_skill_rating
# 			15 = {
# 				desc = holy_stuff_go_on_relic_pilgrimage_event.0010.a.success
# 				compare_modifier = {
# 					value = scope:duel_value
# 					multiplier = 0.5
# 					min = -14
# 				}
# 				send_interface_toast = {
# 					title = holy_stuff_go_on_relic_pilgrimage_event.0010.a.success_title
# 					left_icon = root
# 					add_prestige = minor_prestige_gain
# 					if = {
# 						limit = { exists = scope:increase_blademaster }
# 						change_trait_rank = {
# 							trait = lifestyle_blademaster
# 							rank = 1
# 						}
# 					}
# 				}
# 			}
# 			10 = {
# 				desc = holy_stuff_go_on_relic_pilgrimage_event.0010.a.failure
# 				compare_modifier = {
# 					value = scope:duel_value
# 					multiplier = -0.5
# 					min = -9
# 				}
# 				send_interface_toast = {
# 					title = holy_stuff_go_on_relic_pilgrimage_event.0010.a.failure_title
# 					left_icon = root
# 					increase_wounds_effect = {
# 						REASON = pilgrimage_dog_attack
# 					}
# 				}
# 			}
# 		}
# 		stress_impact = {
# 			craven = major_stress_impact_gain
# 		}
# 		ai_chance = {
# 			base = 100
# 			ai_value_modifier = {
# 				ai_boldness = 0.5
# 				ai_honor = 1
# 			}
# 			compare_modifier = { # Consider your Prowess
# 				trigger = {
# 					prowess > average_skill_rating
# 				}
# 				value = prowess
# 				multiplier = 10
# 			}
# 		}
# 	}

# 	option = { # Try to fly!
# 		name = holy_stuff_go_on_relic_pilgrimage_event.0010.b
# 		add_prestige = minor_prestige_loss
# 		duel = {
# 			skill = intrigue
# 			value = average_skill_rating
# 			15 = {
# 				desc = holy_stuff_go_on_relic_pilgrimage_event.0010.b.success
# 				compare_modifier = {
# 					value = scope:duel_value
# 					multiplier = 0.5
# 					min = -14
# 				}
# 				send_interface_toast = {
# 					title = holy_stuff_go_on_relic_pilgrimage_event.0010.b.success_title
# 					left_icon = root
# 					custom_tooltip = holy_stuff_go_on_relic_pilgrimage_event.0010.b.success_tt
# 				}
# 			}
# 			10 = {
# 				desc = holy_stuff_go_on_relic_pilgrimage_event.0010.b.failure
# 				compare_modifier = {
# 					value = scope:duel_value
# 					multiplier = -0.5
# 					min = -9
# 				}
# 				send_interface_toast = {
# 					title = holy_stuff_go_on_relic_pilgrimage_event.0010.b.failure_title
# 					left_icon = root
# 					increase_wounds_effect = {
# 						REASON = pilgrimage_bandit_attack
# 					}
# 				}
# 			}
# 		}
# 		stress_impact = {
# 			brave = major_stress_impact_gain
# 		}
# 		if = {
# 			limit = {
# 				faith = {
# 					trait_is_sin = craven
# 				}
# 			}
# 			add_piety = medium_piety_loss
# 		}
# 		ai_chance = {
# 			base = 100
# 			ai_value_modifier = {
# 				ai_rationality = 0.5
# 				ai_boldness = -0.5
# 				ai_honor = -1
# 			}
# 			compare_modifier = { # Consider your Intrigue
# 				trigger = {
# 					intrigue > average_skill_rating
# 				}
# 				value = intrigue
# 				multiplier = 10
# 			}
# 		}
# 	}
	
# 	option = { # Let them have whatever they want
# 		name = holy_stuff_go_on_relic_pilgrimage_event.0010.c
# 		add_prestige = minor_prestige_loss
# 		stress_impact = {
# 			gluttonous = medium_stress_impact_gain
# 			brave = medium_stress_impact_gain
# 		}
# 		ai_chance = {
# 			base = 100
# 			ai_value_modifier = {
# 				ai_greed = -1
# 				ai_boldness = -0.5
# 			}
# 		}
# 	}

# 	after = {
# 		if = {
# 			limit = { exists = scope:increase_blademaster }
# 			clear_saved_scope = increase_blademaster
# 		}
# 		set_up_next_relic_pilgrimage_event_effect = { DAYS = 30 }
# 	}
# }

# # Blessing of a saint
# holy_stuff_go_on_relic_pilgrimage_event.0011 = {
# 	type = character_event
# 	title = holy_stuff_go_on_relic_pilgrimage_event.0011.t
# 	desc = {
# 		triggered_desc = {
# 			trigger = {
# 				OR = {
# 					faith = faith:adamites
# 					faith = faith:adoptionist
# 					faith = faith:bogomilist
# 					faith = faith:bosnian_church
# 					faith = faith:cathar
# 					faith = faith:catholic
# 					faith = faith:conversos
# 					faith = faith:insular_celtic
# 					faith = faith:mozarabic_church
# 					faith = faith:nestorian
# 					faith = faith:orthodox
# 				}
# 			}
# 			desc = holy_stuff_go_on_relic_pilgrimage_event.0011.desc
# 		}
# 		triggered_desc = {
# 			trigger = {
# 				OR = {
# 					faith = faith:armenian_apostolic
# 					faith = faith:coptic
# 					faith = faith:messalian
# 				}
# 			}
# 			desc = holy_stuff_go_on_relic_pilgrimage_event.0011.desc.east
# 		}
# 	}
# 	theme = pilgrimage_activity
# 	override_background = {
# 		reference = bp1_bonfire
# 	}
# 	left_portrait = {
# 		character = root
# 		animation = personality_zealous
# 	}

# 	trigger = {
# 		exists = scope:activity
# 		NOT = {
# 			exists = scope:activity.var:had_relic_pilgrimage_0011
# 		}
# 	}

# 	immediate = {
# 		scope:activity = {
# 			set_variable = {
# 				name = had_relic_pilgrimage_0011
# 				value = yes
# 			}
# 		}
# 		play_music_cue = "mx_cue_epic_sacral_moment"
# 	}
	
# 	option = {
# 		name = holy_stuff_go_on_relic_pilgrimage_event.0011.a

# 		holy_stuff_st_fertility_scripted_effect = yes
# 	}
	
# 	option = {
# 		name = holy_stuff_go_on_relic_pilgrimage_event.0011.b

# 		holy_stuff_st_wealth_scripted_effect = yes
# 	}

# 	option = {
# 		name = holy_stuff_go_on_relic_pilgrimage_event.0011.c

# 		holy_stuff_st_household_scripted_effect = yes
# 	}

# 	option = {
# 		name = holy_stuff_go_on_relic_pilgrimage_event.0011.d

# 		holy_stuff_st_knowledge_scripted_effect = yes
# 	}

# 	option = {
# 		name = holy_stuff_go_on_relic_pilgrimage_event.0011.e

# 		holy_stuff_st_war_scripted_effect = yes
# 	}
	
# 	option = {
# 		name = holy_stuff_go_on_relic_pilgrimage_event.0011.f

# 		trigger = {
# 			NOR = {
# 				faith = faith:armenian_apostolic
# 				faith = faith:coptic
# 				faith = faith:messalian
# 			}
# 		}

# 		holy_stuff_st_water_scripted_effect = yes
# 	}

# 	after = {
# 		set_up_next_relic_pilgrimage_event_effect = { DAYS = 30 }
# 	}
# }

# #Poverty preacher
# holy_stuff_go_on_relic_pilgrimage_event.0012 = {
# 	type = character_event
# 	title = holy_stuff_go_on_relic_pilgrimage_event.0012.t
# 	desc = holy_stuff_go_on_relic_pilgrimage_event.0012.desc
# 	theme = pilgrimage_activity
# 	left_portrait = {
# 		character = scope:poverty_preacher
# 		animation = personality_zealous
# 	}
# 	override_background = {
# 		reference = terrain_activity
# 	}

# 	trigger = {
# 		exists = scope:activity
# 		NOT = {
# 			exists = scope:activity.var:had_relic_pilgrimage_0012
# 		}
# 		religion = religion:christianity_religion
# 		faith = {
# 			NOR = {
# 				has_doctrine = tenet_asceticism
# 				has_doctrine = tenet_vows_of_poverty
# 			}
# 		}
# 	}

# 	immediate = {
# 		create_character = {
# 			age = 40
# 			gender_female_chance = 50
# 			location = root.capital_province
# 			dynasty = none
# 			faith = root.faith
# 			culture = root.culture
# 			trait = temperate
# 			random_traits_list = {
# 				count = 2
# 				calm = {}
# 				brave = {}
# 				humble = {}
# 				stubborn = {}
# 				zealous = {}
# 			}
# 			trait = mystic_2
# 			after_creation = {
# 				add_character_modifier = {
# 					modifier = vow_of_poverty_modifier
# 				}
# 			}
# 			save_scope_as = poverty_preacher
# 		}
# 		scope:activity = {
# 			set_variable = {
# 				name = had_relic_pilgrimage_0012
# 				value = yes
# 			}
# 		}
# 	}

# 	option = {
# 		name = holy_stuff_go_on_relic_pilgrimage_event.0012.a

# 		add_character_modifier = {
# 			modifier = vow_of_poverty_modifier
# 		}

# 		stress_impact = {
# 			greedy = major_stress_impact_gain
# 			cynical = medium_stress_impact_gain
# 			ambitious = minor_stress_impact_gain
# 		}

# 		hidden_effect = {
# 			scope:poverty_preacher = {
# 				death = {
# 					death_reason = death_vanished
# 				}
# 			}
# 		}

# 		ai_chance = {
# 			base = 100
# 		}
# 	}

# 	option = {
# 		name = holy_stuff_go_on_relic_pilgrimage_event.0012.b
# 		add_piety = medium_piety_gain

# 		hidden_effect = {
# 			scope:poverty_preacher = {
# 				death = {
# 					death_reason = death_vanished
# 				}
# 			}
# 		}

# 		ai_chance = {
# 			base = 100
# 		}
# 	}

# 	option = {
# 		name = holy_stuff_go_on_relic_pilgrimage_event.0012.c

# 		add_prestige = medium_prestige_loss
# 		duel = {
# 			skill = learning
# 			value = average_skill_rating

# 			50 = {
# 				desc = holy_stuff_go_on_relic_pilgrimage_event.0012.c.success
# 				compare_modifier = {
# 					value = scope:duel_value
# 					multiplier = 3
# 					min = -49
# 				}

# 				send_interface_toast = {
# 					title = holy_stuff_go_on_relic_pilgrimage_event.0012.c.success

# 					add_courtier = scope:poverty_preacher
# 					add_learning_lifestyle_xp = major_lifestyle_xp
# 					add_piety = major_piety_gain
# 				}

# 			}
# 			50 = {
# 				desc = holy_stuff_go_on_relic_pilgrimage_event.0012.c.failure
# 				compare_modifier = {
# 					value = scope:duel_value
# 					multiplier = -3
# 					min = -49
# 				}

# 				send_interface_toast = {
# 					title = holy_stuff_go_on_relic_pilgrimage_event.0012.c.failure
# 					add_learning_lifestyle_xp = medium_lifestyle_xp
# 				}

# 				hidden_effect = {
# 					scope:poverty_preacher = {
# 						death = {
# 							death_reason = death_vanished
# 						}
# 					}
# 				}				
# 			}
# 		}

# 		ai_chance = {
# 			base = 100
# 		}
# 	}

# 	option = {
# 		name = holy_stuff_go_on_relic_pilgrimage_event.0012.d
# 		add_prestige = minor_prestige_gain

# 		hidden_effect = {
# 			scope:poverty_preacher = {
# 				death = {
# 					death_reason = death_vanished
# 				}
# 			}
# 		}

# 		ai_chance = {
# 			base = 100
# 		}
# 	}

# 	after = {
# 		set_up_next_relic_pilgrimage_event_effect = { DAYS = 30 }
# 	}	
# }

# # Broken Bridge
# holy_stuff_go_on_relic_pilgrimage_event.0013 = {
# 	type = character_event
# 	title = holy_stuff_go_on_relic_pilgrimage_event.0013.t
# 	desc = holy_stuff_go_on_relic_pilgrimage_event.0013.desc
# 	theme = pilgrimage_activity
# 	override_background = {
# 		reference = terrain_activity
# 	}
# 	left_portrait = {
# 		character = root
# 		animation = worry
# 	}

# 	trigger = {
# 		save_holy_site_for_loc_effect = yes
# 		exists = scope:activity
# 		NOT = {
# 			exists = scope:activity.var:had_relic_pilgrimage_0013
# 		}
# 	}

# 	immediate = {
# 		scope:activity = {
# 			set_variable = {
# 				name = had_relic_pilgrimage_0013
# 				value = yes
# 			}
# 		}
# 		save_holy_site_for_loc_effect = yes
# 		play_music_cue = "mx_cue_general_crusade_event_2"
# 	}
	
# 	option = { # Take a diversion to the nearest bridge
# 		name = holy_stuff_go_on_relic_pilgrimage_event.0013.a

# 		add_character_modifier = {
# 			modifier = relic_pilgrimage_diversion_modifier
# 			years = 1
# 		}

# 		stress_impact = {
# 			impatient = medium_stress_impact_gain
# 		}

# 		custom_tooltip = holy_stuff_go_on_relic_pilgrimage_event.0013.a.tt
# 		set_up_next_relic_pilgrimage_event_effect = { DAYS = 60 }
# 	}

# 	option = { # Take the ferry
# 		name = holy_stuff_go_on_relic_pilgrimage_event.0013.b
# 		remove_short_term_gold = medium_gold_value

# 		stress_impact = {
# 			greedy = medium_stress_impact_gain
# 		}

# 		set_up_next_relic_pilgrimage_event_effect = { DAYS = 30 }
# 	}

# 	option = { # Walk through the ford
# 		name = holy_stuff_go_on_relic_pilgrimage_event.0013.c
# 		trigger = { 
# 			OR = { 
# 				has_trait = forder
# 				has_trait = strategist 
# 			}
# 		}

# 		add_prestige = 250
# 		add_martial_lifestyle_xp = medium_lifestyle_xp

# 		stress_impact = {
# 			craven = medium_stress_impact_gain
# 		}

# 		set_up_next_relic_pilgrimage_event_effect = { DAYS = 30 }
# 	}

# 	option = { # Build a provisional bridge
# 		name = holy_stuff_go_on_relic_pilgrimage_event.0013.d
# 		trigger = { 
# 			OR = { 
# 				has_trait = architect
# 				has_trait = military_engineer 
# 			}
# 		}

# 		add_prestige = 250
# 		add_martial_lifestyle_xp = medium_lifestyle_xp

# 		stress_impact = {
# 			lazy = medium_stress_impact_gain
# 		}

# 		set_up_next_relic_pilgrimage_event_effect = { DAYS = 40 }
# 	}
# }

# # Aachen
# holy_stuff_go_on_relic_pilgrimage_event.0014 = {
# 	type = character_event
# 	title = holy_stuff_go_on_relic_pilgrimage_event.0014.t
# 	desc = holy_stuff_go_on_relic_pilgrimage_event.0014.desc
# 	theme = pilgrimage_activity
# 	override_background = {
# 		reference = terrain_activity
# 	}
# 	left_portrait = {
# 		character = root
# 		animation = happiness
# 	}

# 	trigger = {
# 		scope:activity.activity_location = { county = title:c_aachen }
# 	}

# 	immediate = {
# 		save_holy_site_for_loc_effect = yes
# 	}
	
# 	option = {
# 		name = holy_stuff_go_on_relic_pilgrimage_event.0014.a
# 		trigger = { NOT = { has_trait = cynical } }
# 		give_relic_pilgrimage_reward_effect = yes
# 	}
	
# 	option = {
# 		name = holy_stuff_go_on_relic_pilgrimage_event.0014.b
# 		trigger = { has_trait = cynical }
# 		give_relic_pilgrimage_reward_effect = yes
# 	}

# 	after = {
# 		trigger_event = {
# 			on_action = relic_pilgrimage_return_events
# 			days = 30
# 		}
# 	}
# }

# # Trier
# holy_stuff_go_on_relic_pilgrimage_event.0015 = {
# 	type = character_event
# 	title = holy_stuff_go_on_relic_pilgrimage_event.0015.t
# 	desc = {
# 		first_valid = {
# 			triggered_desc = {
# 				trigger = { current_date < 1127.1.1 } #Finding of the bones of the Apostle Matthias
# 				desc = holy_stuff_go_on_relic_pilgrimage_event.0015.desc
# 			}
# 			triggered_desc = {
# 				trigger = { current_date > 1127.1.1 } #Finding of the bones of the Apostle Matthias
# 				desc = holy_stuff_go_on_relic_pilgrimage_event.0015.matthias.desc
# 			}
# 		}
# 	}
# 	theme = pilgrimage_activity
# 	override_background = {
# 		reference = terrain_activity
# 	}
# 	left_portrait = {
# 		character = root
# 		animation = happiness
# 	}

# 	trigger = {
# 		scope:activity.activity_location = { county = title:c_trier }
# 	}

# 	immediate = {
# 		save_holy_site_for_loc_effect = yes
# 	}
	
# 	option = {
# 		name = holy_stuff_go_on_relic_pilgrimage_event.0015.a
# 		trigger = { NOT = { has_trait = cynical } }
# 		give_relic_pilgrimage_reward_effect = yes
# 	}
	
# 	option = {
# 		name = holy_stuff_go_on_relic_pilgrimage_event.0015.b
# 		trigger = { has_trait = cynical }
# 		give_relic_pilgrimage_reward_effect = yes
# 	}

# 	after = {
# 		trigger_event = {
# 			on_action = relic_pilgrimage_return_events
# 			days = 30
# 		}
# 	}
# }

# # Reims
# holy_stuff_go_on_relic_pilgrimage_event.0016 = {
# 	type = character_event
# 	title = holy_stuff_go_on_relic_pilgrimage_event.0016.t
# 	desc = holy_stuff_go_on_relic_pilgrimage_event.0016.desc
# 	override_background = {
# 		reference = terrain_activity
# 	}
# 	theme = pilgrimage_activity
# 	left_portrait = {
# 		character = root
# 		animation = happiness
# 	}

# 	trigger = {
# 		scope:activity.activity_location = { county = title:c_reims }
# 	}

# 	immediate = {
# 		save_holy_site_for_loc_effect = yes
# 	}
	
# 	option = {
# 		name = holy_stuff_go_on_relic_pilgrimage_event.0016.a
# 		trigger = { NOT = { has_trait = cynical } }
# 		give_relic_pilgrimage_reward_effect = yes
# 	}
	
# 	option = {
# 		name = holy_stuff_go_on_relic_pilgrimage_event.0016.b
# 		trigger = { has_trait = cynical }
# 		give_relic_pilgrimage_reward_effect = yes
# 	}

# 	after = {
# 		trigger_event = {
# 			on_action = relic_pilgrimage_return_events
# 			days = 30
# 		}
# 	}
# }

# # Tours
# holy_stuff_go_on_relic_pilgrimage_event.0017 = {
# 	type = character_event
# 	title = holy_stuff_go_on_relic_pilgrimage_event.0017.t
# 	desc = holy_stuff_go_on_relic_pilgrimage_event.0017.desc
# 	theme = pilgrimage_activity
# 	override_background = {
# 		reference = terrain_activity
# 	}
# 	left_portrait = {
# 		character = root
# 		animation = happiness
# 	}

# 	trigger = {
# 		scope:activity.activity_location = { county = title:c_tourraine }
# 	}

# 	immediate = {
# 		save_holy_site_for_loc_effect = yes
# 	}
	
# 	option = {
# 		name = holy_stuff_go_on_relic_pilgrimage_event.0017.a
# 		trigger = { NOT = { has_trait = cynical } }
# 		give_relic_pilgrimage_reward_effect = yes
# 	}
	
# 	option = {
# 		name = holy_stuff_go_on_relic_pilgrimage_event.0017.b
# 		trigger = { has_trait = cynical }
# 		give_relic_pilgrimage_reward_effect = yes
# 	}

# 	after = {
# 		trigger_event = {
# 			on_action = relic_pilgrimage_return_events
# 			days = 30
# 		}
# 	}
# }

# # Santiago
# holy_stuff_go_on_relic_pilgrimage_event.0018 = {
# 	type = character_event
# 	title = holy_stuff_go_on_relic_pilgrimage_event.0018.t
# 	desc = {
# 		first_valid = {
# 			triggered_desc = {
# 				trigger = { 
# 					title:b_santiago.title_province = {
# 						has_building = holy_site_basilica_santiago_01
# 					}
# 				}  
# 				desc = holy_stuff_go_on_relic_pilgrimage_event.0018.cathedral.desc
# 			}
# 			desc = holy_stuff_go_on_relic_pilgrimage_event.0018.desc
# 		}
# 	}
# 	theme = pilgrimage_activity
# 	override_background = {
# 		reference = terrain_activity
# 	}
# 	left_portrait = {
# 		character = root
# 		animation = happiness
# 	}

# 	trigger = {
# 		scope:activity.activity_location = { county = title:c_santiago }
# 	}

# 	immediate = {
# 		save_holy_site_for_loc_effect = yes
# 	}
	
# 	option = {
# 		name = holy_stuff_go_on_relic_pilgrimage_event.0018.a
# 		trigger = { NOT = { has_trait = cynical } }
# 		give_relic_pilgrimage_reward_effect = yes
# 	}
	
# 	option = {
# 		name = holy_stuff_go_on_relic_pilgrimage_event.0018.b
# 		trigger = { has_trait = cynical }
# 		give_relic_pilgrimage_reward_effect = yes
# 	}

# 	after = {
# 		trigger_event = {
# 			on_action = relic_pilgrimage_return_events
# 			days = 30
# 		}
# 	}
# }

# # Canterbury
# holy_stuff_go_on_relic_pilgrimage_event.0019 = {
# 	type = character_event
# 	title = holy_stuff_go_on_relic_pilgrimage_event.0019.t
# 	desc = {
# 		first_valid = {
# 			triggered_desc = {
# 				trigger = { game_start_date = 1184.9.15 } #Thomas Becket must have existed
# 				desc = holy_stuff_go_on_relic_pilgrimage_event.0019.desc
# 			}
# 			triggered_desc = {
# 				trigger = { game_start_date = 1184.9.15 } #Thomas Becket must have existed
# 				desc = holy_stuff_go_on_relic_pilgrimage_event.0019.thomas.becket.desc
# 			}
# 		}
# 	}
# 	theme = pilgrimage_activity
# 	override_background = {
# 		reference = terrain_activity
# 	}
# 	left_portrait = {
# 		character = root
# 		animation = happiness
# 	}

# 	trigger = {
# 		scope:activity.activity_location = { county = title:c_kent }
# 	}

# 	immediate = {
# 		save_holy_site_for_loc_effect = yes
# 	}
	
# 	option = {
# 		name = holy_stuff_go_on_relic_pilgrimage_event.0019.a
# 		trigger = { NOT = { has_trait = cynical } }
# 		give_relic_pilgrimage_reward_effect = yes
# 	}
	
# 	option = {
# 		name = holy_stuff_go_on_relic_pilgrimage_event.0019.b
# 		trigger = { has_trait = cynical }
# 		give_relic_pilgrimage_reward_effect = yes
# 	}

# 	after = {
# 		trigger_event = {
# 			on_action = relic_pilgrimage_return_events
# 			days = 30
# 		}
# 	}
# }


# # Nidaros
# holy_stuff_go_on_relic_pilgrimage_event.0020 = {
# 	type = character_event
# 	title = holy_stuff_go_on_relic_pilgrimage_event.0020.t
# 	desc = {
# 		first_valid = {
# 			triggered_desc = {
# 				trigger = { current_date < 1185.1.1 } #Completion of the chapel for Olav's shrine in Nidaros Cathedral.
# 				desc = holy_stuff_go_on_relic_pilgrimage_event.0020.desc
# 			}
# 			triggered_desc = {
# 				trigger = { current_date > 1185.1.1 } #Completion of the chapel for Olav's shrine in Nidaros Cathedral.
# 				desc = holy_stuff_go_on_relic_pilgrimage_event.0020.cathedral.desc
# 			}
# 		}
# 	}
# 	theme = pilgrimage_activity
# 	override_background = {
# 		reference = terrain_activity
# 	}
# 	left_portrait = {
# 		character = root
# 		animation = happiness
# 	}

# 	trigger = {
# 		current_date > 1031.8.3 #Canonisation of St. Olav.
# 		scope:activity.activity_location = { county = title:c_trandheim }
# 	}

# 	immediate = {
# 		save_holy_site_for_loc_effect = yes
# 	}
	
# 	option = {
# 		name = holy_stuff_go_on_relic_pilgrimage_event.0020.a
# 		trigger = { NOT = { has_trait = cynical } }
# 		give_relic_pilgrimage_reward_effect = yes
# 	}
	
# 	option = {
# 		name = holy_stuff_go_on_relic_pilgrimage_event.0020.b
# 		trigger = { has_trait = cynical }
# 		give_relic_pilgrimage_reward_effect = yes
# 	}

# 	after = {
# 		trigger_event = {
# 			on_action = relic_pilgrimage_return_events
# 			days = 30
# 		}
# 	}
# }

# # Rome
# holy_stuff_go_on_relic_pilgrimage_event.0021 = {
# 	type = character_event
# 	title = holy_stuff_go_on_relic_pilgrimage_event.0021.t
# 	desc = holy_stuff_go_on_relic_pilgrimage_event.0021.desc
# 	theme = pilgrimage_activity
# 	override_background = {
# 		reference = terrain_activity
# 	}
# 	left_portrait = {
# 		character = root
# 		animation = happiness
# 	}

# 	trigger = {
# 		scope:activity.activity_location = { county = title:c_roma }
# 	}

# 	immediate = {
# 		save_holy_site_for_loc_effect = yes
# 	}
	
# 	option = {
# 		name = holy_stuff_go_on_relic_pilgrimage_event.0021.a
# 		trigger = { NOT = { has_trait = cynical } }
# 		give_relic_pilgrimage_reward_effect = yes
# 	}
	
# 	option = {
# 		name = holy_stuff_go_on_relic_pilgrimage_event.0021.b
# 		trigger = { has_trait = cynical }
# 		give_relic_pilgrimage_reward_effect = yes
# 	}

# 	after = {
# 		trigger_event = {
# 			on_action = relic_pilgrimage_return_events
# 			days = 30
# 		}
# 	}
# }

# # Constantinople
# holy_stuff_go_on_relic_pilgrimage_event.0022 = {
# 	type = character_event
# 	title = holy_stuff_go_on_relic_pilgrimage_event.0022.t
# 	desc = holy_stuff_go_on_relic_pilgrimage_event.0022.desc
# 	theme = pilgrimage_activity
# 	override_background = {
# 		reference = terrain_activity
# 	}
# 	left_portrait = {
# 		character = root
# 		animation = happiness
# 	}

# 	trigger = {
# 		scope:activity.activity_location = { county = title:c_byzantion }
# 	}

# 	immediate = {
# 		save_holy_site_for_loc_effect = yes
# 	}
	
# 	option = {
# 		name = holy_stuff_go_on_relic_pilgrimage_event.0022.a
# 		trigger = { NOT = { has_trait = cynical } }
# 		give_relic_pilgrimage_reward_effect = yes
# 	}
	
# 	option = {
# 		name = holy_stuff_go_on_relic_pilgrimage_event.0022.b
# 		trigger = { has_trait = cynical }
# 		give_relic_pilgrimage_reward_effect = yes
# 	}

# 	after = {
# 		trigger_event = {
# 			on_action = relic_pilgrimage_return_events
# 			days = 30
# 		}
# 	}
# }

# # Generic Destination Event
# holy_stuff_go_on_relic_pilgrimage_event.0023 = {
# 	type = character_event
# 	title = holy_stuff_go_on_relic_pilgrimage_event.0023.t
# 	desc = {
# 		desc = holy_stuff_go_on_relic_pilgrimage_event.0023.desc
# 		triggered_desc = {
# 			trigger = { has_trait = cynical }
# 			desc = holy_stuff_go_on_relic_pilgrimage_event.0023.cynical_end
# 		}
# 	}
# 	theme = pilgrimage_activity
# 	override_background = {
# 		reference = terrain_activity
# 	}
# 	left_portrait = {
# 		character = root
# 		animation = ecstasy
# 	}

# 	trigger = {
# 		exists = scope:activity
# 	}

# 	immediate = {
# 		save_holy_site_for_loc_effect = yes
# 		play_music_cue = "mx_cue_epic_sacral_moment"
# 	}
	
# 	option = {
# 		name = holy_stuff_go_on_relic_pilgrimage_event.0023.a
# 		trigger = {
# 			NOT = { has_trait = cynical }
# 		}
# 		give_relic_pilgrimage_reward_effect = yes
# 	}
	
# 	option = {
# 		name = holy_stuff_go_on_relic_pilgrimage_event.0023.b
# 		trigger = {
# 			has_trait = cynical
# 		}
# 		give_relic_pilgrimage_reward_effect = yes
# 	}

# 	after = {
# 		trigger_event = {
# 			on_action = relic_pilgrimage_return_events
# 			days = 30
# 		}
# 	}
# }

# # End Event
# holy_stuff_go_on_relic_pilgrimage_event.0024 = {
# 	type = character_event
# 	title = holy_stuff_go_on_relic_pilgrimage_event.0024.t
# 	desc = holy_stuff_go_on_relic_pilgrimage_event.0024.desc
# 	left_portrait = root
# 	theme = pilgrimage_activity
# 	override_background = {
# 		reference = terrain_activity
# 	}

# 	trigger = {
# 		exists = scope:activity
# 	}

# 	immediate = {
# 		# Creates a character memory of the completed relic pilgrimage
# 		if = {
# 			limit = { exists = scope:activity.var:friend_companion }
# 			create_character_memory = {
# 				type = completed_relic_pilgrimage_friend 
# 				participants = { friend = scope:activity.var:friend_companion }
# 			}
# 		}
# 		else = {
# 			create_character_memory = {
# 				type = completed_relic_pilgrimage 
# 			}
# 		}

# 		scope:new_memory = {
# 			set_variable = {
# 				name = destination
# 				value = scope:activity.activity_location
# 			} 
# 		}
# 	}
	
# 	option = {
# 		name = holy_stuff_go_on_relic_pilgrimage_event.0024.a
# 		scope:activity = {
# 			complete_activity = yes
# 		}
# 	}
# }


