#########################################################
#		Gift to the state								#
#########################################################
country_event = {
	id = 5008
	title = "EVTNAME5008"
	desc = "EVTDESC5008"
	picture = ECONOMY_eventPicture

	is_triggered_only = yes

	mean_time_to_happen = {
		days = 1
		
		modifier = {
			factor = 2.0
			adm = 4
		}
		modifier = {
			factor = 2.0
			luck = yes
		}
	}

	option = {
		name = "EVTOPTA5008"		# Put into the treasury
		ai_chance = { factor = 55 }
		add_years_of_income = 0.2
	}
	option = {
		name = "EVTOPTB5008"		# Gain prestige
		ai_chance = { factor = 45 }
		add_prestige = 10
	}
}



#########################################################
#		Temporary insanity of Monarch	  				#
#########################################################
country_event = {
	id = 5014
	title = "EVTNAME5014"
	desc = "EVTDESC5014"
	picture = COURT_eventPicture
	
	is_triggered_only = yes

	trigger = {
		OR = {
			government = feudal_monarchy
			government = despotic_monarchy
			government = administrative_monarchy
			government = absolute_monarchy
			government = constitutional_monarchy
			government = enlightened_despotism
			government = bureaucratic_despotism
			government = imperial_government
		}
		NOT = { adm = 2 }
		NOT = { luck = yes }
		has_regency = no
	}

	mean_time_to_happen = {
		days = 1
		
		modifier = {
			factor = 2.0
			NOT = { advisor = statesman }
		}
		modifier = {
			factor = 0.66
			statesman = 3
		}
	}
	
	option = {
		name = "EVTOPTA5014"		# Request military guidance.
		ai_chance = { factor = 55 }
		add_prestige = -25
		add_years_of_income = -0.1
		add_army_tradition = 5
		add_navy_tradition = 5
	}
	option = {
		name = "EVTOPTB5014"		# Request administrative guidance.
		ai_chance = { factor = 45 }
		add_prestige = -25
		add_years_of_income = -0.1
		add_adm_power = 25
	}
}


#########################################################
#		Excellent minister		  						#
#########################################################
country_event = {
	id = 5015
	title = "EVTNAME5015"
	desc = "EVTDESC5015"
	picture = ADVISOR_eventPicture
	
	is_triggered_only = yes

	trigger = {
		OR = {
			government = feudal_monarchy
			government = despotic_monarchy
			government = administrative_monarchy
			government = absolute_monarchy
			government = constitutional_monarchy
			government = enlightened_despotism
			government = bureaucratic_despotism
			government = imperial_government
		}
		prestige = 2
		has_regency = no
	}

	mean_time_to_happen = {
		days = 1
		
		modifier = {
			factor = 2.0
			luck = yes
		}
		modifier = {
			factor = 2.0
			statesman = 3		
		}
		modifier = {
			factor = 0.66
			NOT = { advisor = statesman }
		}
	}

	option = {
		name = "EVTOPTA5015"		# Reap the administrative benefits
		ai_chance = { factor = 55 }
		add_stability = 1
		add_prestige = 25
		add_adm_power = 40
	}
	option = {
		name = "EVTOPTB5015"		# Reap the military benefits
		ai_chance = { factor = 45 }
		add_army_tradition = 10
		add_navy_tradition = 10
		add_mil_power = 100
	}
}

#########################################################
#		Scandal at the Court		  					#
#########################################################
country_event = {
	id = 5017
	title = "EVTNAME5017"
	desc = "EVTDESC5017"
	picture = COURT_eventPicture
	
	is_triggered_only = yes

	trigger = {
		num_of_royal_marriages = 2
	}

	mean_time_to_happen = {
		days = 1
		
		modifier = {
			factor = 0.5
			luck = yes
		}
	}

	option = {
		name = "EVTOPTA5017"		# Take the blame and move on.
		ai_chance = { factor = 45 }
		add_stability = -1
	}
	option = {
		name = "EVTOPTB5017"		# Bribe an advisor to take the blame.
		ai_chance = { factor = 55 }
		add_years_of_income = -0.33
	}
}

#########################################################
#		Wave of obscurantism						  	#
#########################################################
country_event = {
	id = 5018
	title = "EVTNAME5018"
	desc = "EVTDESC5018"
	picture = COURT_eventPicture
	
	is_triggered_only = yes

	trigger = {
		NOT = { has_country_modifier = obscurantism }
	}

	mean_time_to_happen = {
		days = 1
		
		modifier = {
			factor = 2.0
			NOT = { innovativeness_ideas = 1 }
		}
		modifier = {
			factor = 0.5
			luck = yes
		}
		modifier = {
			factor = 0.66
			advisor = natural_scientist
		}
	}

	option = {
		name = "EVTOPTA5018"		# Knowledge is power
		ai_chance = { factor = 45 }
		add_country_modifier = {
			name = "obscurantism"
			duration = 730
		}
	}
	option = {
		name = "EVTOPTB5018"		# Ignorance is bliss
		ai_chance = { factor = 55 }
		add_prestige = -33
	}
}

#########################################################
#		Exceptional year								#
#########################################################
country_event = {
	id = 5019
	title = "EVTNAME5019"
	desc = "EVTDESC5019"
	picture = TRADEGOODS_eventPicture
	
	is_triggered_only = yes

	trigger = {
		OR = {
			advisor = treasurer
			advisor = trader
			advisor = statesman
			advisor = natural_scientist
		}
		is_year = 1450
		NOT = { is_year = 1550 }
	}

	mean_time_to_happen = {
		days = 1
		
		modifier = {
			factor = 2.0
			production_efficiency = 0.5
		}
		modifier = {
			factor = 0.8
			NOT = { stability = 0 }
		}
		modifier = {
			factor = 1.25
			stability = 1
		}
		modifier = {
			factor = 2.0
			luck = yes
		}
		modifier = {
			factor = 0.66
			is_bankrupt = yes
		}
	}

	option = {
		name = "EVTOPTA5019"		# Collect the benefits over time
		ai_chance = { factor = 45 }
		add_country_modifier = {
			name = "exceptional_year"
			duration = 365
		}
	}
	option = {
		name = "EVTOPTB5019"		# Take advantage of the benefits at once
		ai_chance = { factor = 55 }
		add_years_of_income = 0.1
	}
}

# Exceptional Year
country_event = {
	id = 5020
	title = "EVTNAME5019"
	desc = "EVTDESC5019"
	picture = ECONOMY_eventPicture
	
	is_triggered_only = yes

	trigger = {
		OR = {
			advisor = treasurer
			advisor = trader
			advisor = statesman
			advisor = natural_scientist
		}
		is_year = 1550
		NOT = { is_year = 1650 }
	}

	mean_time_to_happen = {
		days = 1
		
		modifier = {
			factor = 2.0
			production_efficiency = 0.5
		}
		modifier = {
			factor = 2.0
			luck = yes
		}
		modifier = {
			factor = 0.66
			is_bankrupt = yes
		}
	}

	option = {
		name = "EVTOPTA5019"		# Collect the benefits over time
		ai_chance = { factor = 45 }
		add_country_modifier = {
			name = "exceptional_year"
			duration = 365
		}
	}
	option = {
		name = "EVTOPTB5019"		# Take advantage of the benefits at once
		ai_chance = { factor = 55 }
		add_years_of_income = 0.08
	}
}

# Exceptional Year
country_event = {
	id = 5021
	title = "EVTNAME5019"
	desc = "EVTDESC5019"
	picture = ECONOMY_eventPicture
	
	is_triggered_only = yes

	trigger = {
		OR = {
			advisor = treasurer
			advisor = trader
			advisor = statesman
			advisor = natural_scientist
		}
		is_year = 1650
	}

	mean_time_to_happen = {
		days = 1
		
		modifier = {
			factor = 2.0
			production_efficiency = 0.5
		}
		modifier = {
			factor = 2.0
			luck = yes
		}
		modifier = {
			factor = 0.66
			is_bankrupt = yes
		}
	}

	option = {
		name = "EVTOPTA5019"		# Collect the benefits over time
		ai_chance = { factor = 45 }
		add_country_modifier = {
			name = "exceptional_year"
			duration = 365
		}
	}
	option = {
		name = "EVTOPTB5019"		# Take advantage of the benefits at once
		ai_chance = { factor = 55 }
		add_years_of_income = 0.05
	}
}

#########################################################
#		Rush of colonists								#
#########################################################
country_event = {
	id = 5022
	title = "EVTNAME5022"
	desc = "EVTDESC5022"
	picture = COLONIZATION_eventPicture
	
	is_triggered_only = yes

	trigger = {
		has_idea = quest_for_the_new_world
		num_of_ports = 1
		NOT =  { has_country_modifier = colonial_enthusiasm }
		NOT =  { has_country_modifier = monetary_benefits }
		num_of_colonial_subjects = 1
	}

	mean_time_to_happen = {
		days = 1
		
		modifier = {
			factor = 2.0
			has_idea = colonial_ventures
		}
		modifier = {
			factor = 2.0
			luck = yes
		}
		modifier = {
			factor = 0.66
			offensive_ideas = 5
		}
	}

	option = {
		name = "EVTOPTA5022"		# Gain extra colonists
		ai_chance = { factor = 45 }	
		add_country_modifier = {
			name = "colonial_enthusiasm"
			duration = 1825
		}
	}
	option = {
		name = "EVTOPTB5022"		# Receive monetary benefits
		ai_chance = { factor = 55 }
		add_country_modifier = {
			name = "monetary_benefits"
			duration = 1825
		}
	}
}

#########################################################
#		Rush of merchants								#
#########################################################
country_event = {
	id = 5023
	title = "EVTNAME5023"
	desc = "EVTDESC5023"
	picture = MERCHANTS_TALKING_eventPicture
	
	is_triggered_only = yes

	trigger = {
		advisor = trader
		NOT = {
			has_country_modifier = rush_of_merchants
		}
		NOT = {
			has_country_modifier = monetary_benefits
		}
	}

	mean_time_to_happen = {
		days = 1
		
		modifier = {
			factor = 2.0
			trade_efficiency = 0.5
			
		}
		modifier = {
			factor = 2.0
			luck = yes
		}
		modifier = {
			factor = 0.66
			is_bankrupt = yes
		}
	}

	option = {
		name = "EVTOPTA5023" # Gain extra merchants
		ai_chance = { factor = 45 }	
		add_country_modifier = {
			name = rush_of_merchants
			duration = 1825
		}
	}
	option = {
		name = "EVTOPTB5023" # Receive monetary benefits
		ai_chance = { factor = 55 }
		add_country_modifier = {
			name = "monetary_benefits"
			duration = 1825
		}
	}
}

#########################################################
#		Diplomatic event		  						#
#########################################################

# Diplomatic move
country_event = {
	id = 5024
	title = "EVTNAME5024"
	desc = "EVTDESC5024"
	picture = DIPLOMACY_eventPicture
	
	is_triggered_only = yes

	trigger = {
		dip = 4
	}

	mean_time_to_happen = {
		days = 1
		
		modifier = {
			factor = 2.0
			advisor = diplomat
		}
		modifier = {
			factor = 2.0
			luck = yes
		}
	}

	option = {
		name = "EVTOPTA5024" # Appoint new diplomats
		ai_chance = { factor = 60 }
		add_dip_power = 30
	}	
	option = {
		name = "EVTOPTB5024" # Improve relations with neighboring states
		ai_chance = { factor = 40 }
		add_dip_power = 10
		random_country = {
			limit = { is_neighbor_of = ROOT }
			add_opinion = { who = ROOT modifier = opinion_improved_relations }
		}
	}
}

# Excellent Diplomacy
country_event = {
	id = 5025
	title = "EVTNAME5025"
	desc = "EVTDESC5025"
	picture = DIPLOMACY_eventPicture
	
	is_triggered_only = yes

	trigger = {
		diplomat = 2
	}

	mean_time_to_happen = {
		days = 1
		
		modifier = {
			factor = 2.0
			dip = 4
		}
		modifier = {
			factor = 2.0
			luck = yes
		}
		modifier = {
			factor = 0.66
			NOT = { dip = 1 }
		}
	}

	option = {
		name = "EVTOPTA5025"		# Bask in the Glory
		ai_chance = { factor = 55 }
		add_prestige = 5
	}
	option = {
		name = "EVTOPTB5025"		# Improve our Reputation
		ai_chance = { factor = 45 }
		add_dip_power = 25
	}
}


#########################################################
#		Reformation of the Army 					  	#
#########################################################

country_event = {
	id = 5027
	title = "EVTNAME5027"
	desc = "EVTDESC5027"
	picture = REFORM_eventPicture
	
	is_triggered_only = yes

	trigger = {
		army_reformer = 2
	}

	mean_time_to_happen = {
		days = 1
		
		modifier = {
			factor = 2.0
			mil = 4
		}
		modifier = {
			factor = 2.0
			luck = yes
		}
		modifier = {
			factor = 0.66
			NOT = { mil = 1 }
		}
	}


	option = {
		name = "EVTOPTA5027"		# Invest in army technology
		ai_chance = { factor = 55 }
		add_mil_power = 50
	}
	option = {
		name = "EVTOPTB5027"		# Improve our existing military
		ai_chance = { factor = 45 }
		add_army_tradition = 20
	}
}

#########################################################
#		Reformation of the Navy 					  	#
#########################################################

country_event = {
	id = 5032
	title = "EVTNAME5032"
	desc = "EVTDESC5032"
	picture = REFORM_eventPicture
	
	is_triggered_only = yes

	trigger = {
		naval_reformer = 2
	}

	mean_time_to_happen = {
		days = 1
		
		modifier = {
			factor = 2.0
			mil = 4
		}
		modifier = {
			factor = 2.0
			luck = yes
		}
		modifier = {
			factor = 0.66
			NOT = { mil = 1 }
		}
	}

	option = {
		name = "EVTOPTA5032"		# Invest in naval technology
		ai_chance = { factor = 55 }
		add_dip_power = 50
	}
	option = {
		name = "EVTOPTB5032"		# Improve our existing navy
		ai_chance = { factor = 45 }
		add_navy_tradition = 20
	}
}


#########################################################
#		Good government policies					  	#
#########################################################

country_event = {
	id = 5040
	title = "EVTNAME5040"
	desc = "EVTDESC5040"
	picture = REFORM_eventPicture
	
	is_triggered_only = yes

	trigger = {
		adm = 5
	}

	mean_time_to_happen = {
		days = 1
		
		modifier = {
			factor = 2.0
			advisor = statesman
		}
		modifier = {
			factor = 2.0
			luck = yes
		}
	}
	
	option = {
		name = "EVTOPTA5040"		# Use the money to bring stability to our nation
		trigger = {
			NOT = { stability = 3 }
		
		}
		ai_chance = { factor = 40 }
		add_stability = 1
	}
	option = {
		name = "EVTOPTB5040"		# Invest the money in our government
		ai_chance = { factor = 30 }
		add_adm_power = 25
		add_dip_power = 25
		add_mil_power = 25
		
	}
	option = {
		name = "EVTOPTC5040"		# Let's fill our treasury while we have their support
		ai_chance = { factor = 30 }
		add_years_of_income = 0.20
	}
}


#########################################################
#		Poor government policies	 				 	#
#########################################################

country_event = {
	id = 5045
	title = "EVTNAME5045"
	desc = "EVTDESC5045"
	picture = REFORM_eventPicture

	is_triggered_only = yes

	trigger = {
		NOT = { adm = 5 }
	}

	mean_time_to_happen = {
		days = 1
		
		modifier = {
			factor = 0.5
			luck = yes
		}
		modifier = {
			factor = 0.66
			advisor = statesman
		}
	}

	option = {
		name = "EVTOPTA5045"		# We have chosen the right path
		ai_chance = { factor = 55 }
		add_stability = -1
	}
	option = {
		name = "EVTOPTB5045"		# Attempt to improve the situation
		ai_chance = { factor = 45 }
		add_years_of_income = -0.25
	}
}

#########################################################
#		Unhappiness among the clergy	 			 	#
#########################################################
country_event = {
	id = 5050
	title = "EVTNAME5050"
	desc = "EVTDESC5050"
	picture = DEBATE_REPUBLICAN_eventPicture
	
	is_triggered_only = yes

	trigger = {
		OR = {
			religion = catholic
			religion = orthodox
			religion_group = muslim
		}
	}

	mean_time_to_happen = {
		days = 1
		
		modifier = {
			factor = 2.0
			NOT = { advisor = theologian }
		}
		modifier = {
			factor = 0.5
			luck = yes
		}
		modifier = {
			factor = 0.66
			theologian = 3
		}
	}

	option = {
		name = "EVTOPTA5050"		# Ignore their Demands.
		ai_chance = { factor = 55 }
		if = {
			limit = {
				religion_group = muslim
			}
			add_piety = -0.1
		}
		if = {
			limit = {
				religion = catholic
			}
			add_papal_influence = -10
		}
		if = {
			limit = {
				religion = orthodox
			}
			add_patriarch_authority = -0.1
		}
		add_prestige = 10
	}
	option = {
		name = "EVTOPTB5050"		# Agree to their Demands.
		ai_chance = { factor = 45 }
		if = {
			limit = {
				religion_group = muslim
			}
			add_piety = 0.2
		}
		if = {
			limit = {
				religion = catholic
			}
			add_papal_influence = 10
		}
		if = {
			limit = {
				religion = orthodox
			}
			add_patriarch_authority = 0.05
		}
		add_prestige = -25
	}
}

