namespace = religious_events

# Cleanup from Counter Reformed
country_event = {
	id = 2050
	title = "EVTNAME2050"
	desc = "EVTDESC2050"
	picture = POPE_PREACHING_eventPicture
	
	major = no
	
	trigger = {
		has_country_modifier = "counter_reformation"
		NOT = { religion = catholic	}
	}
	
	mean_time_to_happen = {
		months = 1
	}
	
	option = {
		name = "EVTOPTA2050"
		remove_country_modifier = "counter_reformation"
		reverse_add_opinion = { who = PAP modifier = opinion_disappointed_pope }
	}
}

# The Counter-Reformation Ends
country_event = {
	id = 2051
	title = "EVTNAME2050"
	desc = "EVTDESC2051"
	picture = POPE_PREACHING_eventPicture
	
	major = no
	
	trigger = {
		has_country_modifier = "counter_reformation"
		religion_years = { protestant = 150 }
	}
	
	mean_time_to_happen = {
		months = 1
	}
	
	option = {
		name = "EVTOPTA2050"
		remove_country_modifier = "counter_reformation"
	}
}

# The Counter-Reformation Ends (Liberté, égalité, fraternité)
country_event = {
	id = 2052
	title = "EVTNAME2050"
	desc = "EVTDESC2052"
	picture = POPE_PREACHING_eventPicture
	
	major = no
	
	trigger = {
		has_country_modifier = "counter_reformation"
		has_idea = liberty_egalite_fraternity
	}
	
	mean_time_to_happen = {
		months = 1
	}
	
	option = {
		name = "EVTOPTA2050"
		remove_country_modifier = "counter_reformation"
	}
}

# The Counter-Reformation Ends (Ecumenism)
country_event = {
	id = 2053
	title = "EVTNAME2050"
	desc = "EVTDESC2053"
	picture = POPE_PREACHING_eventPicture
	
	major = no
	
	trigger = {
		has_country_modifier = "counter_reformation"
		has_idea = ecumenism
	}
	
	mean_time_to_happen = {
		months = 1
	}
	
	option = {
		name = "EVTOPTA2050"
		remove_country_modifier = "counter_reformation"
	}
}

# His Holiness is concerned
province_event = {
	id = 6163
	title = "EVTNAME6163"
	desc = "EVTDESC6163"
	picture = POPE_PREACHING_eventPicture

	trigger = {
		is_capital = no
		religion = catholic
		owner = {
			NOT = { government = papal_government }
			religion = catholic 
			orthodox = 2
		}  
		any_neighbor_province = {
			religion = orthodox 
		}
		NOT = { has_province_modifier = religious_zeal_at_conv }
	}	

	mean_time_to_happen = {
		months = 5000
		modifier = {
			factor = 0.95
			owner = { innovativeness_ideas = 4 }
		}
		modifier = {
			factor = 0.95
			owner = { innovativeness_ideas = 5 }
		}
		modifier = {
			factor = 0.95
			owner = { innovativeness_ideas = 6 }
		}
		modifier = {
			factor = 0.95
			owner = { innovativeness_ideas = 7 }
		}
		modifier = {
			factor = 2.0
			owner = { government = theocratic_government }
		}
	}

	is_mtth_scaled_to_size = 1

	option = {
		name = "EVTOPTA6163"
		change_religion = orthodox
	}
}

# His Holiness is outraged
province_event = {
	id = 6164
	title = "EVTNAME6164"
	desc = "EVTDESC6164"
	picture = POPE_PREACHING_eventPicture

	trigger = {
		is_capital = no
		is_religion_enabled = reformed
		religion = catholic
		owner = {
			NOT = { government = papal_government }
			religion = catholic 
			reformed = 2
		}
		NOT = { has_province_modifier = religious_zeal_at_conv }
	}

	mean_time_to_happen = {
		months = 5000
		modifier = {
			factor = 0.95
			owner = { innovativeness_ideas = 4 }
		}
		modifier = {
			factor = 0.95
			owner = { innovativeness_ideas = 5 }
		}
		modifier = {
			factor = 0.95
			owner = { innovativeness_ideas = 6 }
		}
		modifier = {
			factor = 0.95
			owner = { innovativeness_ideas = 7 }
		}
		modifier = {
			factor = 2.0
			owner = { government = theocratic_government }
		}
		modifier = {
			factor = 0.95
			any_neighbor_province = {
				religion = reformed 
			}
		}
	}

	is_mtth_scaled_to_size = 1

	option = {
		name = "EVTOPTA6164"
		change_religion = reformed
	}
}

# His Holiness is shocked
province_event = {
	id = 6165
	title = "EVTNAME6165"
	desc = "EVTDESC6165"
	picture = POPE_PREACHING_eventPicture

	trigger = {
		is_capital = no
		is_religion_enabled = protestant
		religion = catholic
		owner = {
			NOT = { government = papal_government }
			religion = catholic 
			protestant = 2
		}
		NOT = { has_province_modifier = religious_zeal_at_conv }
	}

	mean_time_to_happen = {
		months = 5000
		modifier = {
			factor = 0.95
			owner = { innovativeness_ideas = 4 }
		}
		modifier = {
			factor = 0.95
			owner = { innovativeness_ideas = 5 }
		}
		modifier = {
			factor = 0.95
			owner = { innovativeness_ideas = 6 }
		}
		modifier = {
			factor = 0.95
			owner = { innovativeness_ideas = 7 }
		}
		modifier = {
			factor = 2.0
			owner = { government = theocratic_government }
		}
		modifier = {
			factor = 0.95
			any_neighbor_province = {
				religion = protestant 
			}
		}
	}

	is_mtth_scaled_to_size = 1

	option = {
		name = "EVTOPTA6165"
		change_religion = protestant
	}
}

# The Orthodox Faith is Rocked
province_event = {
	id = 6166
	title = "EVTNAME6166"
	desc = "EVTDESC6166"
	picture = ORTHODOX_eventPicture

	trigger = {
		is_capital = no
		religion = orthodox
		owner = {
			religion = orthodox 
			catholic = 2
		}  
		any_neighbor_province = {
			religion = catholic 
		}
		NOT = { has_province_modifier = religious_zeal_at_conv }
	}

	mean_time_to_happen = {
		months = 5000
		modifier = {
			factor = 0.95
			owner = { innovativeness_ideas = 4 }
		}
		modifier = {
			factor = 0.95
			owner = { innovativeness_ideas = 5 }
		}
		modifier = {
			factor = 0.95
			owner = { innovativeness_ideas = 6 }
		}
		modifier = {
			factor = 0.95
			owner = { innovativeness_ideas = 7 }
		}
		modifier = {
			factor = 2.0
			owner = { government = theocratic_government }
		}
	}

	is_mtth_scaled_to_size = 1

	option = {
		name = "EVTOPTA6166"
		change_religion = catholic
	}
}	

# The Patriarch is complaining
province_event = {
	id = 6167
	title = "EVTNAME6167"
	desc = "EVTDESC6167"
	picture = ORTHODOX_eventPicture

	trigger = {
		is_capital = no
		is_religion_enabled = protestant
		religion = orthodox
		owner = {
			religion = orthodox 
			protestant = 2
		} 
		
		any_neighbor_province = {
			religion = protestant 
		}
		NOT = { has_province_modifier = religious_zeal_at_conv }
	}

	mean_time_to_happen = {
		months = 5000
		modifier = {
			factor = 0.95
			owner = { innovativeness_ideas = 4 }
		}
		modifier = {
			factor = 0.95
			owner = { innovativeness_ideas = 5 }
		}
		modifier = {
			factor = 0.95
			owner = { innovativeness_ideas = 6 }
		}
		modifier = {
			factor = 0.95
			owner = { innovativeness_ideas = 7 }
		}
		modifier = {
			factor = 2.0
			owner = { government = theocratic_government }
		}
	}

	is_mtth_scaled_to_size = 1

	option = {
		name = "EVTOPTA6167"
		change_religion = protestant
	}
}	

