# Carnal sins
country_event = {
	
	id = 9450
	
	trigger = {
		NOT = { 
			has_heir = yes
			regency = yes
			female = yes
			is_lesser_in_union = yes
		}
		religion = catholic
		government = monarchy
		DIP = 3
	}
	
	mean_time_to_happen = {
		months = 400
		
		modifier = {
			factor = 0.5
			DIP = 6
		}
	}
	
	title = "EVTNAME9450"
	desc = "EVTDESC9450"
	
	option = {
		name = "EVTOPTA9450"
		define_heir = {
			dynasty = THIS
			claim = 30
		}
		add_papal_influence = -0.05
	}
	option = {
		name = "EVTOPTB9450"
		add_papal_influence = 0.02
	}
}

# A beloved heir dies
country_event = {

	id = 9451
	title = "EVTNAME9451"
	desc = "EVTDESC9451"
	
	trigger = {
		has_heir = yes
		heir_claim = 90
		NOT = {
			is_lesser_in_union = yes
		}
		regency = no
		government = monarchy
	}
	
	mean_time_to_happen = {
		months = 800
	}
	
	option = {
		name = "EVTOPTA9451"
		kill_heir = THIS
		random_owned = {
			limit = {
				NOT = {
					has_building = temple
				}
			}
			add_building = temple
		}
	}
	
	option = {
		name = "EVTOPTB9451"
		kill_heir = THIS
		define_heir = {
			dynasty = THIS
			claim = 30
		}
	}
}

#Palace Coup
country_event = {
	
	id = 9452
	title = "EVTNAME9452"
	desc = "EVTDESC9452"
	
	trigger = {
		has_heir = yes
		heir_age = 15
		heir_claim = 90
		not = {
			is_lesser_in_union = yes
			stability = -2
		}
		regency = no
		government = monarchy
	}
	
	mean_time_to_happen = {
		months = 200
		modifier = {
			factor = 0.5
			war = yes
		}
	}
	
	option = {
		name = "EVTOPTA9452"
		kill_ruler = THIS
		add_country_modifier = {
			name = "illegitimate_ruler"
			duration = 1825
		}
	}
	
	option = {
		name = "EVTOPTB9452"
		kill_heir = THIS
	}
}

# The Weeping Song
country_event = {
	id = 9453
	title = "EVTNAME9453"
	desc = "EVTDESC9453"
	
	trigger = {
		has_heir = yes
		wartax = yes
		treasury = 40
		war_exhaustion = 4
		regency = no
		government = monarchy
	}
	
	mean_time_to_happen = {
		months = 25
	}
	
	option = {
		name = "EVTOPTA9453"
		treasury = -40
		war_exhaustion = -2
	}
	
	option = {
		name = "EVTOPTB9453"
		infamy = 1
		treasury = 40
		manpower = 5
		
	}
}

# Springtime
country_event = {
	id = 9454
	title = "EVTNAME9454"
	desc = "EVTDESC9454"
	
	trigger = {
		NOT = {
			has_heir = yes
			female = yes
			month = 6
			is_lesser_in_union = yes
			regency = yes
		}
	government = monarchy
	month = 3
	}
	
	mean_time_to_happen = {
		months = 400
	}
	
	option = {
		name = "EVTOPTA9454"
		define_heir = {
			dynasty = THIS
			claim = 30
		}
	}
	
	option = {
		name = "EVTOPTB9454"
		random_country = {
			limit = {
				religion = THIS
				government = monarchy
				NOT = {
					is_lesser_in_union = yes
				}
			}
			create_marriage = THIS
		}
	}
}

# Soare
country_event = {
	id = 9455
	title = "EVTNAME9455"
	desc = "EVTDESC9455"
	
	trigger = {
		cultural_tradition = 0.5
		has_heir = no
		is_lesser_in_union = yes
		government = monarchy
		regency = no
	}
	
	mean_time_to_happen = {
		months = 800
		modifier = {
			factor = 0.5
			cultural_tradition = 0.10
		}
	}
	
	
	option = {
		name = "EVTOPTA9455"
		define_heir = {
			dynasty = THIS
			claim = 30
		}
		cultural_tradition = -0.10
	}
	
	option = {
		name = "EVTOPTB9455"
		random_list = {
			10 = { create_advisor = theologian }
			10 = { create_advisor = artist }
			10 = { create_advisor = philosopher }
		}
		cultural_tradition = -0.05
	}
}