#########################################################
#		Unhappiness among the artisans				  	#
#########################################################
country_event = {
	id = 5051
	title = "EVTNAME5051"
	desc = "EVTDESC5051"
	picture = ANGRY_MOB_eventPicture

	is_triggered_only = yes

	trigger = {	}

	mean_time_to_happen = {
		days = 1
		
		modifier = {
			factor = 2.0
			aristocracy_ideas = 7
		}
		modifier = {
			factor = 0.5
			luck = yes
		}
		modifier = {
			factor = 0.66
			stability = 3
		}
	}

	option = {
		name = "EVTOPTA5051"		# Execute the troublemakers.
		ai_chance = { factor = 55 }
		add_stability = -1
	}
	option = {
		name = "EVTOPTB5051"		# Abolish a tax.
		ai_chance = { factor = 45 }
		add_years_of_income = -0.50
	}
}

#########################################################
#		Unhappiness among the peasantry	  				#
#########################################################
country_event = {
	id = 5052
	title = "EVTNAME5052"
	desc = "EVTDESC5052"
	picture = ANGRY_MOB_eventPicture

	is_triggered_only = yes

	trigger = {	}

	mean_time_to_happen = {
		days = 1
		
		modifier = {
			factor = 2.0
			has_wartaxes = yes
		}
		modifier = {
			factor = 0.5
			luck = yes
		}
		modifier = {
			factor = 0.66
			stability = 3
			revolt_percentage = 0
		}
	}

	option = {
		name = "EVTOPTA5052"		# We rule as we see fit.
		ai_chance = { factor = 55 }
		add_prestige = 10
		add_stability = -1
	}
	option = {
		name = "EVTOPTB5052"		# Prevent the discontent from spreading.
		ai_chance = { factor = 45 }
		add_years_of_income = -0.25
	}
}

#########################################################
#		Unhappiness among the merchants	  				#
#########################################################
country_event = {
	id = 5053
	title = "EVTNAME5053"
	desc = "EVTDESC5053"
	picture = MERCHANTS_TALKING_eventPicture

	is_triggered_only = yes

	trigger = {
		NOT = { mercantilism = 0.3 }
	}

	mean_time_to_happen = {
		days = 1
		
		modifier = {
			factor = 2.0
			government = merchant_republic
		}
		modifier = {
			factor = 0.5
			luck = yes
		}
		modifier = {
			factor = 0.66
			advisor = trader
		}
	}

	option = {
		name = "EVTOPTA5053"		# Reduce trade investment.
		ai_chance = { factor = 55 }
		add_dip_power = -50
	}
	option = {
		name = "EVTOPTB5053"		# Get rid of the troublemakers.
		ai_chance = { factor = 45 }
		add_mercantilism = -0.05
	}
}

#########################################################
#		Political Crisis							  	#
#########################################################
country_event = {
	id = 5054
	title = "EVTNAME5054"
	desc = "EVTDESC5054"
	picture = LIBERUM_VETO_eventPicture
	
	is_triggered_only = yes

	trigger = {
		or = {
			government = monarchy
			government = republic
		}
	}

	mean_time_to_happen = {
		days = 1
		
		modifier = {
			factor = 2.0
			revolt_percentage = 0.1
		}
		modifier = {
			factor = 0.5
			luck = yes
		}
		modifier = {
			factor = 0.66
			advisor = statesman
		}
	}

	option = {
		name = "EVTOPTA5054"		# Given time, a solution will present itself.
		ai_chance = { factor = 55 }
		add_stability = -1
	}
	option = {
		name = "EVTOPTB5054"		# Reputation isn't everything.
		ai_chance = { 
			factor = 45 
			modifier = {
				factor = 0.5
				government = republic
			}
		}
		add_republican_tradition = -0.20
		add_legitimacy = -25
	}
}

#########################################################
#			Corruption								 	#
#########################################################
country_event = {
	id = 5055
	title = "EVTNAME5055"
	desc = "EVTDESC5055"
	picture = ELECTION_REPUBLICAN_eventPicture

	is_triggered_only = yes
	
	trigger = {}

	mean_time_to_happen = {
		days = 1
		
		modifier = {
			factor = 2.0
			num_of_loans = 1
		}
		modifier = {
			factor = 0.5
			luck = yes
		}
		modifier = {
			factor = 0.66
			advisor = treasurer
		}
	}

	option = {
		name = "EVTOPTA5055"		# Try to eradicate the problems.
		ai_chance = { factor = 55 }
		add_stability = -1
	}
	option = {
		name = "EVTOPTB5055"		# Ignore them.
		ai_chance = { factor = 45 }
		add_inflation = 3
	}
}


#########################################################
#		Diplomatic insult		 					 	#
#########################################################
country_event = {
	id = 5056
	title = "EVTNAME5056"
	desc = "EVTDESC5056"
	picture = DIPLOMACY_eventPicture

	is_triggered_only = yes

	trigger = {
		any_neighbor_country = {
			is_at_war = no
		}
	}

	mean_time_to_happen = {
		days = 1
		
		modifier = {
			factor = 0.66
			dip = 5
		}
	}

	option = {
		name = "EVTOPTA5056" # We won't forget this.
		ai_chance = { factor = 55 }
		random_country = {
			limit = { is_neighbor_of = ROOT  }
			reverse_add_casus_belli = {	
				target = ROOT
				type = cb_insult
				months = 12
			}
		}
	}
	option = {
		name = "EVTOPTB5056" # Try to ease the tension.
		ai_chance = { factor = 45 }
		every_neighbor_country = {
			limit = { is_at_war = no }
			add_opinion = { who = ROOT modifier = opinion_eased_tension }
		}
	}
}

#########################################################
#			Nobles									  	#
#########################################################
country_event = {
	id = 5058
	title = "EVTNAME5058"
	desc = "EVTDESC5058"
	picture = COURT_eventPicture

	is_triggered_only = yes

	trigger = {	}

	mean_time_to_happen = {
		days = 1
		
		modifier = {
			factor = 2.0
			adm = 4
		}
		modifier = {
			factor = 0.5
			luck = yes
		}
		modifier = {
			factor = 0.66
			OR = {
				government = merchant_republic
				government = administrative_republic
				government = constitutional_republic
				government = papal_government
				government = tribal_federation 
				government = tribal_democracy
			}
		}
	}

	option = {
		name = "EVTOPTA5058"		# Accept their rightful claims.
		ai_chance = { factor = 55 }
		add_prestige = -10
	}
	option = {
		name = "EVTOPTB5058"		# Ignore their demands.
		ai_chance = { factor = 45 }
		add_country_modifier = {
			name = "disorder"
			duration = 365
		}
	}
}

#########################################################
#		Trading Company Disaster					 	#
#########################################################
country_event = {
	id = 5059
	title = "EVTNAME5059"
	desc = "EVTDESC5059"
	picture = MERCHANTS_TALKING_eventPicture

	is_triggered_only = yes

	trigger = {
		is_year = 1700
		religion_group = christian
	}

	mean_time_to_happen = {
		days = 1
		
		modifier = {
			factor = 2.0
			NOT = { trade_efficiency = 0.5 }
		}
		modifier = {
			factor = 0.5
			luck = yes
		}
		modifier = {
			factor = 0.66
			trade_efficiency = 0.6
		}
	}

	option = {
		name = "EVTOPTA5059"		# Cut down on our expenses
		ai_chance = { factor = 55 }
		add_country_modifier = {
			name = "trade_disaster"
			duration = 365
		}
	}
	option = {
		name = "EVTOPTB5059"		# This isn't anything we can't handle.
		ai_chance = { factor = 45 }
		add_years_of_income = -0.1
	}
}

#########################################################
#			Meteor sighted							  	#
#########################################################
country_event = {
	id = 5060
	title = "EVTNAME5060"
	desc = "EVTDESC5060"
	picture = COMET_SIGHTED_eventPicture
	
	is_triggered_only = yes

	trigger = {}

	mean_time_to_happen = {
		days = 1
		
		modifier = {
			factor = 0.1
			has_idea = comets
		}
		
		modifier = {
			factor = 0.5
			natural_scientist = 1
		}
		modifier = {
			factor = 0.5
			luck = yes
		}
		modifier = {
			factor = 1.1
			stability = 2
		}
		modifier = {
			factor = 1.1
			stability = 3
		}
	}

	option = {
		name = "EVTOPTA5060"		# It's an omen
		add_stability = -1
	}
	option = {
		name = "EVTOPTB5060"		# The end is nigh!
		add_stability = -1
	}
	option = {
		name = "EVTOPTC5060"		# The economy, fools!
		add_stability = -1
	}	
}

#########################################################
#		Saint performs miracle						  	#
#########################################################
country_event = {
	id = 5061
	title = "EVTNAME5061"
	desc = "EVTDESC5061"
	picture = POPE_PREACHING_eventPicture

	is_triggered_only = yes

	trigger = {
		NOT = { is_year = 1700 }
		religion = catholic
		NOT = { stability = 2 }
	}

	mean_time_to_happen = {
		days = 1
		
		modifier = {
			factor = 2.0
			NOT = { innovativeness_ideas = 2 }
		}
		modifier = {
			factor = 2.0
			luck = yes
		}
		modifier = {
			factor = 0.66
			innovativeness_ideas = 6
		}
	}

	option = {
		name = "EVTOPTA5061"		# We have truly been blessed
		ai_chance = { factor = 55 }
		add_stability = 1
		add_reform_desire = 0.005
	}
	option = {
		name = "EVTOPTB5061"		# Their actions have shown us the true path
		ai_chance = { factor = 45 }
		add_papal_influence = 50
	}
}

#########################################################
#		Nobles ally with foreign power				  	#
#########################################################
country_event = {
	id = 5064
	title = "EVTNAME5064"
	desc = "EVTDESC5064"
	picture = DIPLOMACY_eventPicture

	is_triggered_only = yes

	trigger = {
		capital_scope = { continent = europe }
		NOT = { dip = 4 }
	}

	mean_time_to_happen = {
		days = 1
		
		modifier = {
			factor = 2.0
			NOT = { economic_ideas = 2 }
		}
		modifier = {
			factor = 1.25
			NOT = { stability = 0 }
		}
		modifier = {
			factor = 0.8
			stability = 1
		}
		modifier = {
			factor = 0.5
			luck = yes
		}
		modifier = {
			factor = 0.66
			OR = {
				government = merchant_republic
				government = administrative_republic
				government = constitutional_republic
				government = papal_government
				government = tribal_federation 
				government = tribal_democracy
			}
		}
	}

	option = {
		name = "EVTOPTA5064"		# They will pay for their treachery
		ai_chance = { factor = 55 }
		random_country = {
			limit = { is_neighbor_of = ROOT }
			reverse_add_casus_belli = {	
				target = ROOT
				type = cb_insult
				months = 12
			}
		}
		add_adm_power = -33
	}
	option = {
		name = "EVTOPTB5064"		# We'll deal with them later
		ai_chance = { factor = 45 }
		add_prestige = -25
	}
}

#########################################################
#			Assassination							  	#
#########################################################
country_event = {
	id = 5065
	title = "EVTNAME5065"
	desc = "EVTDESC5065"
	picture = ASSASSINATION_eventPicture

	is_triggered_only = yes

	trigger = {
		government = monarchy
		NOT = { dip = 3 }
		is_subject = no
	}

	mean_time_to_happen = {
		days = 1
		
		modifier = {
			factor = 2.0
			aristocracy_ideas = 5
		}
		modifier = {
			factor = 0.5
			luck = yes
		}
		modifier = {
			factor = 0.66
			advisor = statesman
		}
	}

	option = {
		name = "EVTOPTA5065"		# Let them solve it among themselves.
		ai_chance = { factor = 55 }
		add_legitimacy = -30
	}
	option = {
		name = "EVTOPTB5065"		# Take control of the situation
		ai_chance = { factor = 45 }
		add_adm_power = -50
	}
}

#########################################################
#	Cessation of Church Functions to Nobility			#
#########################################################
country_event = {
	id = 5066
	title = "EVTNAME5066"
	desc = "EVTDESC5066"
	picture = POPE_PREACHING_eventPicture

	is_triggered_only = yes

	trigger = {
		religion = catholic
		NOT = { has_country_modifier = church_functions }
	}

	mean_time_to_happen = {
		days = 1
		
		modifier = {
			factor = 2.0
			OR = {
				num_of_loans = 2
				is_bankrupt = yes
			}
		}
		modifier = {
			factor = 0.5
			luck = yes
		}
		modifier = {
			factor = 0.66
			advisor = treasurer
		}
	}

	option = {
		name = "EVTOPTA5066"		# Accept
		ai_chance = { factor = 55 }
		add_years_of_income = 0.50
		add_country_modifier = {
			name = "church_functions"
			duration = 7300
		}
		
	}
	option = {
		name = "EVTOPTB5066"		# Decline
		ai_chance = { factor = 45 }
		add_stability = -1
		add_papal_influence = -20
	}
}


#########################################################
#		Sale of offices									#
#########################################################
country_event = {
	id = 5068
	title = "EVTNAME5068"
	desc = "EVTDESC5068"
	picture = ECONOMY_eventPicture

	is_triggered_only = yes

	trigger = {
		OR = {
			num_of_loans = 25
			is_bankrupt = yes
		}
	}

	mean_time_to_happen = {
		days = 1
		
		modifier = {
			factor = 2.0
			is_at_war = yes
		}
		modifier = {
			factor = 0.5
			luck = yes
		}
		modifier = {
			factor = 0.66
			advisor = treasurer
		}
	}

	option = {
		name = "EVTOPTA5068"		# Accept
		ai_chance = { factor = 55 }
		add_years_of_income = 1
		add_country_modifier = {
			name = "reduced_taxes_off"	
			duration = 7300
		}
	}
	option = {
		name = "EVTOPTB5068"		# Decline
		ai_chance = { factor = 45 }
		add_prestige = 5
	}
}

#########################################################
#		Monopoly company formed							#
#########################################################
country_event = {
	id = 5070
	title = "EVTNAME5070"
	desc = "EVTDESC5070"
	picture = MERCHANTS_TALKING_eventPicture

	is_triggered_only = yes

	trigger = {
		NOT = { mercantilism = 0.5 }
	}

	mean_time_to_happen = {
		days = 1
		
		modifier = {
			factor = 2.0
			trade_efficiency = 0.6
		}
		modifier = {
			factor = 2.0
			luck = yes
		}
		modifier = {
			factor = 0.66
			NOT = { trade_efficiency = 0.5 }
		}
	}

	option = {
		name = "EVTOPTA5070"		# Make a long-term investment
		ai_chance = { factor = 55 }
		add_country_modifier = {
			name = "trade_income_increase"
			duration = 3650
		}		
		add_dip_power = 50
	}
	option = {
		name = "EVTOPTB5070"		# Demand payment in full
		ai_chance = { factor = 45 }
		add_years_of_income = 1.5
	}
}

#########################################################
#	Nobles demand increased pensions					#
#########################################################
country_event = {
	id = 5071
	title = "EVTNAME5071"
	desc = "EVTDESC5071"
	picture = ECONOMY_eventPicture

	is_triggered_only = yes

	trigger = {
		OR = {
			government = monarchy
			government = noble_republic
		}
	}

	mean_time_to_happen = {
		days = 1
		
		modifier = {
			factor = 2.0
			NOT = { stability = 0 }
		}
		modifier = {
			factor = 0.5
			luck = yes
		}
		modifier = {
			factor = 0.66
			stability = 3
		}
	}

	option = {
		name = "EVTOPTA5071"		# Accept their demands.
		ai_chance = { factor = 55 }
		add_country_modifier = {
			name = "tax_income_loss"
			duration = 7300
		}		
	}
	option = {
		name = "EVTOPTB5071"		# Refuse their demands.
		ai_chance = { factor = 45 }
		add_stability = -1
	}
}

#########################################################
#		Grant export licences							#
#########################################################
country_event = {
	id = 5072
	title = "EVTNAME5072"
	desc = "EVTDESC5072"
	picture = ECONOMY_eventPicture

	is_triggered_only = yes

	trigger = {	}

	mean_time_to_happen = {
		days = 1
		
		modifier = {
			factor = 2.0
			trader = 2
		}
		modifier = {
			factor = 2.0
			luck = yes
		}
		modifier = {
			factor = 0.66
			NOT = { advisor = trader }
		}
	}

	option = {
		name = "EVTOPTA5072" # Grant privileges
		ai_chance = { factor = 55 }
		random_country = {
			limit = { is_neighbor_of = ROOT }
			add_opinion = { who = ROOT modifier = opinion_granted_privileges }
		}
		add_legitimacy = -10
		add_republican_tradition = -0.05
		add_country_modifier = {
			name = "tax_income_boost"
			duration = 1825
		}	
	}
	option = {
		name = "EVTOPTB5072" # Privileges have to be earned
		ai_chance = { factor = 45 }
		add_legitimacy = 20
		add_republican_tradition = 0.05
		
		random_country = {
			limit = { is_neighbor_of = ROOT }
			add_opinion = { who = ROOT modifier = opinion_not_grant_privileges }
		}					
	}
}