# The Patriarch is concerned
province_event = {
	id = 6168
	title = "EVTNAME6168"
	desc = "EVTDESC6168"
	picture = ORTHODOX_eventPicture

	trigger = {
		is_capital = no
		is_religion_enabled = reformed
		religion = orthodox
		owner = {
			religion = orthodox 
			reformed = 2
		} 
		any_neighbor_province = {
			religion = reformed 
		}
		NOT = { has_province_modifier = religious_zeal_at_conv }
	}

	mean_time_to_happen = {
		months = 5000
		modifier = {
			factor = 0.95
			owner = { innovativeness_ideas = 4 }
		}
		modifier = {
			factor = 0.95
			owner = { innovativeness_ideas = 5 }
		}
		modifier = {
			factor = 0.95
			owner = { innovativeness_ideas = 6 }
		}
		modifier = {
			factor = 0.95
			owner = { innovativeness_ideas = 7 }
		}
		modifier = {
			factor = 2.0
			owner = { government = theocratic_government }
		}
	}

	is_mtth_scaled_to_size = 1

	option = {
		name = "EVTOPTA6168"
		change_religion = reformed
	}
}

# Bishops feel we are losing ground
province_event = {
	id = 6169
	title = "EVTNAME6169"
	desc = "EVTDESC6169"
	picture = RELIGIOUS_CONVERSION_eventPicture

	trigger = {
		is_capital = no
		religion = protestant
		owner = {
			religion = protestant 
			catholic = 2
		}
		NOT = { has_province_modifier = religious_zeal_at_conv }
		is_reformation_center = no
	}

	mean_time_to_happen = {
		months = 5000
		modifier = {
			factor = 0.95
			owner = { innovativeness_ideas = 4 }
		}
		modifier = {
			factor = 0.95
			owner = { innovativeness_ideas = 5 }
		}
		modifier = {
			factor = 0.95
			owner = { innovativeness_ideas = 6 }
		}
		modifier = {
			factor = 0.95
			owner = { innovativeness_ideas = 7 }
		}
		modifier = {
			factor = 2.0
			owner = { government = theocratic_government }
		}
		modifier = {
			factor = 0.95
			any_neighbor_province = {
				religion = catholic 
			}
		}
	}

	is_mtth_scaled_to_size = 1

	option = {
		name = "EVTOPTA6169"
		change_religion = catholic
	}
}

# Bishops shocked
province_event = {
	id = 6170
	title = "EVTNAME6170"
	desc = "EVTDESC6170"
	picture = RELIGION_eventPicture

	trigger = {
		is_capital = no
		religion = protestant
		owner = {
			religion = protestant 
			orthodox = 2
		} 
		any_neighbor_province = {
			religion = orthodox
		}
		NOT = { has_province_modifier = religious_zeal_at_conv }
		is_reformation_center = no
	}

	mean_time_to_happen = {
		months = 5000
		modifier = {
			factor = 0.95
			owner = { innovativeness_ideas = 4 }
		}
		modifier = {
			factor = 0.95
			owner = { innovativeness_ideas = 5 }
		}
		modifier = {
			factor = 0.95
			owner = { innovativeness_ideas = 6 }
		}
		modifier = {
			factor = 0.95
			owner = { innovativeness_ideas = 7 }
		}
		modifier = {
			factor = 2.0
			owner = { government = theocratic_government }
		}
	}

	is_mtth_scaled_to_size = 1

	option = {
		name = "EVTOPTA6170"
		change_religion = orthodox
	}
}

# Bishops concerned
province_event = {
	id = 6171
	title = "EVTNAME6171"
	desc = "EVTDESC6171"
	picture = RELIGION_eventPicture

	trigger = {
		is_capital = no
		is_religion_enabled = reformed
		religion = protestant
		owner = {
			religion = protestant 
			reformed = 2
		}
		NOT = { has_province_modifier = religious_zeal_at_conv }
		is_reformation_center = no
	}

	mean_time_to_happen = {
		months = 5000
		modifier = {
			factor = 0.95
			owner = { innovativeness_ideas = 4 }
		}
		modifier = {
			factor = 0.95
			owner = { innovativeness_ideas = 5 }
		}
		modifier = {
			factor = 0.95
			owner = { innovativeness_ideas = 6 }
		}
		modifier = {
			factor = 0.95
			owner = { innovativeness_ideas = 7 }
		}
		modifier = {
			factor = 2.0
			owner = { government = theocratic_government }
		}
		modifier = {
			factor = 0.95
			any_neighbor_province = {
				religion = reformed
			}
		}
	}

	is_mtth_scaled_to_size = 1

	option = {
		name = "EVTOPTA6171"
		change_religion = reformed
	}
}

# Church Elders think the apocalypse is coming
province_event = {
	id = 6172
	title = "EVTNAME6172"
	desc = "EVTDESC6172"
	picture = PRAYING_eventPicture

	trigger = {
		is_capital = no
		religion = reformed
		owner = {
			religion = reformed
			catholic = 2
		}
		NOT = { has_province_modifier = religious_zeal_at_conv }
		is_reformation_center = no
	}

	mean_time_to_happen = {
		months = 5000
		modifier = {
			factor = 0.95
			owner = { innovativeness_ideas = 4 }
		}
		modifier = {
			factor = 0.95
			owner = { innovativeness_ideas = 5 }
		}
		modifier = {
			factor = 0.95
			owner = { innovativeness_ideas = 6 }
		}
		modifier = {
			factor = 0.95
			owner = { innovativeness_ideas = 7 }
		}
		modifier = {
			factor = 2.0
			owner = { government = theocratic_government }
		}
		modifier = {
			factor = 0.95
			any_neighbor_province = {
				religion = catholic 
			}
		}
	}

	is_mtth_scaled_to_size = 1

	option = {
		name = "EVTOPTA6172"
		change_religion = catholic
	}
}

# God Punishing us?
province_event = {
	id = 6173
	title = "EVTNAME6173"
	desc = "EVTDESC6173"
	picture = PRAYING_eventPicture

	trigger = {
		is_capital = no
		religion = reformed
		owner = {
			religion = reformed
			orthodox = 2
		} 
		any_neighbor_province = {
			religion = orthodox 
		}
		NOT = { has_province_modifier = religious_zeal_at_conv }
		is_reformation_center = no
	}

	mean_time_to_happen = {
		months = 5000
		modifier = {
			factor = 0.95
			owner = { innovativeness_ideas = 4 }
		}
		modifier = {
			factor = 0.95
			owner = { innovativeness_ideas = 5 }
		}
		modifier = {
			factor = 0.95
			owner = { innovativeness_ideas = 6 }
		}
		modifier = {
			factor = 0.95
			owner = { innovativeness_ideas = 7 }
		}
		modifier = {
			factor = 2.0
			owner = { government = theocratic_government }
		}
	}

	is_mtth_scaled_to_size = 1

	option = {
		name = "EVTOPTA6173"
		change_religion = orthodox
	}
}

