title_decisions = {
	secretly_convert_to_aquileian_holy_site = {
		filter = owned
		ai_target_filter = self
	
		only_playable = yes
		
		from_potential = {
			ai = no
			NOT = { trait = incapable }
			NOT = { secret_religion = aquileian }
			NOT = { religion = aquileian }
			NOT = { controls_religion = yes }
		}
		
		potential = {
			tier = COUNT
			NOT = {
				location = { religion = aquileian }
			}
			OR = {
				is_holy_site = aquileian
				any_de_jure_vassal_title = {
					is_holy_site = aquileian
				}
			}
			OR = {
				holder_scope = {
					character = FROM
				}
				AND = {
					tier = BARON
					holder_scope = {
						liege = {
							character = FROM
						}
					}
				}
			}
		}
		
		allow = {
			FROM = {
				piety = 250
				prisoner = no
				NOT = { trait = incapable }
				NOT = { is_inaccessible_trigger = yes }
				NOT = { society_member_of = secret_religious_cult }
			}
		}
		
		effect = {
			FROM = {
				piety = -250
				set_secret_religion = aquileian
			}
		}
		
		
		
		ai_will_do = {
			factor = 0
		}
	}
	secretly_convert_to_nicene_holy_site = {
		filter = owned
		ai_target_filter = self
	
		only_playable = yes
		
		from_potential = {
			ai = no
			NOT = { trait = incapable }
			NOT = { secret_religion = nicene }
			NOT = { religion = nicene }
			NOT = { controls_religion = yes }
		}
		
		potential = {
			tier = COUNT
			NOT = {
				location = { religion = nicene }
			}
			OR = {
				is_holy_site = nicene
				any_de_jure_vassal_title = {
					is_holy_site = nicene
				}
			}
			OR = {
				holder_scope = {
					character = FROM
				}
				AND = {
					tier = BARON
					holder_scope = {
						liege = {
							character = FROM
						}
					}
				}
			}
		}
		
		allow = {
			FROM = {
				piety = 250
				prisoner = no
				NOT = { trait = incapable }
				NOT = { is_inaccessible_trigger = yes }
				NOT = { society_member_of = secret_religious_cult }
			}
		}
		
		effect = {
			FROM = {
				piety = -250
				set_secret_religion = nicene
			}
		}
		
		
		
		ai_will_do = {
			factor = 0
		}
	}
	secretly_convert_to_total_depravity_holy_site = {
		filter = owned
		ai_target_filter = self
	
		only_playable = yes
		
		from_potential = {
			ai = no
			NOT = { trait = incapable }
			NOT = { secret_religion = total_depravity }
			NOT = { religion = total_depravity }
			NOT = { controls_religion = yes }
		}
		
		potential = {
			tier = COUNT
			NOT = {
				location = { religion = total_depravity }
			}
			OR = {
				is_holy_site = total_depravity
				any_de_jure_vassal_title = {
					is_holy_site = total_depravity
				}
			}
			OR = {
				holder_scope = {
					character = FROM
				}
				AND = {
					tier = BARON
					holder_scope = {
						liege = {
							character = FROM
						}
					}
				}
			}
		}
		
		allow = {
			FROM = {
				piety = 250
				prisoner = no
				NOT = { trait = incapable }
				NOT = { is_inaccessible_trigger = yes }
				NOT = { society_member_of = secret_religious_cult }
			}
		}
		
		effect = {
			FROM = {
				piety = -250
				set_secret_religion = total_depravity
			}
		}
		
		
		
		ai_will_do = {
			factor = 0
		}
	}
	secretly_convert_to_eutychian_holy_site = {
		filter = owned
		ai_target_filter = self
	
		only_playable = yes
		
		from_potential = {
			ai = no
			NOT = { trait = incapable }
			NOT = { secret_religion = eutychian }
			NOT = { religion = eutychian }
			NOT = { controls_religion = yes }
		}
		
		potential = {
			tier = COUNT
			NOT = {
				location = { religion = eutychian }
			}
			OR = {
				is_holy_site = eutychian
				any_de_jure_vassal_title = {
					is_holy_site = eutychian
				}
			}
			OR = {
				holder_scope = {
					character = FROM
				}
				AND = {
					tier = BARON
					holder_scope = {
						liege = {
							character = FROM
						}
					}
				}
			}
		}
		
		allow = {
			FROM = {
				piety = 250
				prisoner = no
				NOT = { trait = incapable }
				NOT = { is_inaccessible_trigger = yes }
				NOT = { society_member_of = secret_religious_cult }
			}
		}
		
		effect = {
			FROM = {
				piety = -250
				set_secret_religion = eutychian
			}
		}
		
		
		
		ai_will_do = {
			factor = 0
		}
	}
	secretly_convert_to_binitarian_holy_site = {
		filter = owned
		ai_target_filter = self
	
		only_playable = yes
		
		from_potential = {
			ai = no
			NOT = { trait = incapable }
			NOT = { secret_religion = binitarian }
			NOT = { religion = binitarian }
			NOT = { controls_religion = yes }
		}
		
		potential = {
			tier = COUNT
			NOT = {
				location = { religion = binitarian }
			}
			OR = {
				is_holy_site = binitarian
				any_de_jure_vassal_title = {
					is_holy_site = binitarian
				}
			}
			OR = {
				holder_scope = {
					character = FROM
				}
				AND = {
					tier = BARON
					holder_scope = {
						liege = {
							character = FROM
						}
					}
				}
			}
		}
		
		allow = {
			FROM = {
				piety = 250
				prisoner = no
				NOT = { trait = incapable }
				NOT = { is_inaccessible_trigger = yes }
				NOT = { society_member_of = secret_religious_cult }
			}
		}
		
		effect = {
			FROM = {
				piety = -250
				set_secret_religion = binitarian
			}
		}
		
		
		
		ai_will_do = {
			factor = 0
		}
	}
	secretly_convert_to_georgian_orthodox_holy_site = {
		filter = owned
		ai_target_filter = self
	
		only_playable = yes
		
		from_potential = {
			ai = no
			NOT = { trait = incapable }
			NOT = { secret_religion = georgian_orthodox }
			NOT = { religion = georgian_orthodox }
			NOT = { controls_religion = yes }
		}
		
		potential = {
			tier = COUNT
			NOT = {
				location = { religion = georgian_orthodox }
			}
			OR = {
				is_holy_site = georgian_orthodox
				any_de_jure_vassal_title = {
					is_holy_site = georgian_orthodox
				}
			}
			OR = {
				holder_scope = {
					character = FROM
				}
				AND = {
					tier = BARON
					holder_scope = {
						liege = {
							character = FROM
						}
					}
				}
			}
		}
		
		allow = {
			FROM = {
				piety = 250
				prisoner = no
				NOT = { trait = incapable }
				NOT = { is_inaccessible_trigger = yes }
				NOT = { society_member_of = secret_religious_cult }
			}
		}
		
		effect = {
			FROM = {
				piety = -250
				set_secret_religion = georgian_orthodox
			}
		}
		
		
		
		ai_will_do = {
			factor = 0
		}
	}
	secretly_convert_to_insular_holy_site = {
		filter = owned
		ai_target_filter = self
	
		only_playable = yes
		
		from_potential = {
			ai = no
			NOT = { trait = incapable }
			NOT = { secret_religion = insular }
			NOT = { religion = insular }
			NOT = { controls_religion = yes }
		}
		
		potential = {
			tier = COUNT
			NOT = {
				location = { religion = insular }
			}
			OR = {
				is_holy_site = insular
				any_de_jure_vassal_title = {
					is_holy_site = insular
				}
			}
			OR = {
				holder_scope = {
					character = FROM
				}
				AND = {
					tier = BARON
					holder_scope = {
						liege = {
							character = FROM
						}
					}
				}
			}
		}
		
		allow = {
			FROM = {
				piety = 250
				prisoner = no
				NOT = { trait = incapable }
				NOT = { is_inaccessible_trigger = yes }
				NOT = { society_member_of = secret_religious_cult }
			}
		}
		
		effect = {
			FROM = {
				piety = -250
				set_secret_religion = insular
			}
		}
		
		
		
		ai_will_do = {
			factor = 0
		}
	}
	secretly_convert_to_pelagianism_holy_site = {
		filter = owned
		ai_target_filter = self
	
		only_playable = yes
		
		from_potential = {
			ai = no
			NOT = { trait = incapable }
			NOT = { secret_religion = pelagianism }
			NOT = { religion = pelagianism }
			NOT = { controls_religion = yes }
		}
		
		potential = {
			tier = COUNT
			NOT = {
				location = { religion = pelagianism }
			}
			OR = {
				is_holy_site = pelagianism
				any_de_jure_vassal_title = {
					is_holy_site = pelagianism
				}
			}
			OR = {
				holder_scope = {
					character = FROM
				}
				AND = {
					tier = BARON
					holder_scope = {
						liege = {
							character = FROM
						}
					}
				}
			}
		}
		
		allow = {
			FROM = {
				piety = 250
				prisoner = no
				NOT = { trait = incapable }
				NOT = { is_inaccessible_trigger = yes }
				NOT = { society_member_of = secret_religious_cult }
			}
		}
		
		effect = {
			FROM = {
				piety = -250
				set_secret_religion = pelagianism
			}
		}
		
		
		
		ai_will_do = {
			factor = 0
		}
	}
	secretly_convert_to_antinomianism_holy_site = {
		filter = owned
		ai_target_filter = self
	
		only_playable = yes
		
		from_potential = {
			ai = no
			NOT = { trait = incapable }
			NOT = { secret_religion = antinomianism }
			NOT = { religion = antinomianism }
			NOT = { controls_religion = yes }
		}
		
		potential = {
			tier = COUNT
			NOT = {
				location = { religion = antinomianism }
			}
			OR = {
				is_holy_site = antinomianism
				any_de_jure_vassal_title = {
					is_holy_site = antinomianism
				}
			}
			OR = {
				holder_scope = {
					character = FROM
				}
				AND = {
					tier = BARON
					holder_scope = {
						liege = {
							character = FROM
						}
					}
				}
			}
		}
		
		allow = {
			FROM = {
				piety = 250
				prisoner = no
				NOT = { trait = incapable }
				NOT = { is_inaccessible_trigger = yes }
				NOT = { society_member_of = secret_religious_cult }
			}
		}
		
		effect = {
			FROM = {
				piety = -250
				set_secret_religion = antinomianism
			}
		}
		
		
		
		ai_will_do = {
			factor = 0
		}
	}
	secretly_convert_to_ebionites_holy_site = {
		filter = owned
		ai_target_filter = self
	
		only_playable = yes
		
		from_potential = {
			ai = no
			NOT = { trait = incapable }
			NOT = { secret_religion = ebionites }
			NOT = { religion = ebionites }
			NOT = { controls_religion = yes }
		}
		
		potential = {
			tier = COUNT
			NOT = {
				location = { religion = ebionites }
			}
			OR = {
				is_holy_site = ebionites
				any_de_jure_vassal_title = {
					is_holy_site = ebionites
				}
			}
			OR = {
				holder_scope = {
					character = FROM
				}
				AND = {
					tier = BARON
					holder_scope = {
						liege = {
							character = FROM
						}
					}
				}
			}
		}
		
		allow = {
			FROM = {
				piety = 250
				prisoner = no
				NOT = { trait = incapable }
				NOT = { is_inaccessible_trigger = yes }
				NOT = { society_member_of = secret_religious_cult }
			}
		}
		
		effect = {
			FROM = {
				piety = -250
				set_secret_religion = ebionites
			}
		}
		
		
		
		ai_will_do = {
			factor = 0
		}
	}
	secretly_convert_to_marcionism_holy_site = {
		filter = owned
		ai_target_filter = self
	
		only_playable = yes
		
		from_potential = {
			ai = no
			NOT = { trait = incapable }
			NOT = { secret_religion = marcionism }
			NOT = { religion = marcionism }
			NOT = { controls_religion = yes }
		}
		
		potential = {
			tier = COUNT
			NOT = {
				location = { religion = marcionism }
			}
			OR = {
				is_holy_site = marcionism
				any_de_jure_vassal_title = {
					is_holy_site = marcionism
				}
			}
			OR = {
				holder_scope = {
					character = FROM
				}
				AND = {
					tier = BARON
					holder_scope = {
						liege = {
							character = FROM
						}
					}
				}
			}
		}
		
		allow = {
			FROM = {
				piety = 250
				prisoner = no
				NOT = { trait = incapable }
				NOT = { is_inaccessible_trigger = yes }
				NOT = { society_member_of = secret_religious_cult }
			}
		}
		
		effect = {
			FROM = {
				piety = -250
				set_secret_religion = marcionism
			}
		}
		
		
		
		ai_will_do = {
			factor = 0
		}
	}
	secretly_convert_to_montanist_holy_site = {
		filter = owned
		ai_target_filter = self
	
		only_playable = yes
		
		from_potential = {
			ai = no
			NOT = { trait = incapable }
			NOT = { secret_religion = montanist }
			NOT = { religion = montanist }
			NOT = { controls_religion = yes }
		}
		
		potential = {
			tier = COUNT
			NOT = {
				location = { religion = montanist }
			}
			OR = {
				is_holy_site = montanist
				any_de_jure_vassal_title = {
					is_holy_site = montanist
				}
			}
			OR = {
				holder_scope = {
					character = FROM
				}
				AND = {
					tier = BARON
					holder_scope = {
						liege = {
							character = FROM
						}
					}
				}
			}
		}
		
		allow = {
			FROM = {
				piety = 250
				prisoner = no
				NOT = { trait = incapable }
				NOT = { is_inaccessible_trigger = yes }
				NOT = { society_member_of = secret_religious_cult }
			}
		}
		
		effect = {
			FROM = {
				piety = -250
				set_secret_religion = montanist
			}
		}
		
		
		
		ai_will_do = {
			factor = 0
		}
	}
	secretly_convert_to_sethian_holy_site = {
		filter = owned
		ai_target_filter = self
	
		only_playable = yes
		
		from_potential = {
			ai = no
			NOT = { trait = incapable }
			NOT = { secret_religion = sethian }
			NOT = { religion = sethian }
			NOT = { controls_religion = yes }
		}
		
		potential = {
			tier = COUNT
			NOT = {
				location = { religion = sethian }
			}
			OR = {
				is_holy_site = sethian
				any_de_jure_vassal_title = {
					is_holy_site = sethian
				}
			}
			OR = {
				holder_scope = {
					character = FROM
				}
				AND = {
					tier = BARON
					holder_scope = {
						liege = {
							character = FROM
						}
					}
				}
			}
		}
		
		allow = {
			FROM = {
				piety = 250
				prisoner = no
				NOT = { trait = incapable }
				NOT = { is_inaccessible_trigger = yes }
				NOT = { society_member_of = secret_religious_cult }
			}
		}
		
		effect = {
			FROM = {
				piety = -250
				set_secret_religion = sethian
			}
		}
		
		
		
		ai_will_do = {
			factor = 0
		}
	}
	secretly_convert_to_valentinianism_holy_site = {
		filter = owned
		ai_target_filter = self
	
		only_playable = yes
		
		from_potential = {
			ai = no
			NOT = { trait = incapable }
			NOT = { secret_religion = valentinianism }
			NOT = { religion = valentinianism }
			NOT = { controls_religion = yes }
		}
		
		potential = {
			tier = COUNT
			NOT = {
				location = { religion = valentinianism }
			}
			OR = {
				is_holy_site = valentinianism
				any_de_jure_vassal_title = {
					is_holy_site = valentinianism
				}
			}
			OR = {
				holder_scope = {
					character = FROM
				}
				AND = {
					tier = BARON
					holder_scope = {
						liege = {
							character = FROM
						}
					}
				}
			}
		}
		
		allow = {
			FROM = {
				piety = 250
				prisoner = no
				NOT = { trait = incapable }
				NOT = { is_inaccessible_trigger = yes }
				NOT = { society_member_of = secret_religious_cult }
			}
		}
		
		effect = {
			FROM = {
				piety = -250
				set_secret_religion = valentinianism
			}
		}
		
		
		
		ai_will_do = {
			factor = 0
		}
	}
	secretly_convert_to_apollinarian_holy_site = {
		filter = owned
		ai_target_filter = self
	
		only_playable = yes
		
		from_potential = {
			ai = no
			NOT = { trait = incapable }
			NOT = { secret_religion = apollinarian }
			NOT = { religion = apollinarian }
			NOT = { controls_religion = yes }
		}
		
		potential = {
			tier = COUNT
			NOT = {
				location = { religion = apollinarian }
			}
			OR = {
				is_holy_site = apollinarian
				any_de_jure_vassal_title = {
					is_holy_site = apollinarian
				}
			}
			OR = {
				holder_scope = {
					character = FROM
				}
				AND = {
					tier = BARON
					holder_scope = {
						liege = {
							character = FROM
						}
					}
				}
			}
		}
		
		allow = {
			FROM = {
				piety = 250
				prisoner = no
				NOT = { trait = incapable }
				NOT = { is_inaccessible_trigger = yes }
				NOT = { society_member_of = secret_religious_cult }
			}
		}
		
		effect = {
			FROM = {
				piety = -250
				set_secret_religion = apollinarian
			}
		}
		
		
		
		ai_will_do = {
			factor = 0
		}
	}
	secretly_convert_to_adoptionism_holy_site = {
		filter = owned
		ai_target_filter = self
	
		only_playable = yes
		
		from_potential = {
			ai = no
			NOT = { trait = incapable }
			NOT = { secret_religion = adoptionism }
			NOT = { religion = adoptionism }
			NOT = { controls_religion = yes }
		}
		
		potential = {
			tier = COUNT
			NOT = {
				location = { religion = adoptionism }
			}
			OR = {
				is_holy_site = adoptionism
				any_de_jure_vassal_title = {
					is_holy_site = adoptionism
				}
			}
			OR = {
				holder_scope = {
					character = FROM
				}
				AND = {
					tier = BARON
					holder_scope = {
						liege = {
							character = FROM
						}
					}
				}
			}
		}
		
		allow = {
			FROM = {
				piety = 250
				prisoner = no
				NOT = { trait = incapable }
				NOT = { is_inaccessible_trigger = yes }
				NOT = { society_member_of = secret_religious_cult }
			}
		}
		
		effect = {
			FROM = {
				piety = -250
				set_secret_religion = adoptionism
			}
		}
		
		
		
		ai_will_do = {
			factor = 0
		}
	}
	secretly_convert_to_docetic_holy_site = {
		filter = owned
		ai_target_filter = self
	
		only_playable = yes
		
		from_potential = {
			ai = no
			NOT = { trait = incapable }
			NOT = { secret_religion = docetic }
			NOT = { religion = docetic }
			NOT = { controls_religion = yes }
		}
		
		potential = {
			tier = COUNT
			NOT = {
				location = { religion = docetic }
			}
			OR = {
				is_holy_site = docetic
				any_de_jure_vassal_title = {
					is_holy_site = docetic
				}
			}
			OR = {
				holder_scope = {
					character = FROM
				}
				AND = {
					tier = BARON
					holder_scope = {
						liege = {
							character = FROM
						}
					}
				}
			}
		}
		
		allow = {
			FROM = {
				piety = 250
				prisoner = no
				NOT = { trait = incapable }
				NOT = { is_inaccessible_trigger = yes }
				NOT = { society_member_of = secret_religious_cult }
			}
		}
		
		effect = {
			FROM = {
				piety = -250
				set_secret_religion = docetic
			}
		}
		
		
		
		ai_will_do = {
			factor = 0
		}
	}
	secretly_convert_to_pneumatomachians_holy_site = {
		filter = owned
		ai_target_filter = self
	
		only_playable = yes
		
		from_potential = {
			ai = no
			NOT = { trait = incapable }
			NOT = { secret_religion = pneumatomachians }
			NOT = { religion = pneumatomachians }
			NOT = { controls_religion = yes }
		}
		
		potential = {
			tier = COUNT
			NOT = {
				location = { religion = pneumatomachians }
			}
			OR = {
				is_holy_site = pneumatomachians
				any_de_jure_vassal_title = {
					is_holy_site = pneumatomachians
				}
			}
			OR = {
				holder_scope = {
					character = FROM
				}
				AND = {
					tier = BARON
					holder_scope = {
						liege = {
							character = FROM
						}
					}
				}
			}
		}
		
		allow = {
			FROM = {
				piety = 250
				prisoner = no
				NOT = { trait = incapable }
				NOT = { is_inaccessible_trigger = yes }
				NOT = { society_member_of = secret_religious_cult }
			}
		}
		
		effect = {
			FROM = {
				piety = -250
				set_secret_religion = pneumatomachians
			}
		}
		
		
		
		ai_will_do = {
			factor = 0
		}
	}
	secretly_convert_to_melchisedechianism_holy_site = {
		filter = owned
		ai_target_filter = self
	
		only_playable = yes
		
		from_potential = {
			ai = no
			NOT = { trait = incapable }
			NOT = { secret_religion = melchisedechianism }
			NOT = { religion = melchisedechianism }
			NOT = { controls_religion = yes }
		}
		
		potential = {
			tier = COUNT
			NOT = {
				location = { religion = melchisedechianism }
			}
			OR = {
				is_holy_site = melchisedechianism
				any_de_jure_vassal_title = {
					is_holy_site = melchisedechianism
				}
			}
			OR = {
				holder_scope = {
					character = FROM
				}
				AND = {
					tier = BARON
					holder_scope = {
						liege = {
							character = FROM
						}
					}
				}
			}
		}
		
		allow = {
			FROM = {
				piety = 250
				prisoner = no
				NOT = { trait = incapable }
				NOT = { is_inaccessible_trigger = yes }
				NOT = { society_member_of = secret_religious_cult }
			}
		}
		
		effect = {
			FROM = {
				piety = -250
				set_secret_religion = melchisedechianism
			}
		}
		
		
		
		ai_will_do = {
			factor = 0
		}
	}
	secretly_convert_to_patripassianism_holy_site = {
		filter = owned
		ai_target_filter = self
	
		only_playable = yes
		
		from_potential = {
			ai = no
			NOT = { trait = incapable }
			NOT = { secret_religion = patripassianism }
			NOT = { religion = patripassianism }
			NOT = { controls_religion = yes }
		}
		
		potential = {
			tier = COUNT
			NOT = {
				location = { religion = patripassianism }
			}
			OR = {
				is_holy_site = patripassianism
				any_de_jure_vassal_title = {
					is_holy_site = patripassianism
				}
			}
			OR = {
				holder_scope = {
					character = FROM
				}
				AND = {
					tier = BARON
					holder_scope = {
						liege = {
							character = FROM
						}
					}
				}
			}
		}
		
		allow = {
			FROM = {
				piety = 250
				prisoner = no
				NOT = { trait = incapable }
				NOT = { is_inaccessible_trigger = yes }
				NOT = { society_member_of = secret_religious_cult }
			}
		}
		
		effect = {
			FROM = {
				piety = -250
				set_secret_religion = patripassianism
			}
		}
		
		
		
		ai_will_do = {
			factor = 0
		}
	}
	secretly_convert_to_sabellianism_holy_site = {
		filter = owned
		ai_target_filter = self
	
		only_playable = yes
		
		from_potential = {
			ai = no
			NOT = { trait = incapable }
			NOT = { secret_religion = sabellianism }
			NOT = { religion = sabellianism }
			NOT = { controls_religion = yes }
		}
		
		potential = {
			tier = COUNT
			NOT = {
				location = { religion = sabellianism }
			}
			OR = {
				is_holy_site = sabellianism
				any_de_jure_vassal_title = {
					is_holy_site = sabellianism
				}
			}
			OR = {
				holder_scope = {
					character = FROM
				}
				AND = {
					tier = BARON
					holder_scope = {
						liege = {
							character = FROM
						}
					}
				}
			}
		}
		
		allow = {
			FROM = {
				piety = 250
				prisoner = no
				NOT = { trait = incapable }
				NOT = { is_inaccessible_trigger = yes }
				NOT = { society_member_of = secret_religious_cult }
			}
		}
		
		effect = {
			FROM = {
				piety = -250
				set_secret_religion = sabellianism
			}
		}
		
		
		
		ai_will_do = {
			factor = 0
		}
	}
	secretly_convert_to_psilanthropism_holy_site = {
		filter = owned
		ai_target_filter = self
	
		only_playable = yes
		
		from_potential = {
			ai = no
			NOT = { trait = incapable }
			NOT = { secret_religion = psilanthropism }
			NOT = { religion = psilanthropism }
			NOT = { controls_religion = yes }
		}
		
		potential = {
			tier = COUNT
			NOT = {
				location = { religion = psilanthropism }
			}
			OR = {
				is_holy_site = psilanthropism
				any_de_jure_vassal_title = {
					is_holy_site = psilanthropism
				}
			}
			OR = {
				holder_scope = {
					character = FROM
				}
				AND = {
					tier = BARON
					holder_scope = {
						liege = {
							character = FROM
						}
					}
				}
			}
		}
		
		allow = {
			FROM = {
				piety = 250
				prisoner = no
				NOT = { trait = incapable }
				NOT = { is_inaccessible_trigger = yes }
				NOT = { society_member_of = secret_religious_cult }
			}
		}
		
		effect = {
			FROM = {
				piety = -250
				set_secret_religion = psilanthropism
			}
		}
		
		
		
		ai_will_do = {
			factor = 0
		}
	}
	secretly_convert_to_audianistic_holy_site = {
		filter = owned
		ai_target_filter = self
	
		only_playable = yes
		
		from_potential = {
			ai = no
			NOT = { trait = incapable }
			NOT = { secret_religion = audianistic }
			NOT = { religion = audianistic }
			NOT = { controls_religion = yes }
		}
		
		potential = {
			tier = COUNT
			NOT = {
				location = { religion = audianistic }
			}
			OR = {
				is_holy_site = audianistic
				any_de_jure_vassal_title = {
					is_holy_site = audianistic
				}
			}
			OR = {
				holder_scope = {
					character = FROM
				}
				AND = {
					tier = BARON
					holder_scope = {
						liege = {
							character = FROM
						}
					}
				}
			}
		}
		
		allow = {
			FROM = {
				piety = 250
				prisoner = no
				NOT = { trait = incapable }
				NOT = { is_inaccessible_trigger = yes }
				NOT = { society_member_of = secret_religious_cult }
			}
		}
		
		effect = {
			FROM = {
				piety = -250
				set_secret_religion = audianistic
			}
		}
		
		
		
		ai_will_do = {
			factor = 0
		}
	}
	secretly_convert_to_arian_holy_site = {
		filter = owned
		ai_target_filter = self
	
		only_playable = yes
		
		from_potential = {
			ai = no
			NOT = { trait = incapable }
			NOT = { secret_religion = arian }
			NOT = { religion = arian }
			NOT = { controls_religion = yes }
		}
		
		potential = {
			tier = COUNT
			NOT = {
				location = { religion = arian }
			}
			OR = {
				is_holy_site = arian
				any_de_jure_vassal_title = {
					is_holy_site = arian
				}
			}
			OR = {
				holder_scope = {
					character = FROM
				}
				AND = {
					tier = BARON
					holder_scope = {
						liege = {
							character = FROM
						}
					}
				}
			}
		}
		
		allow = {
			FROM = {
				piety = 250
				prisoner = no
				NOT = { trait = incapable }
				NOT = { is_inaccessible_trigger = yes }
				NOT = { society_member_of = secret_religious_cult }
			}
		}
		
		effect = {
			FROM = {
				piety = -250
				set_secret_religion = arian
			}
		}
		
		
		
		ai_will_do = {
			factor = 0
		}
	}
	secretly_convert_to_monarchianism_holy_site = {
		filter = owned
		ai_target_filter = self
	
		only_playable = yes
		
		from_potential = {
			ai = no
			NOT = { trait = incapable }
			NOT = { secret_religion = monarchianism }
			NOT = { religion = monarchianism }
			NOT = { controls_religion = yes }
		}
		
		potential = {
			tier = COUNT
			NOT = {
				location = { religion = monarchianism }
			}
			OR = {
				is_holy_site = monarchianism
				any_de_jure_vassal_title = {
					is_holy_site = monarchianism
				}
			}
			OR = {
				holder_scope = {
					character = FROM
				}
				AND = {
					tier = BARON
					holder_scope = {
						liege = {
							character = FROM
						}
					}
				}
			}
		}
		
		allow = {
			FROM = {
				piety = 250
				prisoner = no
				NOT = { trait = incapable }
				NOT = { is_inaccessible_trigger = yes }
				NOT = { society_member_of = secret_religious_cult }
			}
		}
		
		effect = {
			FROM = {
				piety = -250
				set_secret_religion = monarchianism
			}
		}
		
		
		
		ai_will_do = {
			factor = 0
		}
	}
	secretly_convert_to_donatism_holy_site = {
		filter = owned
		ai_target_filter = self
	
		only_playable = yes
		
		from_potential = {
			ai = no
			NOT = { trait = incapable }
			NOT = { secret_religion = donatism }
			NOT = { religion = donatism }
			NOT = { controls_religion = yes }
		}
		
		potential = {
			tier = COUNT
			NOT = {
				location = { religion = donatism }
			}
			OR = {
				is_holy_site = donatism
				any_de_jure_vassal_title = {
					is_holy_site = donatism
				}
			}
			OR = {
				holder_scope = {
					character = FROM
				}
				AND = {
					tier = BARON
					holder_scope = {
						liege = {
							character = FROM
						}
					}
				}
			}
		}
		
		allow = {
			FROM = {
				piety = 250
				prisoner = no
				NOT = { trait = incapable }
				NOT = { is_inaccessible_trigger = yes }
				NOT = { society_member_of = secret_religious_cult }
			}
		}
		
		effect = {
			FROM = {
				piety = -250
				set_secret_religion = donatism
			}
		}
		
		
		
		ai_will_do = {
			factor = 0
		}
	}
	secretly_convert_to_priscillianism_holy_site = {
		filter = owned
		ai_target_filter = self
	
		only_playable = yes
		
		from_potential = {
			ai = no
			NOT = { trait = incapable }
			NOT = { secret_religion = priscillianism }
			NOT = { religion = priscillianism }
			NOT = { controls_religion = yes }
		}
		
		potential = {
			tier = COUNT
			NOT = {
				location = { religion = priscillianism }
			}
			OR = {
				is_holy_site = priscillianism
				any_de_jure_vassal_title = {
					is_holy_site = priscillianism
				}
			}
			OR = {
				holder_scope = {
					character = FROM
				}
				AND = {
					tier = BARON
					holder_scope = {
						liege = {
							character = FROM
						}
					}
				}
			}
		}
		
		allow = {
			FROM = {
				piety = 250
				prisoner = no
				NOT = { trait = incapable }
				NOT = { is_inaccessible_trigger = yes }
				NOT = { society_member_of = secret_religious_cult }
			}
		}
		
		effect = {
			FROM = {
				piety = -250
				set_secret_religion = priscillianism
			}
		}
		
		
		
		ai_will_do = {
			factor = 0
		}
	}
	secretly_convert_to_islamic_holy_site = {
		filter = owned
		ai_target_filter = self
	
		only_playable = yes
		
		from_potential = {
			ai = no
			NOT = { trait = incapable }
			NOT = { secret_religion = islamic }
			OR = {
				has_global_flag = bedouin_arabic_arrived
				has_global_flag = birth_of_islam
			}
			NOT = { religion = islamic }
			NOT = { controls_religion = yes }
		}
		
		potential = {
			tier = COUNT
			NOT = {
				location = { religion = islamic }
			}
			OR = {
				is_holy_site = islamic
				any_de_jure_vassal_title = {
					is_holy_site = islamic
				}
			}
			OR = {
				holder_scope = {
					character = FROM
				}
				AND = {
					tier = BARON
					holder_scope = {
						liege = {
							character = FROM
						}
					}
				}
			}
		}
		
		allow = {
			FROM = {
				piety = 250
				prisoner = no
				NOT = { trait = incapable }
				NOT = { is_inaccessible_trigger = yes }
				NOT = { society_member_of = secret_religious_cult }
			}
		}
		
		effect = {
			FROM = {
				piety = -250
				set_secret_religion = islamic
			}
		}
		
		
		
		ai_will_do = {
			factor = 0
		}
	}
	secretly_convert_to_abadites_holy_site = {
		filter = owned
		ai_target_filter = self
	
		only_playable = yes
		
		from_potential = {
			ai = no
			NOT = { trait = incapable }
			NOT = { secret_religion = abadites }
			NOT = { religion = abadites }
			NOT = { controls_religion = yes }
		}
		
		potential = {
			tier = COUNT
			NOT = {
				location = { religion = abadites }
			}
			OR = {
				is_holy_site = abadites
				any_de_jure_vassal_title = {
					is_holy_site = abadites
				}
			}
			OR = {
				holder_scope = {
					character = FROM
				}
				AND = {
					tier = BARON
					holder_scope = {
						liege = {
							character = FROM
						}
					}
				}
			}
		}
		
		allow = {
			FROM = {
				piety = 250
				prisoner = no
				NOT = { trait = incapable }
				NOT = { is_inaccessible_trigger = yes }
				NOT = { society_member_of = secret_religious_cult }
			}
		}
		
		effect = {
			FROM = {
				piety = -250
				set_secret_religion = abadites
			}
		}
		
		
		
		ai_will_do = {
			factor = 0
		}
	}
	secretly_convert_to_quranism_holy_site = {
		filter = owned
		ai_target_filter = self
	
		only_playable = yes
		
		from_potential = {
			ai = no
			NOT = { trait = incapable }
			NOT = { secret_religion = quranism }
			OR = {
				has_global_flag = bedouin_arabic_arrived
				has_global_flag = birth_of_islam
			}
			NOT = { religion = quranism }
			NOT = { controls_religion = yes }
		}
		
		potential = {
			tier = COUNT
			NOT = {
				location = { religion = quranism }
			}
			OR = {
				is_holy_site = quranism
				any_de_jure_vassal_title = {
					is_holy_site = quranism
				}
			}
			OR = {
				holder_scope = {
					character = FROM
				}
				AND = {
					tier = BARON
					holder_scope = {
						liege = {
							character = FROM
						}
					}
				}
			}
		}
		
		allow = {
			FROM = {
				piety = 250
				prisoner = no
				NOT = { trait = incapable }
				NOT = { is_inaccessible_trigger = yes }
				NOT = { society_member_of = secret_religious_cult }
			}
		}
		
		effect = {
			FROM = {
				piety = -250
				set_secret_religion = quranism
			}
		}
		
		
		
		ai_will_do = {
			factor = 0
		}
	}
	secretly_convert_to_qadariyya_holy_site = {
		filter = owned
		ai_target_filter = self
	
		only_playable = yes
		
		from_potential = {
			ai = no
			NOT = { trait = incapable }
			NOT = { secret_religion = qadariyya }
			OR = {
				has_global_flag = bedouin_arabic_arrived
				has_global_flag = birth_of_islam
			}
			NOT = { religion = qadariyya }
			NOT = { controls_religion = yes }
		}
		
		potential = {
			tier = COUNT
			NOT = {
				location = { religion = qadariyya }
			}
			OR = {
				is_holy_site = qadariyya
				any_de_jure_vassal_title = {
					is_holy_site = qadariyya
				}
			}
			OR = {
				holder_scope = {
					character = FROM
				}
				AND = {
					tier = BARON
					holder_scope = {
						liege = {
							character = FROM
						}
					}
				}
			}
		}
		
		allow = {
			FROM = {
				piety = 250
				prisoner = no
				NOT = { trait = incapable }
				NOT = { is_inaccessible_trigger = yes }
				NOT = { society_member_of = secret_religious_cult }
			}
		}
		
		effect = {
			FROM = {
				piety = -250
				set_secret_religion = qadariyya
			}
		}
		
		
		
		ai_will_do = {
			factor = 0
		}
	}
	secretly_convert_to_khawariji_holy_site = {
		filter = owned
		ai_target_filter = self
	
		only_playable = yes
		
		from_potential = {
			ai = no
			NOT = { trait = incapable }
			NOT = { secret_religion = khawariji }
			OR = {
				has_global_flag = bedouin_arabic_arrived
				has_global_flag = birth_of_islam
			}
			NOT = { religion = khawariji }
			NOT = { controls_religion = yes }
		}
		
		potential = {
			tier = COUNT
			NOT = {
				location = { religion = khawariji }
			}
			OR = {
				is_holy_site = khawariji
				any_de_jure_vassal_title = {
					is_holy_site = khawariji
				}
			}
			OR = {
				holder_scope = {
					character = FROM
				}
				AND = {
					tier = BARON
					holder_scope = {
						liege = {
							character = FROM
						}
					}
				}
			}
		}
		
		allow = {
			FROM = {
				piety = 250
				prisoner = no
				NOT = { trait = incapable }
				NOT = { is_inaccessible_trigger = yes }
				NOT = { society_member_of = secret_religious_cult }
			}
		}
		
		effect = {
			FROM = {
				piety = -250
				set_secret_religion = khawariji
			}
		}
		
		
		
		ai_will_do = {
			factor = 0
		}
	}
	secretly_convert_to_haruriyyah_holy_site = {
		filter = owned
		ai_target_filter = self
	
		only_playable = yes
		
		from_potential = {
			ai = no
			NOT = { trait = incapable }
			NOT = { secret_religion = haruriyyah }
			OR = {
				has_global_flag = bedouin_arabic_arrived
				has_global_flag = birth_of_islam
			}
			NOT = { religion = haruriyyah }
			NOT = { controls_religion = yes }
		}
		
		potential = {
			tier = COUNT
			NOT = {
				location = { religion = haruriyyah }
			}
			OR = {
				is_holy_site = haruriyyah
				any_de_jure_vassal_title = {
					is_holy_site = haruriyyah
				}
			}
			OR = {
				holder_scope = {
					character = FROM
				}
				AND = {
					tier = BARON
					holder_scope = {
						liege = {
							character = FROM
						}
					}
				}
			}
		}
		
		allow = {
			FROM = {
				piety = 250
				prisoner = no
				NOT = { trait = incapable }
				NOT = { is_inaccessible_trigger = yes }
				NOT = { society_member_of = secret_religious_cult }
			}
		}
		
		effect = {
			FROM = {
				piety = -250
				set_secret_religion = haruriyyah
			}
		}
		
		
		
		ai_will_do = {
			factor = 0
		}
	}
	secretly_convert_to_mahdi_holy_site = {
		filter = owned
		ai_target_filter = self
	
		only_playable = yes
		
		from_potential = {
			ai = no
			NOT = { trait = incapable }
			NOT = { secret_religion = mahdi }
			OR = {
				has_global_flag = bedouin_arabic_arrived
				has_global_flag = birth_of_islam
			}
			NOT = { religion = mahdi }
			NOT = { controls_religion = yes }
		}
		
		potential = {
			tier = COUNT
			NOT = {
				location = { religion = mahdi }
			}
			OR = {
				is_holy_site = mahdi
				any_de_jure_vassal_title = {
					is_holy_site = mahdi
				}
			}
			OR = {
				holder_scope = {
					character = FROM
				}
				AND = {
					tier = BARON
					holder_scope = {
						liege = {
							character = FROM
						}
					}
				}
			}
		}
		
		allow = {
			FROM = {
				piety = 250
				prisoner = no
				NOT = { trait = incapable }
				NOT = { is_inaccessible_trigger = yes }
				NOT = { society_member_of = secret_religious_cult }
			}
		}
		
		effect = {
			FROM = {
				piety = -250
				set_secret_religion = mahdi
			}
		}
		
		
		
		ai_will_do = {
			factor = 0
		}
	}
	secretly_convert_to_twelver_holy_site = {
		filter = owned
		ai_target_filter = self
	
		only_playable = yes
		
		from_potential = {
			ai = no
			NOT = { trait = incapable }
			NOT = { secret_religion = twelver }
			OR = {
				has_global_flag = bedouin_arabic_arrived
				has_global_flag = birth_of_islam
			}
			NOT = { religion = twelver }
			NOT = { controls_religion = yes }
		}
		
		potential = {
			tier = COUNT
			NOT = {
				location = { religion = twelver }
			}
			OR = {
				is_holy_site = twelver
				any_de_jure_vassal_title = {
					is_holy_site = twelver
				}
			}
			OR = {
				holder_scope = {
					character = FROM
				}
				AND = {
					tier = BARON
					holder_scope = {
						liege = {
							character = FROM
						}
					}
				}
			}
		}
		
		allow = {
			FROM = {
				piety = 250
				prisoner = no
				NOT = { trait = incapable }
				NOT = { is_inaccessible_trigger = yes }
				NOT = { society_member_of = secret_religious_cult }
			}
		}
		
		effect = {
			FROM = {
				piety = -250
				set_secret_religion = twelver
			}
		}
		
		
		
		ai_will_do = {
			factor = 0
		}
	}
	secretly_convert_to_zayid_holy_site = {
		filter = owned
		ai_target_filter = self
	
		only_playable = yes
		
		from_potential = {
			ai = no
			NOT = { trait = incapable }
			NOT = { secret_religion = zayid }
			OR = {
				has_global_flag = bedouin_arabic_arrived
				has_global_flag = birth_of_islam
			}
			NOT = { religion = zayid }
			NOT = { controls_religion = yes }
		}
		
		potential = {
			tier = COUNT
			NOT = {
				location = { religion = zayid }
			}
			OR = {
				is_holy_site = zayid
				any_de_jure_vassal_title = {
					is_holy_site = zayid
				}
			}
			OR = {
				holder_scope = {
					character = FROM
				}
				AND = {
					tier = BARON
					holder_scope = {
						liege = {
							character = FROM
						}
					}
				}
			}
		}
		
		allow = {
			FROM = {
				piety = 250
				prisoner = no
				NOT = { trait = incapable }
				NOT = { is_inaccessible_trigger = yes }
				NOT = { society_member_of = secret_religious_cult }
			}
		}
		
		effect = {
			FROM = {
				piety = -250
				set_secret_religion = zayid
			}
		}
		
		
		
		ai_will_do = {
			factor = 0
		}
	}
	secretly_convert_to_ismaili_holy_site = {
		filter = owned
		ai_target_filter = self
	
		only_playable = yes
		
		from_potential = {
			ai = no
			NOT = { trait = incapable }
			NOT = { secret_religion = ismaili }
			OR = {
				has_global_flag = bedouin_arabic_arrived
				has_global_flag = birth_of_islam
			}
			NOT = { religion = ismaili }
			NOT = { controls_religion = yes }
		}
		
		potential = {
			tier = COUNT
			NOT = {
				location = { religion = ismaili }
			}
			OR = {
				is_holy_site = ismaili
				any_de_jure_vassal_title = {
					is_holy_site = ismaili
				}
			}
			OR = {
				holder_scope = {
					character = FROM
				}
				AND = {
					tier = BARON
					holder_scope = {
						liege = {
							character = FROM
						}
					}
				}
			}
		}
		
		allow = {
			FROM = {
				piety = 250
				prisoner = no
				NOT = { trait = incapable }
				NOT = { is_inaccessible_trigger = yes }
				NOT = { society_member_of = secret_religious_cult }
			}
		}
		
		effect = {
			FROM = {
				piety = -250
				set_secret_religion = ismaili
			}
		}
		
		
		
		ai_will_do = {
			factor = 0
		}
	}
	secretly_convert_to_uwaisi_holy_site = {
		filter = owned
		ai_target_filter = self
	
		only_playable = yes
		
		from_potential = {
			ai = no
			NOT = { trait = incapable }
			NOT = { secret_religion = uwaisi }
			OR = {
				has_global_flag = bedouin_arabic_arrived
				has_global_flag = birth_of_islam
			}
			NOT = { religion = uwaisi }
			NOT = { controls_religion = yes }
		}
		
		potential = {
			tier = COUNT
			NOT = {
				location = { religion = uwaisi }
			}
			OR = {
				is_holy_site = uwaisi
				any_de_jure_vassal_title = {
					is_holy_site = uwaisi
				}
			}
			OR = {
				holder_scope = {
					character = FROM
				}
				AND = {
					tier = BARON
					holder_scope = {
						liege = {
							character = FROM
						}
					}
				}
			}
		}
		
		allow = {
			FROM = {
				piety = 250
				prisoner = no
				NOT = { trait = incapable }
				NOT = { is_inaccessible_trigger = yes }
				NOT = { society_member_of = secret_religious_cult }
			}
		}
		
		effect = {
			FROM = {
				piety = -250
				set_secret_religion = uwaisi
			}
		}
		
		
		
		ai_will_do = {
			factor = 0
		}
	}
	secretly_convert_to_qarmatian_holy_site = {
		filter = owned
		ai_target_filter = self
	
		only_playable = yes
		
		from_potential = {
			ai = no
			NOT = { trait = incapable }
			NOT = { secret_religion = qarmatian }
			OR = {
				has_global_flag = bedouin_arabic_arrived
				has_global_flag = birth_of_islam
			}
			NOT = { religion = qarmatian }
			NOT = { controls_religion = yes }
		}
		
		potential = {
			tier = COUNT
			NOT = {
				location = { religion = qarmatian }
			}
			OR = {
				is_holy_site = qarmatian
				any_de_jure_vassal_title = {
					is_holy_site = qarmatian
				}
			}
			OR = {
				holder_scope = {
					character = FROM
				}
				AND = {
					tier = BARON
					holder_scope = {
						liege = {
							character = FROM
						}
					}
				}
			}
		}
		
		allow = {
			FROM = {
				piety = 250
				prisoner = no
				NOT = { trait = incapable }
				NOT = { is_inaccessible_trigger = yes }
				NOT = { society_member_of = secret_religious_cult }
			}
		}
		
		effect = {
			FROM = {
				piety = -250
				set_secret_religion = qarmatian
			}
		}
		
		
		
		ai_will_do = {
			factor = 0
		}
	}
	secretly_convert_to_root_west_pagan_holy_site = {
		filter = owned
		ai_target_filter = self
	
		only_playable = yes
		
		from_potential = {
			ai = no
			NOT = { trait = incapable }
			NOT = { secret_religion = root_west_pagan }
			NOT = { religion = root_west_pagan }
			NOT = { controls_religion = yes }
		}
		
		potential = {
			tier = COUNT
			NOT = {
				location = { religion = root_west_pagan }
			}
			OR = {
				is_holy_site = root_west_pagan
				any_de_jure_vassal_title = {
					is_holy_site = root_west_pagan
				}
			}
			OR = {
				holder_scope = {
					character = FROM
				}
				AND = {
					tier = BARON
					holder_scope = {
						liege = {
							character = FROM
						}
					}
				}
			}
		}
		
		allow = {
			FROM = {
				piety = 250
				prisoner = no
				NOT = { trait = incapable }
				NOT = { is_inaccessible_trigger = yes }
				NOT = { society_member_of = secret_religious_cult }
			}
		}
		
		effect = {
			FROM = {
				piety = -250
				set_secret_religion = root_west_pagan
			}
		}
		
		
		
		ai_will_do = {
			factor = 0
		}
	}
	secretly_convert_to_root_west_pagan_reformed_holy_site = {
		filter = owned
		ai_target_filter = self
	
		only_playable = yes
		
		from_potential = {
			ai = no
			NOT = { trait = incapable }
			NOT = { secret_religion = root_west_pagan_reformed }
			has_global_flag = root_west_reformation
			NOT = { religion = root_west_pagan_reformed }
			NOT = { controls_religion = yes }
		}
		
		potential = {
			tier = COUNT
			NOT = {
				location = { religion = root_west_pagan_reformed }
			}
			OR = {
				is_holy_site = root_west_pagan_reformed
				any_de_jure_vassal_title = {
					is_holy_site = root_west_pagan_reformed
				}
			}
			OR = {
				holder_scope = {
					character = FROM
				}
				AND = {
					tier = BARON
					holder_scope = {
						liege = {
							character = FROM
						}
					}
				}
			}
		}
		
		allow = {
			FROM = {
				piety = 250
				prisoner = no
				NOT = { trait = incapable }
				NOT = { is_inaccessible_trigger = yes }
				NOT = { society_member_of = secret_religious_cult }
			}
		}
		
		effect = {
			FROM = {
				piety = -250
				set_secret_religion = root_west_pagan_reformed
			}
		}
		
		
		
		ai_will_do = {
			factor = 0
		}
	}
	secretly_convert_to_sanamahi_holy_site = {
		filter = owned
		ai_target_filter = self
	
		only_playable = yes
		
		from_potential = {
			ai = no
			NOT = { trait = incapable }
			NOT = { secret_religion = sanamahi }
			NOT = { religion = sanamahi }
			NOT = { controls_religion = yes }
		}
		
		potential = {
			tier = COUNT
			NOT = {
				location = { religion = sanamahi }
			}
			OR = {
				is_holy_site = sanamahi
				any_de_jure_vassal_title = {
					is_holy_site = sanamahi
				}
			}
			OR = {
				holder_scope = {
					character = FROM
				}
				AND = {
					tier = BARON
					holder_scope = {
						liege = {
							character = FROM
						}
					}
				}
			}
		}
		
		allow = {
			FROM = {
				piety = 250
				prisoner = no
				NOT = { trait = incapable }
				NOT = { is_inaccessible_trigger = yes }
				NOT = { society_member_of = secret_religious_cult }
			}
		}
		
		effect = {
			FROM = {
				piety = -250
				set_secret_religion = sanamahi
			}
		}
		
		
		
		ai_will_do = {
			factor = 0
		}
	}
	secretly_convert_to_sanamahi_reformed_holy_site = {
		filter = owned
		ai_target_filter = self
	
		only_playable = yes
		
		from_potential = {
			ai = no
			NOT = { trait = incapable }
			NOT = { secret_religion = sanamahi_reformed }
			has_global_flag = sanamahi_reformation
			NOT = { religion = sanamahi_reformed }
			NOT = { controls_religion = yes }
		}
		
		potential = {
			tier = COUNT
			NOT = {
				location = { religion = sanamahi_reformed }
			}
			OR = {
				is_holy_site = sanamahi_reformed
				any_de_jure_vassal_title = {
					is_holy_site = sanamahi_reformed
				}
			}
			OR = {
				holder_scope = {
					character = FROM
				}
				AND = {
					tier = BARON
					holder_scope = {
						liege = {
							character = FROM
						}
					}
				}
			}
		}
		
		allow = {
			FROM = {
				piety = 250
				prisoner = no
				NOT = { trait = incapable }
				NOT = { is_inaccessible_trigger = yes }
				NOT = { society_member_of = secret_religious_cult }
			}
		}
		
		effect = {
			FROM = {
				piety = -250
				set_secret_religion = sanamahi_reformed
			}
		}
		
		
		
		ai_will_do = {
			factor = 0
		}
	}
	secretly_convert_to_georgian_pagan_holy_site = {
		filter = owned
		ai_target_filter = self
	
		only_playable = yes
		
		from_potential = {
			ai = no
			NOT = { trait = incapable }
			NOT = { secret_religion = georgian_pagan }
			NOT = { religion = georgian_pagan }
			NOT = { controls_religion = yes }
		}
		
		potential = {
			tier = COUNT
			NOT = {
				location = { religion = georgian_pagan }
			}
			OR = {
				is_holy_site = georgian_pagan
				any_de_jure_vassal_title = {
					is_holy_site = georgian_pagan
				}
			}
			OR = {
				holder_scope = {
					character = FROM
				}
				AND = {
					tier = BARON
					holder_scope = {
						liege = {
							character = FROM
						}
					}
				}
			}
		}
		
		allow = {
			FROM = {
				piety = 250
				prisoner = no
				NOT = { trait = incapable }
				NOT = { is_inaccessible_trigger = yes }
				NOT = { society_member_of = secret_religious_cult }
			}
		}
		
		effect = {
			FROM = {
				piety = -250
				set_secret_religion = georgian_pagan
			}
		}
		
		
		
		ai_will_do = {
			factor = 0
		}
	}
	secretly_convert_to_georgian_pagan_reformed_holy_site = {
		filter = owned
		ai_target_filter = self
	
		only_playable = yes
		
		from_potential = {
			ai = no
			NOT = { trait = incapable }
			NOT = { secret_religion = georgian_pagan_reformed }
			NOT = { religion = georgian_pagan_reformed }
			NOT = { controls_religion = yes }
		}
		
		potential = {
			tier = COUNT
			NOT = {
				location = { religion = georgian_pagan_reformed }
			}
			OR = {
				is_holy_site = georgian_pagan_reformed
				any_de_jure_vassal_title = {
					is_holy_site = georgian_pagan_reformed
				}
			}
			OR = {
				holder_scope = {
					character = FROM
				}
				AND = {
					tier = BARON
					holder_scope = {
						liege = {
							character = FROM
						}
					}
				}
			}
		}
		
		allow = {
			FROM = {
				piety = 250
				prisoner = no
				NOT = { trait = incapable }
				NOT = { is_inaccessible_trigger = yes }
				NOT = { society_member_of = secret_religious_cult }
			}
		}
		
		effect = {
			FROM = {
				piety = -250
				set_secret_religion = georgian_pagan_reformed
			}
		}
		
		ai_will_do = {
			factor = 0
		}
	}
	secretly_convert_to_illyran_pagan_holy_site = {
		filter = owned
		ai_target_filter = self
	
		only_playable = yes
		
		from_potential = {
			ai = no
			NOT = { trait = incapable }
			NOT = { secret_religion = illyran_pagan }
			NOT = { religion = illyran_pagan }
			NOT = { controls_religion = yes }
		}
		
		potential = {
			tier = COUNT
			NOT = {
				location = { religion = illyran_pagan }
			}
			OR = {
				is_holy_site = illyran_pagan
				any_de_jure_vassal_title = {
					is_holy_site = illyran_pagan
				}
			}
			OR = {
				holder_scope = {
					character = FROM
				}
				AND = {
					tier = BARON
					holder_scope = {
						liege = {
							character = FROM
						}
					}
				}
			}
		}
		
		allow = {
			FROM = {
				piety = 250
				prisoner = no
				NOT = { trait = incapable }
				NOT = { is_inaccessible_trigger = yes }
				NOT = { society_member_of = secret_religious_cult }
			}
		}
		
		effect = {
			FROM = {
				piety = -250
				set_secret_religion = illyran_pagan
			}
		}
		
		
		
		ai_will_do = {
			factor = 0
		}
	}
	secretly_convert_to_illyran_pagan_reformed_holy_site = {
		filter = owned
		ai_target_filter = self
	
		only_playable = yes
		
		from_potential = {
			ai = no
			NOT = { trait = incapable }
			NOT = { secret_religion = illyran_pagan_reformed }
			NOT = { religion = illyran_pagan_reformed }
			NOT = { controls_religion = yes }
		}
		
		potential = {
			tier = COUNT
			NOT = {
				location = { religion = illyran_pagan_reformed }
			}
			OR = {
				is_holy_site = illyran_pagan_reformed
				any_de_jure_vassal_title = {
					is_holy_site = illyran_pagan_reformed
				}
			}
			OR = {
				holder_scope = {
					character = FROM
				}
				AND = {
					tier = BARON
					holder_scope = {
						liege = {
							character = FROM
						}
					}
				}
			}
		}
		
		allow = {
			FROM = {
				piety = 250
				prisoner = no
				NOT = { trait = incapable }
				NOT = { is_inaccessible_trigger = yes }
				NOT = { society_member_of = secret_religious_cult }
			}
		}
		
		effect = {
			FROM = {
				piety = -250
				set_secret_religion = illyran_pagan_reformed
			}
		}
		
		
		
		ai_will_do = {
			factor = 0
		}
	}
	secretly_convert_to_germanic_pagan_holy_site = {
		filter = owned
		ai_target_filter = self
	
		only_playable = yes
		
		from_potential = {
			ai = no
			NOT = { trait = incapable }
			NOT = { secret_religion = germanic_pagan }
			NOT = { religion = germanic_pagan }
			NOT = { controls_religion = yes }
		}
		
		potential = {
			tier = COUNT
			NOT = {
				location = { religion = germanic_pagan }
			}
			OR = {
				is_holy_site = germanic_pagan
				any_de_jure_vassal_title = {
					is_holy_site = germanic_pagan
				}
			}
			OR = {
				holder_scope = {
					character = FROM
				}
				AND = {
					tier = BARON
					holder_scope = {
						liege = {
							character = FROM
						}
					}
				}
			}
		}
		
		allow = {
			FROM = {
				piety = 250
				prisoner = no
				NOT = { trait = incapable }
				NOT = { is_inaccessible_trigger = yes }
				NOT = { society_member_of = secret_religious_cult }
			}
		}
		
		effect = {
			FROM = {
				piety = -250
				set_secret_religion = germanic_pagan
			}
		}
		
		
		
		ai_will_do = {
			factor = 0
		}
	}
	secretly_convert_to_germanic_pagan_reformed_holy_site = {
		filter = owned
		ai_target_filter = self
	
		only_playable = yes
		
		from_potential = {
			ai = no
			NOT = { trait = incapable }
			NOT = { secret_religion = germanic_pagan_reformed }
			has_global_flag = germanic_reformation
			NOT = { religion = germanic_pagan_reformed }
			NOT = { controls_religion = yes }
		}
		
		potential = {
			tier = COUNT
			NOT = {
				location = { religion = germanic_pagan_reformed }
			}
			OR = {
				is_holy_site = germanic_pagan_reformed
				any_de_jure_vassal_title = {
					is_holy_site = germanic_pagan_reformed
				}
			}
			OR = {
				holder_scope = {
					character = FROM
				}
				AND = {
					tier = BARON
					holder_scope = {
						liege = {
							character = FROM
						}
					}
				}
			}
		}
		
		allow = {
			FROM = {
				piety = 250
				prisoner = no
				NOT = { trait = incapable }
				NOT = { is_inaccessible_trigger = yes }
				NOT = { society_member_of = secret_religious_cult }
			}
		}
		
		effect = {
			FROM = {
				piety = -250
				set_secret_religion = germanic_pagan_reformed
			}
		}
		
		
		
		ai_will_do = {
			factor = 0
		}
	}
	secretly_convert_to_west_pagan_holy_site = {
		filter = owned
		ai_target_filter = self
	
		only_playable = yes
		
		from_potential = {
			ai = no
			NOT = { trait = incapable }
			NOT = { secret_religion = west_pagan }
			always = no # Wodenic is unused
			NOT = { religion = west_pagan }
			NOT = { controls_religion = yes }
		}
		
		potential = {
			tier = COUNT
			NOT = {
				location = { religion = west_pagan }
			}
			OR = {
				is_holy_site = west_pagan
				any_de_jure_vassal_title = {
					is_holy_site = west_pagan
				}
			}
			OR = {
				holder_scope = {
					character = FROM
				}
				AND = {
					tier = BARON
					holder_scope = {
						liege = {
							character = FROM
						}
					}
				}
			}
		}
		
		allow = {
			FROM = {
				piety = 250
				prisoner = no
				NOT = { trait = incapable }
				NOT = { is_inaccessible_trigger = yes }
				NOT = { society_member_of = secret_religious_cult }
			}
		}
		
		effect = {
			FROM = {
				piety = -250
				set_secret_religion = west_pagan
			}
		}
		
		
		
		ai_will_do = {
			factor = 0
		}
	}
	secretly_convert_to_scythian_pagan_holy_site = {
		filter = owned
		ai_target_filter = self
	
		only_playable = yes
		
		from_potential = {
			ai = no
			NOT = { trait = incapable }
			NOT = { secret_religion = scythian_pagan }
			NOT = { religion = scythian_pagan }
			NOT = { controls_religion = yes }
		}
		
		potential = {
			tier = COUNT
			NOT = {
				location = { religion = scythian_pagan }
			}
			OR = {
				is_holy_site = scythian_pagan
				any_de_jure_vassal_title = {
					is_holy_site = scythian_pagan
				}
			}
			OR = {
				holder_scope = {
					character = FROM
				}
				AND = {
					tier = BARON
					holder_scope = {
						liege = {
							character = FROM
						}
					}
				}
			}
		}
		
		allow = {
			FROM = {
				piety = 250
				prisoner = no
				NOT = { trait = incapable }
				NOT = { is_inaccessible_trigger = yes }
				NOT = { society_member_of = secret_religious_cult }
			}
		}
		
		effect = {
			FROM = {
				piety = -250
				set_secret_religion = scythian_pagan
			}
		}
		
		
		
		ai_will_do = {
			factor = 0
		}
	}
	secretly_convert_to_scythian_pagan_reformed_holy_site = {
		filter = owned
		ai_target_filter = self
	
		only_playable = yes
		
		from_potential = {
			ai = no
			NOT = { trait = incapable }
			NOT = { secret_religion = scythian_pagan_reformed }
			has_global_flag = scythian_reformation
			NOT = { religion = scythian_pagan_reformed }
			NOT = { controls_religion = yes }
		}
		
		potential = {
			tier = COUNT
			NOT = {
				location = { religion = scythian_pagan_reformed }
			}
			OR = {
				is_holy_site = scythian_pagan_reformed
				any_de_jure_vassal_title = {
					is_holy_site = scythian_pagan_reformed
				}
			}
			OR = {
				holder_scope = {
					character = FROM
				}
				AND = {
					tier = BARON
					holder_scope = {
						liege = {
							character = FROM
						}
					}
				}
			}
		}
		
		allow = {
			FROM = {
				piety = 250
				prisoner = no
				NOT = { trait = incapable }
				NOT = { is_inaccessible_trigger = yes }
				NOT = { society_member_of = secret_religious_cult }
			}
		}
		
		effect = {
			FROM = {
				piety = -250
				set_secret_religion = scythian_pagan_reformed
			}
		}
		
		
		
		ai_will_do = {
			factor = 0
		}
	}
	secretly_convert_to_semitic_pagan_holy_site = {
		filter = owned
		ai_target_filter = self
	
		only_playable = yes
		
		from_potential = {
			ai = no
			NOT = { trait = incapable }
			NOT = { secret_religion = semitic_pagan }
			NOT = { religion = semitic_pagan }
			NOT = { controls_religion = yes }
		}
		
		potential = {
			tier = COUNT
			NOT = {
				location = { religion = semitic_pagan }
			}
			OR = {
				is_holy_site = semitic_pagan
				any_de_jure_vassal_title = {
					is_holy_site = semitic_pagan
				}
			}
			OR = {
				holder_scope = {
					character = FROM
				}
				AND = {
					tier = BARON
					holder_scope = {
						liege = {
							character = FROM
						}
					}
				}
			}
		}
		
		allow = {
			FROM = {
				piety = 250
				prisoner = no
				NOT = { trait = incapable }
				NOT = { is_inaccessible_trigger = yes }
				NOT = { society_member_of = secret_religious_cult }
			}
		}
		
		effect = {
			FROM = {
				piety = -250
				set_secret_religion = semitic_pagan
			}
		}
		
		
		
		ai_will_do = {
			factor = 0
		}
	}
	secretly_convert_to_semitic_pagan_reformed_holy_site = {
		filter = owned
		ai_target_filter = self
	
		only_playable = yes
		
		from_potential = {
			ai = no
			NOT = { trait = incapable }
			NOT = { secret_religion = semitic_pagan_reformed }
			has_global_flag = semitic_reformation
			NOT = { religion = semitic_pagan_reformed }
			NOT = { controls_religion = yes }
		}
		
		potential = {
			tier = COUNT
			NOT = {
				location = { religion = semitic_pagan_reformed }
			}
			OR = {
				is_holy_site = semitic_pagan_reformed
				any_de_jure_vassal_title = {
					is_holy_site = semitic_pagan_reformed
				}
			}
			OR = {
				holder_scope = {
					character = FROM
				}
				AND = {
					tier = BARON
					holder_scope = {
						liege = {
							character = FROM
						}
					}
				}
			}
		}
		
		allow = {
			FROM = {
				piety = 250
				prisoner = no
				NOT = { trait = incapable }
				NOT = { is_inaccessible_trigger = yes }
				NOT = { society_member_of = secret_religious_cult }
			}
		}
		
		effect = {
			FROM = {
				piety = -250
				set_secret_religion = semitic_pagan_reformed
			}
		}
		
		
		
		ai_will_do = {
			factor = 0
		}
	}
	secretly_convert_to_dravidian_pagan_holy_site = {
		filter = owned
		ai_target_filter = self
	
		only_playable = yes
		
		from_potential = {
			ai = no
			NOT = { trait = incapable }
			NOT = { secret_religion = dravidian_pagan }
			NOT = { religion = dravidian_pagan }
			NOT = { controls_religion = yes }
		}
		
		potential = {
			tier = COUNT
			NOT = {
				location = { religion = dravidian_pagan }
			}
			OR = {
				is_holy_site = dravidian_pagan
				any_de_jure_vassal_title = {
					is_holy_site = dravidian_pagan
				}
			}
			OR = {
				holder_scope = {
					character = FROM
				}
				AND = {
					tier = BARON
					holder_scope = {
						liege = {
							character = FROM
						}
					}
				}
			}
		}
		
		allow = {
			FROM = {
				piety = 250
				prisoner = no
				NOT = { trait = incapable }
				NOT = { is_inaccessible_trigger = yes }
				NOT = { society_member_of = secret_religious_cult }
			}
		}
		
		effect = {
			FROM = {
				piety = -250
				set_secret_religion = dravidian_pagan
			}
		}
		
		
		
		ai_will_do = {
			factor = 0
		}
	}
	secretly_convert_to_dravidian_pagan_reformed_holy_site = {
		filter = owned
		ai_target_filter = self
	
		only_playable = yes
		
		from_potential = {
			ai = no
			NOT = { trait = incapable }
			NOT = { secret_religion = dravidian_pagan_reformed }
			has_global_flag = dravidian_reformation
			NOT = { religion = dravidian_pagan_reformed }
			NOT = { controls_religion = yes }
		}
		
		potential = {
			tier = COUNT
			NOT = {
				location = { religion = dravidian_pagan_reformed }
			}
			OR = {
				is_holy_site = dravidian_pagan_reformed
				any_de_jure_vassal_title = {
					is_holy_site = dravidian_pagan_reformed
				}
			}
			OR = {
				holder_scope = {
					character = FROM
				}
				AND = {
					tier = BARON
					holder_scope = {
						liege = {
							character = FROM
						}
					}
				}
			}
		}
		
		allow = {
			FROM = {
				piety = 250
				prisoner = no
				NOT = { trait = incapable }
				NOT = { is_inaccessible_trigger = yes }
				NOT = { society_member_of = secret_religious_cult }
			}
		}
		
		effect = {
			FROM = {
				piety = -250
				set_secret_religion = dravidian_pagan_reformed
			}
		}
		
		
		
		ai_will_do = {
			factor = 0
		}
	}
	secretly_convert_to_central_african_pagan_holy_site = {
		filter = owned
		ai_target_filter = self
	
		only_playable = yes
		
		from_potential = {
			ai = no
			NOT = { trait = incapable }
			NOT = { secret_religion = central_african_pagan }
			NOT = { religion = central_african_pagan }
			NOT = { controls_religion = yes }
		}
		
		potential = {
			tier = COUNT
			NOT = {
				location = { religion = central_african_pagan }
			}
			OR = {
				is_holy_site = central_african_pagan
				any_de_jure_vassal_title = {
					is_holy_site = central_african_pagan
				}
			}
			OR = {
				holder_scope = {
					character = FROM
				}
				AND = {
					tier = BARON
					holder_scope = {
						liege = {
							character = FROM
						}
					}
				}
			}
		}
		
		allow = {
			FROM = {
				piety = 250
				prisoner = no
				NOT = { trait = incapable }
				NOT = { is_inaccessible_trigger = yes }
				NOT = { society_member_of = secret_religious_cult }
			}
		}
		
		effect = {
			FROM = {
				piety = -250
				set_secret_religion = central_african_pagan
			}
		}
		
		
		
		ai_will_do = {
			factor = 0
		}
	}
	secretly_convert_to_central_african_pagan_reformed_holy_site = {
		filter = owned
		ai_target_filter = self
	
		only_playable = yes
		
		from_potential = {
			ai = no
			NOT = { trait = incapable }
			NOT = { secret_religion = central_african_pagan_reformed }
			has_global_flag = central_african_reformation
			NOT = { religion = central_african_pagan_reformed }
			NOT = { controls_religion = yes }
		}
		
		potential = {
			tier = COUNT
			NOT = {
				location = { religion = central_african_pagan_reformed }
			}
			OR = {
				is_holy_site = central_african_pagan_reformed
				any_de_jure_vassal_title = {
					is_holy_site = central_african_pagan_reformed
				}
			}
			OR = {
				holder_scope = {
					character = FROM
				}
				AND = {
					tier = BARON
					holder_scope = {
						liege = {
							character = FROM
						}
					}
				}
			}
		}
		
		allow = {
			FROM = {
				piety = 250
				prisoner = no
				NOT = { trait = incapable }
				NOT = { is_inaccessible_trigger = yes }
				NOT = { society_member_of = secret_religious_cult }
			}
		}
		
		effect = {
			FROM = {
				piety = -250
				set_secret_religion = central_african_pagan_reformed
			}
		}
		
		
		
		ai_will_do = {
			factor = 0
		}
	}
	secretly_convert_to_gurzil_pagan_holy_site = {
		filter = owned
		ai_target_filter = self
	
		only_playable = yes
		
		from_potential = {
			ai = no
			NOT = { trait = incapable }
			NOT = { secret_religion = gurzil_pagan }
			NOT = { religion = gurzil_pagan }
			NOT = { controls_religion = yes }
		}
		
		potential = {
			tier = COUNT
			NOT = {
				location = { religion = gurzil_pagan }
			}
			OR = {
				is_holy_site = gurzil_pagan
				any_de_jure_vassal_title = {
					is_holy_site = gurzil_pagan
				}
			}
			OR = {
				holder_scope = {
					character = FROM
				}
				AND = {
					tier = BARON
					holder_scope = {
						liege = {
							character = FROM
						}
					}
				}
			}
		}
		
		allow = {
			FROM = {
				piety = 250
				prisoner = no
				NOT = { trait = incapable }
				NOT = { is_inaccessible_trigger = yes }
				NOT = { society_member_of = secret_religious_cult }
			}
		}
		
		effect = {
			FROM = {
				piety = -250
				set_secret_religion = gurzil_pagan
			}
		}
		
		
		
		ai_will_do = {
			factor = 0
		}
	}
	secretly_convert_to_msoura_pagan_holy_site = {
		filter = owned
		ai_target_filter = self
	
		only_playable = yes
		
		from_potential = {
			ai = no
			NOT = { trait = incapable }
			NOT = { secret_religion = msoura_pagan }
			NOT = { religion = msoura_pagan }
			NOT = { controls_religion = yes }
		}
		
		potential = {
			tier = COUNT
			NOT = {
				location = { religion = msoura_pagan }
			}
			OR = {
				is_holy_site = msoura_pagan
				any_de_jure_vassal_title = {
					is_holy_site = msoura_pagan
				}
			}
			OR = {
				holder_scope = {
					character = FROM
				}
				AND = {
					tier = BARON
					holder_scope = {
						liege = {
							character = FROM
						}
					}
				}
			}
		}
		
		allow = {
			FROM = {
				piety = 250
				prisoner = no
				NOT = { trait = incapable }
				NOT = { is_inaccessible_trigger = yes }
				NOT = { society_member_of = secret_religious_cult }
			}
		}
		
		effect = {
			FROM = {
				piety = -250
				set_secret_religion = msoura_pagan
			}
		}
		
		
		
		ai_will_do = {
			factor = 0
		}
	}
	secretly_convert_to_african_solar_pagan_holy_site = {
		filter = owned
		ai_target_filter = self
	
		only_playable = yes
		
		from_potential = {
			ai = no
			NOT = { trait = incapable }
			NOT = { secret_religion = african_solar_pagan }
			NOT = { religion = african_solar_pagan }
			NOT = { controls_religion = yes }
		}
		
		potential = {
			tier = COUNT
			NOT = {
				location = { religion = african_solar_pagan }
			}
			OR = {
				is_holy_site = african_solar_pagan
				any_de_jure_vassal_title = {
					is_holy_site = african_solar_pagan
				}
			}
			OR = {
				holder_scope = {
					character = FROM
				}
				AND = {
					tier = BARON
					holder_scope = {
						liege = {
							character = FROM
						}
					}
				}
			}
		}
		
		allow = {
			FROM = {
				piety = 250
				prisoner = no
				NOT = { trait = incapable }
				NOT = { is_inaccessible_trigger = yes }
				NOT = { society_member_of = secret_religious_cult }
			}
		}
		
		effect = {
			FROM = {
				piety = -250
				set_secret_religion = african_solar_pagan
			}
		}
		
		
		
		ai_will_do = {
			factor = 0
		}
	}
	secretly_convert_to_african_solar_pagan_reformed_holy_site = {
		filter = owned
		ai_target_filter = self
	
		only_playable = yes
		
		from_potential = {
			ai = no
			NOT = { trait = incapable }
			NOT = { secret_religion = african_solar_pagan_reformed }
			has_global_flag = african_solar_reformation
			NOT = { religion = african_solar_pagan_reformed }
			NOT = { controls_religion = yes }
		}
		
		potential = {
			tier = COUNT
			NOT = {
				location = { religion = african_solar_pagan_reformed }
			}
			OR = {
				is_holy_site = african_solar_pagan_reformed
				any_de_jure_vassal_title = {
					is_holy_site = african_solar_pagan_reformed
				}
			}
			OR = {
				holder_scope = {
					character = FROM
				}
				AND = {
					tier = BARON
					holder_scope = {
						liege = {
							character = FROM
						}
					}
				}
			}
		}
		
		allow = {
			FROM = {
				piety = 250
				prisoner = no
				NOT = { trait = incapable }
				NOT = { is_inaccessible_trigger = yes }
				NOT = { society_member_of = secret_religious_cult }
			}
		}
		
		effect = {
			FROM = {
				piety = -250
				set_secret_religion = african_solar_pagan_reformed
			}
		}
		
		
		
		ai_will_do = {
			factor = 0
		}
	}
	secretly_convert_to_latin_solar_pagan_holy_site = {
		filter = owned
		ai_target_filter = self
	
		only_playable = yes
		
		from_potential = {
			ai = no
			NOT = { trait = incapable }
			NOT = { secret_religion = latin_solar_pagan }
			NOT = { religion = latin_solar_pagan }
			NOT = { controls_religion = yes }
		}
		
		potential = {
			tier = COUNT
			NOT = {
				location = { religion = latin_solar_pagan }
			}
			OR = {
				is_holy_site = latin_solar_pagan
				any_de_jure_vassal_title = {
					is_holy_site = latin_solar_pagan
				}
			}
			OR = {
				holder_scope = {
					character = FROM
				}
				AND = {
					tier = BARON
					holder_scope = {
						liege = {
							character = FROM
						}
					}
				}
			}
		}
		
		allow = {
			FROM = {
				piety = 250
				prisoner = no
				NOT = { trait = incapable }
				NOT = { is_inaccessible_trigger = yes }
				NOT = { society_member_of = secret_religious_cult }
			}
		}
		
		effect = {
			FROM = {
				piety = -250
				set_secret_religion = latin_solar_pagan
			}
		}
		
		
		
		ai_will_do = {
			factor = 0
		}
	}
	secretly_convert_to_latin_solar_pagan_reformed_holy_site = {
		filter = owned
		ai_target_filter = self
	
		only_playable = yes
		
		from_potential = {
			ai = no
			NOT = { trait = incapable }
			NOT = { secret_religion = latin_solar_pagan_reformed }
			has_global_flag = latin_solar_reformation
			NOT = { religion = latin_solar_pagan_reformed }
			NOT = { controls_religion = yes }
		}
		
		potential = {
			tier = COUNT
			NOT = {
				location = { religion = latin_solar_pagan_reformed }
			}
			OR = {
				is_holy_site = latin_solar_pagan_reformed
				any_de_jure_vassal_title = {
					is_holy_site = latin_solar_pagan_reformed
				}
			}
			OR = {
				holder_scope = {
					character = FROM
				}
				AND = {
					tier = BARON
					holder_scope = {
						liege = {
							character = FROM
						}
					}
				}
			}
		}
		
		allow = {
			FROM = {
				piety = 250
				prisoner = no
				NOT = { trait = incapable }
				NOT = { is_inaccessible_trigger = yes }
				NOT = { society_member_of = secret_religious_cult }
			}
		}
		
		effect = {
			FROM = {
				piety = -250
				set_secret_religion = latin_solar_pagan_reformed
			}
		}
		
		
		
		ai_will_do = {
			factor = 0
		}
	}
	secretly_convert_to_mandulis_pagan_holy_site = {
		filter = owned
		ai_target_filter = self
	
		only_playable = yes
		
		from_potential = {
			ai = no
			NOT = { trait = incapable }
			NOT = { secret_religion = mandulis_pagan }
			NOT = { religion = mandulis_pagan }
			NOT = { controls_religion = yes }
		}
		
		potential = {
			tier = COUNT
			NOT = {
				location = { religion = mandulis_pagan }
			}
			OR = {
				is_holy_site = mandulis_pagan
				any_de_jure_vassal_title = {
					is_holy_site = mandulis_pagan
				}
			}
			OR = {
				holder_scope = {
					character = FROM
				}
				AND = {
					tier = BARON
					holder_scope = {
						liege = {
							character = FROM
						}
					}
				}
			}
		}
		
		allow = {
			FROM = {
				piety = 250
				prisoner = no
				NOT = { trait = incapable }
				NOT = { is_inaccessible_trigger = yes }
				NOT = { society_member_of = secret_religious_cult }
			}
		}
		
		effect = {
			FROM = {
				piety = -250
				set_secret_religion = mandulis_pagan
			}
		}
		
		
		
		ai_will_do = {
			factor = 0
		}
	}
	secretly_convert_to_mandulis_pagan_reformed_holy_site = {
		filter = owned
		ai_target_filter = self
	
		only_playable = yes
		
		from_potential = {
			ai = no
			NOT = { trait = incapable }
			NOT = { secret_religion = mandulis_pagan_reformed }
			NOT = { religion = mandulis_pagan_reformed }
			NOT = { controls_religion = yes }
		}
		
		potential = {
			tier = COUNT
			NOT = {
				location = { religion = mandulis_pagan_reformed }
			}
			OR = {
				is_holy_site = mandulis_pagan_reformed
				any_de_jure_vassal_title = {
					is_holy_site = mandulis_pagan_reformed
				}
			}
			OR = {
				holder_scope = {
					character = FROM
				}
				AND = {
					tier = BARON
					holder_scope = {
						liege = {
							character = FROM
						}
					}
				}
			}
		}
		
		allow = {
			FROM = {
				piety = 250
				prisoner = no
				NOT = { trait = incapable }
				NOT = { is_inaccessible_trigger = yes }
				NOT = { society_member_of = secret_religious_cult }
			}
		}
		
		effect = {
			FROM = {
				piety = -250
				set_secret_religion = mandulis_pagan_reformed
			}
		}
		
		
		
		ai_will_do = {
			factor = 0
		}
	}
	secretly_convert_to_east_african_pagan_holy_site = {
		filter = owned
		ai_target_filter = self
	
		only_playable = yes
		
		from_potential = {
			ai = no
			NOT = { trait = incapable }
			NOT = { secret_religion = east_african_pagan }
			NOT = { religion = east_african_pagan }
			NOT = { controls_religion = yes }
		}
		
		potential = {
			tier = COUNT
			NOT = {
				location = { religion = east_african_pagan }
			}
			OR = {
				is_holy_site = east_african_pagan
				any_de_jure_vassal_title = {
					is_holy_site = east_african_pagan
				}
			}
			OR = {
				holder_scope = {
					character = FROM
				}
				AND = {
					tier = BARON
					holder_scope = {
						liege = {
							character = FROM
						}
					}
				}
			}
		}
		
		allow = {
			FROM = {
				piety = 250
				prisoner = no
				NOT = { trait = incapable }
				NOT = { is_inaccessible_trigger = yes }
				NOT = { society_member_of = secret_religious_cult }
			}
		}
		
		effect = {
			FROM = {
				piety = -250
				set_secret_religion = east_african_pagan
			}
		}
		
		
		
		ai_will_do = {
			factor = 0
		}
	}
	secretly_convert_to_east_african_pagan_reformed_holy_site = {
		filter = owned
		ai_target_filter = self
	
		only_playable = yes
		
		from_potential = {
			ai = no
			NOT = { trait = incapable }
			NOT = { secret_religion = east_african_pagan_reformed }
			NOT = { religion = east_african_pagan_reformed }
			NOT = { controls_religion = yes }
		}
		
		potential = {
			tier = COUNT
			NOT = {
				location = { religion = east_african_pagan_reformed }
			}
			OR = {
				is_holy_site = east_african_pagan_reformed
				any_de_jure_vassal_title = {
					is_holy_site = east_african_pagan_reformed
				}
			}
			OR = {
				holder_scope = {
					character = FROM
				}
				AND = {
					tier = BARON
					holder_scope = {
						liege = {
							character = FROM
						}
					}
				}
			}
		}
		
		allow = {
			FROM = {
				piety = 250
				prisoner = no
				NOT = { trait = incapable }
				NOT = { is_inaccessible_trigger = yes }
				NOT = { society_member_of = secret_religious_cult }
			}
		}
		
		effect = {
			FROM = {
				piety = -250
				set_secret_religion = east_african_pagan_reformed
			}
		}
		
		
		
		ai_will_do = {
			factor = 0
		}
	}
	secretly_convert_to_assyrian_pagan_holy_site = {
		filter = owned
		ai_target_filter = self
	
		only_playable = yes
		
		from_potential = {
			ai = no
			NOT = { trait = incapable }
			NOT = { secret_religion = assyrian_pagan }
			NOT = { religion = assyrian_pagan }
			NOT = { controls_religion = yes }
		}
		
		potential = {
			tier = COUNT
			NOT = {
				location = { religion = assyrian_pagan }
			}
			OR = {
				is_holy_site = assyrian_pagan
				any_de_jure_vassal_title = {
					is_holy_site = assyrian_pagan
				}
			}
			OR = {
				holder_scope = {
					character = FROM
				}
				AND = {
					tier = BARON
					holder_scope = {
						liege = {
							character = FROM
						}
					}
				}
			}
		}
		
		allow = {
			FROM = {
				piety = 250
				prisoner = no
				NOT = { trait = incapable }
				NOT = { is_inaccessible_trigger = yes }
				NOT = { society_member_of = secret_religious_cult }
			}
		}
		
		effect = {
			FROM = {
				piety = -250
				set_secret_religion = assyrian_pagan
			}
		}
		
		
		
		ai_will_do = {
			factor = 0
		}
	}
	secretly_convert_to_cybelian_pagan_holy_site = {
		filter = owned
		ai_target_filter = self
	
		only_playable = yes
		
		from_potential = {
			ai = no
			NOT = { trait = incapable }
			NOT = { secret_religion = cybelian_pagan }
			NOT = { religion = cybelian_pagan }
			NOT = { controls_religion = yes }
		}
		
		potential = {
			tier = COUNT
			NOT = {
				location = { religion = cybelian_pagan }
			}
			OR = {
				is_holy_site = cybelian_pagan
				any_de_jure_vassal_title = {
					is_holy_site = cybelian_pagan
				}
			}
			OR = {
				holder_scope = {
					character = FROM
				}
				AND = {
					tier = BARON
					holder_scope = {
						liege = {
							character = FROM
						}
					}
				}
			}
		}
		
		allow = {
			FROM = {
				piety = 250
				prisoner = no
				NOT = { trait = incapable }
				NOT = { is_inaccessible_trigger = yes }
				NOT = { society_member_of = secret_religious_cult }
			}
		}
		
		effect = {
			FROM = {
				piety = -250
				set_secret_religion = cybelian_pagan
			}
		}
		
		
		
		ai_will_do = {
			factor = 0
		}
	}
	secretly_convert_to_mastimani_holy_site = {
		filter = owned
		ai_target_filter = self
	
		only_playable = yes
		
		from_potential = {
			ai = no
			NOT = { trait = incapable }
			NOT = { secret_religion = mastimani }
			NOT = { religion = mastimani }
			NOT = { controls_religion = yes }
		}
		
		potential = {
			tier = COUNT
			NOT = {
				location = { religion = mastimani }
			}
			OR = {
				is_holy_site = mastimani
				any_de_jure_vassal_title = {
					is_holy_site = mastimani
				}
			}
			OR = {
				holder_scope = {
					character = FROM
				}
				AND = {
					tier = BARON
					holder_scope = {
						liege = {
							character = FROM
						}
					}
				}
			}
		}
		
		allow = {
			FROM = {
				piety = 250
				prisoner = no
				NOT = { trait = incapable }
				NOT = { is_inaccessible_trigger = yes }
				NOT = { society_member_of = secret_religious_cult }
			}
		}
		
		effect = {
			FROM = {
				piety = -250
				set_secret_religion = mastimani
			}
		}
		
		
		
		ai_will_do = {
			factor = 0
		}
	}
	secretly_convert_to_neoplatonist_holy_site = {
		filter = owned
		ai_target_filter = self
	
		only_playable = yes
		
		from_potential = {
			ai = no
			NOT = { trait = incapable }
			NOT = { secret_religion = neoplatonist }
			NOT = { religion = neoplatonist }
			NOT = { controls_religion = yes }
		}
		
		potential = {
			tier = COUNT
			NOT = {
				location = { religion = neoplatonist }
			}
			OR = {
				is_holy_site = neoplatonist
				any_de_jure_vassal_title = {
					is_holy_site = neoplatonist
				}
			}
			OR = {
				holder_scope = {
					character = FROM
				}
				AND = {
					tier = BARON
					holder_scope = {
						liege = {
							character = FROM
						}
					}
				}
			}
		}
		
		allow = {
			FROM = {
				piety = 250
				prisoner = no
				NOT = { trait = incapable }
				NOT = { is_inaccessible_trigger = yes }
				NOT = { society_member_of = secret_religious_cult }
			}
		}
		
		effect = {
			FROM = {
				piety = -250
				set_secret_religion = neoplatonist
			}
		}
		
		
		
		ai_will_do = {
			factor = 0
		}
	}
	secretly_convert_to_mithraic_pagan_holy_site = {
		filter = owned
		ai_target_filter = self
	
		only_playable = yes
		
		from_potential = {
			ai = no
			NOT = { trait = incapable }
			NOT = { secret_religion = mithraic_pagan }
			NOT = { religion = mithraic_pagan }
			NOT = { controls_religion = yes }
		}
		
		potential = {
			tier = COUNT
			NOT = {
				location = { religion = mithraic_pagan }
			}
			OR = {
				is_holy_site = mithraic_pagan
				any_de_jure_vassal_title = {
					is_holy_site = mithraic_pagan
				}
			}
			OR = {
				holder_scope = {
					character = FROM
				}
				AND = {
					tier = BARON
					holder_scope = {
						liege = {
							character = FROM
						}
					}
				}
			}
		}
		
		allow = {
			FROM = {
				piety = 250
				prisoner = no
				NOT = { trait = incapable }
				NOT = { is_inaccessible_trigger = yes }
				NOT = { society_member_of = secret_religious_cult }
			}
		}
		
		effect = {
			FROM = {
				piety = -250
				set_secret_religion = mithraic_pagan
			}
		}
		
		
		
		ai_will_do = {
			factor = 0
		}
	}
	secretly_convert_to_zurvanist_holy_site = {
		filter = owned
		ai_target_filter = self
	
		only_playable = yes
		
		from_potential = {
			ai = no
			NOT = { trait = incapable }
			NOT = { secret_religion = zurvanist }
			NOT = { religion = zurvanist }
			NOT = { controls_religion = yes }
		}
		
		potential = {
			tier = COUNT
			NOT = {
				location = { religion = zurvanist }
			}
			OR = {
				is_holy_site = zurvanist
				any_de_jure_vassal_title = {
					is_holy_site = zurvanist
				}
			}
			OR = {
				holder_scope = {
					character = FROM
				}
				AND = {
					tier = BARON
					holder_scope = {
						liege = {
							character = FROM
						}
					}
				}
			}
		}
		
		allow = {
			FROM = {
				piety = 250
				prisoner = no
				NOT = { trait = incapable }
				NOT = { is_inaccessible_trigger = yes }
				NOT = { society_member_of = secret_religious_cult }
			}
		}
		
		effect = {
			FROM = {
				piety = -250
				set_secret_religion = zurvanist
			}
		}
		
		
		
		ai_will_do = {
			factor = 0
		}
	}
	secretly_convert_to_khurramite_holy_site = {
		filter = owned
		ai_target_filter = self
	
		only_playable = yes
		
		from_potential = {
			ai = no
			NOT = { trait = incapable }
			NOT = { secret_religion = khurramite }
			NOT = { religion = khurramite }
			NOT = { controls_religion = yes }
		}
		
		potential = {
			tier = COUNT
			NOT = {
				location = { religion = khurramite }
			}
			OR = {
				is_holy_site = khurramite
				any_de_jure_vassal_title = {
					is_holy_site = khurramite
				}
			}
			OR = {
				holder_scope = {
					character = FROM
				}
				AND = {
					tier = BARON
					holder_scope = {
						liege = {
							character = FROM
						}
					}
				}
			}
		}
		
		allow = {
			FROM = {
				piety = 250
				prisoner = no
				NOT = { trait = incapable }
				NOT = { is_inaccessible_trigger = yes }
				NOT = { society_member_of = secret_religious_cult }
			}
		}
		
		effect = {
			FROM = {
				piety = -250
				set_secret_religion = khurramite
			}
		}
		
		
		
		ai_will_do = {
			factor = 0
		}
	}
	secretly_convert_to_hepthal_religion_holy_site = {
		filter = owned
		ai_target_filter = self
	
		only_playable = yes
		
		from_potential = {
			ai = no
			NOT = { trait = incapable }
			NOT = { secret_religion = hepthal_religion }
			NOT = { religion = hepthal_religion }
			NOT = { controls_religion = yes }
		}
		
		potential = {
			tier = COUNT
			NOT = {
				location = { religion = hepthal_religion }
			}
			OR = {
				is_holy_site = hepthal_religion
				any_de_jure_vassal_title = {
					is_holy_site = hepthal_religion
				}
			}
			OR = {
				holder_scope = {
					character = FROM
				}
				AND = {
					tier = BARON
					holder_scope = {
						liege = {
							character = FROM
						}
					}
				}
			}
		}
		
		allow = {
			FROM = {
				piety = 250
				prisoner = no
				NOT = { trait = incapable }
				NOT = { is_inaccessible_trigger = yes }
				NOT = { society_member_of = secret_religious_cult }
			}
		}
		
		effect = {
			FROM = {
				piety = -250
				set_secret_religion = hepthal_religion
			}
		}
		
		
		
		ai_will_do = {
			factor = 0
		}
	}
	secretly_convert_to_tzadikite_holy_site = {
		filter = owned
		ai_target_filter = self
	
		only_playable = yes
		
		from_potential = {
			ai = no
			NOT = { trait = incapable }
			NOT = { secret_religion = tzadikite }
			NOT = { religion = tzadikite }
			NOT = { controls_religion = yes }
		}
		
		potential = {
			tier = COUNT
			NOT = {
				location = { religion = tzadikite }
			}
			OR = {
				is_holy_site = tzadikite
				any_de_jure_vassal_title = {
					is_holy_site = tzadikite
				}
			}
			OR = {
				holder_scope = {
					character = FROM
				}
				AND = {
					tier = BARON
					holder_scope = {
						liege = {
							character = FROM
						}
					}
				}
			}
		}
		
		allow = {
			FROM = {
				piety = 250
				prisoner = no
				NOT = { trait = incapable }
				NOT = { is_inaccessible_trigger = yes }
				NOT = { society_member_of = secret_religious_cult }
			}
		}
		
		effect = {
			FROM = {
				piety = -250
				set_secret_religion = tzadikite
			}
		}
		
		
		
		ai_will_do = {
			factor = 0
		}
	}
	secretly_convert_to_bosporan_faith_holy_site = {
		filter = owned
		ai_target_filter = self
	
		only_playable = yes
		
		from_potential = {
			ai = no
			NOT = { trait = incapable }
			NOT = { secret_religion = bosporan_faith }
			NOT = { religion = bosporan_faith }
			NOT = { controls_religion = yes }
		}
		
		potential = {
			tier = COUNT
			NOT = {
				location = { religion = bosporan_faith }
			}
			OR = {
				is_holy_site = bosporan_faith
				any_de_jure_vassal_title = {
					is_holy_site = bosporan_faith
				}
			}
			OR = {
				holder_scope = {
					character = FROM
				}
				AND = {
					tier = BARON
					holder_scope = {
						liege = {
							character = FROM
						}
					}
				}
			}
		}
		
		allow = {
			FROM = {
				piety = 250
				prisoner = no
				NOT = { trait = incapable }
				NOT = { is_inaccessible_trigger = yes }
				NOT = { society_member_of = secret_religious_cult }
			}
		}
		
		effect = {
			FROM = {
				piety = -250
				set_secret_religion = bosporan_faith
			}
		}
		
		
		
		ai_will_do = {
			factor = 0
		}
	}
	secretly_convert_to_ajivika_holy_site = {
		filter = owned
		ai_target_filter = self
	
		only_playable = yes
		
		from_potential = {
			ai = no
			NOT = { trait = incapable }
			NOT = { secret_religion = ajivika }
			NOT = { religion = ajivika }
			NOT = { controls_religion = yes }
		}
		
		potential = {
			tier = COUNT
			NOT = {
				location = { religion = ajivika }
			}
			OR = {
				is_holy_site = ajivika
				any_de_jure_vassal_title = {
					is_holy_site = ajivika
				}
			}
			OR = {
				holder_scope = {
					character = FROM
				}
				AND = {
					tier = BARON
					holder_scope = {
						liege = {
							character = FROM
						}
					}
				}
			}
		}
		
		allow = {
			FROM = {
				piety = 250
				prisoner = no
				NOT = { trait = incapable }
				NOT = { is_inaccessible_trigger = yes }
				NOT = { society_member_of = secret_religious_cult }
			}
		}
		
		effect = {
			FROM = {
				piety = -250
				set_secret_religion = ajivika
			}
		}
		
		
		
		ai_will_do = {
			factor = 0
		}
	}
	secretly_convert_to_carvaka_holy_site = {
		filter = owned
		ai_target_filter = self
	
		only_playable = yes
		
		from_potential = {
			ai = no
			NOT = { trait = incapable }
			NOT = { secret_religion = carvaka }
			NOT = { religion = carvaka }
			NOT = { controls_religion = yes }
		}
		
		potential = {
			tier = COUNT
			NOT = {
				location = { religion = carvaka }
			}
			OR = {
				is_holy_site = carvaka
				any_de_jure_vassal_title = {
					is_holy_site = carvaka
				}
			}
			OR = {
				holder_scope = {
					character = FROM
				}
				AND = {
					tier = BARON
					holder_scope = {
						liege = {
							character = FROM
						}
					}
				}
			}
		}
		
		allow = {
			FROM = {
				piety = 250
				prisoner = no
				NOT = { trait = incapable }
				NOT = { is_inaccessible_trigger = yes }
				NOT = { society_member_of = secret_religious_cult }
			}
		}
		
		effect = {
			FROM = {
				piety = -250
				set_secret_religion = carvaka
			}
		}
		
		
		
		ai_will_do = {
			factor = 0
		}
	}
	secretly_convert_to_mimamsa_holy_site = {
		filter = owned
		ai_target_filter = self
	
		only_playable = yes
		
		from_potential = {
			ai = no
			NOT = { trait = incapable }
			NOT = { secret_religion = mimamsa }
			NOT = { religion = mimamsa }
			NOT = { controls_religion = yes }
		}
		
		potential = {
			tier = COUNT
			NOT = {
				location = { religion = mimamsa }
			}
			OR = {
				is_holy_site = mimamsa
				any_de_jure_vassal_title = {
					is_holy_site = mimamsa
				}
			}
			OR = {
				holder_scope = {
					character = FROM
				}
				AND = {
					tier = BARON
					holder_scope = {
						liege = {
							character = FROM
						}
					}
				}
			}
		}
		
		allow = {
			FROM = {
				piety = 250
				prisoner = no
				NOT = { trait = incapable }
				NOT = { is_inaccessible_trigger = yes }
				NOT = { society_member_of = secret_religious_cult }
			}
		}
		
		effect = {
			FROM = {
				piety = -250
				set_secret_religion = mimamsa
			}
		}
		
		
		
		ai_will_do = {
			factor = 0
		}
	}
	secretly_convert_to_tantric_holy_site = {
		filter = owned
		ai_target_filter = self
	
		only_playable = yes
		
		from_potential = {
			ai = no
			NOT = { trait = incapable }
			NOT = { secret_religion = tantric }
			NOT = { religion = tantric }
			NOT = { controls_religion = yes }
		}
		
		potential = {
			tier = COUNT
			NOT = {
				location = { religion = tantric }
			}
			OR = {
				is_holy_site = tantric
				any_de_jure_vassal_title = {
					is_holy_site = tantric
				}
			}
			OR = {
				holder_scope = {
					character = FROM
				}
				AND = {
					tier = BARON
					holder_scope = {
						liege = {
							character = FROM
						}
					}
				}
			}
		}
		
		allow = {
			FROM = {
				piety = 250
				prisoner = no
				NOT = { trait = incapable }
				NOT = { is_inaccessible_trigger = yes }
				NOT = { society_member_of = secret_religious_cult }
			}
		}
		
		effect = {
			FROM = {
				piety = -250
				set_secret_religion = tantric
			}
		}
		
		
		
		ai_will_do = {
			factor = 0
		}
	}
	secretly_convert_to_bhakti_holy_site = {
		filter = owned
		ai_target_filter = self
	
		only_playable = yes
		
		from_potential = {
			ai = no
			NOT = { trait = incapable }
			NOT = { secret_religion = bhakti }
			NOT = { religion = bhakti }
			NOT = { controls_religion = yes }
		}
		
		potential = {
			tier = COUNT
			NOT = {
				location = { religion = bhakti }
			}
			OR = {
				is_holy_site = bhakti
				any_de_jure_vassal_title = {
					is_holy_site = bhakti
				}
			}
			OR = {
				holder_scope = {
					character = FROM
				}
				AND = {
					tier = BARON
					holder_scope = {
						liege = {
							character = FROM
						}
					}
				}
			}
		}
		
		allow = {
			FROM = {
				piety = 250
				prisoner = no
				NOT = { trait = incapable }
				NOT = { is_inaccessible_trigger = yes }
				NOT = { society_member_of = secret_religious_cult }
			}
		}
		
		effect = {
			FROM = {
				piety = -250
				set_secret_religion = bhakti
			}
		}
		
		
		
		ai_will_do = {
			factor = 0
		}
	}
	secretly_convert_to_sramanic_holy_site = {
		filter = owned
		ai_target_filter = self
	
		only_playable = yes
		
		from_potential = {
			ai = no
			NOT = { trait = incapable }
			NOT = { secret_religion = sramanic }
			NOT = { religion = sramanic }
			NOT = { controls_religion = yes }
		}
		
		potential = {
			tier = COUNT
			NOT = {
				location = { religion = sramanic }
			}
			OR = {
				is_holy_site = sramanic
				any_de_jure_vassal_title = {
					is_holy_site = sramanic
				}
			}
			OR = {
				holder_scope = {
					character = FROM
				}
				AND = {
					tier = BARON
					holder_scope = {
						liege = {
							character = FROM
						}
					}
				}
			}
		}
		
		allow = {
			FROM = {
				piety = 250
				prisoner = no
				NOT = { trait = incapable }
				NOT = { is_inaccessible_trigger = yes }
				NOT = { society_member_of = secret_religious_cult }
			}
		}
		
		effect = {
			FROM = {
				piety = -250
				set_secret_religion = sramanic
			}
		}
		
		
		
		ai_will_do = {
			factor = 0
		}
	}
	secretly_convert_to_confucianism_holy_site = {
		filter = owned
		ai_target_filter = self
	
		only_playable = yes
		
		from_potential = {
			ai = no
			NOT = { trait = incapable }
			NOT = { secret_religion = confucianism }
			NOT = { religion = confucianism }
			NOT = { controls_religion = yes }
		}
		
		potential = {
			tier = COUNT
			NOT = {
				location = { religion = confucianism }
			}
			OR = {
				is_holy_site = confucianism
				any_de_jure_vassal_title = {
					is_holy_site = confucianism
				}
			}
			OR = {
				holder_scope = {
					character = FROM
				}
				AND = {
					tier = BARON
					holder_scope = {
						liege = {
							character = FROM
						}
					}
				}
			}
		}
		
		allow = {
			FROM = {
				piety = 250
				prisoner = no
				NOT = { trait = incapable }
				NOT = { is_inaccessible_trigger = yes }
				NOT = { society_member_of = secret_religious_cult }
			}
		}
		
		effect = {
			FROM = {
				piety = -250
				set_secret_religion = confucianism
			}
		}
		
		
		
		ai_will_do = {
			factor = 0
		}
	}
	secretly_convert_to_vasconic_pagan_holy_site = {
		filter = owned
		ai_target_filter = self
	
		only_playable = yes
		
		from_potential = {
			ai = no
			NOT = { trait = incapable }
			NOT = { secret_religion = vasconic_pagan }
			NOT = { religion = vasconic_pagan }
			NOT = { controls_religion = yes }
		}
		
		potential = {
			tier = COUNT
			NOT = {
				location = { religion = vasconic_pagan }
			}
			OR = {
				is_holy_site = vasconic_pagan
				any_de_jure_vassal_title = {
					is_holy_site = vasconic_pagan
				}
			}
			OR = {
				holder_scope = {
					character = FROM
				}
				AND = {
					tier = BARON
					holder_scope = {
						liege = {
							character = FROM
						}
					}
				}
			}
		}
		
		allow = {
			FROM = {
				piety = 250
				prisoner = no
				NOT = { trait = incapable }
				NOT = { is_inaccessible_trigger = yes }
				NOT = { society_member_of = secret_religious_cult }
			}
		}
		
		effect = {
			FROM = {
				piety = -250
				set_secret_religion = vasconic_pagan
			}
		}
		
		
		
		ai_will_do = {
			factor = 0
		}
	}
	secretly_convert_to_vasconic_pagan_reformed_holy_site = {
		filter = owned
		ai_target_filter = self
	
		only_playable = yes
		
		from_potential = {
			ai = no
			NOT = { trait = incapable }
			NOT = { secret_religion = vasconic_pagan_reformed }
			has_global_flag = vasconic_reformation
			NOT = { religion = vasconic_pagan_reformed }
			NOT = { controls_religion = yes }
		}
		
		potential = {
			tier = COUNT
			NOT = {
				location = { religion = vasconic_pagan_reformed }
			}
			OR = {
				is_holy_site = vasconic_pagan_reformed
				any_de_jure_vassal_title = {
					is_holy_site = vasconic_pagan_reformed
				}
			}
			OR = {
				holder_scope = {
					character = FROM
				}
				AND = {
					tier = BARON
					holder_scope = {
						liege = {
							character = FROM
						}
					}
				}
			}
		}
		
		allow = {
			FROM = {
				piety = 250
				prisoner = no
				NOT = { trait = incapable }
				NOT = { is_inaccessible_trigger = yes }
				NOT = { society_member_of = secret_religious_cult }
			}
		}
		
		effect = {
			FROM = {
				piety = -250
				set_secret_religion = vasconic_pagan_reformed
			}
		}
		
		
		
		ai_will_do = {
			factor = 0
		}
	}
	secretly_convert_to_dacian_pagan_holy_site = {
		filter = owned
		ai_target_filter = self
	
		only_playable = yes
		
		from_potential = {
			ai = no
			NOT = { trait = incapable }
			NOT = { secret_religion = dacian_pagan }
			NOT = { religion = dacian_pagan }
			NOT = { controls_religion = yes }
		}
		
		potential = {
			tier = COUNT
			NOT = {
				location = { religion = dacian_pagan }
			}
			OR = {
				is_holy_site = dacian_pagan
				any_de_jure_vassal_title = {
					is_holy_site = dacian_pagan
				}
			}
			OR = {
				holder_scope = {
					character = FROM
				}
				AND = {
					tier = BARON
					holder_scope = {
						liege = {
							character = FROM
						}
					}
				}
			}
		}
		
		allow = {
			FROM = {
				piety = 250
				prisoner = no
				NOT = { trait = incapable }
				NOT = { is_inaccessible_trigger = yes }
				NOT = { society_member_of = secret_religious_cult }
			}
		}
		
		effect = {
			FROM = {
				piety = -250
				set_secret_religion = dacian_pagan
			}
		}
		
		
		
		ai_will_do = {
			factor = 0
		}
	}
	secretly_convert_to_dacian_pagan_reformed_holy_site = {
		filter = owned
		ai_target_filter = self
	
		only_playable = yes
		
		from_potential = {
			ai = no
			NOT = { trait = incapable }
			NOT = { secret_religion = dacian_pagan_reformed }
			has_global_flag = dacian_reformation
			NOT = { religion = dacian_pagan_reformed }
			NOT = { controls_religion = yes }
		}
		
		potential = {
			tier = COUNT
			NOT = {
				location = { religion = dacian_pagan_reformed }
			}
			OR = {
				is_holy_site = dacian_pagan_reformed
				any_de_jure_vassal_title = {
					is_holy_site = dacian_pagan_reformed
				}
			}
			OR = {
				holder_scope = {
					character = FROM
				}
				AND = {
					tier = BARON
					holder_scope = {
						liege = {
							character = FROM
						}
					}
				}
			}
		}
		
		allow = {
			FROM = {
				piety = 250
				prisoner = no
				NOT = { trait = incapable }
				NOT = { is_inaccessible_trigger = yes }
				NOT = { society_member_of = secret_religious_cult }
			}
		}
		
		effect = {
			FROM = {
				piety = -250
				set_secret_religion = dacian_pagan_reformed
			}
		}
		
		
		
		ai_will_do = {
			factor = 0
		}
	}
}