#########################################################
#		Establish Cantonments							#
#########################################################
country_event = {
	id = 5074
	title = "EVTNAME5074"
	desc = "EVTDESC5074"
	picture = LAND_MILITARY_eventPicture

	is_triggered_only = yes

	trigger = {
		is_year = 1600
	}

	mean_time_to_happen = {
		days = 1
		
		modifier = {
			factor = 2.0
			luck = yes
		}
		modifier = {
			factor = 0.66
			NOT = { mil = 1 }
		}
	}

	option = {
		name = "EVTOPTA5074"		# Draft citizens
		ai_chance = { factor = 90 }
		random_owned_province = {
			add_province_manpower = 1
		}
	}
	option = {
		name = "EVTOPTB5074"		# Mass draft with financial incentive
		ai_chance = { factor = 10 }
		add_treasury = -60
		random_owned_province = {
			add_province_manpower = 2
		}
	}
}

#########################################################
#		Nobles demand old rights						#
#########################################################
country_event = {
	id = 5075
	title = "EVTNAME5075"
	desc = "EVTDESC5075"
	picture = COURT_eventPicture

	is_triggered_only = yes

	trigger = {
		government = monarchy
	}

	mean_time_to_happen = {
		days = 1
		
		modifier = {
			factor = 2.0
			NOT = { adm = 1 }
		}
		modifier = {
			factor = 0.5
			luck = yes
		}
		modifier = {
			factor = 0.66
			adm = 5
		}
	}

	option = {
		name = "EVTOPTA5075"		# Accept demands.
		ai_chance = { factor = 55 }
		add_country_modifier = {
			name = "decentralization_modifier"
			duration = 3650
		}
	}
	option = {
		name = "EVTOPTB5075"		# Reject demands.
		ai_chance = { factor = 45 }
		add_stability = -1
	}
}

#########################################################
#		Cities demand old rights						#
#########################################################
country_event = {
	id = 5076
	title = "EVTNAME5076"
	desc = "EVTDESC5076"
	picture = COURT_eventPicture

	is_triggered_only = yes

	trigger = {
		OR = {
			government = monarchy
			government = republic
			government = theocracy
		}
	}

	mean_time_to_happen = {
		days = 1
		
		modifier = {
			factor = 2.0
			revolt_percentage = 0.1
		}
		modifier = {
			factor = 0.5
			luck = yes
		}
		modifier = {
			factor = 0.66
			stability = 3
		}
	}

	option = {
		name = "EVTOPTA5076"		# Deny old rights
		ai_chance = { factor = 55 }
		add_stability = -1
	}
	option = {
		name = "EVTOPTB5076"		# Accept
		ai_chance = { factor = 45 }
		add_legitimacy = -30
		add_republican_tradition = -0.1
		if = {
			limit = {
				government = theocracy
			}
			add_prestige = -25
		}
	}
}

#########################################################
#		Non-enforcement of ordinances					#
#########################################################
country_event = {
	id = 5077
	title = "EVTNAME5077"
	desc = "EVTDESC5077"
	picture = REFORM_eventPicture
	
	is_triggered_only = yes
	
	trigger = {	}

	mean_time_to_happen = {
		days = 1
		
		modifier = {
			factor = 2.0
			OR = {
				NOT = { constable = 1 }
				NOT = { courthouse = 1 }
			}
		}
		modifier = {
			factor = 1.25
			NOT = { stability = 0 }
		}
		modifier = {
			factor = 0.5
			luck = yes
		}
		modifier = {
			factor = 0.8
			stability = 1
		}
		modifier = {
			factor = 0.66
			OR = {
				constable = 2
				courthouse = 2
			}
		}
	}

	option = {
		name = "EVTOPTA5077"		# Let them handle it
		ai_chance = { factor = 25 }
		random_owned_province = {
			add_revolt_risk = 10
		}
	}
	option = {
		name = "EVTOPTB5077"		# Increase attempts
		ai_chance = { factor = 100 }
		add_adm_power = -30
	}
}


#########################################################
#		Bourgeoisie request privileges					#
#########################################################
country_event = {
	id = 5082
	title = "EVTNAME5082"
	desc = "EVTDESC5082"
	picture = DEBATE_REPUBLICAN_eventPicture

	is_triggered_only = yes

	trigger = {	}

	mean_time_to_happen = {
		days = 1
		
		modifier = {
			factor = 1.25
			NOT = { government = merchant_republic }
		}
		modifier = {
			factor = 0.5
			luck = yes
		}
		modifier = {
			factor = 0.66
			stability = 3
		}
	}

	option = {
		name = "EVTOPTA5082"		# Grant them privileges
		ai_chance = { factor = 55 }
		add_dip_power = -50
	}
	option = {
		name = "EVTOPTB5082"		# Deny them privileges
		ai_chance = { factor = 45 }
		add_adm_power = -50
	}
}

#########################################################
#		Italian engineer available						#
#########################################################
country_event = {
	id = 5083
	title = "EVTNAME5083"
	desc = "EVTDESC5083"
	picture = ADVISOR_eventPicture

	is_triggered_only = yes

	trigger = {
		capital_scope = { continent = europe }
	}

	mean_time_to_happen = {
		days = 1
		
		modifier = {
			factor = 2.0
			defensive_ideas = 5
		}
		modifier = {
			factor = 0.66
			offensive_ideas = 5
		}
	}

	option = {
		name = "EVTOPTA5083"		# Hire the engineer
		ai_chance = { factor = 55 }
		add_mil_power = 40
		add_years_of_income = -0.15
	}
	option = {
		name = "EVTOPTB5083"		# Decline the offer
		ai_chance = { factor = 45 }
		add_prestige = -10
	}
}

#########################################################
#	Foreign drill instructor available					#
#########################################################
country_event = {
	id = 5084
	title = "EVTNAME5084"
	desc = "EVTDESC5084"
	picture = ADVISOR_eventPicture

	is_triggered_only = yes

	trigger = {
		capital_scope = { continent = europe }
	}

	mean_time_to_happen = {
		days = 1
		
		modifier = {
			factor = 2.0
			army_reformer = 3
		}
		modifier = {
			factor = 0.5
			luck = yes
		}
		modifier = {
			factor = 0.66
			NOT = { advisor = army_reformer }
		}
	}

	option = {
		name = "EVTOPTA5084"		# Hire him
		ai_chance = { factor = 55 }
		add_army_tradition = 20
		add_years_of_income = -0.25
	}
	option = {
		name = "EVTOPTB5084"		# Decline the offer
		ai_chance = { factor = 45 }
		add_prestige = -10
	}
}

#########################################################
#		Build a great palace							#
#########################################################
country_event = {
	id = 5085
	title = "EVTNAME5085"
	desc = "EVTDESC5085"
	picture = FORT_eventPicture
	
	is_triggered_only = yes

	trigger = {
		government = monarchy
	}

	mean_time_to_happen = {
		days = 1
		
		modifier = {
			factor = 2.0
			artist = 3
		}
		modifier = {
			factor = 0.5
			luck = yes
		}
		modifier = {
			factor = 0.66
			NOT = { advisor = artist }
		}
	}

	option = {
		name = "EVTOPTA5085" # Build the Palace
		ai_chance = { factor = 40 }
		add_prestige = 10
		add_legitimacy = 20
		add_years_of_income = -0.25
	}
	option = {
		name = "EVTOPTB5085" # Don't build it
		ai_chance = { factor = 60 }
		add_prestige = -10
	}
}

#########################################################
#		Uncooperative philosopher						#
#########################################################
country_event = {
	id = 5086
	title = "EVTNAME5086"
	desc = "EVTDESC5086"
	picture = ADVISOR_eventPicture

	is_triggered_only = yes

	trigger = {
		advisor = philosopher
	}

	mean_time_to_happen = {
		days = 1
		
		modifier = {
			factor = 2.0
			NOT = { innovativeness_ideas = 3 }
		}
		modifier = {
			factor = 0.5
			luck = yes
		}
		modifier = {
			factor = 0.66
			innovativeness_ideas = 4
		}
	}

	option = {
		name = "EVTOPTA5086"		# Imprison
		ai_chance = { factor = 60 }
		add_stability = -1		
	}
	option = {
		name = "EVTOPTB5086"		# Allow him to remain free
		ai_chance = { factor = 40 }
		add_prestige = -33
	}
}

#########################################################
#		Merchants harrased								#
#########################################################
country_event = {
	id = 5088
	title = "EVTNAME5088"
	desc = "EVTDESC5088"
	picture = MERCHANTS_TALKING_eventPicture

	is_triggered_only = yes

	trigger = {
		num_of_merchants = 2
		overextension_percentage = 0.25
		any_country = {
			is_neighbor_of = ROOT
			NOT = { has_opinion = { who = ROOT value = 50 } }
		}
	}

	mean_time_to_happen = {
		days = 1
		
		modifier = {
			factor = 2.0
			has_idea = merchant_adventures
			government = merchant_republic
		}
		modifier = {
			factor = 0.5
			luck = yes
		}
		modifier = {
			factor = 0.66
			advisor = trader
		}
	}

	option = {
		name = "EVTOPTA5088" # Escalate complaint.
		ai_chance = { factor = 55 }
		random_country = {
			limit = {
				is_neighbor_of = ROOT
				NOT = { has_opinion = { who = ROOT value = 50 } }
			}
			reverse_add_casus_belli = {	
				target = ROOT
				type = cb_insult
				months = 12
			}
		}
	}
	option = {
		name = "EVTOPTB5088" # Seek a diplomatic solution.
		ai_chance = { factor = 45 }
		random_country = {
			limit = {
				is_neighbor_of = ROOT
				NOT = { has_opinion = { who = ROOT value = 50 } }
			}
			add_opinion = { who = ROOT modifier = opinion_diplomatic_solution }
		}
	}
}

#########################################################
#		Petition for redress							#
#########################################################
country_event = {
	id = 5089
	title = "EVTNAME5089"
	desc = "EVTDESC5089"
	picture = COURT_eventPicture

	is_triggered_only = yes

	trigger = {	}

	mean_time_to_happen = {
		days = 1
		
		modifier = {
			factor = 2.0
			NOT = { stability = 0 }
		}
		modifier = {
			factor = 0.5
			luck = yes
		}
		modifier = {
			factor = 0.66
			adm = 5
		}
	}

	option = {
		name = "EVTOPTA5089"		# Accept petition
		ai_chance = { factor = 70 }
		add_prestige = -25
	}
	option = {
		name = "EVTOPTB5089"		# Deny petition
		ai_chance = { factor = 30 }
		random_owned_province = {
			limit = {
				NOT = { is_colony = yes }
				NOT = { is_overseas = yes }
			}
			anti_tax_rebels = 1
		}
	}
}

#########################################################
#		Grant nobles aid								#
#########################################################
country_event = {
	id = 5090
	title = "EVTNAME5090"
	desc = "EVTDESC5090"
	picture = COURT_eventPicture

	is_triggered_only = yes

	trigger = {
		government = monarchy
	}

	mean_time_to_happen = {
		days = 1
		
		modifier = {
			factor = 2.0
			treasury = 300
		}
		modifier = {
			factor = 0.5
			luck = yes
		}
	}

	option = {
		name = "EVTOPTA5090"		# Grant aid
		ai_chance = { factor = 55 }
		add_years_of_income = -0.5
	}
	option = {
		name = "EVTOPTB5090"		# Deny aid
		ai_chance = { factor = 45 }
		add_adm_power = -50
	}
}

#########################################################
#	Support for dissidents abroad						#
#########################################################
country_event = {
	id = 5091
	title = "EVTNAME5091"
	desc = "EVTDESC5091"
	picture = ANGRY_MOB_eventPicture

	is_triggered_only = yes

	trigger = {
		NOT = { adm = 3 }
	}

	mean_time_to_happen = {
		days = 1
		
		modifier = {
			factor = 2.0
			statesman = 2
		}
		modifier = {
			factor = 0.5
			luck = yes
		}
		modifier = {
			factor = 0.66
			NOT = { advisor = statesman }
		}
	}

	option = {
		name = "EVTOPTA5091"		# Support
		ai_chance = { factor = 55 }
		add_years_of_income = -0.1
		random_country = {
			limit = { is_neighbor_of = ROOT is_subject = no }
			add_opinion = { who = ROOT modifier = opinion_supports_dissidents }
		}
	}
	option = {
		name = "EVTOPTB5091"		# Decline
		ai_chance = { factor = 45 }
		add_prestige = -10
	}
}

#########################################################
#	Foreign trade competition rises						#
#########################################################
country_event = {
	id = 5092
	title = "EVTNAME5092"
	desc = "EVTDESC5092"
	picture = MERCHANTS_TALKING_eventPicture

	is_triggered_only = yes

	trigger = {
		num_of_merchants = 3
	}

	mean_time_to_happen = {
		days = 1
		
		modifier = {
			factor = 2.0
			NOT = { trade_efficiency = 0.5 }
		}
		modifier = {
			factor = 0.5
			luck = yes
		}
		modifier = {
			factor = 0.66
			trade_efficiency = 0.6
		}
	}

	option = {
		name = "EVTOPTA5092"		# Impose new tariff
		ai_chance = { factor = 70 }
		add_mercantilism = 0.025
	}
	option = {
		name = "EVTOPTB5092"		# Deny new tariff
		ai_chance = { factor = 30 }
		add_dip_power = 33
	}
}

#########################################################
#		Advisor events									#
#########################################################

# Parliament demands removal of advisor
country_event = {
	id = 5093
	title = "EVTNAME5093"
	desc = "EVTDESC5093"
	picture = ADVISOR_eventPicture

	is_triggered_only = yes

	trigger = {
		OR = {
			government = constitutional_monarchy
			government = constitutional_republic
		}
		advisor = statesman
	}

	mean_time_to_happen = {
		days = 1
		
		modifier = {
			factor = 2.0
			NOT = { statesman = 1 }
		}
		modifier = {
			factor = 0.5
			luck = yes
		}
		modifier = {
			factor = 0.66
			statesman = 3
		}
	}

	option = {
		name = "EVTOPTA5093"		# Fire him!
		ai_chance = { factor = 40 }
		remove_advisor = statesman
	}
	option = {
		name = "EVTOPTB5093"		# We have faith in him
		ai_chance = { factor = 60 }
		add_stability = -1
	}
}


# Heretic advisor
country_event = {
	id = 5094
	title = "EVTNAME5094"
	desc = "EVTDESC5094"
	picture = ADVISOR_eventPicture

	is_triggered_only = yes

	trigger = {
		government = theocratic_government
		advisor = statesman
	}

	mean_time_to_happen = {
		days = 1
		
		modifier = {
			factor = 2.0
			NOT = { statesman = 1 }
			NOT = { innovativeness_ideas = 2 }
		}
		modifier = {
			factor = 0.5
			luck = yes
		}
		modifier = {
			factor = 0.66
			statesman = 3
		}
	}

	option = {
		name = "EVTOPTA5094"		# Fire him!
		ai_chance = { factor = 40 }
		remove_advisor = statesman
	}
	option = {
		name = "EVTOPTB5094"		# We have faith in him
		ai_chance = { factor = 60 }
		add_stability = -1
	}
}


# Statesman gains power
country_event = {
	id = 5095
	title = "EVTNAME5095"
	desc = "EVTDESC5095"
	picture = ADVISOR_eventPicture

	is_triggered_only = yes

	trigger = {
		statesman = 2
	}

	mean_time_to_happen = {
		days = 1
		
		modifier = {
			factor = 2.0
			NOT = { adm = 1 }
		}
		modifier = {
			factor = 0.5
			luck = yes
		}
		modifier = {
			factor = 0.66
			adm = 4
		}
	}

	option = {
		name = "EVTOPTA5095"		# Fire him!
		ai_chance = { factor = 40 }
		remove_advisor = statesman
	}
	option = {
		name = "EVTOPTB5095"		# He is doing a great job
		ai_chance = { factor = 60 }
		add_prestige = -10
	}
}


#########################################################
#		Influenced elections							#
#########################################################
country_event = {
	id = 5096
	title = "EVTNAME5096"
	desc = "EVTDESC5096"
	picture = ELECTION_REPUBLICAN_eventPicture

	is_triggered_only = yes

	trigger = {
		is_elector = yes
		is_emperor = no
	}

	mean_time_to_happen = {
		days = 1
		
		modifier = {
			factor = 2.0
			num_of_loans = 1
		}
		modifier = {
			factor = 2.0
			luck = yes
		}
	}

	option = {
		name = "EVTOPTA5096" # How thoughtful
		ai_chance = { factor = 70 }
		add_years_of_income = 0.2
		random_country = {
			limit = { is_elector = yes }
			add_opinion = { who = ROOT modifier = opinion_accepted_bribe }
		}
	}
	option = {
		name = "EVTOPTB5096" # Bribes are beyond me
		ai_chance = { factor = 30 }
		add_prestige = 15
		random_country = {
			limit = { is_elector = yes }
			add_opinion = { who = ROOT modifier = opinion_declined_bribe }
		}
	}
}