# Church Elders concerned
province_event = {
	id = 6174
	title = "EVTNAME6174"
	desc = "EVTDESC6174"
	picture = RELIGION_eventPicture

	trigger = {
		is_capital = no
		religion = reformed
		owner = {
			religion = reformed
			protestant = 2
		}
		NOT = { has_province_modifier = religious_zeal_at_conv }
		is_reformation_center = no
	}

	mean_time_to_happen = {
		months = 5000
		modifier = {
			factor = 0.95
			owner = { innovativeness_ideas = 4 }
		}
		modifier = {
			factor = 0.95
			owner = { innovativeness_ideas = 5 }
		}
		modifier = {
			factor = 0.95
			owner = { innovativeness_ideas = 6 }
		}
		modifier = {
			factor = 0.95
			owner = { innovativeness_ideas = 7 }
		}
		modifier = {
			factor = 2.0
			owner = { government = theocratic_government }
		}
		modifier = {
			factor = 0.95
			any_neighbor_province = {
				religion = protestant 
			}
		}
	}

	is_mtth_scaled_to_size = 1

	option = {
		name = "EVTOPTA6174"
		change_religion = protestant
	}
}

# Ulema Concerned
province_event = {
	id = 6175
	title = "EVTNAME6175"
	desc = "EVTDESC6175"
	picture = PRAYING_eventPicture

	trigger = {
		is_capital = no
		religion = sunni
		owner = {
			religion = sunni
			shiite = 2
		} 
		NOT = {
			has_province_modifier = religious_center
		}
		NOT = { has_province_modifier = religious_zeal_at_conv }
	}

	mean_time_to_happen = {
		months = 5000
		modifier = {
			factor = 0.95
			owner = { innovativeness_ideas = 4 }
		}
		modifier = {
			factor = 0.95
			owner = { innovativeness_ideas = 5 }
		}
		modifier = {
			factor = 0.95
			owner = { innovativeness_ideas = 6 }
		}
		modifier = {
			factor = 0.95
			owner = { innovativeness_ideas = 7 }
		}
		modifier = {
			factor = 2.0
			owner = { government = theocratic_government }
		}
		modifier = {
			factor = 0.95
			any_neighbor_province = {
				religion = shiite
			}
		}
	}

	is_mtth_scaled_to_size = 1

	option = {
		name = "EVTOPTA6175"
		change_religion = shiite
		owner = { add_piety = -0.10 }
	}
}

# Ayatollahs are concerned
province_event = {
	id = 6176
	title = "EVTNAME6176"
	desc = "EVTDESC6176"
	picture = PRAYING_eventPicture

	trigger = {
		is_capital = no
		religion = shiite
		owner = {
			religion = shiite
			sunni = 2
		} 
		NOT = {
			has_province_modifier = religious_center
		}
		NOT = { has_province_modifier = religious_zeal_at_conv }
	}	

	mean_time_to_happen = {
		months = 5000
		modifier = {
			factor = 0.95
			owner = { innovativeness_ideas = 4 }
		}
		modifier = {
			factor = 0.95
			owner = { innovativeness_ideas = 5 }
		}
		modifier = {
			factor = 0.95
			owner = { innovativeness_ideas = 6 }
		}
		modifier = {
			factor = 0.95
			owner = { innovativeness_ideas = 7 }
		}
		modifier = {
			factor = 2.0
			owner = { government = theocratic_government }
		}
		modifier = {
			factor = 0.95
			any_neighbor_province = {
				religion = sunni
			}
		}
	}

	is_mtth_scaled_to_size = 1

	option = {
		name = "EVTOPTA6176"
		change_religion = sunni
		owner = { add_piety = -0.10	}
	}
}

# People turn to philosophy!
province_event = {
	id = 6178
	title = "EVTNAME6178"
	desc = "EVTDESC6178"
	picture = BUDDHA_eventPicture

	trigger = {
		is_capital = no
		OR = {
			religion = buddhism
			religion = vajrayana
			religion = mahayana
		}
		OR = {
			owner = {
				religion = buddhism
				confucianism = 2
			}
			owner = {
				religion = vajrayana
				confucianism = 2
			}
			owner = {
				religion = mahayana
				confucianism = 2
			}
		}
		any_neighbor_province = {
			religion = confucianism
		}
		NOT = { has_province_modifier = religious_zeal_at_conv }
	}

	mean_time_to_happen = {
		months = 5000
		modifier = {
			factor = 0.95
			owner = { innovativeness_ideas = 4 }
		}
		modifier = {
			factor = 0.95
			owner = { innovativeness_ideas = 5 }
		}
		modifier = {
			factor = 0.95
			owner = { innovativeness_ideas = 6 }
		}
		modifier = {
			factor = 0.95
			owner = { innovativeness_ideas = 7 }
		}
		modifier = {
			factor = 2.0
			owner = { government = theocratic_government }
		}
	}

	is_mtth_scaled_to_size = 1

	option = {
		name = "EVTOPTA6178"
		change_religion = confucianism
	}
}

# The People turn to spirit worship
province_event = {
	id = 6179
	title = "EVTNAME6179"
	desc = "EVTDESC6179"
	picture = BUDDHA_eventPicture

	trigger = {
		is_capital = no
		OR = {
			religion = buddhism
			religion = vajrayana
			religion = mahayana
		}
		OR = {
			owner = {
				religion = buddhism
				shinto = 2
			}
			owner = {
				religion = vajrayana
				shinto = 2
			}
			owner = {
				religion = mahayana
				shinto = 2
			}
		}
		culture_group = japanese_g
		NOT = { has_province_modifier = religious_zeal_at_conv }
	}

	mean_time_to_happen = {
		months = 5000
		modifier = {
			factor = 0.95
			owner = { innovativeness_ideas = 4 }
		}
		modifier = {
			factor = 0.95
			owner = { innovativeness_ideas = 5 }
		}
		modifier = {
			factor = 0.95
			owner = { innovativeness_ideas = 6 }
		}
		modifier = {
			factor = 0.95
			owner = { innovativeness_ideas = 7 }
		}
		modifier = {
			factor = 2.0
			owner = { government = theocratic_government }
		}
		modifier = {
			factor = 0.95
			any_neighbor_province = {
				religion = shinto
			}
		}
	}

	is_mtth_scaled_to_size = 1

	option = {
		name = "EVTOPTA6179"
		change_religion = shinto
	}
}

# People turn to Buddhism
province_event = {
	id = 6183
	title = "EVTNAME6183"
	desc = "EVTDESC6183"
	picture = BUDDHA_eventPicture

	trigger = {
		is_capital = no
		religion = confucianism
		owner = {
			religion = confucianism
			mahayana = 2
		}
		NOT = { has_province_modifier = religious_zeal_at_conv }
	}

	mean_time_to_happen = {
		months = 5000
		modifier = {
			factor = 0.95
			owner = { innovativeness_ideas = 4 }
		}
		modifier = {
			factor = 0.95
			owner = { innovativeness_ideas = 5 }
		}
		modifier = {
			factor = 0.95
			owner = { innovativeness_ideas = 6 }
		}
		modifier = {
			factor = 0.95
			owner = { innovativeness_ideas = 7 }
		}
		modifier = {
			factor = 2.0
			owner = { government = theocratic_government }
		}
		modifier = {
			factor = 0.95
			any_neighbor_province = {
				religion = mahayana
			}
		}
	}

	is_mtth_scaled_to_size = 1

	option = {
		name = "EVTOPTA6183"
		change_religion = mahayana
	}
}

# Our people embrace Shintoism
province_event = {
	id = 6185
	title = "EVTNAME6185"
	desc = "EVTDESC6185"
	picture = RELIGION_eventPicture 

	trigger = {
		is_capital = no
		religion = confucianism
		culture_group = japanese_g
		owner = {
			religion = confucianism
			shinto = 2
		}
		NOT = { has_province_modifier = religious_zeal_at_conv }
	}

	mean_time_to_happen = {
		months = 2000
		modifier = {
			factor = 0.95
			owner = { innovativeness_ideas = 4 }
		}
		modifier = {
			factor = 0.95
			owner = { innovativeness_ideas = 5 }
		}
		modifier = {
			factor = 0.95
			owner = { innovativeness_ideas = 6 }
		}
		modifier = {
			factor = 0.95
			owner = { innovativeness_ideas = 7 }
		}
		modifier = {
			factor = 2.0
			owner = { government = theocratic_government }
		}
	}

	is_mtth_scaled_to_size = 1

	option = {
		name = "EVTOPTA6185"
		change_religion = shinto
	}
}