# Heir Falls ill
country_event = {
	id = 9456
	title = "EVTNAME9456"
	desc = "EVTDESC9456"
	
	trigger = {
		has_heir = yes
		government = monarchy
		is_lesser_in_union = no
	}
	
	mean_time_to_happen = {
		months = 800
	}
	option = {
		name = "EVTOPTA9456"
		treasury = -20
		random_list = {
			10 = { kill_heir = THIS}
			10 = { legitimacy = 0.05}
		}
	}
	
	option = {
		name = "EVTOPTB9456"
		random_list = {
			75 = { kill_heir = THIS}
			25 = { legitimacy = 0.3}
		}
		
	}
}

# Child in the Reeds.
country_event = {
	id = 9457
	title = "EVTNAME9457"
	desc = "EVTDESC9457"
	
	trigger = {
		NOT = {
			has_heir = yes
			is_lesser_in_union = yes
		}
		government = monarchy
		religion_group = christian
	}
	
	mean_time_to_happen = {
		months = 1500
		modifier = {
			factor = 0.7
			defender_of_faith = yes
		}
	}
	
	option = {
		name = "EVTOPTA9457"
		define_heir = {
			claim = 20
			dynasty = THIS
			ADM = 4
			DIP = 4
			MIL = 4
		}
		infamy = 3
		revolt_risk = 2
		prestige = -0.05
	}
	option = {
		name = "EVTOPTB9457"
		treasury = 5
	}

}

# Tournament
country_event = {
	id = 9458
	title = "EVTNAME9458"
	desc = "EVTDESC9458"
	
	trigger = {
		has_heir = yes
		heir_age = 15
		NOT = {
			year = 1450
			is_lesser_in_union = yes
		}
		NOT = {
			has_country_flag = last_jousting_tournament_held
		}
		army_tradition =  0.2
		cultural_tradition = 0.1
		technology_group = western
	}
	
	mean_time_to_happen = {
		months = 800
		modifier = {
			factor = 0.9
			army_tradition = 0.4
		}
		modifier = {
			factor = 0.9
			cultural_tradition = 0.2
		}
	}
	
	option = {
		name = "EVTOPTA9458"
		random_list = {
			50 = {treasury = 10}
			45 = { legitimacy = 0.2}
			5 = { kill_heir = THIS}
		}
	}
	
	option = {
		name = "EVTOPTB9458"
		random_list = {
			50 = {cultural_tradition = 0.02}
			30 = {cultural_tradition = 0.04}
			15 = {cultural_tradition = 0.06}
			5 = {cultural_tradition = -0.1}
		}
	}
	
	option = {
		name = "EVTOPTC9458"
		prestige = 0.05
	}
}


# Hunting accident
country_event = {
	id = 9459
	title = "EVTNAME9459"
	desc = "EVTDESC9459"
	
	trigger = {
		has_heir = yes
		heir_age = 15
		is_lesser_in_union = no
	}
	mean_time_to_happen = {
		months = 900
	}
	option = {
		name = "EVTOPTA9459"
		kill_heir = THIS
		stability = -1
	}
	option = {
		name = "EVTOPTB9459"
		kill_heir = THIS
		infamy = 1
		prestige = -0.05
	}
}


# Heir goes out at night
country_event = {
	id = 9460
	title = "EVTNAME9460"
	desc = "EVTDESC9460"
	
	trigger = {
		has_heir = yes
		heir_age = 15
		is_lesser_in_union = no
	}
	
	mean_time_to_happen = {
		months = 1000
		
	}
	option = {
		name = "EVTOPTA9460"
		prestige = -0.05
	}
	
	option = {
		name = "EVTOPTB9460"
		heir_claim = -20
	}
}