#########################################################
#		Peasants getting uppity							#
#########################################################
country_event = {
	id = 5097
	title = "EVTNAME5097"
	desc = "EVTDESC5097"
	picture = ANGRY_MOB_eventPicture

	is_triggered_only = yes

	trigger = {
		government = monarchy
	}

	mean_time_to_happen = {
		days = 1
		
		modifier = {
			factor = 2.0
			NOT = { stability = 0 }
		}
		modifier = {
			factor = 2.0
			luck = yes
		}
		modifier = {
			factor = 0.66
			stability = 1
		}
	}

	option = {
		name = "EVTOPTA5097"		# Enforce serfdom
		ai_chance = { factor = 80 }
		add_adm_power = -25
		
	}
	option = {
		name = "EVTOPTB5097"		# These things happen
		ai_chance = { factor = 20 }
		add_legitimacy = -10
	}
}

#########################################################
#		Corruption in the church						#
#########################################################
country_event = {
	id = 5098
	title = "EVTNAME5098"
	desc = "EVTDESC5098"
	picture = RELIGION_eventPicture

	is_triggered_only = yes

	trigger = {
		NOT = { stability = -1 }
		government = theocratic_government
	}

	mean_time_to_happen = {
		days = 1
		
		modifier = {
			factor = 2.0
			any_owned_province = {
				has_building = treasury_office
			}
		}
		modifier = {
			factor = 2.0
			luck = yes
		}
		modifier = {
			factor = 0.66
			advisor = treasurer
		}
	}

	option = {
		name = "EVTOPTA5098"		# Cleanse the temple
		ai_chance = { factor = 55 }
		add_stability = 1
	}
	option = {
		name = "EVTOPTB5098"		# Fine the sinners
		ai_chance = { factor = 45 }
		add_years_of_income = 0.20
	}
}

#########################################################
#		Merchant fractures								#
#########################################################
country_event = {
	id = 5099
	title = "EVTNAME5099"
	desc = "EVTDESC5099"
	picture = MERCHANTS_TALKING_eventPicture

	is_triggered_only = yes

	trigger = {
		num_of_merchants = 3
	}

	mean_time_to_happen = {
		days = 1
		
		modifier = {
			factor = 2.0
			government = merchant_republic
		}
		modifier = {
			factor = 2.0
			luck = yes
		}
		modifier = {
			factor = 0.66
			advisor = trader
		}
	}

	option = {
		name = "EVTOPTA5099"		# Support mercantilist faction
		ai_chance = { factor = 15 }
		add_mercantilism = 0.025
	}
	option = {
		name = "EVTOPTB5099"		# This isn't a matter for the crown
		ai_chance = { factor = 70 }
		trigger = {
			government = monarchy
		}
		add_prestige = 10
		add_legitimacy = 10
	}
	option = {
		name = "EVTOPTC5099"		# Propose free trade
		ai_chance = { factor = 0 }
		add_mercantilism = -0.025
		add_years_of_income = 0.10
	}
}


#########################################################
#		Military traditions scorned						#
#########################################################

# Naval traditions scorned
country_event = {
	id = 6000
	title = "EVTNAME6000"
	desc = "EVTDESC6000"
	picture = NAVAL_MILITARY_eventPicture

	is_triggered_only = yes

	trigger = {
		navy_tradition = 10
		NOT = { navy_tradition = 40 }
		army_tradition = 40
	}

	mean_time_to_happen = {
		days = 1
				
		modifier = {
			factor = 2.0
			offensive_ideas = 6
		}
		modifier = {
			factor = 0.5
			luck = yes
		}
		modifier = {
			factor = 0.66
			naval_ideas = 3
		}
	}

	option = {
		name = "EVTOPTA6000"		# This is well, land is where its at
		ai_chance = { factor = 60 }
		add_navy_tradition = -20
		add_army_tradition = 10
	}
	option = {
		name = "EVTOPTB6000"		# We must stop this deterioration
		ai_chance = { factor = 40 }
		add_navy_tradition = -5
	}
}

# Land traditions scorned
country_event = {
	id = 6001
	title = "EVTNAME6001"
	desc = "EVTDESC6001"
	picture = MILITARY_CAMP_eventPicture

	is_triggered_only = yes

	trigger = {
		num_of_ports = 1
		army_tradition = 10
		NOT = { army_tradition = 40 }
		navy_tradition = 40
	}

	mean_time_to_happen = {
		days = 1
				
		modifier = {
			factor = 5.0
			has_idea_group = naval_ideas
		}
		modifier = {
			factor = 0.5
			luck = yes
		}
		modifier = {
			factor = 0.66
			has_idea = grand_army
		}
	}

	option = {
		name = "EVTOPTA6001"		# The fleet is our wooden wall!
		ai_chance = { factor = 60 }
		add_army_tradition = -20
		add_navy_tradition = 10
	}
	option = {
		name = "EVTOPTB6001"		# We must stop this deterioration
		ai_chance = { factor = 40 }
		add_army_tradition = -5
	}
}

#########################################################
#		Opposing military schools						#
#########################################################
country_event = {
	id = 6002
	title = "EVTNAME6002"
	desc = "EVTDESC6002"
	picture = MILITARY_CAMP_eventPicture

	is_triggered_only = yes

	trigger = {
		NOT = { has_country_modifier = offensive_modifier }
		NOT = { has_country_modifier = defensive_modifier }
	}

	mean_time_to_happen = {
		days = 1
		
		modifier = {
			factor = 2.0
			NOT = { stability = 0 }
		}
		modifier = {
			factor = 0.5
			luck = yes
		}
		modifier = {
			factor = 0.66
			stability = 3
		}
	}

	option = {
		name = "EVTOPTA6002"		# Attack is always the best option
		ai_chance = { factor = 55 }
		add_stability = -1
		add_country_modifier = {
			name = offensive_modifier
			duration = 3650
		}
	}
	option = {
		name = "EVTOPTB6002"		# Let them come to us
		ai_chance = { factor = 45 }
		add_stability = -1
		add_country_modifier = {
			name = defensive_modifier
			duration = 3650
		}
	}
}

#########################################################
#	Representative national institutions				#
#########################################################
country_event = {
	id = 6003
	title = "EVTNAME6003"
	desc = "EVTDESC6003"
	picture = UNIVERSITY_eventPicture

	is_triggered_only = yes

	trigger = {
		
		OR = {
			government = feudal_monarchy
			government = despotic_monarchy
			government = administrative_monarchy
			government = constitutional_monarchy
		}
	}

	mean_time_to_happen = {
		days = 1
		
		modifier = {
			factor = 2.0
			NOT = { economic_ideas = 1 }
		}
		modifier = {
			factor = 0.5
			luck = yes
		}
		modifier = {
			factor = 0.66
			NOT = { adm = 1 }
		}
	}

	option = {
		name = "EVTOPTA6003"		# L'etat c'est moi!
		ai_chance = { factor = 30 }
		add_stability = -1
	}
	option = {
		name = "EVTOPTB6003"		# Give them what they want
		ai_chance = { factor = 70 }
		add_adm_power = -35
		add_dip_power = -35
		add_mil_power = -35
		
	}
}

#########################################################
#		Vatican infiltration							#
#########################################################
country_event = {
	id = 6004
	title = "EVTNAME6004"
	desc = "EVTDESC6004"
	picture = POPE_PREACHING_eventPicture

	is_triggered_only = yes

	trigger = {
		religion = catholic
		NOT = { government = papal_government }
	}

	mean_time_to_happen = {
		days = 1
		
		modifier = {
			factor = 2.0
			has_idea = espionage
		}
		modifier = {
			factor = 2.0
			luck = yes
		}
		modifier = {
			factor = 0.66
			prestige = 2
		}
	}

	option = {
		name = "EVTOPTA6004"		# Instruct him to go forward
		ai_chance = { factor = 30 }
		add_papal_influence = 5
	}
	option = {
		name = "EVTOPTB6004"		# Let the matter drop
		ai_chance = { factor = 70 }
		add_prestige = 5
	}
}


#########################################################
#	City-state wants independence back					#
#########################################################

# Genoa
country_event = {
	id = 6005
	title = "EVTNAME6005"
	desc = "EVTDESC6005"
	picture = ANGRY_MOB_eventPicture

	is_triggered_only = yes

	trigger = {
		NOT = { exists = GEN }
		owns = 101
		is_year = 1700
	}

	mean_time_to_happen = {
		days = 1
		
		modifier = {
			factor = 2.0
			NOT = { stability = 0 }
		}
		modifier = {
			factor = 0.5
			luck = yes
		}
		modifier = {
			factor = 0.66
			stability = 3 
		}
	}

	option = {
		name = "EVTOPTA6005"		# Nah...
		ai_chance = { factor = 60 }
		101 = {
			nationalist_rebels = 1
		}
	}
	option = {
		name = "EVTOPTB6005"		# We'll consider it
		ai_chance = { factor = 40 }
		GEN = {
			add_core = 101
		}
		remove_core = 101
	}
}

# Venice
country_event = {
	id = 6006
	title = "EVTNAME6006"
	desc = "EVTDESC6006"
	picture = ANGRY_MOB_eventPicture

	is_triggered_only = yes

	trigger = {
		NOT = { exists = VEN }
		is_year = 1700
		owns = 112
	}

	mean_time_to_happen = {
		days = 1
		
		modifier = {
			factor = 2.0
			NOT = { stability = 0 }
		}
		modifier = {
			factor = 0.5
			luck = yes
		}
		modifier = {
			factor = 0.66
			stability = 3
		}
	}

	option = {
		name = "EVTOPTA6006"		# Nah...
		ai_chance = { factor = 70 }
		112 = {
			nationalist_rebels = 1
		}
	}
	option = {
		name = "EVTOPTB6006"		# We'll consider it
		ai_chance = { factor = 30 }
		VEN = {
			add_core = 112
		}
		remove_core = 112
	}
}


#########################################################
#		Exceptional Court Painter						#
#########################################################

country_event = {
	id = 6012
	title = "EVTNAME6012"
	desc = "EVTDESC6012"
	picture = PAINTER_ARTIST_eventPicture

	is_triggered_only = yes

	trigger = {
		NOT = { overextension_percentage = 0.01 }
		capital_scope = { continent = europe }
		is_at_war = no
	}

	mean_time_to_happen = {
		days = 1
		
		modifier = {
			factor = 2.0
			prestige = 10
		}
		modifier = {
			factor = 0.66
			advisor = artist
		}
	}

	option = {
		name = "EVTOPTA6012"		# Hire him
		ai_chance = { factor = 65 }
		add_years_of_income = -0.25
		add_prestige = 10
		add_stability = 1
	}
	option = {
		name = "EVTOPTB6012"		# Decline his services
		ai_chance = { factor = 35 }
		add_prestige = -5
	}
}

#########################################################
#			Grand Ball									#
#########################################################
country_event = {
	id = 6013
	title = "EVTNAME6013"
	desc = "EVTDESC6013"
	picture = COURT_eventPicture

	is_triggered_only = yes

	trigger = {
		religion_group = christian
		is_at_war = no
	}

	mean_time_to_happen = {
		days = 1
		
		modifier = {
			factor = 2.0
			artist = 3
		}
		modifier = {
			factor = 0.66
			NOT = { advisor = artist }
		}
	}

	option = {
		name = "EVTOPTA6013"		# Arrange a ball
		ai_chance = { factor = 60 }
		add_prestige = 10
		add_years_of_income = -0.10
	}
	option = {
		name = "EVTOPTB6013"		# Don't arrange a ball
		ai_chance = { factor = 40 }
		add_prestige = -5
	}
}

#########################################################
#			Festivities									#
#########################################################
country_event = {
	id = 6015
	title = "EVTNAME6015"
	desc = "EVTDESC6015"
	picture = COURT_eventPicture

	is_triggered_only = yes

	trigger = {
		is_at_war = no
		NOT = { overextension_percentage = 0.01 }
		adm = 3
	}

	mean_time_to_happen = {
		days = 1
		
		modifier = {
			factor = 2.0
			adm = 5
		}
		modifier = {
			factor = 2.0
			luck = yes
		}
		modifier = {
			factor = 0.66
			NOT = { production_efficiency = 0.5 }
		}
	}

	option = {
		name = "EVTOPTA6015"		# Arrange festivities
		ai_chance = { factor = 30 }
		add_stability = 1
	}
	option = {
		name = "EVTOPTB6015"		# Such nonsense, wasting money like that!
		ai_chance = { factor = 70 }
		random_owned_province = {
			add_base_tax = 1
		}
	}
}

# Complaints about Bailiff
country_event = {
	id = 710
	title = "EVTNAME710"
	desc = "EVTDESC710"
	picture = DEBATE_REPUBLICAN_eventPicture

	is_triggered_only = yes
	
	trigger = {
		stability = 0
	}

	mean_time_to_happen = {
		days = 1
		modifier = {
			factor = 0.5
			luck = yes
		}		
	}

	option = {
		name = "EVTOPTA710"
		add_prestige = -33
	}
	option = {
		name = "EVTOPTB710"
		add_stability = -1
	}
}

# Priests are preaching Heresy!
country_event = {
	id = 711
	title = "EVTNAME711"
	desc = "EVTDESC711"
	picture = POPE_PREACHING_eventPicture

	is_triggered_only = yes
	
	trigger = {
		stability = 0
		religion = catholic
		is_at_war = no
	}

	mean_time_to_happen = {
		days = 1
		modifier = {
			factor = 0.5
			luck = yes
		}		
	}

	option = {
		name = "EVTOPTA711"
		add_prestige = -5
		random_owned_province = {
			add_province_modifier = {
				name = "heresy"
				duration = 3650
			}
		}		
	}
	option = {
		name = "EVTOPTB711"
		add_dip_power = -30
	}
}

# Dramatic Currency Revaluation
country_event = {
	id = 712
	title = "EVTNAME712"
	desc = "EVTDESC712"
	picture = ECONOMY_eventPicture

	is_triggered_only = yes
	
	trigger = {
		stability = 0
		inflation = 5
	}

	mean_time_to_happen = {
		days = 1
		modifier = {
			factor = 0.5
			luck = yes
		}		
	}

	option = {
		name = "EVTOPTA712"
		add_stability = -1
	}
	option = {
		name = "EVTOPTB712"
		add_inflation = 3
	}
}

# Decadence
country_event = {
	id = 713
	title = "EVTNAME713"
	desc = "EVTDESC713"
	picture = COURT_eventPicture

	is_triggered_only = yes
	
	trigger = {
		stability = 0
		is_at_war = no
		NOT = { war_exhaustion = 0.1 }
	}

	mean_time_to_happen = {
		days = 1
		modifier = {
			factor = 0.5
			luck = yes
		}		
	}

	option = {
		name = "EVTOPTA713"
		add_stability = -1
	}
}

# Military Divided!
country_event = {
	id = 714
	title = "EVTNAME714"
	desc = "EVTDESC714"
	picture = LAND_MILITARY_eventPicture

	is_triggered_only = yes
	
	trigger = {
		stability = 0
		is_at_war = no
		NOT = { has_country_modifier = defensive_modifier }
		NOT = { has_country_modifier = offensive_modifier }
	}

	mean_time_to_happen = {
		days = 1
		modifier = {
			factor = 0.5
			luck = yes
		}		
	}

	option = {
		name = "EVTOPTA714"
		add_mil_power = -25
		add_country_modifier = {
			name = defensive_modifier
			duration = 3650
		}
	}
	option = {
		name = "EVTOPTB714"
		add_mil_power = -25
		add_country_modifier = {
			name = offensive_modifier
			duration = 3650
		}
	}
}

# $MONARCH$ embarrasses the court
country_event = {
	id = 715
	title = "EVTNAME715"
	desc = "EVTDESC715"
	picture = COURT_eventPicture
	
	is_triggered_only = yes
	
	trigger = {
		stability = 0
		government = monarchy
		has_regency = no
		NOT = { DIP = 4 }
	}

	mean_time_to_happen = {
		days = 1
	}

	option = {
		name = "EVTOPTA715"
		add_stability = -1
	}
}

# Nobles Demand Recompensation
country_event = {
	id = 716
	title = "EVTNAME716"
	desc = "EVTDESC716"
	picture = COURT_eventPicture

	is_triggered_only = yes
	
	trigger = {
		stability = 1
	}

	mean_time_to_happen = {
		days = 1
		modifier = {
			factor = 0.5
			luck = yes
		}		
	}

	option = {
		name = "EVTOPTA716"
		add_stability = -2
	}
	option = {
		name = "EVTOPTB716"
		add_stability = -1
		add_years_of_income = -0.5
	}	
}

# Monetary Reforms
country_event = {
	id = 717
	title = "EVTNAME717"
	desc = "EVTDESC717"
	picture = REFORM_eventPicture
	
	is_triggered_only = yes
	
	trigger = {
		stability = 0
	}

	mean_time_to_happen = {
		days = 1
		modifier = {
			factor = 0.5
			luck = yes
		}		
	}

	option = {
		name = "EVTOPTA717"
		add_stability = -1
		define_advisor = { type = master_of_mint skill = 3 }
	}
	option = {
		name = "EVTOPTB717"
		add_inflation = 3
	}	
}