# Our Priests express mild displeasure
province_event = {
	id = 6186
	title = "EVTNAME6186"
	desc = "EVTDESC6186"
	picture = BUDDHA_eventPicture

	trigger = {
		is_capital = no
		religion = shinto
		owner = {
			religion = shinto
			mahayana = 2
		}
		NOT = { has_province_modifier = religious_zeal_at_conv }
	}

	mean_time_to_happen = {
		months = 5000
		modifier = {
			factor = 0.95
			owner = { innovativeness_ideas = 4 }
		}
		modifier = {
			factor = 0.95
			owner = { innovativeness_ideas = 5 }
		}
		modifier = {
			factor = 0.95
			owner = { innovativeness_ideas = 6 }
		}
		modifier = {
			factor = 0.95
			owner = { innovativeness_ideas = 7 }
		}
		modifier = {
			factor = 2.0
			owner = { government = theocratic_government }
		}
		modifier = {
			factor = 0.95
			any_neighbor_province = {
				religion = mahayana
			}
		}
	}

	is_mtth_scaled_to_size = 1

	option = {
		name = "EVTOPTA6186"
		change_religion = mahayana
	}
}

# Our Priests suffer mild outrage
province_event = {
	id = 6188
	title = "EVTNAME6188"
	desc = "EVTDESC6188"
	picture = RELIGION_eventPicture 

	trigger = {
		is_capital = no
		religion = shinto
		owner = {
			religion = shinto
			confucianism = 2
		}
		any_neighbor_province = {
			religion = confucianism
		}
		NOT = { has_province_modifier = religious_zeal_at_conv }
	}

	mean_time_to_happen = {
		months = 5000
		modifier = {
			factor = 0.95
			owner = { innovativeness_ideas = 4 }
		}
		modifier = {
			factor = 0.95
			owner = { innovativeness_ideas = 5 }
		}
		modifier = {
			factor = 0.95
			owner = { innovativeness_ideas = 6 }
		}
		modifier = {
			factor = 0.95
			owner = { innovativeness_ideas = 7 }
		}
		modifier = {
			factor = 2.0
			owner = { government = theocratic_government }
		}
	}

	is_mtth_scaled_to_size = 1

	option = {
		name = "EVTOPTA6188"
		change_religion = confucianism
	}
}

# The Spirits of Nature are concerned
province_event = {
	id = 6189
	title = "EVTNAME6189"
	desc = "EVTDESC6189"
	picture = RELIGION_eventPicture

	trigger = {
		is_capital = no
		religion = animism
		owner = {
			religion = animism
			shamanism = 2
		}
		NOT = { has_province_modifier = religious_zeal_at_conv }
	}

	mean_time_to_happen = {
		months = 2000
		modifier = {
			factor = 0.95
			owner = { innovativeness_ideas = 4 }
		}
		modifier = {
			factor = 0.95
			owner = { innovativeness_ideas = 5 }
		}
		modifier = {
			factor = 0.95
			owner = { innovativeness_ideas = 6 }
		}
		modifier = {
			factor = 0.95
			owner = { innovativeness_ideas = 7 }
		}
		modifier = {
			factor = 2.0
			owner = { government = theocratic_government }
		}
		modifier = {
			factor = 0.95
			any_neighbor_province = {
				religion = shamanism
			}
		}
	}

	is_mtth_scaled_to_size = 1

	option = {
		name = "EVTOPTA6189"
		change_religion = shamanism
	}
}

# The Spirits of Nature are concerned
province_event = {
	id = 8000
	title = "EVTNAME8000"
	desc = "EVTDESC8000"
	picture = RELIGION_eventPicture

	trigger = {
		is_capital = no
		religion = animism
		owner = {
			religion = animism
			totemism = 2
		}
		NOT = { has_province_modifier = religious_zeal_at_conv }
	}

	mean_time_to_happen = {
		months = 5000
		modifier = {
			factor = 0.95
			owner = { innovativeness_ideas = 4 }
		}
		modifier = {
			factor = 0.95
			owner = { innovativeness_ideas = 5 }
		}
		modifier = {
			factor = 0.95
			owner = { innovativeness_ideas = 6 }
		}
		modifier = {
			factor = 0.95
			owner = { innovativeness_ideas = 7 }
		}
		modifier = {
			factor = 2.0
			owner = { government = theocratic_government }
		}
		modifier = {
			factor = 0.95
			any_neighbor_province = {
				religion = totemism
			}
		}
	}

	is_mtth_scaled_to_size = 1

	option = {
		name = "EVTOPTA8000"
		change_religion = totemism
	}
}

# Unhappy news from the hunting ground
province_event = {
	id = 6190
	title = "EVTNAME6190"
	desc = "EVTDESC6190"
	picture = RELIGION_eventPicture 

	trigger = {
		is_capital = no
		religion = shamanism
		owner = {
			religion = shamanism
			animism = 2
		}
		NOT = { has_province_modifier = religious_zeal_at_conv }
	}

	mean_time_to_happen = {
		months = 5000
		modifier = {
			factor = 0.95
			owner = { innovativeness_ideas = 4 }
		}
		modifier = {
			factor = 0.95
			owner = { innovativeness_ideas = 5 }
		}
		modifier = {
			factor = 0.95
			owner = { innovativeness_ideas = 6 }
		}
		modifier = {
			factor = 0.95
			owner = { innovativeness_ideas = 7 }
		}
		modifier = {
			factor = 2.0
			owner = { government = theocratic_government }
		}
		modifier = {
			factor = 0.95
			any_neighbor_province = {
				religion = animism
			}
		}
	}

	is_mtth_scaled_to_size = 1

	option = {
		name = "EVTOPTA6190"
		change_religion = animism
	}
}

# Unhappy news from the hunting ground
province_event = {
	id = 8001
	title = "EVTNAME8001"
	desc = "EVTDESC8001"
	picture = RELIGION_eventPicture 

	trigger = {
		is_capital = no
		religion = shamanism
		owner = {
			religion = shamanism
			totemism = 2
		}
		NOT = { has_province_modifier = religious_zeal_at_conv }
	}

	mean_time_to_happen = {
		months = 5000
		modifier = {
			factor = 0.95
			owner = { innovativeness_ideas = 4 }
		}
		modifier = {
			factor = 0.95
			owner = { innovativeness_ideas = 5 }
		}
		modifier = {
			factor = 0.95
			owner = { innovativeness_ideas = 6 }
		}
		modifier = {
			factor = 0.95
			owner = { innovativeness_ideas = 7 }
		}
		modifier = {
			factor = 2.0
			owner = { government = theocratic_government }
		}
		modifier = {
			factor = 0.95
			any_neighbor_province = {
				religion = totemism
			}
		}
	}

	is_mtth_scaled_to_size = 1

	option = {
		name = "EVTOPTA8001"
		change_religion = totemism
	}
}