# Scheming Bureaucracy
country_event = {
	id = 9462
	title = "EVTNAME9462"
	desc = "EVTDESC9462"
	
	trigger = {
		has_country_modifier = expanded_bureaucracy
		government = monarchy
		officials = 5
	}
	
	mean_time_to_happen = {
		months = 2200
	}
	
	option = {
		name = "EVTOPTA9462"
		officials = -5
		stability = -1
		remove_country_modifier = expanded_bureaucracy
	}
	
	option = {
		name = "EVTOPTB9462"
		kill_ruler = THIS
		stability = -6
		government = bureaucratic_despotism
	}
}

#The Family
country_event = {
	id = 9463
	
	title = "EVTNAME9463"
	desc = "EVTDESC9463"
	
	trigger = {
		stability = 3
		treasury = 100
		any_known_country = {
			dynasty = THIS
			NOT = {
				stability = -2
				OR = {
					senior_union_with = THIS
					junior_union_with = THIS
				}
			}
		}
	}
	
	mean_time_to_happen = {
		months = 18
	}
	
	option = {
		name = "EVTOPTA9463"
		random_country = {
			limit = {
				dynasty = THIS
				NOT = {
					stability = -2
					AND = {
						senior_union_with = THIS
						junior_union_with = THIS
					}
				}
			}
			country_event = 9476
			relation = { who = THIS value = 40}
			
		}
		treasury = -100
		prestige = 0.1
	}
	option = {
		name = "EVTOPTB9463"
		random_country = {
			limit = { 
				dynasty = THIS
				NOT = {
					stability = -2
					AND = {
						senior_union_with = THIS
						junior_union_with = THIS
					}
				}
			}
			country_event = 9477
			relation = { who = THIS value = -40}
		}
	}
}

# Regent usurps throne
country_event = {
	id = 9468
	
	title = "EVTNAME9468"
	desc = "EVTDESC9468"
	
	trigger = {
		stability = 3
		NOT = {
			infamy = 3
			is_lesser_in_union = yes
		}
		government = monarchy
		regency = yes
		legitimacy = 1
		has_heir = yes
	}
	
	mean_time_to_happen = {
		months = 700
	}
	
	option = {
		name = "EVTOPTA9468"
		kill_heir = THIS
		define_ruler = {
			adm = 2
			dip = 2
			mil = 2
		}
		stability = -3
		legitimacy = -0.90
		aristocracy_plutocracy = 2
		centralization_decentralization = -1
	}
	option = {
		name = "EVTOPTB9468"
		stability = -1
	}
}

#Born under a star
country_event = {
	id = 9469
	
	title = "EVTNAME9469"
	desc = "EVTDESC9469"
	
	trigger = {
		government = monarchy
		technology_group = western
		is_lesser_in_union = no
		has_heir = no
	}
	
	mean_time_to_happen = {
		months = 2000
	}
	
	option = {
		name = "EVTOPTA9469"
		define_heir = {
			dynasty = THIS
			name = "Alexander"
			claim = 100
			mil = 5
		}
	}
	
	option = {
		name = "EVTOPTB9469"
		define_heir = {
			dynasty = THIS
			name = "Caesar"
			claim  = 100
			adm = 5
		}
	}
}

#Heir is of our Dynasty
country_event = {
	id = 9470
	
	title = "EVTNAME9470"
	desc = "EVTDESC9470"
	
	trigger = {
		government = monarchy
		regency = no
		is_lesser_in_union = no
		num_of_royal_marriages = 4
	}
	
	mean_time_to_happen = {
		months = 1500
		modifier = {
			factor = 0.9
			num_of_royal_marriages = 6
		}
	}
	
	option = {
		name = "EVTOPTA9470"
		random_country = {
			limit = {
				marriage_with = THIS
			}
			define_heir = {
				dynasty = THIS
			}
		}
	}
}