# The Fortunes of War
country_event = {
	id = 718
	title = "EVTNAME718"
	desc = "EVTDESC718"
	picture = REFORM_eventPicture

	is_triggered_only = yes
	
	trigger = {
		war_exhaustion = 5
		is_at_war = no
	}

	mean_time_to_happen = {
		days = 1
		modifier = {
			factor = 0.5
			luck = yes
		}		
	}

	option = {
		name = "EVTOPTA718"
		add_war_exhaustion = -3
		add_inflation = 1
	}
	option = {
		name = "EVTOPTB718"
		add_war_exhaustion = -1
	}	
}

# Strong Military Leadership
country_event = {
	id = 719
	title = "EVTNAME719"
	desc = "EVTDESC719"
	picture = MILITARY_CAMP_eventPicture

	is_triggered_only = yes
	
	trigger = {
		stability = 0
		army_tradition = 50
	}

	mean_time_to_happen = {
		days = 1
		modifier = {
			factor = 0.5
			luck = yes
		}		
	}

	option = {
		name = "EVTOPTA719"
		add_stability = -1
	}
	option = {
		name = "EVTOPTB719"
		add_army_tradition = -20
	}	
}

# The Naval Tradition
country_event = {
	id = 720
	title = "EVTNAME720"
	desc = "EVTDESC720"
	picture = NAVAL_MILITARY_eventPicture

	is_triggered_only = yes
	
	trigger = {
		stability = 0
		navy_tradition = 50
	}

	mean_time_to_happen = {
		days = 1
		modifier = {
			factor = 0.5
			luck = yes
		}		
	}

	option = {
		name = "EVTOPTA720"
		add_stability = -1
	}
	option = {
		name = "EVTOPTB720"
		add_navy_tradition = -20
	}	
}

# Sickness of $MONARCHTITLE$
country_event = {
	id = 722
	title = "EVTNAME722"
	desc = "EVTDESC722"
	picture = COURT_eventPicture

	is_triggered_only = yes
	
	trigger = {
		stability = 0
		has_regency = no
		government = monarchy
		NOT = {	has_ruler_modifier = power_to_nobles	}
		NOT = {	has_ruler_modifier = power_to_provinces	}
	}

	mean_time_to_happen = {
		days = 1
		modifier = {
			factor = 0.5
			luck = yes
		}		
	}

	option = {
		name = "EVTOPTA722"
		add_ruler_modifier = {
			name = "power_to_nobles"
			duration = 3650
		}
	}
	option = {
		name = "EVTOPTB722"
		add_ruler_modifier = {
			name = "power_to_provinces"
			duration = 3650
		}
	}	
}

# Regional Nobles challenge $COUNTRY$
country_event = {
	id = 723
	title = "EVTNAME723"
	desc = "EVTDESC723"
	picture = ANGRY_MOB_eventPicture

	is_triggered_only = yes
	
	trigger = {
		num_of_cities = 30
		any_owned_province = {
			has_owner_culture = no
		}
	}

	mean_time_to_happen = {
		days = 1
		modifier = {
			factor = 0.5
			luck = yes
		}		
	}

	option = {
		name = "EVTOPTA723"
		random_owned_province = {
			limit = {
				has_owner_culture = no
			}
			noble_rebels = 2
		}
	}
	option = {
		name = "EVTOPTB723"
		
		random_owned_province = {
			limit = { 
				has_owner_culture = no
			}
			add_province_modifier = {
				name = "powerful_noble"
				duration = 7300
			}
		}		
	}	
	option = {
		name = "EVTOPTC723"
		add_stability = -1
	}	
}

# Clergy condemns philosopher as heretic!
country_event = {
	id = 724
	title = "EVTNAME724"
	desc = "EVTDESC724"
	picture = POPE_PREACHING_eventPicture

	is_triggered_only = yes
	
	trigger = {
		religion = catholic
		NOT = { has_country_modifier = narrowminded_modifier }
		NOT = { has_country_modifier = innovative_modifier }
	}

	mean_time_to_happen = {
		days = 1
		modifier = {
			factor = 0.5
			luck = yes
		}		
	}

	option = {
		name = "EVTOPTA724"
		add_stability = -1
		add_country_modifier = {
			name = narrowminded_modifier
			duration = 3650
		}
	}
	option = {
		name = "EVTOPTB724"
		add_stability = -1
		add_country_modifier = {
			name = innovative_modifier
			duration = 3650
		}
	}	
}

# Growth of Cities attracts Serfs
country_event = {
	id = 725
	title = "EVTNAME725"
	desc = "EVTDESC725"
	picture = CITY_DEVELOPMENT_eventPicture

	is_triggered_only = yes
	
	trigger = {
		num_of_cities = 5
		any_owned_province = {
			NOT = { base_tax = 5 }
			base_tax = 2
			is_capital = no
			is_overseas = no
		}
		NOT = { is_year = 1650 }
	}

	mean_time_to_happen = {
		days = 1
		modifier = {
			factor = 0.5
			luck = yes
		}		
	}

	option = {
		name = "EVTOPTA725"
		random_owned_province = {
			limit = {
				NOT = { base_tax = 5 }
				base_tax = 2
				is_capital = no
				is_overseas = no
			}
			add_base_tax = -1
		}
		capital_scope = {
			add_base_tax = 1
		}
		add_stability = -1
	}
	option = {
		name = "EVTOPTB725"
		add_country_modifier = {
			name = serfdom_modifier
			duration = 7300
		}
	}	
}

# $MONARCHTITLE$'s reputation tarnished!
country_event = {
	id = 726
	title = "EVTNAME726"
	desc = "EVTDESC726"
	picture = COURT_eventPicture

	is_triggered_only = yes
	
	trigger = {
		NOT = { dip = 5 }
		has_regency = no
		stability = -1
	}

	mean_time_to_happen = {
		days = 1
		modifier = {
			factor = 0.5
			luck = yes
		}		
	}

	option = {
		name = "EVTOPTA726"
		add_dip_power = -100
	}
	option = {
		name = "EVTOPTB726"
		add_stability = -1
	}	
}

# Fight the Good Fight!
country_event = {
	id = 727
	title = "EVTNAME727"
	desc = "EVTDESC727"
	picture = BATTLE_eventPicture

	is_triggered_only = yes
	
	trigger = {
		any_enemy_country = {
			war_with = ROOT
		}
		war_exhaustion = 5
	}

	mean_time_to_happen = {
		days = 1
		modifier = {
			factor = 2.0
			luck = yes
		}	
		modifier = {
			factor = 2.0
			war_exhaustion = 10
		}			
	}

	option = {
		name = "EVTOPTA727"
		add_war_exhaustion = -1
	}
}

# Claims on Our Rivals!
country_event = {
	id = 728
	title = "EVTNAME728"
	desc = "EVTDESC728"
	picture = DIPLOMACY_eventPicture

	is_triggered_only = yes
	
	trigger = {
		dip = 3
		any_rival_country = {
			any_owned_province = {
				NOT = { is_claim = ROOT }
				OR = {
					is_capital = no
					owner = {
						NOT = { num_of_cities = 2 }
					}
				}
				any_neighbor_province = {
					owned_by = ROOT
				}
			}
		}
	}

	mean_time_to_happen =  {
		days = 1
		modifier = {
			factor = 1.15
			adm = 4
		}
		modifier = {
			factor = 1.15
			adm = 5
		}
		modifier = {
			factor = 1.15
			adm = 6
		}
		modifier = {
			factor = 1.15
			mil = 4
		}
		modifier = {
			factor = 1.15
			mil = 5
		}
		modifier = {
			factor = 1.15
			mil = 6
		}
		modifier = {
			factor = 1.15
			dip = 4
		}
		modifier = {
			factor = 1.15
			dip = 5
		}
		modifier = {
			factor = 1.15
			dip = 6
		}
	}

	option = {
		name = "EVTOPTA728"
		random_rival_country = {
			limit = {
				any_owned_province = {
					NOT = { is_claim = ROOT }
					OR = {
						is_capital = no
						owner = {
							NOT = { num_of_cities = 2 }
						}
					}
					any_neighbor_province = {
						owned_by = ROOT
					}
				}			
			}
			random_owned_province = {
				limit = {
					NOT = { is_claim = ROOT }
					OR = {
						is_capital = no
						owner = {
							NOT = { num_of_cities = 2 }
						}
					}
					any_neighbor_province = {
						owned_by = ROOT
					}
				}
				add_claim = ROOT
			}
		}	
		add_prestige = 10	
	}
}

# Improve the Capital
country_event = {
	id = 729
	title = "EVTNAME729"
	desc = "EVTDESC729"
	picture = CITY_DEVELOPMENT_eventPicture

	is_triggered_only = yes
	
	trigger = {
		is_at_war = no
		religion_group = christian
		NOT = { prestige = 50 }
	}

	mean_time_to_happen = {
		days = 1
	}

	option = {
		name = "EVTOPTA729"
		add_prestige = 5
		add_manpower = -0.1
	}
	option = {
		name = "EVTOPTB729"
		add_prestige = 5
		add_years_of_income = -0.1
	}
}

# Land Technology Research Useless
country_event = {
	id = 730
	title = "EVTNAME730"
	desc = "EVTDESC730"
	picture = DEBATE_REPUBLICAN_eventPicture

	is_triggered_only = yes
	
	trigger = {
		stability = 0
	}

	mean_time_to_happen = {
		days = 1
		modifier = {
			factor = 0.5
			luck = yes
		}		
	}

	option = {
		name = "EVTOPTA730"
		add_mil_power = -50
	}
	option = {
		name = "EVTOPTB730"
		add_prestige = -10
	}
}

# Naval Research Wrong!
country_event = {
	id = 731
	title = "EVTNAME731"
	desc = "EVTDESC731"
	picture = SHIP_SAILING_eventPicture

	is_triggered_only = yes
	
	trigger = {
		stability = 0
	}

	mean_time_to_happen = {
		days = 1
		modifier = {
			factor = 0.5
			luck = yes
		}		
	}

	option = {
		name = "EVTOPTA731"
		add_dip_power = -50
	}
	option = {
		name = "EVTOPTB731"
		add_prestige = -10
	}
}

# New Trade Research is Heretical
country_event = {
	id = 732
	title = "EVTNAME732"
	desc = "EVTDESC732"
	picture = MERCHANTS_TALKING_eventPicture

	is_triggered_only = yes
	
	trigger = {
		stability = 0
	}

	mean_time_to_happen = {
		days = 1
		modifier = {
			factor = 0.5
			luck = yes
		}		
	}

	option = {
		name = "EVTOPTA732"
		add_dip_power = -50
	}
	option = {
		name = "EVTOPTB732"
		add_prestige = -10
	}
}

# Production Research Flawed
country_event = {
	id = 733
	title = "EVTNAME733"
	desc = "EVTDESC733"
	picture = DEBATE_REPUBLICAN_eventPicture

	is_triggered_only = yes
	
	trigger = {
		stability = 0
	}

	mean_time_to_happen = {
		days = 1
		modifier = {
			factor = 0.5
			luck = yes
		}		
	}

	option = {
		name = "EVTOPTA733"
		add_adm_power = -50
	}
	option = {
		name = "EVTOPTB733"
		add_prestige = -10
	}
}

# There should be a Stable Government
country_event = {
	id = 734
	title = "EVTNAME734"
	desc = "EVTDESC734"
	picture = LIBERUM_VETO_eventPicture

	is_triggered_only = yes
	
	trigger = {
		stability = 0
	}

	mean_time_to_happen = {
		days = 1
		modifier = {
			factor = 0.5
			luck = yes
		}		
	}

	option = {
		name = "EVTOPTA734"
		add_adm_power = -50
	}
	option = {
		name = "EVTOPTB734"
		add_prestige = -10
	}
}

# A Generation of Cowards
country_event = {
	id = 735
	title = "EVTNAME735"
	desc = "EVTDESC735"
	picture = LAND_MILITARY_eventPicture

	is_triggered_only = yes
	
	trigger = {
		stability = 0
		is_at_war = no
		has_truce = no
		NOT = { war_exhaustion = 1 }
		NOT = { num_of_revolts = 1 }
	}

	mean_time_to_happen = {
		days = 1
		modifier = {
			factor = 0.5
			luck = yes
		}		
	}

	option = {
		name = "EVTOPTA735"
		add_manpower = -0.25
	}
	option = {
		name = "EVTOPTB735"
		add_country_modifier = {
			name = "bad_discipline"
			duration = 3650
		}
	}
}

# Death of a Merchant
country_event = {
	id = 736
	title = "EVTNAME736"
	desc = "EVTDESC736"
	picture = MERCHANTS_TALKING_eventPicture

	is_triggered_only = yes
	
	trigger = {
		religion_group = christian
	}

	mean_time_to_happen = {
		days = 1
	}

	option = {
		name = "EVTOPTA736"
		add_years_of_income = 0.25
	}
	option = {
		name = "EVTOPTB736"
		random_list = {
			10 = { create_advisor = theologian }
			10 = { create_advisor = artist }
			10 = { create_advisor = philosopher }
		}
	}
}

# Local fortification expert discovered
country_event = {
	id = 737
	title = "EVTNAME737"
	desc = "EVTDESC737"
	picture = FORT_eventPicture

	is_triggered_only = yes
	
	trigger = {
		num_of_cities = 2
		any_owned_province = {
			is_overseas = no
			is_capital = no
		}
	}

	mean_time_to_happen = {
		days = 1
	}

	option = {
		name = "EVTOPTA737"
		create_advisor = fortification_expert
	}
	option = {
		name = "EVTOPTB737"
		random_owned_province = {
			limit = {
				is_overseas = no
				is_capital = no
			}
			add_province_modifier = {
				name = "local_fortress"
				duration = -1
			}
		}		
	}
}

# Naive Relative
country_event = {
	id = 738
	title = "EVTNAME738"
	desc = "EVTDESC738"
	picture = COURT_eventPicture

	is_triggered_only = yes
	
	trigger = {
		stability = 0
		has_regency = no
		government = monarchy
	}

	mean_time_to_happen = {
		days = 1
		modifier = {
			factor = 0.5
			luck = yes
		}		
	}

	option = {
		name = "EVTOPTA738"
		add_adm_power = -25
	}
	option = {
		name = "EVTOPTB738"
		add_country_modifier = {
			name = "compromised_spy_defence"
			duration = 3650
		}
	}
}

# Saint Proclaimed
country_event = {
	id = 739
	title = "EVTNAME739"
	desc = "EVTDESC739"
	picture = POPE_PREACHING_eventPicture

	is_triggered_only = yes
	
	trigger = {
		religion = catholic
		NOT = { has_country_modifier = smugglers_dominating }
		NOT= {
			stability = 3
		}
	}

	mean_time_to_happen = {
		days = 1
	}

	option = {
		name = "EVTOPTA739"
		add_stability = 1
	}
}

# Smugglers running rampant
country_event = {
	id = 740
	title = "EVTNAME740"
	desc = "EVTDESC740"
	picture = SHIP_SAILING_eventPicture

	is_triggered_only = yes
	
	trigger = {
		stability = 0
	}

	mean_time_to_happen = {
		days = 1
		modifier = {
			factor = 0.5
			luck = yes
		}		
	}

	option = {
		name = "EVTOPTA740"
		add_stability = -1
		add_years_of_income = -0.25
	}
	option = {
		name = "EVTOPTB740"

		add_country_modifier = {
			name = "smugglers_dominating"
			duration = 3650
		}
	}
}

# Printing Press gives Benefits
country_event = {
	id = 741
	title = "EVTNAME741"
	desc = "EVTDESC741"
	picture = INVENTION_eventPicture

	is_triggered_only = yes
	
	trigger = {
		is_year = 1500
		capital_scope = { continent = europe }
	}

	mean_time_to_happen = {
		days = 1
	}

	option = {
		name = "EVTOPTA741"
		add_mil_power = 20
		add_dip_power = 20
		add_adm_power = 20
	}
}

# Extraordinary Recruiting Policies
country_event = {
	id = 742
	title = "EVTNAME742"
	desc = "EVTDESC742"
	picture = MILITARY_CAMP_eventPicture

	is_triggered_only = yes
	
	trigger = {
		mil = 4
		is_monarch_leader = yes
		NOT = { manpower_percentage = 0.6 }
		is_at_war = yes
		NOT = { war_exhaustion = 10 }
		stability = -1
	}

	mean_time_to_happen = {
		days = 1
		modifier = {
			factor = 1.25
			luck = yes
		}		
	}

	option = {
		name = "EVTOPTA742"
		add_manpower = 0.15
		add_war_exhaustion = 1
	}
	option = {
		name = "EVTOPTB742"
		add_manpower = 0.05
	}	
}

# Legitimacy gain or Prestige gain
country_event = {
	id = 850
	title = "EVTNAME850"
	desc = "EVTDESC850"
	picture = COURT_eventPicture

	is_triggered_only = yes
	
	trigger = {
		government = monarchy
		has_regency = no
		NOT = { legitimacy = 90 }
		capital_scope = { continent = europe }
	}
	
	mean_time_to_happen = {
		days = 1
	}
	
	option = {
		name = "EVTOPTA850"
		add_legitimacy = 5
	}	
	option = {
		name = "EVTOPTB850"
		add_prestige = 5
	}	
}