# Spiritual connection in Danger
province_event = {
	id = 8002
	title = "EVTNAME8002"
	desc = "EVTDESC8002"
	picture = RELIGION_eventPicture 

	trigger = {
		is_capital = no
		religion = totemism
		owner = {
			religion = totemism
			animism = 2
		}
		NOT = { has_province_modifier = religious_zeal_at_conv }
	}

	mean_time_to_happen = {
		months = 5000
		modifier = {
			factor = 0.95
			owner = { innovativeness_ideas = 4 }
		}
		modifier = {
			factor = 0.95
			owner = { innovativeness_ideas = 5 }
		}
		modifier = {
			factor = 0.95
			owner = { innovativeness_ideas = 6 }
		}
		modifier = {
			factor = 0.95
			owner = { innovativeness_ideas = 7 }
		}
		modifier = {
			factor = 2.0
			owner = { government = theocratic_government }
		}
		modifier = {
			factor = 0.95
			any_neighbor_province = {
				religion = animism
			}
		}
	}

	is_mtth_scaled_to_size = 1

	option = {
		name = "EVTOPTA8002"
		change_religion = animism
	}
}

# Spiritual connection in Danger
province_event = {
	id = 8003
	title = "EVTNAME8003"
	desc = "EVTDESC8003"
	picture = RELIGION_eventPicture 

	trigger = {
		is_capital = no
		religion = totemism
		owner = {
			religion = totemism
			shamanism = 2
		}
		NOT = { has_province_modifier = religious_zeal_at_conv }
	}

	mean_time_to_happen = {
		months = 5000
		modifier = {
			factor = 0.95
			owner = { innovativeness_ideas = 4 }
		}
		modifier = {
			factor = 0.95
			owner = { innovativeness_ideas = 5 }
		}
		modifier = {
			factor = 0.95
			owner = { innovativeness_ideas = 6 }
		}
		modifier = {
			factor = 0.95
			owner = { innovativeness_ideas = 7 }
		}
		modifier = {
			factor = 2.0
			owner = { government = theocratic_government }
		}
		modifier = {
			factor = 0.95
			any_neighbor_province = {
				religion = shamanism
			}
		}
	}

	is_mtth_scaled_to_size = 1

	option = {
		name = "EVTOPTA8003"
		change_religion = shamanism
	}
}

# Tolerant Policy
province_event = {
	id = religious_events.1
	title = "religious_events.EVTNAME1"
	desc = "religious_events.EVTDESC1"
	picture = RELIGION_eventPicture

	trigger = {
		is_capital = no
		religion = catholic
		owner = {
			NOT = { government = papal_government }
			religion = catholic 
			coptic = 2
		} 
		any_neighbor_province = {
			religion = coptic
		}
		NOT = { has_province_modifier = religious_zeal_at_conv }
	}

	mean_time_to_happen = {
		months = 2000
		modifier = {
			factor = 0.95
			owner = { innovativeness_ideas = 4 }
		}
		modifier = {
			factor = 0.95
			owner = { innovativeness_ideas = 5 }
		}
		modifier = {
			factor = 0.95
			owner = { innovativeness_ideas = 6 }
		}
		modifier = {
			factor = 0.95
			owner = { innovativeness_ideas = 7 }
		}
		modifier = {
			factor = 2.0
			owner = { government = theocratic_government }
		}
	}

	is_mtth_scaled_to_size = 1

	option = {
		name = "religious_events.EVTOPTA1"
		change_religion = coptic
	}
}

# Tolerant Policy
province_event = {
	id = religious_events.2
	title = "religious_events.EVTNAME1"
	desc = "religious_events.EVTDESC1"
	picture = RELIGION_eventPicture

	trigger = {
		is_capital = no
		religion = protestant
		owner = {
			religion = protestant 
			coptic = 2
		} 
		any_neighbor_province = {
			religion = coptic
		}
		is_reformation_center = no
		NOT = { has_province_modifier = religious_zeal_at_conv }
	}

	mean_time_to_happen = {
		months = 5000
		modifier = {
			factor = 0.95
			owner = { innovativeness_ideas = 4 }
		}
		modifier = {
			factor = 0.95
			owner = { innovativeness_ideas = 5 }
		}
		modifier = {
			factor = 0.95
			owner = { innovativeness_ideas = 6 }
		}
		modifier = {
			factor = 0.95
			owner = { innovativeness_ideas = 7 }
		}
		modifier = {
			factor = 2.0
			owner = { government = theocratic_government }
		}
	}

	is_mtth_scaled_to_size = 1

	option = {
		name = "religious_events.EVTOPTA1"
		change_religion = coptic
	}
}

# Tolerant Policy
province_event = {
	id = religious_events.3
	title = "religious_events.EVTNAME1"
	desc = "religious_events.EVTDESC1"
	picture = RELIGION_eventPicture

	trigger = {
		is_capital = no
		religion = reformed
		owner = {
			religion = reformed 
			coptic = 2
		} 
		any_neighbor_province = {
			religion = coptic
		}
		is_reformation_center = no
		NOT = { has_province_modifier = religious_zeal_at_conv }
	}

	mean_time_to_happen = {
		months = 2000
		modifier = {
			factor = 0.95
			owner = { innovativeness_ideas = 4 }
		}
		modifier = {
			factor = 0.95
			owner = { innovativeness_ideas = 5 }
		}
		modifier = {
			factor = 0.95
			owner = { innovativeness_ideas = 6 }
		}
		modifier = {
			factor = 0.95
			owner = { innovativeness_ideas = 7 }
		}
		modifier = {
			factor = 2.0
			owner = { government = theocratic_government }
		}
	}

	is_mtth_scaled_to_size = 1

	option = {
		name = "religious_events.EVTOPTA1"
		change_religion = coptic
	}
}

# Tolerant Policy
province_event = {
	id = religious_events.4
	title = "religious_events.EVTNAME1"
	desc = "religious_events.EVTDESC1"
	picture = RELIGION_eventPicture

	trigger = {
		is_capital = no
		religion = orthodox
		owner = {
			religion = orthodox 
			coptic = 2
		} 
		any_neighbor_province = {
			religion = coptic
		}
		NOT = { has_province_modifier = religious_zeal_at_conv }
	}

	mean_time_to_happen = {
		months = 5000
		modifier = {
			factor = 0.95
			owner = { innovativeness_ideas = 4 }
		}
		modifier = {
			factor = 0.95
			owner = { innovativeness_ideas = 5 }
		}
		modifier = {
			factor = 0.95
			owner = { innovativeness_ideas = 6 }
		}
		modifier = {
			factor = 0.95
			owner = { innovativeness_ideas = 7 }
		}
		modifier = {
			factor = 2.0
			owner = { government = theocratic_government }
		}
	}

	is_mtth_scaled_to_size = 1

	option = {
		name = "religious_events.EVTOPTA1"
		change_religion = coptic
	}
}

# Tolerant Policy
province_event = {
	id = religious_events.5
	title = "religious_events.EVTNAME1"
	desc = "religious_events.EVTDESC2"
	picture = RELIGION_eventPicture

	trigger = {
		is_capital = no
		religion = coptic
		owner = {
			religion = coptic 
			catholic = 2
		}
		NOT = { has_province_modifier = religious_zeal_at_conv }
	}

	mean_time_to_happen = {
		months = 5000
		modifier = {
			factor = 0.95
			owner = { innovativeness_ideas = 4 }
		}
		modifier = {
			factor = 0.95
			owner = { innovativeness_ideas = 5 }
		}
		modifier = {
			factor = 0.95
			owner = { innovativeness_ideas = 6 }
		}
		modifier = {
			factor = 0.95
			owner = { innovativeness_ideas = 7 }
		}
		modifier = {
			factor = 2.0
			owner = { government = theocratic_government }
		}
	}

	is_mtth_scaled_to_size = 1

	option = {
		name = "religious_events.EVTOPTA1"
		change_religion = catholic
	}
}

