province_event = {
	
	id = 2031
	
	trigger = {
		owner = {
			NOT = { has_country_flag = religious_turmoil } 
			OR = {
				religion_group = western_rite_christian
				religion_group = eastern_rite_christian
				}
			NOT = { religion = THIS }
			revolt_percentage = 0.1
			NOT = { adm = 6 }
			innovative_narrowminded = 2
			}
		OR = {
			religion_group = western_rite_christian
			religion_group = eastern_rite_christian
			religion_group = muslim
			}
		any_neighbor_province = {
			religion = THIS
			}
		}
	
	mean_time_to_happen = {
		months = 360
		
		modifier = {
			factor = 0.9
			owner = { NOT = { adm = 5 } }
			}
		modifier = {
			factor = 0.9
			owner = { NOT = { adm = 4 } }
			}
		modifier = {
			factor = 0.9
			owner = { idea = divine_supremacy }
			}
		modifier = {
			factor = 0.95
			owner = { innovative_narrowminded = 1 }
			}
		modifier = {
			factor = 0.95
			owner = { innovative_narrowminded = 3 }
			}
		modifier = {
			factor = 1.05
			owner = { NOT = { innovative_narrowminded = 0 } }
			}
		modifier = {
			factor = 1.05
			owner = { NOT = { innovative_narrowminded = -2 } }
			}
		modifier = {
			factor = 0.9
			owner = { NOT = { stability = 0 } }
			}
		modifier = {
			factor = 0.9
			owner = { NOT = { stability = -1 } }
			}
		modifier = {
			factor = 0.9
			owner = { NOT = { stability = -2 } }
			}
		modifier = {
			factor = 1.1
			owner = { stability = 1 }
			}
		modifier = {
			factor = 1.1
			owner = { stability = 2 }
			}
		modifier = {
			factor = 1.1
			owner = { stability = 3 }
			}
		}
	
	title = "EVTNAME2031"
	desc = "EVTDESC2031"
	
	option = {
		name = "EVTOPTA2031"# Eradicate the heretics to bring peace
		create_revolt = 2
		owner = {
			add_country_modifier = {
				name = "religious_intolerance"
				duration = 150
				}
			set_country_flag = religious_intolerance
			set_country_flag = religious_turmoil
			}
		}
	option = {
		name = "EVTOPTB2031"# We should strive for a tolerant society
		owner = {
			add_country_modifier = {
				name = "religious_tolerance"
				duration = 150
				}
			missionaries = -2
			set_country_flag = religious_tolerance
			set_country_flag = religious_turmoil
			}
		}
	}


# Intolerant society, large number of heretics
province_event = {
	
	id = 2032
	
	trigger = {
		owner = {
			has_country_flag = religious_turmoil
			has_country_flag = religious_intolerance
			NOT = { religion = THIS }
			}
		any_neighbor_province = {
			religion = THIS
			}
		}
	
	mean_time_to_happen = {
		months = 120
		
		modifier = {
			factor = 0.9
			owner = { NOT = { stability = 0 } }
			}
		modifier = {
			factor = 0.9
			owner = { NOT = { stability = -1 } }
			}
		modifier = {
			factor = 0.9
			owner = { NOT = { stability = -2 } }
			}
		modifier = {
			factor = 1.1
			owner = { stability = 1 }
			}
		modifier = {
			factor = 1.1
			owner = { stability = 2 }
			}
		modifier = {
			factor = 1.1
			owner = { stability = 3 }
			}
		modifier = {
			factor = 0.9
			owner = { revolt_percentage = 0.1 }
			}
		modifier = {
			factor = 0.9
			owner = { revolt_percentage = 0.2 }
			}
		modifier = {
			factor = 0.9
			owner = { revolt_percentage = 0.3 }
			}
		modifier = {
			factor = 0.9
			owner = { NOT = { adm = 5 } }
			}
		modifier = {
			factor = 0.9
			owner = { NOT = { adm = 4 } }
			}
		modifier = {
			factor = 1.1
			owner = { adm = 6 }
			}
		modifier = {
			factor = 1.1
			owner = { adm = 7 }
			}
		}
	
	title = "EVTNAME2032"
	desc = "EVTDESC2032"
	
	option = {
		name = "EVTOPTA2032"# Banish the nonconformists.
		create_revolt = 2
		heretic  = {
			create_revolt = 2
			}
		}
	option = {
		name = "EVTOPTB2032"# Increase funding to convert the heretics.
		owner = {
			add_country_modifier = {
				name = "convert_heretics"
				duration = 150
				}
			missionaries = 2
			treasury = -80
			clr_country_flag = religious_intolerance
			clr_country_flag = religious_turmoil# Marks the end of the nation's religious problems
			}
		}
	}