# Legitimacy loss or Prestige loss
country_event = {
	id = 851
	title = "EVTNAME851"
	desc = "EVTDESC851"
	picture = COURT_eventPicture

	is_triggered_only = yes
	
	trigger = {
		government = monarchy
		legitimacy = 20
		has_regency = no
	}
	
	mean_time_to_happen = {
		days = 1
	}
	
	option = {
		name = "EVTOPTA851"
		add_legitimacy = -5
	}	
	option = {
		name = "EVTOPTB851"
		add_prestige = -5
	}	
}

# Treasury vs Prestige gain for Republic
country_event = {
	id = 852
	title = "EVTNAME852"
	desc = "EVTDESC852"
	picture = DEBATE_REPUBLICAN_eventPicture

	is_triggered_only = yes
	
	trigger = {
		government = republic
	}
	
	mean_time_to_happen = {
		days = 1
	}
	
	option = {
		name = "EVTOPTA852"
		add_years_of_income = 0.10
		
	}	
	option = {
		name = "EVTOPTB852"
		add_prestige = 10
		
	}	
}

# Inflation loss if ADM 8
country_event = {
	id = 853
	title = "EVTNAME853"
	desc = "EVTDESC853"
	picture = ECONOMY_eventPicture

	is_triggered_only = yes
	
	trigger = {
		adm = 5
		inflation = 3
	}
	
	mean_time_to_happen = {
		days = 1
		modifier = {
			factor = 1.25
			luck = yes
		}		
		modifier = {
			factor = 1.25
			advisor = master_of_mint
		}		
	}
	
	option = {
		name = "EVTOPTA853"
		add_inflation = -1
	}	
}

# Prestige (formerly cultural tradition) gain
country_event = {
	id = 854
	title = "EVTNAME854"
	desc = "EVTDESC854"
	picture = IMPORTANT_STATUE_eventPicture

	is_triggered_only = yes
	
	trigger = {
		is_at_war = no
	}
	
	mean_time_to_happen = {
		days = 1
	}
	
	option = {
		name = "EVTOPTA854"
		add_prestige = 5
	}	
}

# Stability (formerly cultural tradition) loss
country_event = {
	id = 855
	title = "EVTNAME855"
	desc = "EVTDESC855"
	picture = IMPORTANT_STATUE_eventPicture

	is_triggered_only = yes
	
	trigger = {
		is_at_war = yes
	}
	
	mean_time_to_happen = {
		days = 1
	}
	
	option = {
		name = "EVTOPTA855"
		add_stability = -1
	}	
}

# Infamy loss
country_event = {
	id = 857
	title = "EVTNAME857"
	desc = "EVTDESC857"
	picture = DIPLOMACY_eventPicture

	is_triggered_only = yes
	
	trigger = {
		is_at_war = no
		dip = 4
		overextension_percentage = 0.25
		has_regency = no
		NOT = { has_country_modifier = competent_diplomacy }
	}
	
	mean_time_to_happen = {
		days = 1
	}
	
	option = {
		name = "EVTOPTA857"
		add_country_modifier = {
			name = "competent_diplomacy"
			duration = 1825
		}	
	}	
}

# Infamy gain
country_event = {
	id = 858
	title = "EVTNAME858"
	desc = "EVTDESC858"
	picture = DIPLOMACY_eventPicture

	is_triggered_only = yes
	
	trigger = {
		NOT = { dip = 4 }
		overextension_percentage = 0.25
		has_regency = no
		NOT = { has_country_modifier = incompetent_diplomacy }
	}
	
	mean_time_to_happen = {
		days = 1
	}
	
	option = {
		name = "EVTOPTA858"
		add_country_modifier = {
			name = "incompetent_diplomacy"
			duration = 1825
		}
	}	
}

# War Exhaustion gain or Army/Navy Tradition loss
country_event = {
	id = 859
	title = "EVTNAME859"
	desc = "EVTDESC859"
	picture = ANGRY_MOB_eventPicture

	is_triggered_only = yes
	
	trigger = {
		is_at_war = yes
		war_exhaustion = 2
	}
	
	mean_time_to_happen = {
		days = 1
	}
	
	option = {
		name = "EVTOPTA859"
		add_war_exhaustion = 2
	}
	option = {
		name = "EVTOPTB859"
		add_army_tradition = -5
		add_navy_tradition = -5
	}
}

# War Exhaustion loss or Army/Navy Tradition gain
country_event = {
	id = 860
	title = "EVTNAME860"
	desc = "EVTDESC860"
	picture = MILITARY_CAMP_eventPicture

	is_triggered_only = yes
	
	trigger = {
		is_at_war = yes
		war_exhaustion = 5
	}
	
	mean_time_to_happen = {
		days = 1
	}
	
	option = {
		name = "EVTOPTA860"
		add_war_exhaustion = -2
	}
	option = {
		name = "EVTOPTB860"
		add_army_tradition = 5
		add_navy_tradition = 5
	}		
}

# Gain spies or prestige
country_event = {
	id = 861
	title = "EVTNAME861"
	desc = "EVTDESC861"
	picture = SPY_eventPicture

	is_triggered_only = yes
	
	trigger = {	}
	
	mean_time_to_happen = {
		days = 1
	}
	
	option = {
		name = "EVTOPTA861"
		add_country_modifier = {
			name = shady_people
			duration = 1825
		}
	}
	option = {
		name = "EVTOPTB861"
		add_prestige = 5
	}		
}

# Colonists boost or Conquistador
country_event = {
	id = 862
	title = "EVTNAME862"
	desc = "EVTDESC862"
	picture = COLONIZATION_eventPicture

	is_triggered_only = yes
	
	trigger = {
		has_idea = quest_for_the_new_world
		capital_scope = { continent = europe }
		any_owned_province = {
			is_colony = yes
			OR = {
				continent = north_america
				continent = south_america
			}
		}
	}
	
	mean_time_to_happen = {
		days = 1
	}
	
	option = {
		name = "EVTOPTA862"
		add_country_modifier = {
			name = "colonial_enthusiasm"
			duration = 1095
		}
	}
	option = {
		name = "EVTOPTB862"
		create_conquistador = 5
	}		
}

# Loss of merchants 
country_event = {
	id = 863
	title = "EVTNAME863"
	desc = "EVTDESC863"
	picture = MERCHANTS_TALKING_eventPicture

	is_triggered_only = yes
	
	trigger = {
		num_of_merchants = 2
		capital_scope = { continent = europe }
		any_active_trade_node = {
			continent = asia
			NOT = { 
				has_trade_modifier = {
					who = ROOT
					name = merchant_recalled
				}
			}			
		}
		any_active_trade_node = {
			continent = europe
			NOT = { 
				has_trade_modifier = {
					who = ROOT
					name = merchant_recalled
				}
			}			
		}
	}
	
	mean_time_to_happen = {
		days = 1
	}
	
	option = {
		name = "EVTOPTA863"
		trigger = {
			any_active_trade_node = {
				continent = asia
				NOT = { 
					has_trade_modifier = {
						who = ROOT
						name = merchant_recalled
					}
				}								
			}
		}
		random_active_trade_node = {
			limit = {
				continent = asia
				NOT = { 
					has_trade_modifier = {
						who = ROOT
						name = merchant_recalled
					}
				}				
			}
			add_trade_modifier = {
				who = root
				duration = 3650
				power = -10
				key = merchant_recalled
			}	
		}
	}
	option = {
		name = "EVTOPTB863"
		trigger = {
			any_active_trade_node = {
				continent = europe
				NOT = { 
					has_trade_modifier = {
						who = ROOT
						name = merchant_recalled
					}
				}				
			}
		}		
		random_active_trade_node = {
			limit = {
				continent = europe
				NOT = { 
					has_trade_modifier = {
						who = ROOT
						name = merchant_recalled
					}
				}			
			}
			add_trade_modifier = {
				who = root
				duration = 3650
				power = -10
				key = merchant_recalled
			}	
		}
	}
	option = {
		name = "EVTOPTC863"
		add_dip_power = -20
	}		
}

# Relation boost with a random neighbour country
country_event = {
	id = 864
	title = "EVTNAME864"
	desc = "EVTDESC864"
	picture = COURT_eventPicture
	
	is_triggered_only = yes
	
	trigger = {
		any_neighbor_country = {
			religion = ROOT
			NOT = { war_with = ROOT }
			NOT = { truce_with = ROOT }
		}
	}
	
	mean_time_to_happen = {
		days = 1
	}
	
	option = {
		name = "EVTOPTA864"
		random_neighbor_country = {
			limit = {
				religion = ROOT
				NOT = { war_with = ROOT }
				NOT = { truce_with = ROOT }
			}
			add_opinion = { who = ROOT modifier = opinion_improved_relations }
		}		
	}
}

# Gain papal influence OR prestige
country_event = {
	id = 865
	title = "EVTNAME865"
	desc = "EVTDESC865"
	picture = POPE_PREACHING_eventPicture

	is_triggered_only = yes
	
	trigger = {
		religion = catholic
	}
	
	mean_time_to_happen = {
		days = 1
	}
	
	option = {
		name = "EVTOPTA865"
		add_papal_influence = 10
	}
	option = {
		name = "EVTOPTB865"
		add_prestige = 5
	}
}

# Add land tech (big for inflation)
country_event = {
	id = 866
	title = "EVTNAME866"
	desc = "EVTDESC866"
	picture = LAND_MILITARY_eventPicture

	is_triggered_only = yes
	
	trigger = {
		mil_tech = 6
	}
	
	mean_time_to_happen = {
		days = 1
	}
	
	option = {
		name = "EVTOPTA866"
		add_inflation = 0.5
		add_mil_power = 50
	}
	option = {
		name = "EVTOPTB866"
		add_mil_power = 10
	}
}

# Add naval tech (big for inflation)
country_event = {
	id = 867
	title = "EVTNAME867"
	desc = "EVTDESC867"
	picture = NAVAL_MILITARY_eventPicture

	is_triggered_only = yes
	
	trigger = {
		num_of_ports = 1
	}
	
	mean_time_to_happen = {
		days = 1
	}
	
	option = {
		name = "EVTOPTA867"
		add_inflation = 0.5
		add_dip_power = 50
	}
	option = {
		name = "EVTOPTB867"
		add_dip_power = 10
	}
}

# Add trade tech (big for inflation)
country_event = {
	id = 868
	title = "EVTNAME868"
	desc = "EVTDESC868"
	picture = MERCHANTS_TALKING_eventPicture

	is_triggered_only = yes
	
	trigger = {
	}
	
	mean_time_to_happen = {
		days = 1
	}
	
	option = {
		name = "EVTOPTA868"
		add_inflation = 0.5
		add_dip_power = 50
	}
	option = {
		name = "EVTOPTB868"
		add_dip_power = 10
	}
}

# Add gov tech (big for inflation)
country_event = {
	id = 869
	title = "EVTNAME869"
	desc = "EVTDESC869"
	picture = LIBERUM_VETO_eventPicture

	is_triggered_only = yes
	
	trigger = {	}
	
	mean_time_to_happen = {
		days = 1
	}
	
	option = {
		name = "EVTOPTA869"
		add_inflation = 0.5
		add_adm_power = 50
	}
	option = {
		name = "EVTOPTB869"
		add_adm_power = 10
	}
}

# Add prod tech (big for inflation)
country_event = {
	id = 870
	title = "EVTNAME870"
	desc = "EVTDESC870"
	picture = CITY_DEVELOPMENT_eventPicture

	is_triggered_only = yes
	
	trigger = {	}
	
	mean_time_to_happen = {
		days = 1
	}
	
	option = {
		name = "EVTOPTA870"
		add_inflation = 0.5
		add_adm_power = 50
	}
	option = {
		name = "EVTOPTB870"
		add_adm_power = 10
	}
}

#Sale of Titles
country_event = {
	id = 871
	title = "EVTNAME871"
	desc = "EVTDESC871"
	picture = COURT_eventPicture

	is_triggered_only = yes
	
	trigger = {	}
	
	mean_time_to_happen = {
		days = 1
	}
	
	option = {
		name = "EVTOPTA871"
		add_years_of_income = 0.25
	}
	option = {
		name = "EVTOPTB871"
		add_stability = 1
	}
}

# A traveling minstrel
country_event = {
	id = 872
	title = "EVTNAME872"
	desc = "EVTDESC872"
	picture = ADVISOR_eventPicture

	is_triggered_only = yes
	
	trigger = {
		OR = {
			technology_group = western
			technology_group = eastern
		}
	}
	
	mean_time_to_happen = {
		days = 1
	}
	
	option = {
		name = "EVTOPTA872"
		add_stability = 1
	}
	option = {
		name = "EVTOPTB872"
		define_advisor = {
			type = artist
			skill = 2
		}
	}
}

# A bountiful harvest
country_event = {
	id = 873
	title = "EVTNAME873"
	desc = "EVTDESC873"
	picture = FEAST_eventPicture

	is_triggered_only = yes
	
	trigger = {
		is_month = 7
	}
	
	mean_time_to_happen = {
		days = 1
	}
	
	option = {
		name = "EVTOPTA873"
		add_years_of_income = 0.25
	}
}

# Tensions between nobles and clergy
country_event = {
	id = 874
	title = "EVTNAME874"
	desc = "EVTDESC874"
	picture = RELIGION_eventPicture
	
	is_triggered_only = yes
	
	trigger = {
		religion = catholic
		OR = {
			government = feudal_monarchy	
			government = imperial_government
		}
		exists = PAP
		capital_scope = {
			continent = europe
		}
	}
	
	mean_time_to_happen = {
		days = 1
	}
	
	option = {
		name = "EVTOPTA874"
		ai_chance = { 
			factor = 20
			modifier = {
				factor = 2
				NOT = { num_of_cities = 5 }
			}				
			modifier = {
				factor = 2
				NOT = { num_of_cities = 10 }
			}
			modifier = {
				factor = 2
				NOT = { num_of_cities = 15 }
			}				
			modifier = {
				factor = 2
				NOT = { num_of_cities = 20 }
			}			
		}
		reverse_add_opinion = { who = PAP modifier = opinion_upset_pope }
	}
	option = {
		name = "EVTOPTB874"
		ai_chance = { factor = 80 }
		random_owned_province = {
			limit = {
				continent = europe
			}
			noble_rebels = 2
		}
	}
}

# The Maid of $PROVINCE
country_event = {
	id = 875
	title = "EVTNAME875"
	desc = "EVTDESC875"
	picture = COURT_eventPicture

	is_triggered_only = yes
	
	trigger = {
		religion = catholic
		NOT = {
			has_country_flag = maid_of_province
		}
		is_at_war = yes
		war_exhaustion = 5
		government = monarchy
		NOT = {
			legitimacy = 80
		}
		any_owned_province = {
			NOT = { controlled_by = owner }
		}
	}
	
	mean_time_to_happen = {
		days = 1
		modifier = {
			factor = 2.5
			tag = FRA
		}
	}
	
	immediate = {
		hidden_effect = {
			set_country_flag = maid_of_province
		}
	}
	
	option = {
		name = "EVTOPTA875"
		ai_chance = { factor = 100 }
		add_prestige = -5
		add_legitimacy = -5
		create_general = -50
	}
	option = {
		name = "EVTOPTB875"
		ai_chance = { factor = 0 }
		add_legitimacy = 10
	}
	option = {
		name = "EVTOPTC875"
		ai_chance = { factor = 0 }
		add_country_modifier = {
			name = narrowminded_modifier
			duration = 3650
		}
		add_stability = 1
	}
}

# Bible printed!
country_event = {
	id = 876
	title = "EVTNAME876"
	desc = "EVTDESC876"
	picture = POPE_PREACHING_eventPicture

	is_triggered_only = yes
	
	trigger = {
		religion = catholic
		capital_scope = {
			continent = europe
		}
		adm_tech = 5
		NOT = { has_global_flag = bible_printed }
		advisor = theologian
	}
	
	mean_time_to_happen = {
		days = 1
		modifier = {
			factor = 5.0
			culture_group = germanic
		}
	}
	
	option = {
		name = "EVTOPTA876"
		set_global_flag = bible_printed
		add_prestige = 25
	}
}

# Sweating Sickness
country_event = {
	id = 877
	title = "EVTNAME877"
	desc = "EVTDESC877"
	picture = PLAGUE_eventPicture

	is_triggered_only = yes
	
	trigger = {
		is_year = 1480
		capital_scope = {
			continent = europe
		}
		NOT = { adm_tech = 20 }
	}
	
	mean_time_to_happen = {
		days = 1
	}
	
	option = {
		name = "EVTOPTA877"
		add_stability = -1
	}
	option = {
		name = "EVTOPTB877"
		add_years_of_income = -0.50
	}	
	option = {
		name = "EVTOPTC877"
		add_dip_power = -100
	}	
}