# Tolerant Policy
province_event = {
	id = religious_events.6
	title = "religious_events.EVTNAME1"
	desc = "religious_events.EVTDESC3"
	picture = RELIGION_eventPicture

	trigger = {
		is_capital = no
		is_religion_enabled = protestant
		religion = coptic
		owner = {
			religion = coptic
			protestant = 2
		}
		NOT = { has_province_modifier = religious_zeal_at_conv }
	}

	mean_time_to_happen = {
		months = 2000
		modifier = {
			factor = 0.95
			owner = { innovativeness_ideas = 4 }
		}
		modifier = {
			factor = 0.95
			owner = { innovativeness_ideas = 5 }
		}
		modifier = {
			factor = 0.95
			owner = { innovativeness_ideas = 6 }
		}
		modifier = {
			factor = 0.95
			owner = { innovativeness_ideas = 7 }
		}
		modifier = {
			factor = 2.0
			owner = { government = theocratic_government }
		}
	}

	is_mtth_scaled_to_size = 1

	option = {
		name = "religious_events.EVTOPTA1"
		change_religion = protestant
	}
}

# Tolerant Policy
province_event = {
	id = religious_events.7
	title = "religious_events.EVTNAME1"
	desc = "religious_events.EVTDESC4"
	picture = RELIGION_eventPicture

	trigger = {
		is_capital = no
		is_religion_enabled = reformed
		religion = coptic
		owner = {
			religion = coptic 
			reformed = 2
		}
		NOT = { has_province_modifier = religious_zeal_at_conv }
	}

	mean_time_to_happen = {
		months = 2000
		modifier = {
			factor = 0.95
			owner = { innovativeness_ideas = 4 }
		}
		modifier = {
			factor = 0.95
			owner = { innovativeness_ideas = 5 }
		}
		modifier = {
			factor = 0.95
			owner = { innovativeness_ideas = 6 }
		}
		modifier = {
			factor = 0.95
			owner = { innovativeness_ideas = 7 }
		}
		modifier = {
			factor = 2.0
			owner = { government = theocratic_government }
		}
	}

	is_mtth_scaled_to_size = 1

	option = {
		name = "religious_events.EVTOPTA1"
		change_religion = reformed
	}
}

# Tolerant Policy
province_event = {
	id = religious_events.8
	title = "religious_events.EVTNAME1"
	desc = "religious_events.EVTDESC5"
	picture = RELIGION_eventPicture

	trigger = {
		is_capital = no
		religion = coptic
		owner = {
			religion = coptic 
			orthodox = 2
		}
		any_neighbor_province = {
			religion = orthodox 
		}
		NOT = { has_province_modifier = religious_zeal_at_conv }
	}

	mean_time_to_happen = {
		months = 2000
		modifier = {
			factor = 0.95
			owner = { innovativeness_ideas = 4 }
		}
		modifier = {
			factor = 0.95
			owner = { innovativeness_ideas = 5 }
		}
		modifier = {
			factor = 0.95
			owner = { innovativeness_ideas = 6 }
		}
		modifier = {
			factor = 0.95
			owner = { innovativeness_ideas = 7 }
		}
		modifier = {
			factor = 2.0
			owner = { government = theocratic_government }
		}
	}

	is_mtth_scaled_to_size = 1

	option = {
		name = "religious_events.EVTOPTA1"
		change_religion = orthodox
	}
}

# Tolerant Policy
province_event = {
	id = religious_events.9
	title = "religious_events.EVTNAME1"
	desc = "religious_events.EVTDESC6"
	picture = PRAYING_eventPicture

	trigger = {
		is_capital = no
		religion = sunni
		owner = {
			religion = sunni
			ibadi = 2
		} 
		NOT = {
			has_province_modifier = religious_center
		}
		NOT = { has_province_modifier = religious_zeal_at_conv }
	}

	mean_time_to_happen = {
		months = 2000
		modifier = {
			factor = 0.95
			owner = { innovativeness_ideas = 4 }
		}
		modifier = {
			factor = 0.95
			owner = { innovativeness_ideas = 5 }
		}
		modifier = {
			factor = 0.95
			owner = { innovativeness_ideas = 6 }
		}
		modifier = {
			factor = 0.95
			owner = { innovativeness_ideas = 7 }
		}
		modifier = {
			factor = 2.0
			owner = { government = theocratic_government }
		}
		modifier = {
			factor = 0.95
			any_neighbor_province = {
				religion = ibadi
			}
		}
	}

	is_mtth_scaled_to_size = 1

	option = {
		name = "religious_events.EVTOPTA1"
		change_religion = ibadi
		owner = { add_piety = -0.10 }
	}
}

# Tolerant Policy
province_event = {
	id = religious_events.10
	title = "religious_events.EVTNAME1"
	desc = "religious_events.EVTDESC6"
	picture = PRAYING_eventPicture

	trigger = {
		is_capital = no
		religion = shiite
		owner = {
			religion = shiite
			ibadi = 2
		} 
		NOT = {
			has_province_modifier = religious_center
		}
		NOT = { has_province_modifier = religious_zeal_at_conv }
	}

	mean_time_to_happen = {
		months = 5000
		modifier = {
			factor = 0.95
			owner = { innovativeness_ideas = 4 }
		}
		modifier = {
			factor = 0.95
			owner = { innovativeness_ideas = 5 }
		}
		modifier = {
			factor = 0.95
			owner = { innovativeness_ideas = 6 }
		}
		modifier = {
			factor = 0.95
			owner = { innovativeness_ideas = 7 }
		}
		modifier = {
			factor = 2.0
			owner = { government = theocratic_government }
		}
		modifier = {
			factor = 0.95
			any_neighbor_province = {
				religion = ibadi
			}
		}
	}

	is_mtth_scaled_to_size = 1

	option = {
		name = "religious_events.EVTOPTA1"
		change_religion = ibadi
		owner = { add_piety = -0.10 }
	}
}

# Tolerant Policy
province_event = {
	id = religious_events.11
	title = "religious_events.EVTNAME1"
	desc = "religious_events.EVTDESC7"
	picture = PRAYING_eventPicture

	trigger = {
		is_capital = no
		religion = ibadi
		owner = {
			religion = ibadi
			sunni = 2
		}
		NOT = {
			has_province_modifier = religious_center
		}
		NOT = { has_province_modifier = religious_zeal_at_conv }
	}

	mean_time_to_happen = {
		months = 5000
		modifier = {
			factor = 0.95
			owner = { innovativeness_ideas = 4 }
		}
		modifier = {
			factor = 0.95
			owner = { innovativeness_ideas = 5 }
		}
		modifier = {
			factor = 0.95
			owner = { innovativeness_ideas = 6 }
		}
		modifier = {
			factor = 0.95
			owner = { innovativeness_ideas = 7 }
		}
		modifier = {
			factor = 2.0
			owner = { government = theocratic_government }
		}
		modifier = {
			factor = 0.95
			any_neighbor_province = {
				religion = sunni
			}
		}
	}

	is_mtth_scaled_to_size = 1

	option = {
		name = "religious_events.EVTOPTA1"
		change_religion = sunni
		owner = { add_piety = -0.10 }
	}
}