# The Family Opt 1
country_event = {
	id = 9476
	
	title = "EVTNAME9476"
	desc = "EVTDESC9476"
	
	is_triggered_only = yes
	
	option = {
		name = "EVTOPB976"
		treasury = 100
		random_list = {
			10 = {
				stability = 1
			}
			10 = {
				stability = 2
			}
			
			10 = { 
				stability = 3
			}
		}
	}
}
		
# The Family Opt 2
country_event = {
	id = 9477
	
	title = "EVTNAME9477"
	desc = "EVTDESC9477"
	
	is_triggered_only = yes
	
	option = {
		name = "EVTOPTA9476"
		random_list = {
			10 = {
				stability = 1
			}
			10 = {
				kill_ruler = yes
			}
			10 = {
				stability = -2
			}
		}
	}
}

#Fear and Loathing 1/3
province_event = {
	id = 9481
	
	title = "EVTNAME9481"
	desc = "EVTDESC9481"
	
	trigger = {
		is_capital = yes
		
		owner = {
			has_heir = yes
			religion_group = christian
			NOT = {
				is_lesser_in_union = yes
				has_country_flag = murdering_bastard
				has_country_flag = contained_insanity
				heir_age = 3	
			}
		}
	}
	
	mean_time_to_happen = {
		months = 2000
	}
	
	option = {
		name = "EVTOPTA9481"
		owner = {
			kill_heir = yes
			set_country_flag = murdering_bastard
		}
	}
	
	option = {
		name = "EVTOPTB9481"
		owner = {
			add_papal_influence = 0.05
			set_country_flag = contained_insanity
		}
	}
}

#Fear and Loathing 2/3
country_event = {
	id = 9482
	
	title = "EVTNAME9482"
	desc = "EVTDESC9482"
	
	trigger = {
		has_country_flag = murdering_bastard
		has_advisor = sheriff
		NOT = {
			is_lesser_in_union = yes
		}
	}
	
	mean_time_to_happen = {
		months = 12
	}
	
	option = {
		name = "EVTOPTA9482"
		clr_country_flag = murdering_bastard
		kill_ruler = yes
	}
	
	option = {
		name = "EVTOPTB9482"
		remove_advisor = sheriff
		set_country_flag = contained_insanity
		prestige = -0.05
		treasury = -100
		infamy = 4
	}
}

#Fear and Loathing 3/3
country_event = {
	id = 9483
	
	title = "EVTNAME9483"
	desc = "EVTDESC9483"

	trigger = {
		has_country_flag = contained_insanity
		NOT = {
			is_lesser_in_union = yes
		}
	}
	
	mean_time_to_happen = {
		months = 300
	}
	
	option = {
		name = "EVTOPTA9483"
		stability = -3
		treasury = -100
		prestige = -0.20
		infamy = 4
		cultural_tradition = -0.15
		clr_country_flag = contained_insanity
	}
	
	option = {
		name = "EVTOPTB9483"
		kill_ruler = yes
		clr_country_flag = contained_insanity
		add_country_modifier = {
			name = "relief_from"
			duration = 3650
		}
	}
}

# Fear and Loathing removal on ruler death, ontriggered
country_event = {
	id = 9492
	title = "EVTNAME9492"
	desc = "EVTDESC9492"
	
	trigger = {
		OR = {
			has_country_flag = contained_insanity
			has_country_flag = murdering_bastard
		}
	}
	
	is_triggered_only = yes
	
	option = {
		name = "EVTOPTA9492"
		add_country_modifier = {
			name = "relief_from"
			duration = 3650
		}
	}
}
	

#Wedding bells
country_event = {
	id = 9484
	
	title = "EVTNAME9484"
	desc = "EVTDESC9484"
	
	trigger = {
		prestige = 0.3
		government = monarchy
		is_lesser_in_union = no
		war = no
		NOT = {
			has_heir = yes
			female = yes
			num_of_royal_marriages = 1
			infamy = 0.05
		}
	}
	
	mean_time_to_happen = {
		months = 500
	}
	
	option = {
		name = "EVTOPTA9484"   #Time to settle down
		random_country = {
			limit = {
				religion = THIS
				government = monarchy
				NOT = {
					is_lesser_in_union = yes
				}
			}
			create_marriage = THIS
		}
	}
	
	option = {
		name = "EVTOPTB9484"  #No
		prestige = 0.05
		add_country_modifier = {
			name = "sought_after_bachelor"
			duration = -1
		}
	}
}