# Disagreeing Advisor
country_event = {
	id = 878
	title = "EVTNAME878"
	desc = "EVTDESC878"
	picture = ADVISOR_eventPicture

	is_triggered_only = yes
	
	trigger = {
		has_advisor = yes
	}
	
	mean_time_to_happen = {
		days = 1
	}
	
	option = {
		name = "EVTOPTA878"
		add_prestige = -5
		random_list = {
			33 = { add_adm_power = 25 }
			33 = { add_dip_power = 25 }
			33 = { add_mil_power = 25 }
		}
	}
	option = {
		name = "EVTOPTB878"
		kill_advisor = random
	}
}

# Privateers bring profits
country_event = {
	id = 879
	title = "EVTNAME879"
	desc = "EVTDESC879"
	picture = NAVAL_MILITARY_eventPicture

	is_triggered_only = yes
	
	trigger = {
		has_country_modifier = hire_privateers
		num_of_ports = 3
		any_rival_country = {
			gold = 1
		}
		NOT = {
			gold = 1
		}
	}
	
	mean_time_to_happen = {
		days = 1
	}
	
	option = {
		name = "EVTOPTA879"
		add_years_of_income = 0.10
		every_rival_country = {
			limit = { gold = 1 }
			add_opinion = { who = ROOT modifier = opinion_gold_privateers }
		}
	}
}

# Privateers captured
country_event = {
	id = 880
	title = "EVTNAME880"
	desc = "EVTDESC880"
	picture = ADVISOR_eventPicture

	is_triggered_only = yes
	
	trigger = {
		num_of_ports = 5
		num_of_heavy_ship = 1
		num_of_colonial_subjects = 1
		any_rival_country = {
			has_country_modifier = hire_privateers
		}
	}
	
	mean_time_to_happen = {
		days = 1
	}
	
	option = {
		name = "EVTOPTA880"
		create_admiral = 50
	}
	option = {
		name = "EVTOPTB880"
		define_advisor = { 
			type = naval_reformer
			skill = 2
		}
	}
}

# Merchant Expedition
country_event = {
	id = 881
	title = "EVTNAME881"
	desc = "EVTDESC881"
	picture = EXPLORERS_eventPicture

	is_triggered_only = yes
	
	trigger = {
		has_idea = quest_for_the_new_world
		num_of_ports = 1
		num_of_merchants = 2
		any_active_trade_node = {
			is_sea = yes
		}		
		the_carribean = {
			NOT = { has_discovered = ROOT }
		}
	}
	
	mean_time_to_happen = {
		days = 1
	}
	
	option = {
		name = "EVTOPTA881"
		random_owned_province = {
			limit = { has_port = yes }
			heavy_ship = ROOT
		}
		create_explorer = 20
	}
}

#Renaissance Prince
country_event = {
	id = 883
	title = "EVTNAME883"
	desc = "EVTDESC883"
	picture = COURT_eventPicture

	is_triggered_only = yes
	
	trigger = {
		technology_group = western
		capital_scope = {
			continent = europe
		}
		is_year = 1450
		NOT = { is_year = 1600 }
	}
	
	mean_time_to_happen = {
		days = 1
	}
	
	option = {
		name = "EVTOPTA883"
		add_years_of_income = -0.10
		add_prestige = 10
	}
	option = {
		name = "EVTOPTB883"
		add_prestige = -5
	}
}

# Expanding influence
country_event = {
	id = 882
	title = "EVTNAME882"
	desc = "EVTDESC882"
	picture = SHIP_SAILING_eventPicture

	is_triggered_only = yes
	
	trigger = {
		OR = {
			has_country_modifier = dutch_india_trade_co 
			has_country_flag = trade_company 
		}
		indian_region = {
			owned_by = ROOT
		}
		indian_region = {
			NOT = {
				is_core = ROOT
				owned_by = ROOT
				owner = { technology_group = western } 
			}
			any_neighbor_province = {
				owned_by = ROOT
				is_core = ROOT
			}
		}
	}
	
	mean_time_to_happen = {
		days = 1
	}
	
	option = {
		name = "EVTOPTA882"
		add_dip_power = -20
	}
	option = {
		name = "EVTOPTB882"
		indian_region = {
			limit = {
				NOT ={
					is_core = ROOT
					owned_by = ROOT
					owner = { technology_group = western } 
				}
				any_neighbor_province = {
					owned_by = ROOT
					is_core = ROOT
				}
			}
			add_claim = ROOT
		}
	}
}

# Local Noble's Power Grows
country_event = {
	id = 884
	title = "EVTNAME884"
	desc = "EVTDESC884"
	picture = DEBATE_REPUBLICAN_eventPicture

	is_triggered_only = yes
	
	trigger = {
		capital_scope = { continent = europe }
		NOT = { adm = 3 }
		OR = {
			government = feudal_monarchy
			government = despotic_monarchy
			government = imperial_government
		}
	}
	
	mean_time_to_happen = {
		days = 1
	}
	
	option = {
		name = "EVTOPTA884"
		add_prestige = -10
		random_owned_province = {
			limit = { 
				continent = europe 
				NOT = { has_province_modifier = "powerful_noble" } 
			}
			add_province_modifier = {
				name = "powerful_noble"
				duration = 240
			}
		}
	}
	option = {
		name = "EVTOPTB884"
		add_prestige = 5
		add_stability = -1
	}
	option = {
		name = "EVTOPTC884"
		add_prestige = 5
		random_owned_province = {
			limit = { 
				continent = europe 
				NOT = { has_province_modifier = "powerful_noble" } 
			}
			noble_rebels = 2
		}
	}
}

# Colonial Discovery!
country_event = {
	id = 885
	title = "EVTNAME885"
	desc = "EVTDESC885"
	picture = COLONIZATION_eventPicture

	is_triggered_only = yes
	
	trigger = {
		technology_group = western
		capital_scope = {
			continent = europe
		}
		num_of_colonies = 1
	}
	
	mean_time_to_happen = {
		days = 1
	}
	
	option = {
		name = "EVTOPTA885"
		add_dip_power = 15
	}
	option = {
		name = "EVTOPTB885"
		add_adm_power = 15
	}
}

# Country Destabilized
country_event = {
	id = 806
	title = "EVTNAME806"
	desc = "EVTDESC806"
	picture = DEBATE_REPUBLICAN_eventPicture
	
	is_triggered_only = yes
	
	trigger = {
		war_exhaustion = 10
	}	

	option = {
		name = "EVTOPTB806A"
		add_stability = -1
	}
}

# Large Revolt
country_event = {
	id = 807
	title = "EVTNAME807"
	desc = "EVTDESC807"
	picture = ANGRY_MOB_eventPicture

	is_triggered_only = yes

	mean_time_to_happen = {
		days = 1
	}
	
	immediate = {
		hidden_effect = {
			random_owned_province = {
				set_province_flag = anti_tax_rebels
			}
			random_owned_province = {
				limit = {
					NOT = { is_core = ROOT }
					is_colony = no
					NOT = { has_province_flag = anti_tax_rebels }
				}
				set_province_flag = nationalist_rebels
			}
		}
	}
	
	option = {
		name = "EVTOPTB807A"
		random_owned_province = {
			limit = {
				has_province_flag = anti_tax_rebels
			}
			anti_tax_rebels = 1
			clr_province_flag = anti_tax_rebels
		}
		random_owned_province = {
			limit = {
				NOT = { is_core = ROOT }
				is_colony = no
				has_province_flag = nationalist_rebels
			}
			nationalist_rebels = 1
			clr_province_flag = nationalist_rebels
		}
	}
}

# Local Pretender Rises
country_event = {
	id = 808
	title = "EVTNAME808"
	desc = "EVTDESC808"
	picture = ANGRY_MOB_eventPicture
	
	is_triggered_only = yes
	
	trigger = {
		NOT = { legitimacy = 90 }
		government = monarchy
	}		

	mean_time_to_happen = {
		days = 1
	}
	
	option = {
		name = "EVTOPTB808A"
		random_owned_province = {
			limit = { is_overseas = no } 
			pretender_rebels = 1
		}
	}
}

# Naval thought suffering
country_event = {
	id = 836
	title = "EVTNAME836"
	desc = "EVTDESC836"
	picture = NAVAL_MILITARY_eventPicture

	is_triggered_only = yes
	
	trigger = {
		NOT = { has_idea_group = naval_ideas }
		OR = { 
			has_idea_group = offensive_ideas
			has_idea_group = defensive_ideas
		}
	}
	
	option = {
		name = "EVTOPTB836A"
		add_dip_power = -50
	}
}

# Naval Officers are retiring
country_event = {
	id = 837
	title = "EVTNAME837"
	desc = "EVTDESC837"
	picture = NAVAL_MILITARY_eventPicture
	
	is_triggered_only = yes

	trigger = {
		NOT = { has_idea_group = naval_ideas }
		OR = { 
			has_idea_group = offensive_ideas
			has_idea_group = defensive_ideas
		}
	}	
	
	option = {
		name = "EVTOPTB837A"
		add_navy_tradition = -10
	}
}

# An example to us all
country_event = {
	id = 838
	title = "EVTNAME838"
	desc = "EVTDESC838"
	picture = LAND_MILITARY_eventPicture
	
	is_triggered_only = yes
	
	trigger = {
		NOT = { has_idea_group = naval_ideas }
		OR = { 
			has_idea_group = offensive_ideas
			has_idea_group = defensive_ideas
		}
	}	
	
	option = {
		name = "EVTOPTB838A"
		create_advisor = grand_captain
	}
}

### Scripted by Sara Wendel-Örtqvist ###

namespace = random_event

# Support for revolution overseas
country_event = {
	id = random_event.1
	title = "random_event.EVTNAME1"
	desc = "random_event.EVTDESC1"
	picture = LAND_MILITARY_eventPicture
	
	is_triggered_only = yes
	
	trigger = {
		is_at_war = no
		treasury = 100
		any_known_country = {
			OR = {
				capital_scope = { continent = north_america }
				capital_scope = { continent = south_america }
			}
			is_subject = no
			any_rival_country = {
				capital_scope = { continent = europe }
				war_with = PREV
			}
		}
	}
	
	mean_time_to_happen = {
		days = 1
	}
	
	option = {
		name = "random_event.EVTOPTA1"
		add_treasury = -100
		random_known_country = {
			limit = {
				OR = {
					capital_scope = { continent = north_america }
					capital_scope = { continent = south_america }
				}
				any_known_country = {
					capital_scope = { continent = europe }
					war_with = PREV
				}
			}
			add_treasury = 100
			add_opinion = {
				who = ROOT
				modifier = opinion_sent_help
				years = 20
			}
		}
		random_rival_country = {
			limit = {
				capital_scope = { continent = europe }
				any_known_country = {
					OR = {
						capital_scope = { continent = north_america }
						capital_scope = { continent = south_america }
					}
					war_with = PREV
				}
			}
			add_opinion = {
				who = ROOT
				modifier = opinion_interfered_in_war
				years = 20
			}
		}
	}
	option = {
		name = "random_event.EVTOPTB1"
		add_prestige = -10
		random_known_country = {
			limit = {
				OR = {
					capital_scope = { continent = north_america }
					capital_scope = { continent = south_america }
				}
				any_known_country = {
					capital_scope = { continent = europe }
					war_with = PREV
				}
			}
			add_opinion = {
				who = ROOT
				modifier = opinion_refused_send_help
				years = 20
			}
		}
		random_rival_country = {
			limit = {
				capital_scope = { continent = europe }
				any_known_country = {
					OR = {
						capital_scope = { continent = north_america }
						capital_scope = { continent = south_america }
					}
					war_with = PREV
				}
			}
			add_opinion = {
				who = ROOT
				modifier = opinion_pleased
				years = 20
			}
		}
	}
}

# Culture ties weakened
country_event = {
	id = random_event.2
	title = "random_event.EVTNAME2"
	desc = "random_event.EVTDESC2"
	picture = COLONIZATION_eventPicture
	
	is_triggered_only = yes
	
	trigger = {
		capital_scope = { continent = europe }
		any_owned_province = {
			continent = north_america
			OR = {
				culture = scottish
				culture = english
			}
			is_capital = no
		}
		is_year = 1530
	}
	
	mean_time_to_happen = {
		days = 1
	}
	
	option = {
		name = "random_event.EVTOPTA2"
		random_owned_province = {
			limit = {
				continent = north_america
				OR = {
					culture = scottish
					culture = english
				}
				is_capital = no
			}
			change_culture = american
		}
	}
}

# Traitor in Parliament
country_event = {
	id = random_event.3
	title = "random_event.EVTNAME3"
	desc = "random_event.EVTDESC3"
	picture = COURT_eventPicture
	
	is_triggered_only = yes
	
	trigger = {
		government = republic
		is_at_war = yes
	}
	
	mean_time_to_happen = {
		days = 1
	}
	
	option = {
		name = "random_event.EVTOPTA3"
		add_stability = -1
	}
	option = {
		name = "random_event.EVTOPTB3"
		add_war_exhaustion = 2
	}
}

# A new religion spreads?
country_event = {
	id = random_event.4
	title = "random_event.EVTNAME4"
	desc = "random_event.EVTDESC4"
	picture = ELECTION_REPUBLICAN_eventPicture
	
	is_triggered_only = yes
	
	trigger = {
		any_owned_province = {
			has_building = university
		}
		NOT = {
			any_owned_province = {
				has_province_modifier = football_modifier
			}
		}
		is_year = 1700
		technology_group = western
		has_advisor = yes
	}
	
	mean_time_to_happen = {
		days = 1
		
		modifier = {
			factor = 2
			any_owned_province = {
				culture = english
			}
		}
	}
	
	option = {
		name = "random_event.EVTOPTA4"
		if = {
			limit = {
				religion = catholic
			}
			add_papal_influence = 10
		}
		if = {
			limit = {
				NOT = { religion = catholic }
			}
			add_legitimacy = 10
		}
		every_owned_province = {
			limit = {
				culture = english
			}
			add_province_modifier = {
				name = football_modifier
				duration = 18250
			}			
		}
	}
	option = {
		name = "random_event.EVTOPTB4"
		remove_advisor = random
	}
}

# Our ancestors are watching
country_event = {
	id = random_event.5
	title = "random_event.EVTNAME5"
	desc = "random_event.EVTDESC5"
	picture = COURT_eventPicture
	
	is_triggered_only = yes
	
	trigger = {
		government = monarchy
		NOT = { legitimacy = 40 }
		NOT = {
			any_owned_province = {
				has_province_modifier = watching_ancestors
			}
		}
	}
	
	mean_time_to_happen = {
		days = 1
	}
	
	option = {
		name = "random_event.EVTOPTA5"
		add_years_of_income = -0.20
		add_legitimacy = 20
		add_prestige = 20
	}
	option = {
		name = "random_event.EVTOPTB5"
		add_years_of_income = -0.10
		add_legitimacy = 5
		add_prestige = 5
	}
	option = {
		name = "random_event.EVTOPTC5"
		every_owned_province = {
			limit = {
				is_core = ROOT
			}
			add_province_modifier = {
				name = watching_ancestors
				duration = 18250
			}			
		}
	}
}

# A new champion of the joust
country_event = {
	id = random_event.6
	title = "random_event.EVTNAME6"
	desc = "random_event.EVTDESC6"
	picture = THEATRE_eventPicture
	
	is_triggered_only = yes
	
	trigger = {
		NOT = {
			is_year = 1500
		}
		OR = {
			government = despotic_monarchy
			government = feudal_monarchy
			government = administrative_monarchy
			government = absolute_monarchy
			government = constitutional_monarchy
			government = enlightened_despotism
			government = revolutionary_empire
		}
	}
	
	mean_time_to_happen = {
		days = 1
	}
	
	option = {
		name = "random_event.EVTOPTA6"
		create_general = 100
		add_prestige = -25
		add_legitimacy = -25
	}
	option = {
		name = "random_event.EVTOPTB6"
		add_legitimacy = 25
	}
}

# A new flagship!
country_event = {
	id = random_event.7
	title = "random_event.EVTNAME7"
	desc = "random_event.EVTDESC7"
	picture = SHIP_SAILING_eventPicture
	
	is_triggered_only = yes
	
	trigger = {
		naval_forcelimit = 90
		num_of_ports = 1
		any_owned_province = {
			has_port = yes
			is_core = ROOT
		}		
	}
	
	mean_time_to_happen = {
		days = 1
	}
	
	option = {
		name = "random_event.EVTOPTA7"
		add_treasury = -50
		add_prestige = 5
		random_owned_province = {
			limit = {
				has_port = yes
				is_core = ROOT
			}
			heavy_ship = ROOT
		}
	}
	option = {
		name = "random_event.EVTOPTB7"
		add_treasury = -20
		add_prestige = 2
		random_owned_province = {
			limit = {
				has_port = yes
				is_core = ROOT
			}
			light_ship = ROOT
		}
	}
	option = {
		name = "random_event.EVTOPTC7"
		add_treasury = -10
		add_prestige = 1
		random_owned_province = {
			limit = {
				has_port = yes
				is_core = ROOT
			}
			galley = ROOT
		}
	}
}