# Tolerant Policy
province_event = {
	id = religious_events.12
	title = "religious_events.EVTNAME1"
	desc = "religious_events.EVTDESC8"
	picture = PRAYING_eventPicture

	trigger = {
		is_capital = no
		religion = ibadi
		owner = {
			religion = ibadi
			shiite = 2
		} 
		NOT = {
			has_province_modifier = religious_center
		}
		NOT = { has_province_modifier = religious_zeal_at_conv }
	}

	mean_time_to_happen = {
		months = 5000
		modifier = {
			factor = 0.95
			owner = { innovativeness_ideas = 4 }
		}
		modifier = {
			factor = 0.95
			owner = { innovativeness_ideas = 5 }
		}
		modifier = {
			factor = 0.95
			owner = { innovativeness_ideas = 6 }
		}
		modifier = {
			factor = 0.95
			owner = { innovativeness_ideas = 7 }
		}
		modifier = {
			factor = 2.0
			owner = { government = theocratic_government }
		}
		modifier = {
			factor = 0.95
			any_neighbor_province = {
				religion = shiite
			}
		}
	}

	is_mtth_scaled_to_size = 1

	option = {
		name = "religious_events.EVTOPTA1"
		change_religion = shiite
		owner = { add_piety = -0.10 }
	}
}

# Tolerant Policy
province_event = {
	id = religious_events.13
	title = "religious_events.EVTNAME1"
	desc = "religious_events.EVTDESC9"
	picture = PRAYING_eventPicture

	trigger = {
		is_capital = no
		religion = hinduism
		owner = {
			religion = hinduism
			sikhism = 2
		}
		NOT = { has_province_modifier = religious_zeal_at_conv }
	}

	mean_time_to_happen = {
		months = 5000
		modifier = {
			factor = 0.95
			owner = { innovativeness_ideas = 4 }
		}
		modifier = {
			factor = 0.95
			owner = { innovativeness_ideas = 5 }
		}
		modifier = {
			factor = 0.95
			owner = { innovativeness_ideas = 6 }
		}
		modifier = {
			factor = 0.95
			owner = { innovativeness_ideas = 7 }
		}
		modifier = {
			factor = 2.0
			owner = { government = theocratic_government }
		}
		modifier = {
			factor = 0.95
			any_neighbor_province = {
				religion = sikhism
			}
		}
	}

	is_mtth_scaled_to_size = 1

	option = {
		name = "religious_events.EVTOPTA1"
		change_religion = sikhism
	}
}

# Tolerant Policy
province_event = {
	id = religious_events.14
	title = "religious_events.EVTNAME1"
	desc = "religious_events.EVTDESC10"
	picture = PRAYING_eventPicture

	trigger = {
		is_capital = no
		religion = sikhism
		owner = {
			religion = sikhism
			hinduism = 2
		}
		NOT = { has_province_modifier = religious_zeal_at_conv }
	}

	mean_time_to_happen = {
		months = 5000
		modifier = {
			factor = 0.95
			owner = { innovativeness_ideas = 4 }
		}
		modifier = {
			factor = 0.95
			owner = { innovativeness_ideas = 5 }
		}
		modifier = {
			factor = 0.95
			owner = { innovativeness_ideas = 6 }
		}
		modifier = {
			factor = 0.95
			owner = { innovativeness_ideas = 7 }
		}
		modifier = {
			factor = 2.0
			owner = { government = theocratic_government }
		}
		modifier = {
			factor = 0.95
			any_neighbor_province = {
				religion = hinduism
			}
		}
	}

	is_mtth_scaled_to_size = 1

	option = {
		name = "religious_events.EVTOPTA1"
		change_religion = hinduism
	}
}

# Resurgence of Neo-Confucianism
country_event = {
	id = religious_events.15
	title = "religious_events.15.t"
	desc = "religious_events.15.d"
	picture = PRAYING_eventPicture

	trigger = {
		religion = confucianism
		NOT = { has_country_modifier = denounce_taoism }
		NOT = { has_country_modifier = neo_confucianism }
		stability = 1
		is_at_war = no
		is_year = 1500
	}

	mean_time_to_happen = {
		months = 24
	}

	option = {
		name = "religious_events.15.a"
		add_country_modifier = {
			name = "neo_confucianism"
			duration = -1
		}
		ai_chance = {
			factor = 50
			modifier = {
				factor = 2
				OR = {
					any_owned_province = { has_owner_religion = no } 
					revolt_percentage = 5
					war_exhaustion = 10
				}
			}
		}
	}

	option = {
		name = "religious_events.15.b"
		add_country_modifier = {
			name = "denounce_taoism"
			duration = -1
		}
		ai_chance = {
			factor = 50
			modifier = {
				factor = 0.1
				num_of_missionaries = 4
			}
		}
	}
}

country_event = {
	id = religious_events.16
	title = "religious_events.16.t"
	desc = "religious_events.16.d"
	picture = COURT_eventPicture
	
	trigger = {
		religion = hinduism
		is_religion_enabled = sunni
		NOT = { has_country_flag = had_religious_coup }
		is_force_converted = no
		is_free_or_tributary_trigger = yes
		OR = {
			tag = BNG #Bengal
			tag = BIJ #Bijapur
			tag = BAH #Bahmani
			tag = DLH #Delhi
			tag = GOC #Golconda
			tag = DEC #Deccan
			tag = MUG #Mughals
			tag = AHM #Ahmednagar
			tag = GUJ #Gujarat
			tag = JNP #Jaunpur
			tag = MLW #Malwa
			tag = MUL #Multan
			tag = SND #Sindh
			tag = BRR #Berar
			tag = KSH #Kashmir
			tag = KHD #Khandesh
			tag = ODH #Oudh
			tag = JAJ #Janjira
		}
	}
	
	immediate = {
		hidden_effect = {
			set_country_flag = had_religious_coup
			if = {
				limit = {
					OR  = {
						tag = BNG #Bengal
						tag = DLH #Delhi
						tag = DEC #Deccan
						tag = MUG #Mughals
						tag = AHM #Ahmednagar
						tag = JNP #Jaunpur
						tag = MLW #Malwa
						tag = MUL #Multan
						tag = SND #Sindh
						tag = BRR #Berar
						tag = KHD #Khandesh
					}
				}
				set_country_flag = sunni_coup
			}
			if = {
				limit = {
					OR  = {
						tag = BIJ #Bijapur
						tag = BAH #Bahmani
						tag = GOC #Golconda
						tag = GUJ #Gujarat
						tag = KSH #Kashmir
						tag = ODH #Oudh
					}
				}
				set_country_flag = shia_coup
			}
		}
	}
	
	mean_time_to_happen = {
		months = 6
	}
	
	option = {
		ai_chance = {
			factor = 90
		}
		name = "religious_events.16.a"
		if = {
			limit = { has_country_flag = sunni_coup }
			change_religion = sunni
			clr_country_flag = sunni_coup
		}
		if = {
			limit = { has_country_flag = shia_coup }
			change_religion = shiite
			clr_country_flag = shia_coup
		}
		if = {
			limit = {
				has_heir = yes
			}
			kill_ruler = yes
		}
		if = {
			limit = {
				has_heir = no
			}
			define_ruler = {
				dynasty = ROOT
			}
		}
		add_stability = 2 #One is for placating the aristocrats and clergy the other to counteract the -1 stab on monarch death
		if = {
			limit = {
				has_dlc = "The Cossacks"
				has_estate = estate_nobles
			}
			add_estate_loyalty = {
				estate = estate_nobles
				loyalty = 10
			}
		}
		swap_free_idea_group = yes		#keep progress
		hidden_effect = {
			every_neighbor_country = {
				country_event = { id = religious_events.17 }
			}
		}
	}
	option = {
		name = "religious_events.16.b"
		ai_chance = {
			factor = 10
			modifier = {
				factor = 0
				NOT = { num_of_cities = 2 }
			}
			modifier = {
				factor = 0
				has_dlc = "The Cossacks"
				has_estate = estate_nobles
				NOT = {
					estate_loyalty = {
						estate = estate_nobles
						loyalty = 40
					}
				}
			}
		}
		add_stability = -1
		add_country_modifier = {
			name = "indian_religious_tensions" 
			duration = 1825
		}
		if = {
			limit = {
				has_dlc = "The Cossacks"
				has_estate = estate_nobles
			}
			add_estate_loyalty = {
				estate = estate_nobles
				loyalty = -10
			}
		}
		if = {
			limit = {
				has_dlc = "The Cossacks"
				has_estate = estate_church #These will be Hindu clerics if not switching.
			}
			add_estate_loyalty = {
				estate = estate_church
				loyalty = 10
			}
		}
		if = {
			limit = {
				has_country_flag = sunni_coup
			}
			clr_country_flag = sunni_coup
			random_owned_province = {
				limit = {
					NOT = { is_capital = yes }
					owner = {
						fort_15th = 1
					}
					has_building = fort_15th
				}
				spawn_rebels = {
					type = sunni_rebels	
					size = 2	
					win = yes
				}
			}
			random_owned_province = {
				limit = {
					NOT = { is_capital = yes }
					owner = {
						NOT = { fort_15th = 1 }
					}
				}
				spawn_rebels = {
					type = sunni_rebels	
					size = 2	
				}
			}
		}
		if = {
			limit = {
				has_country_flag = shia_coup
			}
			clr_country_flag = shia_coup
			random_owned_province = {
				limit = {
					NOT = { is_capital = yes }
					owner = {
						fort_15th = 1
					}
					has_building = fort_15th
				}
				spawn_rebels = {
					type = shiite_rebels	
					size = 2	
					win = yes
				}
			}
			random_owned_province = {
				limit = {
					NOT = { is_capital = yes }
					owner = {
						NOT = { fort_15th = 1 }
					}
				}
				spawn_rebels = {
					type = shiite_rebels	
					size = 2	
				}
			}
		}
	}
}