#A modest proposal
country_event = {
	id = 9485
	title = "EVTNAME9485"
	desc = "EVTDESC9485"
	
	trigger = {
		any_known_country = {
			has_country_modifier = sought_after_bachelor
			is_lesser_in_union = no
			government = monarchy
		}
		government = monarchy
		is_lesser_in_union = no
	}
	
	mean_time_to_happen = {
		months = 400
	}
	
	option = {
		name = "EVTOPTA9485"
		random_country = {
			limit = {
				has_country_modifier = sought_after_bachelor
			}
			random_list = {
				20 = { country_event = 9486}
				80 = { country_event = 9487}
			}
		}
		treasury = -15
		diplomats = -1
	}
	
	option = {
		name = "EVTOPTB9485"
		treasury = 10
		officials = 1
	}
}

# Wedding bells
country_event = {
	id = 9486
	title = "EVTNAME9486"
	desc = "EVTDESC9486"
	
	is_triggered_only = yes
	
	option = {
		name = "EVTOPTA9486"
		create_marriage = FROM
		relation = { who = FROM value = 50 }
		remove_country_modifier = sought_after_bachelor
	}
	
	option = {
		name = "EVTOPTB9486"
		relation = { who = THIS value = -75 }
		random_list = {
			10 = {kill_ruler = yes}
			10 = {prestige = -0.05}
		}
	}
}

# Wedding bells
country_event = {
	id = 9487
	title = "EVTNAME9487"
	desc = "EVTDESC9487"
	
	is_triggered_only = yes
	
	option = {
		name = "EVTOPTA9487"
		create_marriage = FROM
		relation = { who = FROM value = 100 }
		remove_country_modifier = sought_after_bachelor
	}
	
	option = {
		name = "EVTOPTB9487"
		relation = { who = THIS value = -10 }
		random_list = {
			10 = {kill_ruler = yes}
			10 = {prestige = -0.05}
		}
	}
}

#Last war was a failure.
country_event = {
	id = 9488
	title = "EVTNAME9488"
	desc = "EVTDESC9488"
	
	trigger = {
		government = monarchy
		has_heir = yes
		heir_age = 20
		war = no
		is_lesser_in_union = no
		war_exhaustion = 12
	}
	
	mean_time_to_happen = {
		months  = 300
	}
	
	option = {
		name = "EVTOPTA9488"
		kill_ruler = yes
		war_exhaustion = -4
		stability = 1
	}
	
	option = {
		name = "EVTOPTB9488"
		kill_heir = yes
		war_exhaustion = -2
	}
}

#The Moon
province_event = {
	id = 9489
	title = "EVTNAME9489"
	desc = "EVTDESC9489"
	
	trigger = {
		has_province_modifier = glorious_monument
		owner = {
			war_exhaustion = 4
			ADM = 6
		}
	}
	
	mean_time_to_happen = {
		months = 300
	}
	
	option = {
		name = "EVTOPTA9489"
		owner = {
			prestige = 0.05
		}
	}
	
	option = {
		name = "EVTOPTB9489"
		owner = {
			infamy = -0.05
		}
	}
}

#Seeing the real you
country_event = {
	id = 9490
	title = "EVTNAME9490"
	desc = "EVTDESC9490"
	
	trigger = {
		is_lesser_in_union = no
		government = monarchy
		has_heir = no
		female = no
		num_of_royal_marriages = 1
		NOT = {
			has_country_modifier = a_woman_scorned
		}
	}
	
	mean_time_to_happen = {
		months = 1400
	}
	
	option = {
		name = "EVTOPTA9490"
		define_heir = {
			dynasty = THIS
		}
	}
	
	option = {
		name = "EVTOPTB9490"
		years_of_income = 0.2
		add_country_modifier = {
			name = "a_woman_scorned"
			duration = 1825
	}
}