# Heresy!
country_event = {
	id = random_event.8
	title = "random_event.EVTNAME8"
	desc = "random_event.EVTDESC8"
	picture = POPE_PREACHING_eventPicture
	
	is_triggered_only = yes
	
	trigger = {
		religion = catholic
		OR = {
			advisor = natural_scientist
			advisor = philosopher
			advisor = artist
			advisor = theologian
		}
	}
	
	mean_time_to_happen = {
		days = 1
	}
	
	option = {
		name = "random_event.EVTOPTA8"
		create_advisor = inquisitor
		add_papal_influence = 10
		if = {
			limit = {
				advisor = natural_scientist
			}
			kill_advisor = natural_scientist
		}
		if = {
			limit = {
				advisor = philosopher
			}
			kill_advisor = philosopher
		}
		if = {
			limit = {
				advisor = artist
			}
			kill_advisor = artist
		}
		if = {
			limit = {
				advisor = theologian
			}
			kill_advisor = theologian
		}
	}
	option = {
		name = "random_event.EVTOPTB8"
		add_adm_power = 50
		add_papal_influence = -20
	}
}

# We have a man inside!
country_event = {
	id = random_event.9
	title = "random_event.EVTNAME9"
	desc = "random_event.EVTDESC9"
	picture = LAND_MILITARY_eventPicture
	
	is_triggered_only = yes
	
	trigger = {
		any_rival_country = {
			advisor = fortification_expert
			war_with = ROOT
		}
		has_regency = no
		NOT = {
			has_ruler_modifier = inside_man
		}
	}
	
	mean_time_to_happen = {
		days = 1
	}
	
	option = {
		name = "random_event.EVTOPTA9"
		random_rival_country = {
			limit = {
				war_with = ROOT
				advisor = fortification_expert
			}
			random_owned_province = {
				limit = {
					has_siege = yes
					NOT = {
						has_province_modifier = lowered_defense
					}
				}
				add_province_modifier = {
					name = lowered_defense
					duration = 365
				}
			}
		}
	}
	option = {
		name = "random_event.EVTOPTB9"
		add_ruler_modifier = {
			name = inside_man
		}
	}
}

# A greedy corsair
country_event = {
	id = random_event.10
	title = "random_event.EVTNAME10"
	desc = "random_event.EVTDESC10"
	picture = NAVAL_MILITARY_eventPicture
	
	is_triggered_only = yes
	
	trigger = {
		naval_forcelimit = 50
		num_of_ports = 1
		OR = {
			advisor = navigator
			advisor = naval_reformer
		}
	}
	
	mean_time_to_happen = {
		days = 1
	}
	
	option = {
		name = "random_event.EVTOPTA10"
		if = {
			limit = {
				advisor = navigator
			}
			kill_advisor = navigator
		}
		if = {
			limit = {
				advisor = naval_reformer
			}
			kill_advisor = naval_reformer
		}
		add_dip_power = 75
	}
	option = {
		name = "random_event.EVTOPTB10"
		add_years_of_income = 0.2
		add_mercantilism = -0.05
	}
}

# Foreign Military Expert
country_event = {
	id = random_event.11
	title = "random_event.EVTNAME11"
	desc = "random_event.EVTDESC11"
	picture = BATTLE_eventPicture
	
	is_triggered_only = yes
	
	trigger = {
		is_at_war = yes
		NOT = { army_tradition = 20 } 
	}
	
	mean_time_to_happen = {
		days = 1
	}
	
	option = {
		name = "random_event.EVTOPTA11"
		add_years_of_income = -0.25
		create_general = 100
	}
	option = {
		name = "random_event.EVTOPTB11"
		add_years_of_income = -0.10
		create_general = 50
	}
	option = {
		name = "random_event.EVTOPTC11"
		add_legitimacy = 5
	}
}

# The White Elephant
country_event = {
	id = random_event.12
	title = "random_event.EVTNAME12"
	desc = "random_event.EVTDESC12"
	picture = COURT_eventPicture
	
	is_triggered_only = yes
	
	trigger = {
		OR = {
			culture_group = thai
			culture_group = burman
			culture_group = eastern_aryan
			culture_group = hindusthani
			culture_group = western_aryan
			culture_group = dravidian
		}
		NOT = {
			stability = 3
		}
	}
	
	mean_time_to_happen = {
		days = 1
	}
	
	option = {
		name = "random_event.EVTOPTA12"
		add_stability = 1
	}
}

# Profits in Mecca!
country_event = {
	id = random_event.13
	title = "random_event.EVTNAME13"
	desc = "random_event.EVTDESC13"
	picture = MERCHANTS_TALKING_eventPicture
	
	is_triggered_only = yes
	
	trigger = {
		owns = 385 # Mecca
		NOT = {
			has_country_modifier = mecca_timer
		}
		NOT = {
			has_ruler_modifier = pious_ruler
		}
		has_regency = no
	}
	
	mean_time_to_happen = {
		days = 1
	}
	
	immediate = {
		hidden_effect = {
			add_country_modifier = {
				name = mecca_timer
				duration = 1825
				hidden = yes
			}
		}
	}
	
	option = {
		name = "random_event.EVTOPTA13"
		add_treasury = 100
		add_mercantilism = 0.02
	}
	option = {
		name = "random_event.EVTOPTB13"
		add_mercantilism = 0.05
	}
	option = {
		name = "random_event.EVTOPTC13"
		add_ruler_modifier = {
			name = pious_ruler
		}
	}
}

# An astonishing performance
country_event = {
	id = random_event.14
	title = "random_event.EVTNAME14"
	desc = "random_event.EVTDESC14"
	picture = THEATRE_eventPicture
	
	is_triggered_only = yes
	
	trigger = {
		capital_scope = { continent = europe }
		religion_group = christian
		has_idea_group = innovativeness_ideas
		NOT = {
			advisor = theologian
		}
	}
	
	mean_time_to_happen = {
		days = 1
	}
	
	option = {
		name = "random_event.EVTOPTA14"
		add_adm_power = 20
	}
	option = {
		name = "random_event.EVTOPTB14"
		add_prestige = -5
		create_advisor = theologian
	}
}

# Musket or Bow?
country_event = {
	id = random_event.15
	title = "random_event.EVTNAME15"
	desc = "random_event.EVTDESC15"
	picture = MILITARY_CAMP_eventPicture
	
	is_triggered_only = yes
	
	trigger = {
		mil_tech = 12
		NOT = {
			mil_tech = 18
		}
		has_regency = no
		NOT = {
			has_ruler_modifier = archery_muskets
		}
	}
	
	mean_time_to_happen = {
		days = 1
	}
	
	option = {
		name = "random_event.EVTOPTA15"
		add_ruler_modifier = {
			name = archery_muskets
		}
	}
	option = {
		name = "random_event.EVTOPTB15"
		add_army_tradition = -15
	}
}

# Gaps in the Blockade
country_event = {
	id = random_event.16
	title = "random_event.EVTNAME16"
	desc = "random_event.EVTDESC16"
	picture = SHIP_SAILING_eventPicture
	
	is_triggered_only = yes
	
	trigger = {
		is_at_war = yes
		blockade = 75
		NOT = {
			has_country_modifier = gaps_blockade
		}
		NOT = {
			has_country_modifier = merchants_gaps_blockade
		}
	}
	
	mean_time_to_happen = {
		days = 1
		
		modifier = {
			factor = 2
			has_country_modifier = hire_privateers
		}
		modifier = {
			factor = 2
			has_idea = naval_fighting_instruction
		}
	}
	
	option = {
		name = "random_event.EVTOPTA16"
		add_country_modifier = {
			name = gaps_blockade
			duration = 365
		}
	}
	option = {
		name = "random_event.EVTOPTB16"
		add_country_modifier = {
			name = merchants_gaps_blockade
			duration = 365
		}
	}
	option = {
		name = "random_event.EVTOPTC16"
		add_prestige = 3
	}
}

# The Four Kings
country_event = {
	id = random_event.20
	title = "random_event.EVTNAME20"
	desc = "random_event.EVTDESC20"
	picture = COURT_eventPicture
	
	trigger = {
		NOT = { has_country_flag = ENG_had_event_XXX }
		is_year = 1600
		NOT = { is_year = 1800 }
		OR = {
			AND = {
				tag = ENG
				NOT = { exists = GBR }
			}
			tag = GBR
		}
		government = monarchy
		any_known_country = {
			tag = IRO
			ai = yes
			is_subject = no
			num_of_cities = 4
			NOT = {
				alliance_with = ROOT
				war_with = ROOT
			}
		}
	}
	
	mean_time_to_happen = {
		months = 120
	}
	
	immediate = {
		set_country_flag = ENG_had_event_XXX
	}

	option = {
		name = "random_event.EVTOPTA20" # Give them a chain of steel representing our unbreakable bond
		ai_chance = { factor = 90 }
		add_opinion = { who = IRO modifier = visit_of_the_four_kings }
		IRO = {
			add_opinion = { who = ROOT modifier = visit_of_the_four_kings }
		}
		create_alliance = IRO
	}
	option = {
		name = "random_event.EVTOPTB20" # Give them gifts but make no promises
		ai_chance = { factor = 10 }
		add_treasury = -250
		IRO = {
			add_opinion = { who = ROOT modifier = opinion_grateful }
		}		
	}
	option = {
		name = "random_event.EVTOPTC20" # Give them nothing, these men are savages, not royalty
		ai_chance = { factor = 0 }
		IRO = {
			add_opinion = { who = ROOT modifier = opinion_angry }
		}
	}
}

# Bible Translated
province_event = {
	id = random_event.21
	title = "random_event.EVTNAME21"
	desc = "random_event.EVTDESC21"
	picture = BIG_BOOK_eventPicture
	
	trigger = {
		owner = {
			NOT = { has_country_flag = bible_translated }
			OR = {
				religion = catholic
				religion = protestant
				religion = reformed
			}
		}
		is_religion_enabled = protestant
		religion_group = christian
	}

	mean_time_to_happen = {
		months = 5000 # Random Province Event
		modifier = {
			factor = 0.75
			province_id = 59 # Wittenberg	
		}
	}
	
	immediate = {
		owner = {
			set_country_flag = bible_translated
		}
	}
	
	option = {
		name = "random_event.EVTOPTA21" # Heresy! Burn the priest and his books!
		owner = {
			add_reform_desire = -0.01
			PAP = {
				add_opinion = { who = ROOT modifier = opinion_grateful }
			}
			every_neighbor_country = {
				limit = {
					religion = catholic
				}
				add_opinion = { who = ROOT modifier = opinion_grateful }
			}
			every_neighbor_country = {
				limit = {
					OR = {
						religion = protestant
						religion = reformed
					}
				}
				add_opinion = { who = ROOT modifier = opinion_angry }
			}
		}
	}
	option = {
		name = "random_event.EVTOPTB21" # Great news! Spread these bibles far and wide
		if = {
			limit = {
				owner = {
					OR = {
						religion = catholic
						religion = protestant
					}
				}
			}
			change_religion = protestant
		}
		if = {
			limit = {
				owner = {
					religion = reformed
				}
			}
			change_religion = reformed
		}
		owner = {
			add_reform_desire = 0.03
			PAP = {
				add_opinion = { who = ROOT modifier = opinion_angry }
			}
			every_neighbor_country = {
				limit = {
					religion = catholic
				}
				add_opinion = { who = ROOT modifier = opinion_irritated }
			}
			every_neighbor_country = {
				limit = {
					OR = {
						religion = protestant
						religion = reformed
					}
				}
				add_opinion = { who = ROOT modifier = opinion_grateful }
			}
		}
	}
}

# Establish Penal Colony in COLONYNAME
province_event = {
	id = random_event.22
	title = "random_event.EVTNAME22"
	desc = "random_event.EVTDESC22"
	picture = COLONIZATION_eventPicture
	
	trigger = {
		owner = {
			NOT = { has_country_flag = has_penal_colony }
		}
		is_colony = yes
		NOT = { colonysize = 500 }
	}
	
	mean_time_to_happen = {
		months = 2000
		modifier = {
			factor = 0.75
			region = austrian_region
		}
	}
	
	immediate = {
		owner = {
			set_country_flag = has_penal_colony
		}
	}

	option = {
		name = "random_event.EVTOPTA22" # Sounds good, set it up
		add_province_modifier = {
			name = "penal_colony"
			duration = 9125
		}
	}
	option = {
		name = "random_event.EVTOPTB22" # We can't trust these people! Keep them in prison over here
		add_adm_power = -10
	}
}

# Influenza!
province_event = {
	id = random_event.23
	title = "random_event.EVTNAME23"
	desc = "random_event.EVTDESC23"
	picture = PLAGUE_eventPicture
	
	trigger = {
		owner = {
			NOT = { has_country_flag = had_influenza }
		}
		has_port = yes
	}
	
	mean_time_to_happen = {
		months = 2000
	}
	
	immediate = {
		owner = {
			set_country_flag = had_influenza
		}
	}

	option = {
		name = "random_event.EVTOPTA23" # Quarantine the port and let them die!
		add_province_modifier = {
			name = "quarantined_influenza"
			duration = 365
		}
	}
	option = {
		name = "random_event.EVTOPTB23" # This is not the first flu in our country, I don't care!
		owner = { add_adm_power = -5 }
		add_province_modifier = {
			name = "influenza"
			duration = 365
		}
		if = {
			limit = {
				any_neighbor_province = {
					owned_by = ROOT
					NOT = { has_province_modifier = quarantined_influenza }
					NOT = { has_province_modifier = influenza }
				}
			}
			random = {
				chance = 75
				random_neighbor_province = {
					limit = {
						owned_by = ROOT
						NOT = { has_province_modifier = quarantined_influenza }
						NOT = { has_province_modifier = influenza }
					}
					province_event = { id = random_event.24 days = 90 tooltip = "influenza_spreads" }
				}
			}
		}
	}
}

# Influenza Spreads
province_event = {
	id = random_event.24
	title = "random_event.EVTNAME24"
	desc = "random_event.EVTDESC24"
	picture = PLAGUE_eventPicture
	
	is_triggered_only = yes
	
	option = {
		name = "random_event.EVTOPTA24" # Quarantine the province!
		add_province_modifier = {
			name = "quarantined_influenza"
			duration = 365
		}
	}
	option = {
		name = "random_event.EVTOPTB24" # It will soon go away
		owner = { add_adm_power = -5 }
		add_province_modifier = {
			name = "influenza"
			duration = 365
		}
		if = {
			limit = {
				any_neighbor_province = {
					owned_by = ROOT
					NOT = { has_province_modifier = quarantined_influenza }
					NOT = { has_province_modifier = influenza }
				}
			}
			random = {
				chance = 75
				random_neighbor_province = {
					limit = {
						owned_by = ROOT
						NOT = { has_province_modifier = quarantined_influenza }
						NOT = { has_province_modifier = influenza }
					}
					province_event = { id = random_event.24 days = 90 tooltip = "influenza_spreads" }
				}
			}
		}
	}
}

# Iconoclastic Fury
country_event = {
	id = random_event.25
	title = "random_event.EVTNAME25"
	desc = "random_event.EVTDESC25"
	picture = RELIGIOUS_TURMOIL_eventPicture
	
	trigger = {
		is_year = 1500
		NOT = { is_year = 1600 }
		NOT = { has_country_flag = iconoclastic_fury }
		technology_group = western
		religion_group = christian
		is_religion_enabled = protestant
		capital_scope = {
			continent = europe
		}
		any_owned_province = {
			continent = europe
			religion = catholic
		}
		any_owned_province = {
			continent = europe
			OR = {
				religion = protestant
				religion = reformed
			}
		}
	}

	mean_time_to_happen = {
		months = 2000
		modifier = {
			factor = 0.9
			OR = {
				primary_culture = dutch
				culture_group = french
			}
		}
	}
	
	immediate = {
		set_country_flag = iconoclastic_fury
	}
	
	option = {
		name = "random_event.EVTOPTA25" # Send guards to stop these vandals!
		ai_chance = { factor = 30 }
		add_prestige = 10
		PAP = {
			add_opinion = { who = ROOT modifier = "stopped_iconoclastic_fury" }
		}
		add_mil_power = -50
		every_owned_province = {
			limit = {
				continent = europe
				OR = {
					religion = protestant
					religion = reformed
				}
			}
			add_revolt_risk = 10
		}
	}
	option = {
		name = "random_event.EVTOPTB25" # We can't do anything except weather the storm!
		ai_chance = { factor = 20 }
		add_prestige = -25
		add_country_modifier = {
			name = "iconoclastic_fury"
			duration = 3650
		}
	}
	option = {
		name = "random_event.EVTOPTC25" # Time to take the lead and break Papal stranglehold!
		ai_chance = {
			factor = 50
			modifier = {
				factor = 0
				owner = {
					religion = catholic
				}
			}
		}
		add_stability = -1
		PAP = {
			add_opinion = { who = ROOT modifier = "allowed_iconoclastic_fury" }
		}
		random_owned_province = {
			limit = {
				continent = europe
				religion = catholic
			}
			if = {
				limit = {
					owner = {
						OR = {
							religion = protestant
							religion = catholic
						}
					}
				}
				change_religion = protestant
			}
			if = {
				limit = {
					owner = {
						religion = reformed
					}
				}
				change_religion = reformed
			}
		}
	}
}