country_event = {
	id = religious_events.17
	title = "religious_events.17.t"
	desc = "religious_events.17.d"
	picture = COURT_eventPicture
	
	is_triggered_only = yes
	
	option = {
		name = "religious_events.17.a" #This is an Outrage!
		trigger = { NOT = { religion_group = muslim } }
	}
	option = {
		name = "religious_events.17.b" #Excellent
		trigger = { religion_group = muslim }
	}
}

#Conversion to Christianity
country_event = {
	id = religious_events.18
	title = "religious_events.18.t"
	desc = "religious_events.18.d"
	picture = COURT_eventPicture
	
	is_triggered_only = yes
	
	option = {
		name = "religious_events.18.a" #
		ai_chance = { factor = 100 }
		trigger = { any_owned_province = { religion = catholic } }
		change_religion = catholic
		add_stability = -4
	}
	option = {
		name = "religious_events.18.b" #
		ai_chance = { factor = 100 }
		trigger = { any_owned_province = { religion = orthodox } }
		change_religion = orthodox
		add_stability = -4
	}
	option = {
		name = "religious_events.18.c" #
		ai_chance = { factor = 100 }
		trigger = { any_owned_province = { religion = coptic } }
		change_religion = coptic
		add_stability = -4
	}
	option = {
		name = "religious_events.18.dd" #
		ai_chance = { factor = 100 }
		trigger = { any_owned_province = { religion = reformed } }
		change_religion = reformed
		add_stability = -4
	}
	option = {
		name = "religious_events.18.e" #
		ai_chance = { factor = 100 }
		trigger = { any_owned_province = { religion = protestant } }
		change_religion = protestant
		add_stability = -4
	}
	option = {
		name = "religious_events.18.f" #
		ai_chance = { factor = 1 } #AI should pick this if the event somehow triggers despite none of the above being possible.
	}
}

#Conversion to Islam
country_event = {
	id = religious_events.19
	title = "religious_events.19.t"
	desc = "religious_events.19.d"
	picture = COURT_eventPicture
	
	is_triggered_only = yes
	
	option = {
		name = "religious_events.19.a" #
		ai_chance = { factor = 100 }
		trigger = { any_owned_province = { religion = sunni } }
		change_religion = sunni
		add_stability = -4
	}
	option = {
		name = "religious_events.19.b" #
		ai_chance = { factor = 100 }
		trigger = { any_owned_province = { religion = shiite } }
		change_religion = shiite
		add_stability = -4
	}
	option = {
		name = "religious_events.19.c" #
		ai_chance = { factor = 100 }
		trigger = { any_owned_province = { religion = ibadi } }
		change_religion = ibadi
		add_stability = -4
	}
	option = {
		name = "religious_events.18.f" #
		ai_chance = { factor = 1 } #AI should pick this if the event somehow triggers despite none of the above being possible.
	}
}

#Conversion to Buddhism
country_event = {
	id = religious_events.20
	title = "religious_events.20.t"
	desc = "religious_events.20.d"
	picture = COURT_eventPicture
	
	is_triggered_only = yes
	
	option = {
		name = "religious_events.20.a" #
		ai_chance = { factor = 100 }
		trigger = { any_owned_province = { religion = buddhism } }
		change_religion = buddhism
		add_stability = -4
	}
	option = {
		name = "religious_events.20.b" #
		ai_chance = { factor = 100 }
		trigger = { any_owned_province = { religion = vajrayana } }
		change_religion = vajrayana
		add_stability = -4
	}
	option = {
		name = "religious_events.20.c" #
		ai_chance = { factor = 100 }
		trigger = { any_owned_province = { religion = confucianism } }
		change_religion = confucianism
		add_stability = -4
	}
	option = {
		name = "religious_events.20.dd" #
		ai_chance = { factor = 100 }
		trigger = { any_owned_province = { religion = shinto } }
		change_religion = shinto
		add_stability = -4
	}
	option = {
		name = "religious_events.18.f" #
		ai_chance = { factor = 1 } #AI should pick this if the event somehow triggers despite none of the above being possible.
	}
}

#Conversion to Dharmic
country_event = {
	id = religious_events.21
	title = "religious_events.21.t"
	desc = "religious_events.21.d"
	picture = COURT_eventPicture
	
	is_triggered_only = yes
	
	option = {
		name = "religious_events.21.a" #
		ai_chance = { factor = 100 }
		trigger = { any_owned_province = { religion = hinduism } }
		change_religion = hinduism
		add_stability = -4
	}
	option = {
		name = "religious_events.21.b" #
		ai_chance = { factor = 100 }
		trigger = { any_owned_province = { religion = sikhism } }
		change_religion = sikhism
		add_stability = -4
	}
	option = {
		name = "religious_events.18.f" #
		ai_chance = { factor = 1 } #AI should pick this if the event somehow triggers despite none of the above being possible.
	}
}

#Conversion to Zoroastrianism
country_event = {
	id = religious_events.22
	title = "religious_events.22.t"
	desc = "religious_events.22.d"
	picture = COURT_eventPicture
	
	is_triggered_only = yes
	
	option = {
		name = "religious_events.22.a" #
		ai_chance = { factor = 100 }
		trigger = { any_owned_province = { religion = zoroastrian } }
		change_religion = zoroastrian
		add_stability = -4
	}
	option = {
		name = "religious_events.18.f" #
		ai_chance = { factor = 1 } #AI should pick this if the event somehow triggers despite none of the above being possible.
	}
}

#Conversion to Judaism
country_event = {
	id = religious_events.23
	title = "religious_events.23.t"
	desc = "religious_events.23.d"
	picture = COURT_eventPicture
	
	is_triggered_only = yes
	
	option = {
		name = "religious_events.23.a" #
		ai_chance = { factor = 100 }
		trigger = { any_owned_province = { religion = jewish } }
		change_religion = jewish
		add_stability = -4
	}
	option = {
		name = "religious_events.18.f" #
		ai_chance = { factor = 1 } #AI should pick this if the event somehow triggers despite none of the above being possible.
	}
}