country_event = {
 
	id = 1090

	trigger = {
		not = { has_country_flag = religious_restrictions }
		government = theocratic_government
		not = { idea = ecumenism }
		any_owned_province = { has_owner_religion = no }
		not = { any_owned_province = { has_missionary = yes } }
		not = { has_country_modifier = religious_tolerance }
		not = { has_country_modifier = religious_intolerance }
	}

	mean_time_to_happen = {
		months = 180

		modifier = {
			factor = 0.9
			defender_of_faith = yes
		}
		modifier = {
			factor = 0.9
			idea = divine_supremacy
		}
		modifier = {
			factor = 0.9
			advisor = theologian
		}
		modifier = {
			factor = 0.9
			theologian = 5
		}
		modifier = {
			factor = 0.9
			theologian = 6
		}
	}

	title = "EVTNAME1090"
	desc = "EVTDESC1090"
	
	option = {
		name = "EVTOPTA1090"		# Take his advice under consideration
		ai_chance = { factor = 55 }
		set_country_flag = religious_restrictions
		add_country_modifier = {
			name = "religious_restriction"
			duration = 730
		}
	}
	option = {
		name = "EVTOPTB1090"		# It's not of any consequence
		ai_chance = { factor = 45 }
		set_country_flag = religious_restrictions
		random = {
			chance = 40
			random_owned = {
				limit = { has_owner_religion = no }
				create_revolt = 1
			}
		}				
	}
}

country_event = {
 
	id = 1091

	trigger = {
		not = { has_country_flag = problematic_relations }
		government = theocratic_government
		any_neighbor_country = {
			not = { relation = { who = this value = -50 } }
			not = { religion = this }
		}
	}

	mean_time_to_happen = {
		months = 180

		modifier = {
			factor = 0.9
			defender_of_faith = yes
		}
		modifier = {
			factor = 0.9
			idea = divine_supremacy
		}
		modifier = {
			factor = 0.9
			advisor = theologian
		}
		modifier = {
			factor = 0.9
			theologian = 5
		}
		modifier = {
			factor = 0.9
			theologian = 6
		}
		modifier = {
			factor = 0.9
			mil= 7
		}
		modifier = {
			factor = 0.9
			mil= 8
		}
		modifier = {
			factor = 0.9
			mil= 9
		}
		modifier = {
			factor = 1.2
			not = { mil= 4 }
		}
	}

	title = "EVTNAME1091"
	desc = "EVTDESC1091"
	
	option = {
		name = "EVTOPTA1091"		# Make your opinion clear to them
		ai_chance = { factor = 45 }
		set_country_flag = problematic_relations
		random_country = {
			limit = {
				neighbour = this
				not = { religion = this }
				not = { relation = { who = this value = -50 } }
			}
			relation = { who = this value = -50 }
			badboy = 2
		}	
	}
	option = {
		name = "EVTOPTB1091"		# Make preparations for a future attack
		ai_chance = { factor = 55 }
		set_country_flag = problematic_relations
		army_tradition = 0.1
		treasury = -40
	}
}
