province_event = {

	id = 2031
	
	trigger = {
		owner = {
			NOT = { has_country_flag = religious_turmoil } 
			NOT = { religion = THIS }
			NOT = { adm = 6 }
			religion_group = christian
		}
		religion_group = christian
	}
	
	mean_time_to_happen = {
		months = 540
		
		modifier = {
			factor = 0.9
			any_neighbor_province = {
				religion = THIS
			}
		}	
		modifier = {
			factor = 0.9
			owner = { NOT = { adm = 5 } }
		}
		modifier = {
			factor = 0.9
			owner = { idea = divine_supremacy }
		}
		modifier = {
			factor = 0.9
			owner = { innovative_narrowminded = 3 }
		}
		modifier = {
			factor = 0.9
			owner = { innovative_narrowminded = 4 }
		}
		modifier = {
			factor = 1.15
			owner = { NOT = { innovative_narrowminded = -2 } }
		}
		modifier = {
			factor = 1.15
			owner = { NOT = { innovative_narrowminded = -3 } }
		}
		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 = 1
		owner = {
			add_country_modifier = {
				name = "religious_intolerance"
				duration = 500
			}
			set_country_flag = religious_intolerance
			set_country_flag = religious_turmoil
		}
	}
	option = {
		name = "EVTOPTB2031"				# We should strive for a tolerant society
		owner = {
			missionaries = -2
			add_country_modifier = {
				name = "religious_tolerance"
				duration = 500
			}
			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 = { has_country_flag = intolerant }
			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.02 }
		}
		modifier = {
			factor = 0.9
			owner = { revolt_percentage = 0.04 }
		}
		modifier = {
			factor = 0.9
			owner = { revolt_percentage = 0.06 }
		}
		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
		}
		owner = { set_country_flag = intolerant}
	}
	option = {
		name = "EVTOPTB2032"		# Increase funding to convert the heretics.
		owner = {
			missionaries = 2
			treasury = -50
			add_country_modifier = {
				name = "convert_heretics"
				duration = 300
			}
			clr_country_flag = religious_intolerance	# 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 } 
		}
	}
	
	mean_time_to_happen = {
		months = 72
		
		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.05 }
		}
		modifier = {
			factor = 0.9
			owner = { revolt_percentage = 0.1 }
		}
	}
	
	title = "EVTNAME2033"
	desc = "EVTDESC2033"
	
	option = {				# Increase funding to suppress the heretics.
		name = "EVTOPTA2033"
		create_revolt = 1
		owner = {
			clr_country_flag = religious_intolerance	# Marks the end of the nation's religious problems
			treasury = -60
			add_country_modifier = {
				name = "military_funding"
				duration = 150
			}
		}
	}
	option = {				# Ignore them.
		name = "EVTOPTB2033"
		create_revolt = 2
		owner = { stability = -1 }
	}
	option = {				# Give Concessions.
		name = "EVTOPTC2033"
		owner = {
			innovative_narrowminded = -1
			clr_country_flag = religious_intolerance	# Marks the end of the nation's religious problems
			add_country_modifier = {
				name = "disorder"
				duration = 100
			}
		}
	}
}


# Tolerant society
province_event = {

	id = 2034
	
	trigger = {
		owner = {
			has_country_flag = religious_turmoil
			has_country_flag = religious_tolerance
			NOT = { has_country_flag = subdue_heretics }
			NOT = { religion = catholic }
		}
	}
	
	mean_time_to_happen = {
		months = 60
		
		modifier = {
			factor = 0.95
			owner = { idea = church_attendance_duty }
		}
		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.05 }
		}
		modifier = {
			factor = 0.8
			owner = { revolt_percentage = 0.1 }
		}
		modifier = {
			factor = 1.1
			owner = { NOT = { innovative_narrowminded = -1 } }
		}
		modifier = {
			factor = 1.1
			owner = { NOT = { innovative_narrowminded = -2 } }
		}
		modifier = {
			factor = 0.9
			owner = { innovative_narrowminded = 2 }
		}
		modifier = {
			factor = 0.9
			owner = { innovative_narrowminded = 3 }
		}
	}
	
	title = "EVTNAME2034"
	desc = "EVTDESC2034"
	
	option = {
		name = "EVTOPTA2034"		# Subdue the heretics.
		create_revolt = 3
		owner = {
			set_country_flag = subdue_heretics
		}
	}
	option = {
		name = "EVTOPTB2034"		# Convert them.
		owner = {
			missionaries = 2
			stability = -1
			clr_country_flag = religious_tolerance		# 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
		NOT = { has_country_flag = ignorance }
	}
	
	mean_time_to_happen = {
		months = 36
		
		modifier = {
			factor = 0.9
			owner = { revolt_percentage = 0.05 }
		}
		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
		}
	}
	
	title = "EVTNAME2035"
	desc = "EVTDESC2035"
	
	option = {
		name = "EVTOPTA2035"		# Our time is better spent elsewhere
		random_owned = {
			create_revolt = 1
		}
		random_owned  = {
			create_revolt = 2
		}
		set_country_flag = ignorance
	}
	option = {
		name = "EVTOPTB2035"		# Issue a new edict
		treasury = -40
		stability = 1
		clr_country_flag = religious_tolerance		# Marks the end of the nation's religious problems
	}
}


# Muslim countries
province_event = {

	id = 2037
	
	trigger = {
		owner = {
			NOT = { has_country_flag = religious_turmoil } 
			NOT = { religion = THIS }
			NOT = { adm = 6 }
			religion_group = muslim
		}
		religion_group = muslim
	}
	
	mean_time_to_happen = {
		months = 540
		
		modifier = {
			factor = 0.9
			any_neighbor_province = {
				religion = THIS
			}
		}	
		modifier = {
			factor = 0.9
			owner = { NOT = { adm = 5 } }
		}
		modifier = {
			factor = 0.9
			owner = { idea = divine_supremacy }
		}
		modifier = {
			factor = 0.9
			owner = { innovative_narrowminded = 3 }
		}
		modifier = {
			factor = 0.9
			owner = { innovative_narrowminded = 4 }
		}
		modifier = {
			factor = 1.15
			owner = { NOT = { innovative_narrowminded = -2 } }
		}
		modifier = {
			factor = 1.15
			owner = { NOT = { innovative_narrowminded = -3 } }
		}
		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 = 1
		owner = {
			add_country_modifier = {
				name = "religious_intolerance"
				duration = 500
			}
			set_country_flag = religious_intolerance
			set_country_flag = religious_turmoil
		}
	}
	option = {
		name = "EVTOPTB2031"				# We should strive for a tolerant society
		owner = {
			missionaries = -2
			add_country_modifier = {
				name = "religious_tolerance"
				duration = 500
			}
			set_country_flag = religious_tolerance			
			set_country_flag = religious_turmoil
		}
	}
}