# Intolerant society
province_event = {
	
	id = 2033
	
	trigger = {
		owner = {
			has_country_flag = religious_turmoil
			has_country_flag = religious_intolerance
			NOT = { religion = THIS } 
			defender_of_faith = yes
			}
		}
	
	mean_time_to_happen = {
		months = 120
		
		modifier = {
			factor = 0.9
			owner = { NOT = { stability = 0 } }
			}
		modifier = {
			factor = 0.9
			owner = { NOT = { stability = -1 } }
			}
		modifier = {
			factor = 0.9
			owner = { NOT = { stability = -2 } }
			}
		modifier = {
			factor = 1.1
			owner = { stability = 1 }
			}
		modifier = {
			factor = 1.1
			owner = { stability = 2 }
			}
		modifier = {
			factor = 1.1
			owner = { stability = 3 }
			}
		modifier = {
			factor = 0.9
			owner = { revolt_percentage = 0.1 }
			}
		modifier = {
			factor = 0.9
			owner = { revolt_percentage = 0.2 }
			}
		modifier = {
			factor = 0.9
			owner = { revolt_percentage = 0.3 }
			}
		}
	
	title = "EVTNAME2033"
	desc = "EVTDESC2033"
	
	option = {# Increase funding to suppress the heretics.
		name = "EVTOPTA2033"
		heretic  = {
			create_revolt = 1
			}
		owner = {
			add_country_modifier = {
				name = "military_funding"
				duration = 150
				}
			treasury = -60
			clr_country_flag = religious_intolerance
			}
		}
	option = {# Ignore them.
		name = "EVTOPTB2033"
		owner = { stability = -1 }
		create_revolt = 2
		}
	option = {# Give Concessions.
		name = "EVTOPTC2033"
		owner = {
			add_country_modifier = {
				name = "disorder"
				duration = 100
				}
			treasury = -50
			clr_country_flag = religious_intolerance
			clr_country_flag = religious_turmoil# Marks the end of the nation's religious problems
			}
		}
	}


# Tolerant society
country_event = {
	
	id = 2034
	
	trigger = {
		has_country_flag = religious_turmoil
		has_country_flag = religious_tolerance
		OR = {
			idea = divine_supremacy
			theologian = 5
			}
		innovative_narrowminded = 2
		}
	
	mean_time_to_happen = {
		months = 60
		
		modifier = {
			factor = 0.95
			idea = church_attendance_duty
			}
		modifier = {
			factor = 0.9
			NOT = { stability = 0 }
			}
		modifier = {
			factor = 0.9
			NOT = { stability = -1 }
			}
		modifier = {
			factor = 0.9
			NOT = { stability = -2 }
			}
		modifier = {
			factor = 1.1
			stability = 1
			}
		modifier = {
			factor = 1.1
			stability = 2
			}
		modifier = {
			factor = 1.1
			stability = 3
			}
		modifier = {
			factor = 0.9
			revolt_percentage = 0.1
			}
		modifier = {
			factor = 0.8
			revolt_percentage = 0.3
			}
		modifier = {
			factor = 0.8
			innovative_narrowminded = 4
			}
		}
	
	title = "EVTNAME2034"
	desc = "EVTDESC2034"
	
	option = {
		name = "EVTOPTA2034"# Subdue the heretics.
		stability = -1
		random_owned = {
			create_revolt = 2
			}
		}
	option = {
		name = "EVTOPTB2034"# Convert them.
		missionaries = 1
		random_owned = {
			create_revolt = 1
			}
		random_owned = {
			create_revolt = 1
			}
		clr_country_flag = religious_tolerance
		clr_country_flag = religious_turmoil# Marks the end of the nation's religious problems
		}
	}



# Tolerant society
country_event = {
	
	id = 2035
	
	trigger = {
		has_country_flag = religious_turmoil
		has_country_flag = religious_tolerance
		religion = catholic
		OR = {
			NOT = { protestant = 0 }
			NOT = { reformed = 0 }
			}
		}
	
	mean_time_to_happen = {
		months = 60
		
		modifier = {
			factor = 0.9
			NOT = { protestant = -1 }
			}
		modifier = {
			factor = 0.8
			NOT = { protestant = -3 }
			}
		modifier = {
			factor = 0.9
			NOT = { reformed = -1 }
			}
		modifier = {
			factor = 0.8
			NOT = { reformed = -3 }
			}
		modifier = {
			factor = 0.9
			owner = { revolt_percentage = 0.1 }
			}
		modifier = {
			factor = 0.95
			NOT = { stability = 0 }
			}
		modifier = {
			factor = 0.85
			NOT = { stability = -1 }
			}
		modifier = {
			factor = 1.05
			stability = 1
			}
		modifier = {
			factor = 1.15
			stability = 2
			}
		modifier = {
			factor = 1.25
			stability = 3
			}
		}
	
	title = "EVTNAME2035"
	desc = "EVTDESC2035"
	
	option = {
		name = "EVTOPTA2035"# Our time is better spent elsewhere
		random_owned = {
			create_revolt = 1
			}
		random_owned  = {
			create_revolt = 2
			}
		stability = -1
		}
	option = {
		name = "EVTOPTB2035"# Issue a new edict
		treasury = -70
		stability = 1
		clr_country_flag = religious_tolerance
		clr_country_flag = religious_turmoil# Marks the end of the nation's religious problems
		}
	}