#Integrity of Holy Roman Empire events - range 5000000-5999999

#-----------------------------------------------------------------------------------------------

#Baden
event = {
	id = 5000000
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = BAD }
		NOT = { core = { province = 373 data = -1 } } #Baden
	}
	random = yes
	province = 349 #Baden
	name = "AI_EVENT"
	desc = "Baden"

	action_a = {
		name = "OK"
		command = { type = independence which = BAD }
	}
}

#Bavaria
event = {
	id = 5000001
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = BAY }
		NOT = { core = { province = 349 data = -1 } } #Bayern
		NOT = {
			AND = {
				event = 255003 #PFA: The Palatinate inherits Bavaria
				NOT = {
					event = 125021 #BAY: The Palatinate is united with Bavaria
					event = 125033 #BAY: The Palatinate is united with Bavaria (Palatinate inherited Burgundy)
				}
			}
			event = 255008 #PFA: The Wittelsbach inheritance of Bavaria
		}
	}
	random = yes
	province = 349 #Bayern
	name = "AI_EVENT"
	desc = "Bavaria"

	action_a = {
		name = "OK"
		command = { type = independence which = BAY }
	}
}
event = {
	id = 5000002
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		exists = BAY
		NOT = { core = { province = 349 data = -1 } } #Bayern
		NOT = { owned = { province = 349 data = BAY } } #Bayern
	}
	random = yes
	province = 349 #Bayern
	name = "AI_EVENT"
	desc = "Bavaria"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = BAY value = 349 } #Bayern
		command = { type = relation which = BAY value = 10 }
	}
}
event = {
	id = 5000003
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = BAY }
		NOT = { core = { province = 349 data = -1 } } #Bayern
		AND = {
			exists = PFA
			OR = {
				AND = {
					event = 255003 #PFA: The Palatinate inherits Bavaria
					NOT = {
						event = 125021 #BAY: The Palatinate is united with Bavaria
						event = 125033 #BAY: The Palatinate is united with Bavaria (Palatinate inherited Burgundy)
					}
				}
				event = 255008 #PFA: The Wittelsbach inheritance of Bavaria
			}
			NOT = { owned = { province = 349 data = PFA } } #Bayern
		}
	}
	random = yes
	province = 349 #Bayern
	name = "AI_EVENT"
	desc = "Bavaria"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = PFA value = 349 } #Bayern
		command = { type = relation which = PFA value = 10 }
	}
}
event = {
	id = 5000004
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = BAY }
		NOT = { owned = { province = 349 data = -1 } } #Bayern
		NOT = { core = { province = 348 data = -1 } } #Ansbach
		year = 1430 #LUX and HAB before
		NOT = {
			AND = {
				event = 255003 #PFA: The Palatinate inherits Bavaria
				NOT = {
					event = 125021 #BAY: The Palatinate is united with Bavaria
					event = 125033 #BAY: The Palatinate is united with Bavaria (Palatinate inherited Burgundy)
				}
			}
			event = 255008 #PFA: The Wittelsbach inheritance of Bavaria
			event = 125035 #BAY: Straubing is ceded to Austria
			event = 255009 #PFA: Straubing is ceded to Austria
		}
	}
	random = yes
	province = 348 #Ansbach
	name = "AI_EVENT"
	desc = "Bavaria"

	action_a = {
		name = "OK"
		command = { type = independence which = BAY }
	}
}
event = {
	id = 5000005
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		exists = BAY
		NOT = { core = { province = 348 data = -1 } } #Ansbach
		year = 1430 #LUX and HAB before
		NOT = {
			AND = {
				exists = HAB
				OR = {
					event = 125035 #BAY: Straubing is ceded to Austria
					event = 255009 #PFA: Straubing is ceded to Austria
				}
			}
			NOT = { owned = { province = 348 data = BAY } } #Ansbach
		}
	}
	random = yes
	province = 348 #Ansbach
	name = "AI_EVENT"
	desc = "Bavaria"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = BAY value = 348 } #Ansbach
		command = { type = relation which = BAY value = 10 }
	}
}
event = {
	id = 5000006
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = BAY }
		NOT = { core = { province = 348 data = -1 } } #Ansbach
		year = 1430 #LUX and HAB before
		AND = {
			exists = PFA
			OR = {
				AND = {
					event = 255003 #PFA: The Palatinate inherits Bavaria
					NOT = {
						event = 125021 #BAY: The Palatinate is united with Bavaria
						event = 125033 #BAY: The Palatinate is united with Bavaria (Palatinate inherited Burgundy)
					}
				}
				event = 255008 #PFA: The Wittelsbach inheritance of Bavaria
			}
			NOT = {
				AND = {
					exists = HAB
					OR = {
						event = 125035 #BAY: Straubing is ceded to Austria
						event = 255009 #PFA: Straubing is ceded to Austria
					}
				}
			}
			NOT = { owned = { province = 348 data = PFA } } #Ansbach
		}
	}
	random = yes
	province = 348 #Ansbach
	name = "AI_EVENT"
	desc = "Bavaria"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = PFA value = 348 } #Ansbach
		command = { type = relation which = PFA value = 10 }
	}
}
event = {
	id = 5000007
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { core = { province = 348 data = -1 } } #Ansbach
		year = 1430 #LUX and HAB before
		AND = {
			exists = HAB
			OR = {
				event = 125035 #BAY: Straubing is ceded to Austria
				event = 255009 #PFA: Straubing is ceded to Austria
			}
			NOT = { owned = { province = 348 data = HAB } } #Ansbach
		}
	}
	random = yes
	province = 348 #Ansbach
	name = "AI_EVENT"
	desc = "Bavaria"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = HAB value = 348 } #Ansbach
		command = { type = relation which = HAB value = 10 }
	}
}

#Berg
#simplified version
event = {
	id = 5000008
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = BRG }
		NOT = { core = { province = 343 data = -1 } } #Kleves
		NOT = { year = 1609 }
	}
	random = yes
	province = 334 #Kleves
	name = "AI_EVENT"
	desc = "Berg"

	action_a = {
		name = "OK"
		command = { type = independence which = BRG }
	}
}

#Brandenburg - Prussia
event = {
	id = 5000009
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = BRA }
		NOT = { core = { province = 312 data = -1 } } #Brandenburg
		NOT = {
			AND = {
				exists = PRU
				event = 263014 #PRU: The Kingdom of Prussia
			}
		}
	}
	random = yes
	province = 312 #Brandenburg
	name = "AI_EVENT"
	desc = "Brandenburg"

	action_a = {
		name = "OK"
		command = { type = independence which = BRA }
	}
}
event = {
	id = 5000011
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = BRA }
		NOT = { core = { province = 312 data = -1 } } #Brandenburg
		AND = {
			exists = PRU
			event = 263014 #PRU: The Kingdom of Prussia
			NOT = { owned = { province = 312 data = PRU } } #Brandenburg
		}
	}
	random = yes
	province = 312 #Brandenburg
	name = "AI_EVENT"
	desc = "Brandenburg"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = PRU value = 312 } #Brandenburg
		command = { type = relation which = PRU value = 10 }
	}
}
event = {
	id = 5000012
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = BRA }
		NOT = { core = { province = 313 data = -1 } } #Küstrin
		NOT = { owned = { province = 312 data = -1 } } #Brandenburg
		NOT = {
			AND = {
				exists = PRU
				event = 263014 #PRU: The Kingdom of Prussia
			}
		}
	}
	random = yes
	province = 313 #Küstrin
	name = "AI_EVENT"
	desc = "Brandenburg"

	action_a = {
		name = "OK"
		command = { type = independence which = BRA }
	}
}
event = {
	id = 5000014
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		exists = BRA
		NOT = { core = { province = 313 data = -1 } } #Küstrin
		NOT = { owned = { province = 313 data = BRA } } #Küstrin
	}
	random = yes
	province = 313 #Küstrin
	name = "AI_EVENT"
	desc = "Brandenburg"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = BRA value = 313 } #Küstrin
		command = { type = relation which = BRA value = 10 }
	}
}
event = {
	id = 5000015
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = BRA }
		NOT = { core = { province = 313 data = -1 } } #Küstrin
		AND = {
			exists = PRU
			event = 263014 #PRU: The Kingdom of Prussia
			NOT = { owned = { province = 312 data = PRU } } #Brandenburg
		}
	}
	random = yes
	province = 313 #Küstrin
	name = "AI_EVENT"
	desc = "Brandenburg"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = PRU value = 313 } #Küstrin
		command = { type = relation which = PRU value = 10 }
	}
}
event = {
	id = 5000016
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		exists = BRA
		NOT = { core = { province = 311 data = -1 } } #Magdeburg
		NOT = { owned = { province = 311 data = BRA } } #Magdeburg
	}
	random = yes
	province = 311 #Magdeburg
	name = "AI_EVENT"
	desc = "Brandenburg"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = BRA value = 311 } #Magdeburg
		command = { type = relation which = BRA value = 10 }
	}
}
event = {
	id = 5000017
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = BRA }
		NOT = { core = { province = 311 data = -1 } } #Magdeburg
		AND = {
			exists = PRU
			event = 263014 #PRU: The Kingdom of Prussia
			NOT = { owned = { province = 311 data = PRU } } #Magdeburg
		}
	}
	random = yes
	province = 311 #Magdeburg
	name = "AI_EVENT"
	desc = "Brandenburg"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = PRU value = 311 } #Magdeburg
		command = { type = relation which = PRU value = 10 }
	}
}

#Bremen
event = {
	id = 5000018
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = BRE }
		NOT = { core = { province = 336 data = -1 } } #Bremen
	}
	random = yes
	province = 336 #Bremen
	name = "AI_EVENT"
	desc = "Bremen"

	action_a = {
		name = "OK"
		command = { type = independence which = BRE }
	}
}

#Cleves
#simplified version
event = {
	id = 5000019
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = KLE }
		NOT = { core = { province = 334 data = -1 } } #Münster
		NOT = {
			event = 235009 #BRG: Union with Kleve-Mark
			year = 1609
		}
	}
	random = yes
	province = 334 #Münster
	name = "AI_EVENT"
	desc = "Cleves"

	action_a = {
		name = "OK"
		command = { type = independence which = KLE }
	}
}
event = {
	id = 5000020
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = KLE }
		NOT = { core = { province = 334 data = -1 } } #Münster
		AND = {
			exists = BRG
			event = 235009 #BRG: Union with Kleve-Mark
			NOT = { owned = { province = 334 data = BRG } } #Münster
			NOT = { year = 1609 }
		}
	}
	random = yes
	province = 334 #Münster
	name = "AI_EVENT"
	desc = "Cleves"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = BRG value = 334 } #Münster
		command = { type = relation which = BRG value = 10 }
	}
}

#Cologne
event = {
	id = 5000021
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = KOL }
		NOT = { core = { province = 344 data = -1 } } #Köln
	}
	random = yes
	province = 344 #Köln
	name = "AI_EVENT"
	desc = "Cologne"

	action_a = {
		name = "OK"
		command = { type = independence which = KOL }
	}
}

#Hanover
event = {
	id = 5000022
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = HAN }
		NOT = { core = { province = 310 data = -1 } } #Hannover
	}
	random = yes
	province = 310 #Hannover
	name = "AI_EVENT"
	desc = "Hanover"

	action_a = {
		name = "OK"
		command = { type = independence which = HAN }
	}
}

#Hesse
event = {
	id = 5000023
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = HES }
		NOT = { core = { province = 333 data = -1 } } #Hessen
	}
	random = yes
	province = 333 #Hessen
	name = "AI_EVENT"
	desc = "Hesse"

	action_a = {
		name = "OK"
		command = { type = independence which = HES }
	}
}

#Holstein
event = {
	id = 5000024
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = SHL }
		NOT = { core = { province = 306 data = -1 } } #Holstein
		NOT = {
			AND = {
				event = 159034 #DAN: Denmark inherits Holstein
				NOT = { event = 159011 } #DAN: The fate of Holstein
			}
			event = 247002 #OLD: Oldenburg inherits Holstein
		}
	}
	random = yes
	province = 306 #Holstein
	name = "AI_EVENT"
	desc = "Holstein"

	action_a = {
		name = "OK"
		command = { type = independence which = SHL }
	}
}
event = {
	id = 5000010
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = SHL }
		NOT = { core = { province = 306 data = -1 } } #Holstein
		AND = {
			exists = OLD
			event = 247002 #OLD: Oldenburg inherits Holstein
			NOT = { owned = { province = 306 data = OLD } } #Holstein
		}
	}
	random = yes
	province = 306 #Holstein
	name = "AI_EVENT"
	desc = "Holstein"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = OLD value = 306 } #Holstein
		command = { type = relation which = OLD value = 10 }
	}
}

#Lorraine
event = {
	id = 5000026
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = LOR }
		NOT = { core = { province = 375 data = -1 } } #Lorraine
		NOT = {
			event = 3736 #FRA: French Inheritance of Lothringen
			year = 1766
		}
	}
	random = yes
	province = 375 #Lorraine
	name = "AI_EVENT"
	desc = "Lorraine"

	action_a = {
		name = "OK"
		command = { type = independence which = LOR }
	}
}

#Luxemburg
event = {
	id = 5000028
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = LUX }
		NOT = { core = { province = 377 data = -1 } } #Luxembourg
		NOT = {
			event = 137306 #BUR: Annexation of Luxemburg
			year = 1451 #Burgundian monarchs
		}
	}
	random = yes
	province = 377 #Luxembourg
	name = "AI_EVENT"
	desc = "Luxemburg"

	action_a = {
		name = "OK"
		command = { type = independence which = LUX }
	}
}
event = {
	id = 5000029
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = LUX }
		NOT = { core = { province = 377 data = -1 } } #Luxembourg
		AND = {
			exists = BUR
			event = 137306 #BUR: Annexation of Luxemburg
			NOT = { owned = { province = 377 data = BUR } } #Luxembourg
		}
	}
	random = yes
	province = 377 #Luxembourg
	name = "AI_EVENT"
	desc = "Luxemburg"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = BUR value = 377 } #Luxembourg
		command = { type = relation which = BUR value = 10 }
	}
}

#Mainz
event = {
	id = 5000030
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = MAI }
		NOT = { core = { province = 346 data = -1 } } #Mainz
	}
	random = yes
	province = 346 #Mainz
	name = "AI_EVENT"
	desc = "Mainz"

	action_a = {
		name = "OK"
		command = { type = independence which = MAI }
	}
}

#Mecklenburg
event = {
	id = 5000031
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = MEC }
		NOT = { core = { province = 305 data = -1 } } #Mecklenburg
	}
	random = yes
	province = 305 #Mecklenburg
	name = "AI_EVENT"
	desc = "Mecklenburg"

	action_a = {
		name = "OK"
		command = { type = independence which = MEC }
	}
}

#Oldenburg
event = {
	id = 5000032
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = OLD }
		NOT = { core = { province = 335 data = -1 } } #Oldenburg
		NOT = {
			event = 159033 #DAN: Oldenburg is incorporated into Denmark
			event = 279010 #SHL: Holstein inherits Oldenburg
		}
	}
	random = yes
	province = 335 #Oldenburg
	name = "AI_EVENT"
	desc = "Oldenburg"

	action_a = {
		name = "OK"
		command = { type = independence which = OLD }
	}
}
event = {
	id = 5000013
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = OLD }
		NOT = { core = { province = 335 data = -1 } } #Oldenburg
		AND = {
			exists = SHL
			event = 279010 #SHL: Holstein inherits Oldenburg
			NOT = { owned = { province = 335 data = SHL } } #Oldenburg
		}
	}
	random = yes
	province = 335 #Oldenburg
	name = "AI_EVENT"
	desc = "Oldenburg"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = SHL value = 335 } #Oldenburg
		command = { type = relation which = SHL value = 10 }
	}
}

#Palatinate
event = {
	id = 5000033
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = PFA }
		NOT = { core = { province = 345 data = -1 } } #Pfalz
		NOT = {
			event = 125021 #BAY: The Palatinate is united with Bavaria
			event = 125033 #BAY: The Palatinate is united with Bavaria
		}
	}
	random = yes
	province = 345 #Pfalz
	name = "AI_EVENT"
	desc = "Palatinate"

	action_a = {
		name = "OK"
		command = { type = independence which = PFA }
	}
}
event = {
	id = 5000034
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		exists = PFA
		NOT = { core = { province = 345 data = -1 } } #Pfalz
	}
	random = yes
	province = 345 #Pfalz
	name = "AI_EVENT"
	desc = "Palatinate"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = PFA value = 345 } #Pfalz
		command = { type = relation which = PFA value = 10 }
	}
}
event = {
	id = 5000035
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = PFA }
		NOT = { core = { province = 345 data = -1 } } #Pfalz
		AND = {
			exists = BAY
			OR = {
				event = 125021 #BAY: The Palatinate is united with Bavaria
				event = 125033 #BAY: The Palatinate is united with Bavaria
			}
			NOT = { owned = { province = 345 data = BAY } } #Pfalz
		}
	}
	random = yes
	province = 345 #Pfalz
	name = "AI_EVENT"
	desc = "Palatinate"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = BAY value = 345 } #Pfalz
		command = { type = relation which = BAY value = 10 }
	}
}
event = {
	id = 5000036
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = PFA }
		NOT = { owned = { province = 345 data = -1 } } #Pfalz
		NOT = { core = { province = 347 data = -1 } } #Würzburg
		NOT = {
			event = 125021 #BAY: The Palatinate is united with Bavaria
			event = 125033 #BAY: The Palatinate is united with Bavaria
		}
	}
	random = yes
	province = 347 #Würzburg
	name = "AI_EVENT"
	desc = "Palatinate"

	action_a = {
		name = "OK"
		command = { type = independence which = PFA }
	}
}
event = {
	id = 5000037
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		exists = PFA
		NOT = { core = { province = 347 data = -1 } } #Würzburg
	}
	random = yes
	province = 347 #Würzburg
	name = "AI_EVENT"
	desc = "Palatinate"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = PFA value = 347 } #Würzburg
		command = { type = relation which = PFA value = 10 }
	}
}
event = {
	id = 5000038
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = PFA }
		NOT = { core = { province = 347 data = -1 } } #Würzburg
		AND = {
			exists = BAY
			OR = {
				event = 125021 #BAY: The Palatinate is united with Bavaria
				event = 125033 #BAY: The Palatinate is united with Bavaria
			}
			NOT = { owned = { province = 347 data = BAY } } #Würzburg
		}
	}
	random = yes
	province = 347 #Würzburg
	name = "AI_EVENT"
	desc = "Palatinate"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = BAY value = 347 } #Würzburg
		command = { type = relation which = BAY value = 10 }
	}
}

#Pomerania - Stettin
event = {
	id = 5000039
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = POM }
		NOT = { core = { province = 302 data = -1 } } #Hinterpommern
		NOT = {
			event = 291030 #SWE: The Acquisition of Pomerania
			event = 3896 #BRA: The Pommern Inheritance
			event = 132008 #BRA: The Pomeranian Inheritance
			event = 259016 #POM: The investiture of Brandenburg
			year = 1637
		}
	}
	random = yes
	province = 302 #Hinterpommern
	name = "AI_EVENT"
	desc = "Pomerania"

	action_a = {
		name = "OK"
		command = { type = independence which = POM }
	}
}
event = {
	id = 5000040
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = POM }
		NOT = { core = { province = 302 data = -1 } } #Hinterpommern
		AND = {
			exists = STT
			NOT = { owned = { province = 302 data = STT } } #Hinterpommern
		}
	}
	random = yes
	province = 302 #Hinterpommern
	name = "AI_EVENT"
	desc = "Pomerania"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = STT value = 302 } #Hinterpommern
		command = { type = relation which = STT value = 10 }
	}
}
event = {
	id = 5000041
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = POM }
		NOT = { core = { province = 302 data = -1 } } #Hinterpommern
		AND = {
			NOT = { exists = STT }
			exists = BRA
			OR = {
				event = 3896 #BRA: The Pommern Inheritance
				event = 132008 #BRA: The Pomeranian Inheritance
				event = 259016 #POM: The investiture of Brandenburg
			}
			NOT = { owned = { province = 302 data = BRA } } #Hinterpommern
		}
	}
	random = yes
	province = 302 #Hinterpommern
	name = "AI_EVENT"
	desc = "Pomerania"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = BRA value = 302 } #Hinterpommern
		command = { type = relation which = BRA value = 10 }
	}
}
event = {
	id = 5000042
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = POM }
		NOT = { core = { province = 302 data = -1 } } #Hinterpommern
		AND = {
			NOT = { exists = STT }
			NOT = { exists = BRA }
			AND = {
				exists = PRU
				event = 263014 #PRU: The Kingdom of Prussia
			}
			OR = {
				event = 3896 #BRA: The Pommern Inheritance
				event = 132008 #BRA: The Pomeranian Inheritance
				event = 259016 #POM: The investiture of Brandenburg
			}
			NOT = { owned = { province = 302 data = PRU } } #Hinterpommern
		}
	}
	random = yes
	province = 302 #Hinterpommern
	name = "AI_EVENT"
	desc = "Pomerania"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = PRU value = 302 } #Hinterpommern
		command = { type = relation which = PRU value = 10 }
	}
}
event = {
	id = 5000043
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = STT }
		NOT = { core = { province = 304 data = -1 } } #Vorpommern
		NOT = {
			event = 259000 #POM: Inheritance of Pomerania-Stettin
			AND = {
				event = 259001 #POM: Inheritance of Pomerania-Stettin
				NOT = {
					event = 132018 #BRA: Inheritance of Stettin
				}
			}
			event = 291029 #SWE: The Acquisition of Vorpommern
			event = 291030 #SWE: The Acquisition of Pomerania
			event = 3896 #BRA: The Pommern Inheritance
			event = 132008 #BRA: The Pomeranian Inheritance
			event = 259016 #POM: The investiture of Brandenburg
			year = 1570
		}
	}
	random = yes
	province = 304 #Vorpommern
	name = "AI_EVENT"
	desc = "Pomerania"

	action_a = {
		name = "OK"
		command = { type = independence which = STT }
	}
}
event = {
	id = 5000044
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = STT }
		NOT = { core = { province = 304 data = -1 } } #Vorpommern
		AND = {
			exists = POM
			OR = {
				event = 259000 #POM: Inheritance of Pomerania-Stettin
				AND = {
					event = 259001 #POM: Inheritance of Pomerania-Stettin
					NOT = {
						event = 132018 #BRA: Inheritance of Stettin
					}
				}
			}
			NOT = { owned = { province = 304 data = POM } } #Vorpommern
		}
	}
	random = yes
	province = 304 #Vorpommern
	name = "AI_EVENT"
	desc = "Pomerania"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = POM value = 304 } #Vorpommern
		command = { type = relation which = POM value = 10 }
	}
}
event = {
	id = 5000045
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = STT }
		NOT = { core = { province = 304 data = -1 } } #Vorpommern
		AND = {
			NOT = { exists = POM }
			AND = {
				exists = BRA
				OR = {
					event = 3896 #BRA: The Pommern Inheritance
					event = 132008 #BRA: The Pomeranian Inheritance
					event = 259016 #POM: The investiture of Brandenburg
				}
				NOT = { owned = { province = 304 data = BRA } } #Vorpommern
			}
		}
	}
	random = yes
	province = 304 #Vorpommern
	name = "AI_EVENT"
	desc = "Pomerania"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = BRA value = 304 } #Vorpommern
		command = { type = relation which = BRA value = 10 }
	}
}
event = {
	id = 5000046
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = POM }
		NOT = { core = { province = 304 data = -1 } } #Vorpommern
		AND = {
			NOT = { exists = POM }
			AND = {
				NOT = { exists = BRA }
				AND = {
					exists = PRU
					event = 263014 #PRU: The Kingdom of Prussia
				}
				OR = {
					event = 3896 #BRA: The Pommern Inheritance
					event = 132008 #BRA: The Pomeranian Inheritance
					event = 259016 #POM: The investiture of Brandenburg
				}
				NOT = { owned = { province = 304 data = PRU } } #Vorpommern
			}
		}
	}
	random = yes
	province = 304 #Vorpommern
	name = "AI_EVENT"
	desc = "Pomerania"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = PRU value = 304 } #Vorpommern
		command = { type = relation which = PRU value = 10 }
	}
}

#Saxony - Meissen
#simplified version
event = {
	id = 5000048
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = {
			exists = SAC
			exists = MEI
		}
		NOT = { core = { province = 332 data = -1 } } #Anhalt
	}
	random = yes
	province = 332 #Anhalt
	name = "AI_EVENT"
	desc = "Saxony"

	action_a = {
		name = "OK"
		command = { type = independence which = SAC }
	}
}
event = {
	id = 5000049
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		exists = SAC
		NOT = { core = { province = 332 data = -1 } } #Anhalt
		NOT = { owned = { province = 332 data = SAC } } #Anhalt
	}
	random = yes
	province = 332 #Anhalt
	name = "AI_EVENT"
	desc = "Saxony"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = SAC value = 332 } #Anhalt
		command = { type = relation which = SAC value = 10 }
	}
}
event = {
	id = 5000050
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = SAC }
		NOT = { core = { province = 332 data = -1 } } #Anhalt
		AND = {
			exists = MEI
			NOT = { year = 1600 }
			NOT = { owned = { province = 332 data = MEI } } #Anhalt
		}
	}
	random = yes
	province = 332 #Anhalt
	name = "AI_EVENT"
	desc = "Saxony"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = MEI value = 332 } #Anhalt
		command = { type = relation which = MEI value = 10 }
	}
}
event = {
	id = 5000051
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		exists = SAC
		NOT = { core = { province = 331 data = -1 } } #Sachsen
		NOT = { owned = { province = 331 data = SAC } } #Sachsen
	}
	random = yes
	province = 331 #Sachsen
	name = "AI_EVENT"
	desc = "Saxony"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = SAC value = 331 } #Sachsen
		command = { type = relation which = SAC value = 10 }
	}
}
event = {
	id = 5000052
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = SAC }
		NOT = { core = { province = 331 data = -1 } } #Sachsen
		AND = {
			exists = MEI
			NOT = { year = 1600 }
			NOT = { owned = { province = 331 data = MEI } } #Sachsen
		}
	}
	random = yes
	province = 331 #Sachsen
	name = "AI_EVENT"
	desc = "Saxony"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = MEI value = 331 } #Sachsen
		command = { type = relation which = MEI value = 10 }
	}
}

#Strassburg
event = {
	id = 5000053
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = STR }
		NOT = { core = { province = 374 data = -1 } } #Alsace
	}
	random = yes
	province = 374 #Alsace
	name = "AI_EVENT"
	desc = "Strassburg"

	action_a = {
		name = "OK"
		command = { type = independence which = STR }
	}
}

#Wirtemberg
event = {
	id = 5000054
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = WUR }
		NOT = { core = { province = 372 data = -1 } } #Württemberg
		NOT = {
			AND = {
				exists = HAB
				core = { province = 372 data = HAB } #covers HAB_179004 and HAB_179006
				NOT = { owned = { province = 372 data = HAB } } #Württemberg
			}
		}
	}
	random = yes
	province = 372 #Württemberg
	name = "AI_EVENT"
	desc = "Wirtemberg"

	action_a = {
		name = "OK"
		command = { type = independence which = WUR }
	}
}
event = {
	id = 5000055
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = WUR }
		NOT = { core = { province = 372 data = -1 } } #Württemberg
		AND = {
			exists = HAB
			core = { province = 372 data = HAB } #covers HAB_179004 and HAB_179006
		}
	}
	random = yes
	province = 372 #Württemberg
	name = "AI_EVENT"
	desc = "Wirtemberg"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = HAB value = 372 } #Württemberg
		command = { type = relation which = HAB value = 10 }
	}
}

#-----------------------------------------------------------------------------------------------

#-----------------------------------------------------------------------------------------------

#Baden
event = {
	id = 5001000
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = BAD }
		NOT = { core = { province = 373 data = -1 } } #Baden
	}
	random = yes
	province = 349 #Baden
	name = "AI_EVENT"
	desc = "Baden"

	action_a = {
		name = "OK"
		command = { type = independence which = BAD }
	}
}

#Bavaria
event = {
	id = 5001001
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = BAY }
		NOT = { core = { province = 349 data = -1 } } #Bayern
		NOT = {
			AND = {
				event = 255003 #PFA: The Palatinate inherits Bavaria
				NOT = {
					event = 125021 #BAY: The Palatinate is united with Bavaria
					event = 125033 #BAY: The Palatinate is united with Bavaria (Palatinate inherited Burgundy)
				}
			}
			event = 255008 #PFA: The Wittelsbach inheritance of Bavaria
		}
	}
	random = yes
	province = 349 #Bayern
	name = "AI_EVENT"
	desc = "Bavaria"

	action_a = {
		name = "OK"
		command = { type = independence which = BAY }
	}
}
event = {
	id = 5001002
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		exists = BAY
		NOT = { core = { province = 349 data = -1 } } #Bayern
		NOT = { owned = { province = 349 data = BAY } } #Bayern
	}
	random = yes
	province = 349 #Bayern
	name = "AI_EVENT"
	desc = "Bavaria"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = BAY value = 349 } #Bayern
		command = { type = relation which = BAY value = 10 }
	}
}
event = {
	id = 5001003
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = BAY }
		NOT = { core = { province = 349 data = -1 } } #Bayern
		AND = {
			exists = PFA
			OR = {
				AND = {
					event = 255003 #PFA: The Palatinate inherits Bavaria
					NOT = {
						event = 125021 #BAY: The Palatinate is united with Bavaria
						event = 125033 #BAY: The Palatinate is united with Bavaria (Palatinate inherited Burgundy)
					}
				}
				event = 255008 #PFA: The Wittelsbach inheritance of Bavaria
			}
			NOT = { owned = { province = 349 data = PFA } } #Bayern
		}
	}
	random = yes
	province = 349 #Bayern
	name = "AI_EVENT"
	desc = "Bavaria"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = PFA value = 349 } #Bayern
		command = { type = relation which = PFA value = 10 }
	}
}
event = {
	id = 5001004
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = BAY }
		NOT = { owned = { province = 349 data = -1 } } #Bayern
		NOT = { core = { province = 348 data = -1 } } #Ansbach
		year = 1430 #LUX and HAB before
		NOT = {
			AND = {
				event = 255003 #PFA: The Palatinate inherits Bavaria
				NOT = {
					event = 125021 #BAY: The Palatinate is united with Bavaria
					event = 125033 #BAY: The Palatinate is united with Bavaria (Palatinate inherited Burgundy)
				}
			}
			event = 255008 #PFA: The Wittelsbach inheritance of Bavaria
			event = 125035 #BAY: Straubing is ceded to Austria
			event = 255009 #PFA: Straubing is ceded to Austria
		}
	}
	random = yes
	province = 348 #Ansbach
	name = "AI_EVENT"
	desc = "Bavaria"

	action_a = {
		name = "OK"
		command = { type = independence which = BAY }
	}
}
event = {
	id = 5001005
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		exists = BAY
		NOT = { core = { province = 348 data = -1 } } #Ansbach
		year = 1430 #LUX and HAB before
		NOT = {
			AND = {
				exists = HAB
				OR = {
					event = 125035 #BAY: Straubing is ceded to Austria
					event = 255009 #PFA: Straubing is ceded to Austria
				}
			}
			NOT = { owned = { province = 348 data = BAY } } #Ansbach
		}
	}
	random = yes
	province = 348 #Ansbach
	name = "AI_EVENT"
	desc = "Bavaria"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = BAY value = 348 } #Ansbach
		command = { type = relation which = BAY value = 10 }
	}
}
event = {
	id = 5001006
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = BAY }
		NOT = { core = { province = 348 data = -1 } } #Ansbach
		year = 1430 #LUX and HAB before
		AND = {
			exists = PFA
			OR = {
				AND = {
					event = 255003 #PFA: The Palatinate inherits Bavaria
					NOT = {
						event = 125021 #BAY: The Palatinate is united with Bavaria
						event = 125033 #BAY: The Palatinate is united with Bavaria (Palatinate inherited Burgundy)
					}
				}
				event = 255008 #PFA: The Wittelsbach inheritance of Bavaria
			}
			NOT = {
				AND = {
					exists = HAB
					OR = {
						event = 125035 #BAY: Straubing is ceded to Austria
						event = 255009 #PFA: Straubing is ceded to Austria
					}
				}
			}
			NOT = { owned = { province = 348 data = PFA } } #Ansbach
		}
	}
	random = yes
	province = 348 #Ansbach
	name = "AI_EVENT"
	desc = "Bavaria"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = PFA value = 348 } #Ansbach
		command = { type = relation which = PFA value = 10 }
	}
}
event = {
	id = 5001007
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { core = { province = 348 data = -1 } } #Ansbach
		year = 1430 #LUX and HAB before
		AND = {
			exists = HAB
			OR = {
				event = 125035 #BAY: Straubing is ceded to Austria
				event = 255009 #PFA: Straubing is ceded to Austria
			}
			NOT = { owned = { province = 348 data = HAB } } #Ansbach
		}
	}
	random = yes
	province = 348 #Ansbach
	name = "AI_EVENT"
	desc = "Bavaria"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = HAB value = 348 } #Ansbach
		command = { type = relation which = HAB value = 10 }
	}
}

#Berg
#simplified version
event = {
	id = 5001008
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = BRG }
		NOT = { core = { province = 343 data = -1 } } #Kleves
		NOT = { year = 1609 }
	}
	random = yes
	province = 334 #Kleves
	name = "AI_EVENT"
	desc = "Berg"

	action_a = {
		name = "OK"
		command = { type = independence which = BRG }
	}
}

#Brandenburg - Prussia
event = {
	id = 5001009
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = BRA }
		NOT = { core = { province = 312 data = -1 } } #Brandenburg
		NOT = {
			AND = {
				exists = PRU
				event = 263014 #PRU: The Kingdom of Prussia
			}
		}
	}
	random = yes
	province = 312 #Brandenburg
	name = "AI_EVENT"
	desc = "Brandenburg"

	action_a = {
		name = "OK"
		command = { type = independence which = BRA }
	}
}
event = {
	id = 5001011
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = BRA }
		NOT = { core = { province = 312 data = -1 } } #Brandenburg
		AND = {
			exists = PRU
			event = 263014 #PRU: The Kingdom of Prussia
			NOT = { owned = { province = 312 data = PRU } } #Brandenburg
		}
	}
	random = yes
	province = 312 #Brandenburg
	name = "AI_EVENT"
	desc = "Brandenburg"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = PRU value = 312 } #Brandenburg
		command = { type = relation which = PRU value = 10 }
	}
}
event = {
	id = 5001012
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = BRA }
		NOT = { core = { province = 313 data = -1 } } #Küstrin
		NOT = { owned = { province = 312 data = -1 } } #Brandenburg
		NOT = {
			AND = {
				exists = PRU
				event = 263014 #PRU: The Kingdom of Prussia
			}
		}
	}
	random = yes
	province = 313 #Küstrin
	name = "AI_EVENT"
	desc = "Brandenburg"

	action_a = {
		name = "OK"
		command = { type = independence which = BRA }
	}
}
event = {
	id = 5001014
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		exists = BRA
		NOT = { core = { province = 313 data = -1 } } #Küstrin
		NOT = { owned = { province = 313 data = BRA } } #Küstrin
	}
	random = yes
	province = 313 #Küstrin
	name = "AI_EVENT"
	desc = "Brandenburg"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = BRA value = 313 } #Küstrin
		command = { type = relation which = BRA value = 10 }
	}
}
event = {
	id = 5001015
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = BRA }
		NOT = { core = { province = 313 data = -1 } } #Küstrin
		AND = {
			exists = PRU
			event = 263014 #PRU: The Kingdom of Prussia
			NOT = { owned = { province = 312 data = PRU } } #Brandenburg
		}
	}
	random = yes
	province = 313 #Küstrin
	name = "AI_EVENT"
	desc = "Brandenburg"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = PRU value = 313 } #Küstrin
		command = { type = relation which = PRU value = 10 }
	}
}
event = {
	id = 5001016
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		exists = BRA
		NOT = { core = { province = 311 data = -1 } } #Magdeburg
		NOT = { owned = { province = 311 data = BRA } } #Magdeburg
	}
	random = yes
	province = 311 #Magdeburg
	name = "AI_EVENT"
	desc = "Brandenburg"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = BRA value = 311 } #Magdeburg
		command = { type = relation which = BRA value = 10 }
	}
}
event = {
	id = 5001017
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = BRA }
		NOT = { core = { province = 311 data = -1 } } #Magdeburg
		AND = {
			exists = PRU
			event = 263014 #PRU: The Kingdom of Prussia
			NOT = { owned = { province = 311 data = PRU } } #Magdeburg
		}
	}
	random = yes
	province = 311 #Magdeburg
	name = "AI_EVENT"
	desc = "Brandenburg"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = PRU value = 311 } #Magdeburg
		command = { type = relation which = PRU value = 10 }
	}
}

#Bremen
event = {
	id = 5001018
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = BRE }
		NOT = { core = { province = 336 data = -1 } } #Bremen
	}
	random = yes
	province = 336 #Bremen
	name = "AI_EVENT"
	desc = "Bremen"

	action_a = {
		name = "OK"
		command = { type = independence which = BRE }
	}
}

#Cleves
#simplified version
event = {
	id = 5001019
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = KLE }
		NOT = { core = { province = 334 data = -1 } } #Münster
		NOT = {
			event = 235009 #BRG: Union with Kleve-Mark
			year = 1609
		}
	}
	random = yes
	province = 334 #Münster
	name = "AI_EVENT"
	desc = "Cleves"

	action_a = {
		name = "OK"
		command = { type = independence which = KLE }
	}
}
event = {
	id = 5001020
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = KLE }
		NOT = { core = { province = 334 data = -1 } } #Münster
		AND = {
			exists = BRG
			event = 235009 #BRG: Union with Kleve-Mark
			NOT = { owned = { province = 334 data = BRG } } #Münster
			NOT = { year = 1609 }
		}
	}
	random = yes
	province = 334 #Münster
	name = "AI_EVENT"
	desc = "Cleves"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = BRG value = 334 } #Münster
		command = { type = relation which = BRG value = 10 }
	}
}

#Cologne
event = {
	id = 5001021
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = KOL }
		NOT = { core = { province = 344 data = -1 } } #Köln
	}
	random = yes
	province = 344 #Köln
	name = "AI_EVENT"
	desc = "Cologne"

	action_a = {
		name = "OK"
		command = { type = independence which = KOL }
	}
}

#Hanover
event = {
	id = 5001022
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = HAN }
		NOT = { core = { province = 310 data = -1 } } #Hannover
	}
	random = yes
	province = 310 #Hannover
	name = "AI_EVENT"
	desc = "Hanover"

	action_a = {
		name = "OK"
		command = { type = independence which = HAN }
	}
}

#Hesse
event = {
	id = 5001023
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = HES }
		NOT = { core = { province = 333 data = -1 } } #Hessen
	}
	random = yes
	province = 333 #Hessen
	name = "AI_EVENT"
	desc = "Hesse"

	action_a = {
		name = "OK"
		command = { type = independence which = HES }
	}
}

#Holstein
event = {
	id = 5001024
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = SHL }
		NOT = { core = { province = 306 data = -1 } } #Holstein
		NOT = {
			AND = {
				event = 159034 #DAN: Denmark inherits Holstein
				NOT = { event = 159011 } #DAN: The fate of Holstein
			}
			event = 247002 #OLD: Oldenburg inherits Holstein
		}
	}
	random = yes
	province = 306 #Holstein
	name = "AI_EVENT"
	desc = "Holstein"

	action_a = {
		name = "OK"
		command = { type = independence which = SHL }
	}
}
event = {
	id = 5001010
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = SHL }
		NOT = { core = { province = 306 data = -1 } } #Holstein
		AND = {
			exists = OLD
			event = 247002 #OLD: Oldenburg inherits Holstein
			NOT = { owned = { province = 306 data = OLD } } #Holstein
		}
	}
	random = yes
	province = 306 #Holstein
	name = "AI_EVENT"
	desc = "Holstein"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = OLD value = 306 } #Holstein
		command = { type = relation which = OLD value = 10 }
	}
}

#Lorraine
event = {
	id = 5001026
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = LOR }
		NOT = { core = { province = 375 data = -1 } } #Lorraine
		NOT = {
			event = 3736 #FRA: French Inheritance of Lothringen
			year = 1766
		}
	}
	random = yes
	province = 375 #Lorraine
	name = "AI_EVENT"
	desc = "Lorraine"

	action_a = {
		name = "OK"
		command = { type = independence which = LOR }
	}
}

#Luxemburg
event = {
	id = 5001028
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = LUX }
		NOT = { core = { province = 377 data = -1 } } #Luxembourg
		NOT = {
			event = 137306 #BUR: Annexation of Luxemburg
			year = 1451 #Burgundian monarchs
		}
	}
	random = yes
	province = 377 #Luxembourg
	name = "AI_EVENT"
	desc = "Luxemburg"

	action_a = {
		name = "OK"
		command = { type = independence which = LUX }
	}
}
event = {
	id = 5001029
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = LUX }
		NOT = { core = { province = 377 data = -1 } } #Luxembourg
		AND = {
			exists = BUR
			event = 137306 #BUR: Annexation of Luxemburg
			NOT = { owned = { province = 377 data = BUR } } #Luxembourg
		}
	}
	random = yes
	province = 377 #Luxembourg
	name = "AI_EVENT"
	desc = "Luxemburg"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = BUR value = 377 } #Luxembourg
		command = { type = relation which = BUR value = 10 }
	}
}

#Mainz
event = {
	id = 5001030
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = MAI }
		NOT = { core = { province = 346 data = -1 } } #Mainz
	}
	random = yes
	province = 346 #Mainz
	name = "AI_EVENT"
	desc = "Mainz"

	action_a = {
		name = "OK"
		command = { type = independence which = MAI }
	}
}

#Mecklenburg
event = {
	id = 5001031
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = MEC }
		NOT = { core = { province = 305 data = -1 } } #Mecklenburg
	}
	random = yes
	province = 305 #Mecklenburg
	name = "AI_EVENT"
	desc = "Mecklenburg"

	action_a = {
		name = "OK"
		command = { type = independence which = MEC }
	}
}

#Oldenburg
event = {
	id = 5001032
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = OLD }
		NOT = { core = { province = 335 data = -1 } } #Oldenburg
		NOT = {
			event = 159033 #DAN: Oldenburg is incorporated into Denmark
			event = 279010 #SHL: Holstein inherits Oldenburg
		}
	}
	random = yes
	province = 335 #Oldenburg
	name = "AI_EVENT"
	desc = "Oldenburg"

	action_a = {
		name = "OK"
		command = { type = independence which = OLD }
	}
}
event = {
	id = 5001013
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = OLD }
		NOT = { core = { province = 335 data = -1 } } #Oldenburg
		AND = {
			exists = SHL
			event = 279010 #SHL: Holstein inherits Oldenburg
			NOT = { owned = { province = 335 data = SHL } } #Oldenburg
		}
	}
	random = yes
	province = 335 #Oldenburg
	name = "AI_EVENT"
	desc = "Oldenburg"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = SHL value = 335 } #Oldenburg
		command = { type = relation which = SHL value = 10 }
	}
}

#Palatinate
event = {
	id = 5001033
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = PFA }
		NOT = { core = { province = 345 data = -1 } } #Pfalz
		NOT = {
			event = 125021 #BAY: The Palatinate is united with Bavaria
			event = 125033 #BAY: The Palatinate is united with Bavaria
		}
	}
	random = yes
	province = 345 #Pfalz
	name = "AI_EVENT"
	desc = "Palatinate"

	action_a = {
		name = "OK"
		command = { type = independence which = PFA }
	}
}
event = {
	id = 5001034
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		exists = PFA
		NOT = { core = { province = 345 data = -1 } } #Pfalz
	}
	random = yes
	province = 345 #Pfalz
	name = "AI_EVENT"
	desc = "Palatinate"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = PFA value = 345 } #Pfalz
		command = { type = relation which = PFA value = 10 }
	}
}
event = {
	id = 5001035
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = PFA }
		NOT = { core = { province = 345 data = -1 } } #Pfalz
		AND = {
			exists = BAY
			OR = {
				event = 125021 #BAY: The Palatinate is united with Bavaria
				event = 125033 #BAY: The Palatinate is united with Bavaria
			}
			NOT = { owned = { province = 345 data = BAY } } #Pfalz
		}
	}
	random = yes
	province = 345 #Pfalz
	name = "AI_EVENT"
	desc = "Palatinate"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = BAY value = 345 } #Pfalz
		command = { type = relation which = BAY value = 10 }
	}
}
event = {
	id = 5001036
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = PFA }
		NOT = { owned = { province = 345 data = -1 } } #Pfalz
		NOT = { core = { province = 347 data = -1 } } #Würzburg
		NOT = {
			event = 125021 #BAY: The Palatinate is united with Bavaria
			event = 125033 #BAY: The Palatinate is united with Bavaria
		}
	}
	random = yes
	province = 347 #Würzburg
	name = "AI_EVENT"
	desc = "Palatinate"

	action_a = {
		name = "OK"
		command = { type = independence which = PFA }
	}
}
event = {
	id = 5001037
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		exists = PFA
		NOT = { core = { province = 347 data = -1 } } #Würzburg
	}
	random = yes
	province = 347 #Würzburg
	name = "AI_EVENT"
	desc = "Palatinate"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = PFA value = 347 } #Würzburg
		command = { type = relation which = PFA value = 10 }
	}
}
event = {
	id = 5001038
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = PFA }
		NOT = { core = { province = 347 data = -1 } } #Würzburg
		AND = {
			exists = BAY
			OR = {
				event = 125021 #BAY: The Palatinate is united with Bavaria
				event = 125033 #BAY: The Palatinate is united with Bavaria
			}
			NOT = { owned = { province = 347 data = BAY } } #Würzburg
		}
	}
	random = yes
	province = 347 #Würzburg
	name = "AI_EVENT"
	desc = "Palatinate"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = BAY value = 347 } #Würzburg
		command = { type = relation which = BAY value = 10 }
	}
}

#Pomerania - Stettin
event = {
	id = 5001039
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = POM }
		NOT = { core = { province = 302 data = -1 } } #Hinterpommern
		NOT = {
			event = 291030 #SWE: The Acquisition of Pomerania
			event = 3896 #BRA: The Pommern Inheritance
			event = 132008 #BRA: The Pomeranian Inheritance
			event = 259016 #POM: The investiture of Brandenburg
			year = 1637
		}
	}
	random = yes
	province = 302 #Hinterpommern
	name = "AI_EVENT"
	desc = "Pomerania"

	action_a = {
		name = "OK"
		command = { type = independence which = POM }
	}
}
event = {
	id = 5001040
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = POM }
		NOT = { core = { province = 302 data = -1 } } #Hinterpommern
		AND = {
			exists = STT
			NOT = { owned = { province = 302 data = STT } } #Hinterpommern
		}
	}
	random = yes
	province = 302 #Hinterpommern
	name = "AI_EVENT"
	desc = "Pomerania"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = STT value = 302 } #Hinterpommern
		command = { type = relation which = STT value = 10 }
	}
}
event = {
	id = 5001041
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = POM }
		NOT = { core = { province = 302 data = -1 } } #Hinterpommern
		AND = {
			NOT = { exists = STT }
			exists = BRA
			OR = {
				event = 3896 #BRA: The Pommern Inheritance
				event = 132008 #BRA: The Pomeranian Inheritance
				event = 259016 #POM: The investiture of Brandenburg
			}
			NOT = { owned = { province = 302 data = BRA } } #Hinterpommern
		}
	}
	random = yes
	province = 302 #Hinterpommern
	name = "AI_EVENT"
	desc = "Pomerania"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = BRA value = 302 } #Hinterpommern
		command = { type = relation which = BRA value = 10 }
	}
}
event = {
	id = 5001042
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = POM }
		NOT = { core = { province = 302 data = -1 } } #Hinterpommern
		AND = {
			NOT = { exists = STT }
			NOT = { exists = BRA }
			AND = {
				exists = PRU
				event = 263014 #PRU: The Kingdom of Prussia
			}
			OR = {
				event = 3896 #BRA: The Pommern Inheritance
				event = 132008 #BRA: The Pomeranian Inheritance
				event = 259016 #POM: The investiture of Brandenburg
			}
			NOT = { owned = { province = 302 data = PRU } } #Hinterpommern
		}
	}
	random = yes
	province = 302 #Hinterpommern
	name = "AI_EVENT"
	desc = "Pomerania"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = PRU value = 302 } #Hinterpommern
		command = { type = relation which = PRU value = 10 }
	}
}
event = {
	id = 5001043
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = STT }
		NOT = { core = { province = 304 data = -1 } } #Vorpommern
		NOT = {
			event = 259000 #POM: Inheritance of Pomerania-Stettin
			AND = {
				event = 259001 #POM: Inheritance of Pomerania-Stettin
				NOT = {
					event = 132018 #BRA: Inheritance of Stettin
				}
			}
			event = 291029 #SWE: The Acquisition of Vorpommern
			event = 291030 #SWE: The Acquisition of Pomerania
			event = 3896 #BRA: The Pommern Inheritance
			event = 132008 #BRA: The Pomeranian Inheritance
			event = 259016 #POM: The investiture of Brandenburg
			year = 1570
		}
	}
	random = yes
	province = 304 #Vorpommern
	name = "AI_EVENT"
	desc = "Pomerania"

	action_a = {
		name = "OK"
		command = { type = independence which = STT }
	}
}
event = {
	id = 5001044
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = STT }
		NOT = { core = { province = 304 data = -1 } } #Vorpommern
		AND = {
			exists = POM
			OR = {
				event = 259000 #POM: Inheritance of Pomerania-Stettin
				AND = {
					event = 259001 #POM: Inheritance of Pomerania-Stettin
					NOT = {
						event = 132018 #BRA: Inheritance of Stettin
					}
				}
			}
			NOT = { owned = { province = 304 data = POM } } #Vorpommern
		}
	}
	random = yes
	province = 304 #Vorpommern
	name = "AI_EVENT"
	desc = "Pomerania"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = POM value = 304 } #Vorpommern
		command = { type = relation which = POM value = 10 }
	}
}
event = {
	id = 5001045
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = STT }
		NOT = { core = { province = 304 data = -1 } } #Vorpommern
		AND = {
			NOT = { exists = POM }
			AND = {
				exists = BRA
				OR = {
					event = 3896 #BRA: The Pommern Inheritance
					event = 132008 #BRA: The Pomeranian Inheritance
					event = 259016 #POM: The investiture of Brandenburg
				}
				NOT = { owned = { province = 304 data = BRA } } #Vorpommern
			}
		}
	}
	random = yes
	province = 304 #Vorpommern
	name = "AI_EVENT"
	desc = "Pomerania"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = BRA value = 304 } #Vorpommern
		command = { type = relation which = BRA value = 10 }
	}
}
event = {
	id = 5001046
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = POM }
		NOT = { core = { province = 304 data = -1 } } #Vorpommern
		AND = {
			NOT = { exists = POM }
			AND = {
				NOT = { exists = BRA }
				AND = {
					exists = PRU
					event = 263014 #PRU: The Kingdom of Prussia
				}
				OR = {
					event = 3896 #BRA: The Pommern Inheritance
					event = 132008 #BRA: The Pomeranian Inheritance
					event = 259016 #POM: The investiture of Brandenburg
				}
				NOT = { owned = { province = 304 data = PRU } } #Vorpommern
			}
		}
	}
	random = yes
	province = 304 #Vorpommern
	name = "AI_EVENT"
	desc = "Pomerania"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = PRU value = 304 } #Vorpommern
		command = { type = relation which = PRU value = 10 }
	}
}

#Saxony - Meissen
#simplified version
event = {
	id = 5001048
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = {
			exists = SAC
			exists = MEI
		}
		NOT = { core = { province = 332 data = -1 } } #Anhalt
	}
	random = yes
	province = 332 #Anhalt
	name = "AI_EVENT"
	desc = "Saxony"

	action_a = {
		name = "OK"
		command = { type = independence which = SAC }
	}
}
event = {
	id = 5001049
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		exists = SAC
		NOT = { core = { province = 332 data = -1 } } #Anhalt
		NOT = { owned = { province = 332 data = SAC } } #Anhalt
	}
	random = yes
	province = 332 #Anhalt
	name = "AI_EVENT"
	desc = "Saxony"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = SAC value = 332 } #Anhalt
		command = { type = relation which = SAC value = 10 }
	}
}
event = {
	id = 5001050
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = SAC }
		NOT = { core = { province = 332 data = -1 } } #Anhalt
		AND = {
			exists = MEI
			NOT = { year = 1600 }
			NOT = { owned = { province = 332 data = MEI } } #Anhalt
		}
	}
	random = yes
	province = 332 #Anhalt
	name = "AI_EVENT"
	desc = "Saxony"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = MEI value = 332 } #Anhalt
		command = { type = relation which = MEI value = 10 }
	}
}
event = {
	id = 5001051
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		exists = SAC
		NOT = { core = { province = 331 data = -1 } } #Sachsen
		NOT = { owned = { province = 331 data = SAC } } #Sachsen
	}
	random = yes
	province = 331 #Sachsen
	name = "AI_EVENT"
	desc = "Saxony"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = SAC value = 331 } #Sachsen
		command = { type = relation which = SAC value = 10 }
	}
}
event = {
	id = 5001052
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = SAC }
		NOT = { core = { province = 331 data = -1 } } #Sachsen
		AND = {
			exists = MEI
			NOT = { year = 1600 }
			NOT = { owned = { province = 331 data = MEI } } #Sachsen
		}
	}
	random = yes
	province = 331 #Sachsen
	name = "AI_EVENT"
	desc = "Saxony"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = MEI value = 331 } #Sachsen
		command = { type = relation which = MEI value = 10 }
	}
}

#Strassburg
event = {
	id = 5001053
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = STR }
		NOT = { core = { province = 374 data = -1 } } #Alsace
	}
	random = yes
	province = 374 #Alsace
	name = "AI_EVENT"
	desc = "Strassburg"

	action_a = {
		name = "OK"
		command = { type = independence which = STR }
	}
}

#Wirtemberg
event = {
	id = 5001054
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = WUR }
		NOT = { core = { province = 372 data = -1 } } #Württemberg
		NOT = {
			AND = {
				exists = HAB
				core = { province = 372 data = HAB } #covers HAB_179004 and HAB_179006
				NOT = { owned = { province = 372 data = HAB } } #Württemberg
			}
		}
	}
	random = yes
	province = 372 #Württemberg
	name = "AI_EVENT"
	desc = "Wirtemberg"

	action_a = {
		name = "OK"
		command = { type = independence which = WUR }
	}
}
event = {
	id = 5001055
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = WUR }
		NOT = { core = { province = 372 data = -1 } } #Württemberg
		AND = {
			exists = HAB
			core = { province = 372 data = HAB } #covers HAB_179004 and HAB_179006
		}
	}
	random = yes
	province = 372 #Württemberg
	name = "AI_EVENT"
	desc = "Wirtemberg"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = HAB value = 372 } #Württemberg
		command = { type = relation which = HAB value = 10 }
	}
}

#-----------------------------------------------------------------------------------------------

#-----------------------------------------------------------------------------------------------

#Baden
event = {
	id = 5002000
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = BAD }
		NOT = { core = { province = 373 data = -1 } } #Baden
	}
	random = yes
	province = 349 #Baden
	name = "AI_EVENT"
	desc = "Baden"

	action_a = {
		name = "OK"
		command = { type = independence which = BAD }
	}
}

#Bavaria
event = {
	id = 5002001
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = BAY }
		NOT = { core = { province = 349 data = -1 } } #Bayern
		NOT = {
			AND = {
				event = 255003 #PFA: The Palatinate inherits Bavaria
				NOT = {
					event = 125021 #BAY: The Palatinate is united with Bavaria
					event = 125033 #BAY: The Palatinate is united with Bavaria (Palatinate inherited Burgundy)
				}
			}
			event = 255008 #PFA: The Wittelsbach inheritance of Bavaria
		}
	}
	random = yes
	province = 349 #Bayern
	name = "AI_EVENT"
	desc = "Bavaria"

	action_a = {
		name = "OK"
		command = { type = independence which = BAY }
	}
}
event = {
	id = 5002002
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		exists = BAY
		NOT = { core = { province = 349 data = -1 } } #Bayern
		NOT = { owned = { province = 349 data = BAY } } #Bayern
	}
	random = yes
	province = 349 #Bayern
	name = "AI_EVENT"
	desc = "Bavaria"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = BAY value = 349 } #Bayern
		command = { type = relation which = BAY value = 10 }
	}
}
event = {
	id = 5002003
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = BAY }
		NOT = { core = { province = 349 data = -1 } } #Bayern
		AND = {
			exists = PFA
			OR = {
				AND = {
					event = 255003 #PFA: The Palatinate inherits Bavaria
					NOT = {
						event = 125021 #BAY: The Palatinate is united with Bavaria
						event = 125033 #BAY: The Palatinate is united with Bavaria (Palatinate inherited Burgundy)
					}
				}
				event = 255008 #PFA: The Wittelsbach inheritance of Bavaria
			}
			NOT = { owned = { province = 349 data = PFA } } #Bayern
		}
	}
	random = yes
	province = 349 #Bayern
	name = "AI_EVENT"
	desc = "Bavaria"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = PFA value = 349 } #Bayern
		command = { type = relation which = PFA value = 10 }
	}
}
event = {
	id = 5002004
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = BAY }
		NOT = { owned = { province = 349 data = -1 } } #Bayern
		NOT = { core = { province = 348 data = -1 } } #Ansbach
		year = 1430 #LUX and HAB before
		NOT = {
			AND = {
				event = 255003 #PFA: The Palatinate inherits Bavaria
				NOT = {
					event = 125021 #BAY: The Palatinate is united with Bavaria
					event = 125033 #BAY: The Palatinate is united with Bavaria (Palatinate inherited Burgundy)
				}
			}
			event = 255008 #PFA: The Wittelsbach inheritance of Bavaria
			event = 125035 #BAY: Straubing is ceded to Austria
			event = 255009 #PFA: Straubing is ceded to Austria
		}
	}
	random = yes
	province = 348 #Ansbach
	name = "AI_EVENT"
	desc = "Bavaria"

	action_a = {
		name = "OK"
		command = { type = independence which = BAY }
	}
}
event = {
	id = 5002005
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		exists = BAY
		NOT = { core = { province = 348 data = -1 } } #Ansbach
		year = 1430 #LUX and HAB before
		NOT = {
			AND = {
				exists = HAB
				OR = {
					event = 125035 #BAY: Straubing is ceded to Austria
					event = 255009 #PFA: Straubing is ceded to Austria
				}
			}
			NOT = { owned = { province = 348 data = BAY } } #Ansbach
		}
	}
	random = yes
	province = 348 #Ansbach
	name = "AI_EVENT"
	desc = "Bavaria"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = BAY value = 348 } #Ansbach
		command = { type = relation which = BAY value = 10 }
	}
}
event = {
	id = 5002006
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = BAY }
		NOT = { core = { province = 348 data = -1 } } #Ansbach
		year = 1430 #LUX and HAB before
		AND = {
			exists = PFA
			OR = {
				AND = {
					event = 255003 #PFA: The Palatinate inherits Bavaria
					NOT = {
						event = 125021 #BAY: The Palatinate is united with Bavaria
						event = 125033 #BAY: The Palatinate is united with Bavaria (Palatinate inherited Burgundy)
					}
				}
				event = 255008 #PFA: The Wittelsbach inheritance of Bavaria
			}
			NOT = {
				AND = {
					exists = HAB
					OR = {
						event = 125035 #BAY: Straubing is ceded to Austria
						event = 255009 #PFA: Straubing is ceded to Austria
					}
				}
			}
			NOT = { owned = { province = 348 data = PFA } } #Ansbach
		}
	}
	random = yes
	province = 348 #Ansbach
	name = "AI_EVENT"
	desc = "Bavaria"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = PFA value = 348 } #Ansbach
		command = { type = relation which = PFA value = 10 }
	}
}
event = {
	id = 5002007
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { core = { province = 348 data = -1 } } #Ansbach
		year = 1430 #LUX and HAB before
		AND = {
			exists = HAB
			OR = {
				event = 125035 #BAY: Straubing is ceded to Austria
				event = 255009 #PFA: Straubing is ceded to Austria
			}
			NOT = { owned = { province = 348 data = HAB } } #Ansbach
		}
	}
	random = yes
	province = 348 #Ansbach
	name = "AI_EVENT"
	desc = "Bavaria"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = HAB value = 348 } #Ansbach
		command = { type = relation which = HAB value = 10 }
	}
}

#Berg
#simplified version
event = {
	id = 5002008
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = BRG }
		NOT = { core = { province = 343 data = -1 } } #Kleves
		NOT = { year = 1609 }
	}
	random = yes
	province = 334 #Kleves
	name = "AI_EVENT"
	desc = "Berg"

	action_a = {
		name = "OK"
		command = { type = independence which = BRG }
	}
}

#Brandenburg - Prussia
event = {
	id = 5002009
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = BRA }
		NOT = { core = { province = 312 data = -1 } } #Brandenburg
		NOT = {
			AND = {
				exists = PRU
				event = 263014 #PRU: The Kingdom of Prussia
			}
		}
	}
	random = yes
	province = 312 #Brandenburg
	name = "AI_EVENT"
	desc = "Brandenburg"

	action_a = {
		name = "OK"
		command = { type = independence which = BRA }
	}
}
event = {
	id = 5002011
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = BRA }
		NOT = { core = { province = 312 data = -1 } } #Brandenburg
		AND = {
			exists = PRU
			event = 263014 #PRU: The Kingdom of Prussia
			NOT = { owned = { province = 312 data = PRU } } #Brandenburg
		}
	}
	random = yes
	province = 312 #Brandenburg
	name = "AI_EVENT"
	desc = "Brandenburg"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = PRU value = 312 } #Brandenburg
		command = { type = relation which = PRU value = 10 }
	}
}
event = {
	id = 5002012
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = BRA }
		NOT = { core = { province = 313 data = -1 } } #Küstrin
		NOT = { owned = { province = 312 data = -1 } } #Brandenburg
		NOT = {
			AND = {
				exists = PRU
				event = 263014 #PRU: The Kingdom of Prussia
			}
		}
	}
	random = yes
	province = 313 #Küstrin
	name = "AI_EVENT"
	desc = "Brandenburg"

	action_a = {
		name = "OK"
		command = { type = independence which = BRA }
	}
}
event = {
	id = 5002014
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		exists = BRA
		NOT = { core = { province = 313 data = -1 } } #Küstrin
		NOT = { owned = { province = 313 data = BRA } } #Küstrin
	}
	random = yes
	province = 313 #Küstrin
	name = "AI_EVENT"
	desc = "Brandenburg"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = BRA value = 313 } #Küstrin
		command = { type = relation which = BRA value = 10 }
	}
}
event = {
	id = 5002015
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = BRA }
		NOT = { core = { province = 313 data = -1 } } #Küstrin
		AND = {
			exists = PRU
			event = 263014 #PRU: The Kingdom of Prussia
			NOT = { owned = { province = 312 data = PRU } } #Brandenburg
		}
	}
	random = yes
	province = 313 #Küstrin
	name = "AI_EVENT"
	desc = "Brandenburg"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = PRU value = 313 } #Küstrin
		command = { type = relation which = PRU value = 10 }
	}
}
event = {
	id = 5002016
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		exists = BRA
		NOT = { core = { province = 311 data = -1 } } #Magdeburg
		NOT = { owned = { province = 311 data = BRA } } #Magdeburg
	}
	random = yes
	province = 311 #Magdeburg
	name = "AI_EVENT"
	desc = "Brandenburg"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = BRA value = 311 } #Magdeburg
		command = { type = relation which = BRA value = 10 }
	}
}
event = {
	id = 5002017
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = BRA }
		NOT = { core = { province = 311 data = -1 } } #Magdeburg
		AND = {
			exists = PRU
			event = 263014 #PRU: The Kingdom of Prussia
			NOT = { owned = { province = 311 data = PRU } } #Magdeburg
		}
	}
	random = yes
	province = 311 #Magdeburg
	name = "AI_EVENT"
	desc = "Brandenburg"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = PRU value = 311 } #Magdeburg
		command = { type = relation which = PRU value = 10 }
	}
}

#Bremen
event = {
	id = 5002018
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = BRE }
		NOT = { core = { province = 336 data = -1 } } #Bremen
	}
	random = yes
	province = 336 #Bremen
	name = "AI_EVENT"
	desc = "Bremen"

	action_a = {
		name = "OK"
		command = { type = independence which = BRE }
	}
}

#Cleves
#simplified version
event = {
	id = 5002019
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = KLE }
		NOT = { core = { province = 334 data = -1 } } #Münster
		NOT = {
			event = 235009 #BRG: Union with Kleve-Mark
			year = 1609
		}
	}
	random = yes
	province = 334 #Münster
	name = "AI_EVENT"
	desc = "Cleves"

	action_a = {
		name = "OK"
		command = { type = independence which = KLE }
	}
}
event = {
	id = 5002020
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = KLE }
		NOT = { core = { province = 334 data = -1 } } #Münster
		AND = {
			exists = BRG
			event = 235009 #BRG: Union with Kleve-Mark
			NOT = { owned = { province = 334 data = BRG } } #Münster
			NOT = { year = 1609 }
		}
	}
	random = yes
	province = 334 #Münster
	name = "AI_EVENT"
	desc = "Cleves"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = BRG value = 334 } #Münster
		command = { type = relation which = BRG value = 10 }
	}
}

#Cologne
event = {
	id = 5002021
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = KOL }
		NOT = { core = { province = 344 data = -1 } } #Köln
	}
	random = yes
	province = 344 #Köln
	name = "AI_EVENT"
	desc = "Cologne"

	action_a = {
		name = "OK"
		command = { type = independence which = KOL }
	}
}

#Hanover
event = {
	id = 5002022
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = HAN }
		NOT = { core = { province = 310 data = -1 } } #Hannover
	}
	random = yes
	province = 310 #Hannover
	name = "AI_EVENT"
	desc = "Hanover"

	action_a = {
		name = "OK"
		command = { type = independence which = HAN }
	}
}

#Hesse
event = {
	id = 5002023
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = HES }
		NOT = { core = { province = 333 data = -1 } } #Hessen
	}
	random = yes
	province = 333 #Hessen
	name = "AI_EVENT"
	desc = "Hesse"

	action_a = {
		name = "OK"
		command = { type = independence which = HES }
	}
}

#Holstein
event = {
	id = 5002024
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = SHL }
		NOT = { core = { province = 306 data = -1 } } #Holstein
		NOT = {
			AND = {
				event = 159034 #DAN: Denmark inherits Holstein
				NOT = { event = 159011 } #DAN: The fate of Holstein
			}
			event = 247002 #OLD: Oldenburg inherits Holstein
		}
	}
	random = yes
	province = 306 #Holstein
	name = "AI_EVENT"
	desc = "Holstein"

	action_a = {
		name = "OK"
		command = { type = independence which = SHL }
	}
}
event = {
	id = 5002010
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = SHL }
		NOT = { core = { province = 306 data = -1 } } #Holstein
		AND = {
			exists = OLD
			event = 247002 #OLD: Oldenburg inherits Holstein
			NOT = { owned = { province = 306 data = OLD } } #Holstein
		}
	}
	random = yes
	province = 306 #Holstein
	name = "AI_EVENT"
	desc = "Holstein"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = OLD value = 306 } #Holstein
		command = { type = relation which = OLD value = 10 }
	}
}

#Lorraine
event = {
	id = 5002026
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = LOR }
		NOT = { core = { province = 375 data = -1 } } #Lorraine
		NOT = {
			event = 3736 #FRA: French Inheritance of Lothringen
			year = 1766
		}
	}
	random = yes
	province = 375 #Lorraine
	name = "AI_EVENT"
	desc = "Lorraine"

	action_a = {
		name = "OK"
		command = { type = independence which = LOR }
	}
}

#Luxemburg
event = {
	id = 5002028
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = LUX }
		NOT = { core = { province = 377 data = -1 } } #Luxembourg
		NOT = {
			event = 137306 #BUR: Annexation of Luxemburg
			year = 1451 #Burgundian monarchs
		}
	}
	random = yes
	province = 377 #Luxembourg
	name = "AI_EVENT"
	desc = "Luxemburg"

	action_a = {
		name = "OK"
		command = { type = independence which = LUX }
	}
}
event = {
	id = 5002029
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = LUX }
		NOT = { core = { province = 377 data = -1 } } #Luxembourg
		AND = {
			exists = BUR
			event = 137306 #BUR: Annexation of Luxemburg
			NOT = { owned = { province = 377 data = BUR } } #Luxembourg
		}
	}
	random = yes
	province = 377 #Luxembourg
	name = "AI_EVENT"
	desc = "Luxemburg"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = BUR value = 377 } #Luxembourg
		command = { type = relation which = BUR value = 10 }
	}
}

#Mainz
event = {
	id = 5002030
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = MAI }
		NOT = { core = { province = 346 data = -1 } } #Mainz
	}
	random = yes
	province = 346 #Mainz
	name = "AI_EVENT"
	desc = "Mainz"

	action_a = {
		name = "OK"
		command = { type = independence which = MAI }
	}
}

#Mecklenburg
event = {
	id = 5002031
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = MEC }
		NOT = { core = { province = 305 data = -1 } } #Mecklenburg
	}
	random = yes
	province = 305 #Mecklenburg
	name = "AI_EVENT"
	desc = "Mecklenburg"

	action_a = {
		name = "OK"
		command = { type = independence which = MEC }
	}
}

#Oldenburg
event = {
	id = 5002032
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = OLD }
		NOT = { core = { province = 335 data = -1 } } #Oldenburg
		NOT = {
			event = 159033 #DAN: Oldenburg is incorporated into Denmark
			event = 279010 #SHL: Holstein inherits Oldenburg
		}
	}
	random = yes
	province = 335 #Oldenburg
	name = "AI_EVENT"
	desc = "Oldenburg"

	action_a = {
		name = "OK"
		command = { type = independence which = OLD }
	}
}
event = {
	id = 5002013
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = OLD }
		NOT = { core = { province = 335 data = -1 } } #Oldenburg
		AND = {
			exists = SHL
			event = 279010 #SHL: Holstein inherits Oldenburg
			NOT = { owned = { province = 335 data = SHL } } #Oldenburg
		}
	}
	random = yes
	province = 335 #Oldenburg
	name = "AI_EVENT"
	desc = "Oldenburg"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = SHL value = 335 } #Oldenburg
		command = { type = relation which = SHL value = 10 }
	}
}

#Palatinate
event = {
	id = 5002033
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = PFA }
		NOT = { core = { province = 345 data = -1 } } #Pfalz
		NOT = {
			event = 125021 #BAY: The Palatinate is united with Bavaria
			event = 125033 #BAY: The Palatinate is united with Bavaria
		}
	}
	random = yes
	province = 345 #Pfalz
	name = "AI_EVENT"
	desc = "Palatinate"

	action_a = {
		name = "OK"
		command = { type = independence which = PFA }
	}
}
event = {
	id = 5002034
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		exists = PFA
		NOT = { core = { province = 345 data = -1 } } #Pfalz
	}
	random = yes
	province = 345 #Pfalz
	name = "AI_EVENT"
	desc = "Palatinate"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = PFA value = 345 } #Pfalz
		command = { type = relation which = PFA value = 10 }
	}
}
event = {
	id = 5002035
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = PFA }
		NOT = { core = { province = 345 data = -1 } } #Pfalz
		AND = {
			exists = BAY
			OR = {
				event = 125021 #BAY: The Palatinate is united with Bavaria
				event = 125033 #BAY: The Palatinate is united with Bavaria
			}
			NOT = { owned = { province = 345 data = BAY } } #Pfalz
		}
	}
	random = yes
	province = 345 #Pfalz
	name = "AI_EVENT"
	desc = "Palatinate"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = BAY value = 345 } #Pfalz
		command = { type = relation which = BAY value = 10 }
	}
}
event = {
	id = 5002036
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = PFA }
		NOT = { owned = { province = 345 data = -1 } } #Pfalz
		NOT = { core = { province = 347 data = -1 } } #Würzburg
		NOT = {
			event = 125021 #BAY: The Palatinate is united with Bavaria
			event = 125033 #BAY: The Palatinate is united with Bavaria
		}
	}
	random = yes
	province = 347 #Würzburg
	name = "AI_EVENT"
	desc = "Palatinate"

	action_a = {
		name = "OK"
		command = { type = independence which = PFA }
	}
}
event = {
	id = 5002037
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		exists = PFA
		NOT = { core = { province = 347 data = -1 } } #Würzburg
	}
	random = yes
	province = 347 #Würzburg
	name = "AI_EVENT"
	desc = "Palatinate"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = PFA value = 347 } #Würzburg
		command = { type = relation which = PFA value = 10 }
	}
}
event = {
	id = 5002038
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = PFA }
		NOT = { core = { province = 347 data = -1 } } #Würzburg
		AND = {
			exists = BAY
			OR = {
				event = 125021 #BAY: The Palatinate is united with Bavaria
				event = 125033 #BAY: The Palatinate is united with Bavaria
			}
			NOT = { owned = { province = 347 data = BAY } } #Würzburg
		}
	}
	random = yes
	province = 347 #Würzburg
	name = "AI_EVENT"
	desc = "Palatinate"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = BAY value = 347 } #Würzburg
		command = { type = relation which = BAY value = 10 }
	}
}

#Pomerania - Stettin
event = {
	id = 5002039
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = POM }
		NOT = { core = { province = 302 data = -1 } } #Hinterpommern
		NOT = {
			event = 291030 #SWE: The Acquisition of Pomerania
			event = 3896 #BRA: The Pommern Inheritance
			event = 132008 #BRA: The Pomeranian Inheritance
			event = 259016 #POM: The investiture of Brandenburg
			year = 1637
		}
	}
	random = yes
	province = 302 #Hinterpommern
	name = "AI_EVENT"
	desc = "Pomerania"

	action_a = {
		name = "OK"
		command = { type = independence which = POM }
	}
}
event = {
	id = 5002040
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = POM }
		NOT = { core = { province = 302 data = -1 } } #Hinterpommern
		AND = {
			exists = STT
			NOT = { owned = { province = 302 data = STT } } #Hinterpommern
		}
	}
	random = yes
	province = 302 #Hinterpommern
	name = "AI_EVENT"
	desc = "Pomerania"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = STT value = 302 } #Hinterpommern
		command = { type = relation which = STT value = 10 }
	}
}
event = {
	id = 5002041
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = POM }
		NOT = { core = { province = 302 data = -1 } } #Hinterpommern
		AND = {
			NOT = { exists = STT }
			exists = BRA
			OR = {
				event = 3896 #BRA: The Pommern Inheritance
				event = 132008 #BRA: The Pomeranian Inheritance
				event = 259016 #POM: The investiture of Brandenburg
			}
			NOT = { owned = { province = 302 data = BRA } } #Hinterpommern
		}
	}
	random = yes
	province = 302 #Hinterpommern
	name = "AI_EVENT"
	desc = "Pomerania"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = BRA value = 302 } #Hinterpommern
		command = { type = relation which = BRA value = 10 }
	}
}
event = {
	id = 5002042
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = POM }
		NOT = { core = { province = 302 data = -1 } } #Hinterpommern
		AND = {
			NOT = { exists = STT }
			NOT = { exists = BRA }
			AND = {
				exists = PRU
				event = 263014 #PRU: The Kingdom of Prussia
			}
			OR = {
				event = 3896 #BRA: The Pommern Inheritance
				event = 132008 #BRA: The Pomeranian Inheritance
				event = 259016 #POM: The investiture of Brandenburg
			}
			NOT = { owned = { province = 302 data = PRU } } #Hinterpommern
		}
	}
	random = yes
	province = 302 #Hinterpommern
	name = "AI_EVENT"
	desc = "Pomerania"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = PRU value = 302 } #Hinterpommern
		command = { type = relation which = PRU value = 10 }
	}
}
event = {
	id = 5002043
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = STT }
		NOT = { core = { province = 304 data = -1 } } #Vorpommern
		NOT = {
			event = 259000 #POM: Inheritance of Pomerania-Stettin
			AND = {
				event = 259001 #POM: Inheritance of Pomerania-Stettin
				NOT = {
					event = 132018 #BRA: Inheritance of Stettin
				}
			}
			event = 291029 #SWE: The Acquisition of Vorpommern
			event = 291030 #SWE: The Acquisition of Pomerania
			event = 3896 #BRA: The Pommern Inheritance
			event = 132008 #BRA: The Pomeranian Inheritance
			event = 259016 #POM: The investiture of Brandenburg
			year = 1570
		}
	}
	random = yes
	province = 304 #Vorpommern
	name = "AI_EVENT"
	desc = "Pomerania"

	action_a = {
		name = "OK"
		command = { type = independence which = STT }
	}
}
event = {
	id = 5002044
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = STT }
		NOT = { core = { province = 304 data = -1 } } #Vorpommern
		AND = {
			exists = POM
			OR = {
				event = 259000 #POM: Inheritance of Pomerania-Stettin
				AND = {
					event = 259001 #POM: Inheritance of Pomerania-Stettin
					NOT = {
						event = 132018 #BRA: Inheritance of Stettin
					}
				}
			}
			NOT = { owned = { province = 304 data = POM } } #Vorpommern
		}
	}
	random = yes
	province = 304 #Vorpommern
	name = "AI_EVENT"
	desc = "Pomerania"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = POM value = 304 } #Vorpommern
		command = { type = relation which = POM value = 10 }
	}
}
event = {
	id = 5002045
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = STT }
		NOT = { core = { province = 304 data = -1 } } #Vorpommern
		AND = {
			NOT = { exists = POM }
			AND = {
				exists = BRA
				OR = {
					event = 3896 #BRA: The Pommern Inheritance
					event = 132008 #BRA: The Pomeranian Inheritance
					event = 259016 #POM: The investiture of Brandenburg
				}
				NOT = { owned = { province = 304 data = BRA } } #Vorpommern
			}
		}
	}
	random = yes
	province = 304 #Vorpommern
	name = "AI_EVENT"
	desc = "Pomerania"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = BRA value = 304 } #Vorpommern
		command = { type = relation which = BRA value = 10 }
	}
}
event = {
	id = 5002046
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = POM }
		NOT = { core = { province = 304 data = -1 } } #Vorpommern
		AND = {
			NOT = { exists = POM }
			AND = {
				NOT = { exists = BRA }
				AND = {
					exists = PRU
					event = 263014 #PRU: The Kingdom of Prussia
				}
				OR = {
					event = 3896 #BRA: The Pommern Inheritance
					event = 132008 #BRA: The Pomeranian Inheritance
					event = 259016 #POM: The investiture of Brandenburg
				}
				NOT = { owned = { province = 304 data = PRU } } #Vorpommern
			}
		}
	}
	random = yes
	province = 304 #Vorpommern
	name = "AI_EVENT"
	desc = "Pomerania"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = PRU value = 304 } #Vorpommern
		command = { type = relation which = PRU value = 10 }
	}
}

#Saxony - Meissen
#simplified version
event = {
	id = 5002048
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = {
			exists = SAC
			exists = MEI
		}
		NOT = { core = { province = 332 data = -1 } } #Anhalt
	}
	random = yes
	province = 332 #Anhalt
	name = "AI_EVENT"
	desc = "Saxony"

	action_a = {
		name = "OK"
		command = { type = independence which = SAC }
	}
}
event = {
	id = 5002049
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		exists = SAC
		NOT = { core = { province = 332 data = -1 } } #Anhalt
		NOT = { owned = { province = 332 data = SAC } } #Anhalt
	}
	random = yes
	province = 332 #Anhalt
	name = "AI_EVENT"
	desc = "Saxony"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = SAC value = 332 } #Anhalt
		command = { type = relation which = SAC value = 10 }
	}
}
event = {
	id = 5002050
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = SAC }
		NOT = { core = { province = 332 data = -1 } } #Anhalt
		AND = {
			exists = MEI
			NOT = { year = 1600 }
			NOT = { owned = { province = 332 data = MEI } } #Anhalt
		}
	}
	random = yes
	province = 332 #Anhalt
	name = "AI_EVENT"
	desc = "Saxony"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = MEI value = 332 } #Anhalt
		command = { type = relation which = MEI value = 10 }
	}
}
event = {
	id = 5002051
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		exists = SAC
		NOT = { core = { province = 331 data = -1 } } #Sachsen
		NOT = { owned = { province = 331 data = SAC } } #Sachsen
	}
	random = yes
	province = 331 #Sachsen
	name = "AI_EVENT"
	desc = "Saxony"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = SAC value = 331 } #Sachsen
		command = { type = relation which = SAC value = 10 }
	}
}
event = {
	id = 5002052
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = SAC }
		NOT = { core = { province = 331 data = -1 } } #Sachsen
		AND = {
			exists = MEI
			NOT = { year = 1600 }
			NOT = { owned = { province = 331 data = MEI } } #Sachsen
		}
	}
	random = yes
	province = 331 #Sachsen
	name = "AI_EVENT"
	desc = "Saxony"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = MEI value = 331 } #Sachsen
		command = { type = relation which = MEI value = 10 }
	}
}

#Strassburg
event = {
	id = 5002053
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = STR }
		NOT = { core = { province = 374 data = -1 } } #Alsace
	}
	random = yes
	province = 374 #Alsace
	name = "AI_EVENT"
	desc = "Strassburg"

	action_a = {
		name = "OK"
		command = { type = independence which = STR }
	}
}

#Wirtemberg
event = {
	id = 5002054
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = WUR }
		NOT = { core = { province = 372 data = -1 } } #Württemberg
		NOT = {
			AND = {
				exists = HAB
				core = { province = 372 data = HAB } #covers HAB_179004 and HAB_179006
				NOT = { owned = { province = 372 data = HAB } } #Württemberg
			}
		}
	}
	random = yes
	province = 372 #Württemberg
	name = "AI_EVENT"
	desc = "Wirtemberg"

	action_a = {
		name = "OK"
		command = { type = independence which = WUR }
	}
}
event = {
	id = 5002055
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = WUR }
		NOT = { core = { province = 372 data = -1 } } #Württemberg
		AND = {
			exists = HAB
			core = { province = 372 data = HAB } #covers HAB_179004 and HAB_179006
		}
	}
	random = yes
	province = 372 #Württemberg
	name = "AI_EVENT"
	desc = "Wirtemberg"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = HAB value = 372 } #Württemberg
		command = { type = relation which = HAB value = 10 }
	}
}

#-----------------------------------------------------------------------------------------------

#-----------------------------------------------------------------------------------------------

#Baden
event = {
	id = 5003000
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = BAD }
		NOT = { core = { province = 373 data = -1 } } #Baden
	}
	random = yes
	province = 349 #Baden
	name = "AI_EVENT"
	desc = "Baden"

	action_a = {
		name = "OK"
		command = { type = independence which = BAD }
	}
}

#Bavaria
event = {
	id = 5003001
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = BAY }
		NOT = { core = { province = 349 data = -1 } } #Bayern
		NOT = {
			AND = {
				event = 255003 #PFA: The Palatinate inherits Bavaria
				NOT = {
					event = 125021 #BAY: The Palatinate is united with Bavaria
					event = 125033 #BAY: The Palatinate is united with Bavaria (Palatinate inherited Burgundy)
				}
			}
			event = 255008 #PFA: The Wittelsbach inheritance of Bavaria
		}
	}
	random = yes
	province = 349 #Bayern
	name = "AI_EVENT"
	desc = "Bavaria"

	action_a = {
		name = "OK"
		command = { type = independence which = BAY }
	}
}
event = {
	id = 5003002
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		exists = BAY
		NOT = { core = { province = 349 data = -1 } } #Bayern
		NOT = { owned = { province = 349 data = BAY } } #Bayern
	}
	random = yes
	province = 349 #Bayern
	name = "AI_EVENT"
	desc = "Bavaria"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = BAY value = 349 } #Bayern
		command = { type = relation which = BAY value = 10 }
	}
}
event = {
	id = 5003003
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = BAY }
		NOT = { core = { province = 349 data = -1 } } #Bayern
		AND = {
			exists = PFA
			OR = {
				AND = {
					event = 255003 #PFA: The Palatinate inherits Bavaria
					NOT = {
						event = 125021 #BAY: The Palatinate is united with Bavaria
						event = 125033 #BAY: The Palatinate is united with Bavaria (Palatinate inherited Burgundy)
					}
				}
				event = 255008 #PFA: The Wittelsbach inheritance of Bavaria
			}
			NOT = { owned = { province = 349 data = PFA } } #Bayern
		}
	}
	random = yes
	province = 349 #Bayern
	name = "AI_EVENT"
	desc = "Bavaria"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = PFA value = 349 } #Bayern
		command = { type = relation which = PFA value = 10 }
	}
}
event = {
	id = 5003004
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = BAY }
		NOT = { owned = { province = 349 data = -1 } } #Bayern
		NOT = { core = { province = 348 data = -1 } } #Ansbach
		year = 1430 #LUX and HAB before
		NOT = {
			AND = {
				event = 255003 #PFA: The Palatinate inherits Bavaria
				NOT = {
					event = 125021 #BAY: The Palatinate is united with Bavaria
					event = 125033 #BAY: The Palatinate is united with Bavaria (Palatinate inherited Burgundy)
				}
			}
			event = 255008 #PFA: The Wittelsbach inheritance of Bavaria
			event = 125035 #BAY: Straubing is ceded to Austria
			event = 255009 #PFA: Straubing is ceded to Austria
		}
	}
	random = yes
	province = 348 #Ansbach
	name = "AI_EVENT"
	desc = "Bavaria"

	action_a = {
		name = "OK"
		command = { type = independence which = BAY }
	}
}
event = {
	id = 5003005
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		exists = BAY
		NOT = { core = { province = 348 data = -1 } } #Ansbach
		year = 1430 #LUX and HAB before
		NOT = {
			AND = {
				exists = HAB
				OR = {
					event = 125035 #BAY: Straubing is ceded to Austria
					event = 255009 #PFA: Straubing is ceded to Austria
				}
			}
			NOT = { owned = { province = 348 data = BAY } } #Ansbach
		}
	}
	random = yes
	province = 348 #Ansbach
	name = "AI_EVENT"
	desc = "Bavaria"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = BAY value = 348 } #Ansbach
		command = { type = relation which = BAY value = 10 }
	}
}
event = {
	id = 5003006
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = BAY }
		NOT = { core = { province = 348 data = -1 } } #Ansbach
		year = 1430 #LUX and HAB before
		AND = {
			exists = PFA
			OR = {
				AND = {
					event = 255003 #PFA: The Palatinate inherits Bavaria
					NOT = {
						event = 125021 #BAY: The Palatinate is united with Bavaria
						event = 125033 #BAY: The Palatinate is united with Bavaria (Palatinate inherited Burgundy)
					}
				}
				event = 255008 #PFA: The Wittelsbach inheritance of Bavaria
			}
			NOT = {
				AND = {
					exists = HAB
					OR = {
						event = 125035 #BAY: Straubing is ceded to Austria
						event = 255009 #PFA: Straubing is ceded to Austria
					}
				}
			}
			NOT = { owned = { province = 348 data = PFA } } #Ansbach
		}
	}
	random = yes
	province = 348 #Ansbach
	name = "AI_EVENT"
	desc = "Bavaria"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = PFA value = 348 } #Ansbach
		command = { type = relation which = PFA value = 10 }
	}
}
event = {
	id = 5003007
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { core = { province = 348 data = -1 } } #Ansbach
		year = 1430 #LUX and HAB before
		AND = {
			exists = HAB
			OR = {
				event = 125035 #BAY: Straubing is ceded to Austria
				event = 255009 #PFA: Straubing is ceded to Austria
			}
			NOT = { owned = { province = 348 data = HAB } } #Ansbach
		}
	}
	random = yes
	province = 348 #Ansbach
	name = "AI_EVENT"
	desc = "Bavaria"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = HAB value = 348 } #Ansbach
		command = { type = relation which = HAB value = 10 }
	}
}

#Berg
#simplified version
event = {
	id = 5003008
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = BRG }
		NOT = { core = { province = 343 data = -1 } } #Kleves
		NOT = { year = 1609 }
	}
	random = yes
	province = 334 #Kleves
	name = "AI_EVENT"
	desc = "Berg"

	action_a = {
		name = "OK"
		command = { type = independence which = BRG }
	}
}

#Brandenburg - Prussia
event = {
	id = 5003009
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = BRA }
		NOT = { core = { province = 312 data = -1 } } #Brandenburg
		NOT = {
			AND = {
				exists = PRU
				event = 263014 #PRU: The Kingdom of Prussia
			}
		}
	}
	random = yes
	province = 312 #Brandenburg
	name = "AI_EVENT"
	desc = "Brandenburg"

	action_a = {
		name = "OK"
		command = { type = independence which = BRA }
	}
}
event = {
	id = 5003011
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = BRA }
		NOT = { core = { province = 312 data = -1 } } #Brandenburg
		AND = {
			exists = PRU
			event = 263014 #PRU: The Kingdom of Prussia
			NOT = { owned = { province = 312 data = PRU } } #Brandenburg
		}
	}
	random = yes
	province = 312 #Brandenburg
	name = "AI_EVENT"
	desc = "Brandenburg"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = PRU value = 312 } #Brandenburg
		command = { type = relation which = PRU value = 10 }
	}
}
event = {
	id = 5003012
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = BRA }
		NOT = { core = { province = 313 data = -1 } } #Küstrin
		NOT = { owned = { province = 312 data = -1 } } #Brandenburg
		NOT = {
			AND = {
				exists = PRU
				event = 263014 #PRU: The Kingdom of Prussia
			}
		}
	}
	random = yes
	province = 313 #Küstrin
	name = "AI_EVENT"
	desc = "Brandenburg"

	action_a = {
		name = "OK"
		command = { type = independence which = BRA }
	}
}
event = {
	id = 5003014
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		exists = BRA
		NOT = { core = { province = 313 data = -1 } } #Küstrin
		NOT = { owned = { province = 313 data = BRA } } #Küstrin
	}
	random = yes
	province = 313 #Küstrin
	name = "AI_EVENT"
	desc = "Brandenburg"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = BRA value = 313 } #Küstrin
		command = { type = relation which = BRA value = 10 }
	}
}
event = {
	id = 5003015
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = BRA }
		NOT = { core = { province = 313 data = -1 } } #Küstrin
		AND = {
			exists = PRU
			event = 263014 #PRU: The Kingdom of Prussia
			NOT = { owned = { province = 312 data = PRU } } #Brandenburg
		}
	}
	random = yes
	province = 313 #Küstrin
	name = "AI_EVENT"
	desc = "Brandenburg"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = PRU value = 313 } #Küstrin
		command = { type = relation which = PRU value = 10 }
	}
}
event = {
	id = 5003016
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		exists = BRA
		NOT = { core = { province = 311 data = -1 } } #Magdeburg
		NOT = { owned = { province = 311 data = BRA } } #Magdeburg
	}
	random = yes
	province = 311 #Magdeburg
	name = "AI_EVENT"
	desc = "Brandenburg"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = BRA value = 311 } #Magdeburg
		command = { type = relation which = BRA value = 10 }
	}
}
event = {
	id = 5003017
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = BRA }
		NOT = { core = { province = 311 data = -1 } } #Magdeburg
		AND = {
			exists = PRU
			event = 263014 #PRU: The Kingdom of Prussia
			NOT = { owned = { province = 311 data = PRU } } #Magdeburg
		}
	}
	random = yes
	province = 311 #Magdeburg
	name = "AI_EVENT"
	desc = "Brandenburg"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = PRU value = 311 } #Magdeburg
		command = { type = relation which = PRU value = 10 }
	}
}

#Bremen
event = {
	id = 5003018
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = BRE }
		NOT = { core = { province = 336 data = -1 } } #Bremen
	}
	random = yes
	province = 336 #Bremen
	name = "AI_EVENT"
	desc = "Bremen"

	action_a = {
		name = "OK"
		command = { type = independence which = BRE }
	}
}

#Cleves
#simplified version
event = {
	id = 5003019
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = KLE }
		NOT = { core = { province = 334 data = -1 } } #Münster
		NOT = {
			event = 235009 #BRG: Union with Kleve-Mark
			year = 1609
		}
	}
	random = yes
	province = 334 #Münster
	name = "AI_EVENT"
	desc = "Cleves"

	action_a = {
		name = "OK"
		command = { type = independence which = KLE }
	}
}
event = {
	id = 5003020
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = KLE }
		NOT = { core = { province = 334 data = -1 } } #Münster
		AND = {
			exists = BRG
			event = 235009 #BRG: Union with Kleve-Mark
			NOT = { owned = { province = 334 data = BRG } } #Münster
			NOT = { year = 1609 }
		}
	}
	random = yes
	province = 334 #Münster
	name = "AI_EVENT"
	desc = "Cleves"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = BRG value = 334 } #Münster
		command = { type = relation which = BRG value = 10 }
	}
}

#Cologne
event = {
	id = 5003021
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = KOL }
		NOT = { core = { province = 344 data = -1 } } #Köln
	}
	random = yes
	province = 344 #Köln
	name = "AI_EVENT"
	desc = "Cologne"

	action_a = {
		name = "OK"
		command = { type = independence which = KOL }
	}
}

#Hanover
event = {
	id = 5003022
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = HAN }
		NOT = { core = { province = 310 data = -1 } } #Hannover
	}
	random = yes
	province = 310 #Hannover
	name = "AI_EVENT"
	desc = "Hanover"

	action_a = {
		name = "OK"
		command = { type = independence which = HAN }
	}
}

#Hesse
event = {
	id = 5003023
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = HES }
		NOT = { core = { province = 333 data = -1 } } #Hessen
	}
	random = yes
	province = 333 #Hessen
	name = "AI_EVENT"
	desc = "Hesse"

	action_a = {
		name = "OK"
		command = { type = independence which = HES }
	}
}

#Holstein
event = {
	id = 5003024
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = SHL }
		NOT = { core = { province = 306 data = -1 } } #Holstein
		NOT = {
			AND = {
				event = 159034 #DAN: Denmark inherits Holstein
				NOT = { event = 159011 } #DAN: The fate of Holstein
			}
			event = 247002 #OLD: Oldenburg inherits Holstein
		}
	}
	random = yes
	province = 306 #Holstein
	name = "AI_EVENT"
	desc = "Holstein"

	action_a = {
		name = "OK"
		command = { type = independence which = SHL }
	}
}
event = {
	id = 5003010
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = SHL }
		NOT = { core = { province = 306 data = -1 } } #Holstein
		AND = {
			exists = OLD
			event = 247002 #OLD: Oldenburg inherits Holstein
			NOT = { owned = { province = 306 data = OLD } } #Holstein
		}
	}
	random = yes
	province = 306 #Holstein
	name = "AI_EVENT"
	desc = "Holstein"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = OLD value = 306 } #Holstein
		command = { type = relation which = OLD value = 10 }
	}
}

#Lorraine
event = {
	id = 5003026
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = LOR }
		NOT = { core = { province = 375 data = -1 } } #Lorraine
		NOT = {
			event = 3736 #FRA: French Inheritance of Lothringen
			year = 1766
		}
	}
	random = yes
	province = 375 #Lorraine
	name = "AI_EVENT"
	desc = "Lorraine"

	action_a = {
		name = "OK"
		command = { type = independence which = LOR }
	}
}

#Luxemburg
event = {
	id = 5003028
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = LUX }
		NOT = { core = { province = 377 data = -1 } } #Luxembourg
		NOT = {
			event = 137306 #BUR: Annexation of Luxemburg
			year = 1451 #Burgundian monarchs
		}
	}
	random = yes
	province = 377 #Luxembourg
	name = "AI_EVENT"
	desc = "Luxemburg"

	action_a = {
		name = "OK"
		command = { type = independence which = LUX }
	}
}
event = {
	id = 5003029
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = LUX }
		NOT = { core = { province = 377 data = -1 } } #Luxembourg
		AND = {
			exists = BUR
			event = 137306 #BUR: Annexation of Luxemburg
			NOT = { owned = { province = 377 data = BUR } } #Luxembourg
		}
	}
	random = yes
	province = 377 #Luxembourg
	name = "AI_EVENT"
	desc = "Luxemburg"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = BUR value = 377 } #Luxembourg
		command = { type = relation which = BUR value = 10 }
	}
}

#Mainz
event = {
	id = 5003030
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = MAI }
		NOT = { core = { province = 346 data = -1 } } #Mainz
	}
	random = yes
	province = 346 #Mainz
	name = "AI_EVENT"
	desc = "Mainz"

	action_a = {
		name = "OK"
		command = { type = independence which = MAI }
	}
}

#Mecklenburg
event = {
	id = 5003031
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = MEC }
		NOT = { core = { province = 305 data = -1 } } #Mecklenburg
	}
	random = yes
	province = 305 #Mecklenburg
	name = "AI_EVENT"
	desc = "Mecklenburg"

	action_a = {
		name = "OK"
		command = { type = independence which = MEC }
	}
}

#Oldenburg
event = {
	id = 5003032
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = OLD }
		NOT = { core = { province = 335 data = -1 } } #Oldenburg
		NOT = {
			event = 159033 #DAN: Oldenburg is incorporated into Denmark
			event = 279010 #SHL: Holstein inherits Oldenburg
		}
	}
	random = yes
	province = 335 #Oldenburg
	name = "AI_EVENT"
	desc = "Oldenburg"

	action_a = {
		name = "OK"
		command = { type = independence which = OLD }
	}
}
event = {
	id = 5003013
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = OLD }
		NOT = { core = { province = 335 data = -1 } } #Oldenburg
		AND = {
			exists = SHL
			event = 279010 #SHL: Holstein inherits Oldenburg
			NOT = { owned = { province = 335 data = SHL } } #Oldenburg
		}
	}
	random = yes
	province = 335 #Oldenburg
	name = "AI_EVENT"
	desc = "Oldenburg"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = SHL value = 335 } #Oldenburg
		command = { type = relation which = SHL value = 10 }
	}
}

#Palatinate
event = {
	id = 5003033
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = PFA }
		NOT = { core = { province = 345 data = -1 } } #Pfalz
		NOT = {
			event = 125021 #BAY: The Palatinate is united with Bavaria
			event = 125033 #BAY: The Palatinate is united with Bavaria
		}
	}
	random = yes
	province = 345 #Pfalz
	name = "AI_EVENT"
	desc = "Palatinate"

	action_a = {
		name = "OK"
		command = { type = independence which = PFA }
	}
}
event = {
	id = 5003034
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		exists = PFA
		NOT = { core = { province = 345 data = -1 } } #Pfalz
	}
	random = yes
	province = 345 #Pfalz
	name = "AI_EVENT"
	desc = "Palatinate"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = PFA value = 345 } #Pfalz
		command = { type = relation which = PFA value = 10 }
	}
}
event = {
	id = 5003035
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = PFA }
		NOT = { core = { province = 345 data = -1 } } #Pfalz
		AND = {
			exists = BAY
			OR = {
				event = 125021 #BAY: The Palatinate is united with Bavaria
				event = 125033 #BAY: The Palatinate is united with Bavaria
			}
			NOT = { owned = { province = 345 data = BAY } } #Pfalz
		}
	}
	random = yes
	province = 345 #Pfalz
	name = "AI_EVENT"
	desc = "Palatinate"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = BAY value = 345 } #Pfalz
		command = { type = relation which = BAY value = 10 }
	}
}
event = {
	id = 5003036
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = PFA }
		NOT = { owned = { province = 345 data = -1 } } #Pfalz
		NOT = { core = { province = 347 data = -1 } } #Würzburg
		NOT = {
			event = 125021 #BAY: The Palatinate is united with Bavaria
			event = 125033 #BAY: The Palatinate is united with Bavaria
		}
	}
	random = yes
	province = 347 #Würzburg
	name = "AI_EVENT"
	desc = "Palatinate"

	action_a = {
		name = "OK"
		command = { type = independence which = PFA }
	}
}
event = {
	id = 5003037
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		exists = PFA
		NOT = { core = { province = 347 data = -1 } } #Würzburg
	}
	random = yes
	province = 347 #Würzburg
	name = "AI_EVENT"
	desc = "Palatinate"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = PFA value = 347 } #Würzburg
		command = { type = relation which = PFA value = 10 }
	}
}
event = {
	id = 5003038
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = PFA }
		NOT = { core = { province = 347 data = -1 } } #Würzburg
		AND = {
			exists = BAY
			OR = {
				event = 125021 #BAY: The Palatinate is united with Bavaria
				event = 125033 #BAY: The Palatinate is united with Bavaria
			}
			NOT = { owned = { province = 347 data = BAY } } #Würzburg
		}
	}
	random = yes
	province = 347 #Würzburg
	name = "AI_EVENT"
	desc = "Palatinate"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = BAY value = 347 } #Würzburg
		command = { type = relation which = BAY value = 10 }
	}
}

#Pomerania - Stettin
event = {
	id = 5003039
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = POM }
		NOT = { core = { province = 302 data = -1 } } #Hinterpommern
		NOT = {
			event = 291030 #SWE: The Acquisition of Pomerania
			event = 3896 #BRA: The Pommern Inheritance
			event = 132008 #BRA: The Pomeranian Inheritance
			event = 259016 #POM: The investiture of Brandenburg
			year = 1637
		}
	}
	random = yes
	province = 302 #Hinterpommern
	name = "AI_EVENT"
	desc = "Pomerania"

	action_a = {
		name = "OK"
		command = { type = independence which = POM }
	}
}
event = {
	id = 5003040
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = POM }
		NOT = { core = { province = 302 data = -1 } } #Hinterpommern
		AND = {
			exists = STT
			NOT = { owned = { province = 302 data = STT } } #Hinterpommern
		}
	}
	random = yes
	province = 302 #Hinterpommern
	name = "AI_EVENT"
	desc = "Pomerania"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = STT value = 302 } #Hinterpommern
		command = { type = relation which = STT value = 10 }
	}
}
event = {
	id = 5003041
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = POM }
		NOT = { core = { province = 302 data = -1 } } #Hinterpommern
		AND = {
			NOT = { exists = STT }
			exists = BRA
			OR = {
				event = 3896 #BRA: The Pommern Inheritance
				event = 132008 #BRA: The Pomeranian Inheritance
				event = 259016 #POM: The investiture of Brandenburg
			}
			NOT = { owned = { province = 302 data = BRA } } #Hinterpommern
		}
	}
	random = yes
	province = 302 #Hinterpommern
	name = "AI_EVENT"
	desc = "Pomerania"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = BRA value = 302 } #Hinterpommern
		command = { type = relation which = BRA value = 10 }
	}
}
event = {
	id = 5003042
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = POM }
		NOT = { core = { province = 302 data = -1 } } #Hinterpommern
		AND = {
			NOT = { exists = STT }
			NOT = { exists = BRA }
			AND = {
				exists = PRU
				event = 263014 #PRU: The Kingdom of Prussia
			}
			OR = {
				event = 3896 #BRA: The Pommern Inheritance
				event = 132008 #BRA: The Pomeranian Inheritance
				event = 259016 #POM: The investiture of Brandenburg
			}
			NOT = { owned = { province = 302 data = PRU } } #Hinterpommern
		}
	}
	random = yes
	province = 302 #Hinterpommern
	name = "AI_EVENT"
	desc = "Pomerania"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = PRU value = 302 } #Hinterpommern
		command = { type = relation which = PRU value = 10 }
	}
}
event = {
	id = 5003043
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = STT }
		NOT = { core = { province = 304 data = -1 } } #Vorpommern
		NOT = {
			event = 259000 #POM: Inheritance of Pomerania-Stettin
			AND = {
				event = 259001 #POM: Inheritance of Pomerania-Stettin
				NOT = {
					event = 132018 #BRA: Inheritance of Stettin
				}
			}
			event = 291029 #SWE: The Acquisition of Vorpommern
			event = 291030 #SWE: The Acquisition of Pomerania
			event = 3896 #BRA: The Pommern Inheritance
			event = 132008 #BRA: The Pomeranian Inheritance
			event = 259016 #POM: The investiture of Brandenburg
			year = 1570
		}
	}
	random = yes
	province = 304 #Vorpommern
	name = "AI_EVENT"
	desc = "Pomerania"

	action_a = {
		name = "OK"
		command = { type = independence which = STT }
	}
}
event = {
	id = 5003044
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = STT }
		NOT = { core = { province = 304 data = -1 } } #Vorpommern
		AND = {
			exists = POM
			OR = {
				event = 259000 #POM: Inheritance of Pomerania-Stettin
				AND = {
					event = 259001 #POM: Inheritance of Pomerania-Stettin
					NOT = {
						event = 132018 #BRA: Inheritance of Stettin
					}
				}
			}
			NOT = { owned = { province = 304 data = POM } } #Vorpommern
		}
	}
	random = yes
	province = 304 #Vorpommern
	name = "AI_EVENT"
	desc = "Pomerania"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = POM value = 304 } #Vorpommern
		command = { type = relation which = POM value = 10 }
	}
}
event = {
	id = 5003045
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = STT }
		NOT = { core = { province = 304 data = -1 } } #Vorpommern
		AND = {
			NOT = { exists = POM }
			AND = {
				exists = BRA
				OR = {
					event = 3896 #BRA: The Pommern Inheritance
					event = 132008 #BRA: The Pomeranian Inheritance
					event = 259016 #POM: The investiture of Brandenburg
				}
				NOT = { owned = { province = 304 data = BRA } } #Vorpommern
			}
		}
	}
	random = yes
	province = 304 #Vorpommern
	name = "AI_EVENT"
	desc = "Pomerania"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = BRA value = 304 } #Vorpommern
		command = { type = relation which = BRA value = 10 }
	}
}
event = {
	id = 5003046
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = POM }
		NOT = { core = { province = 304 data = -1 } } #Vorpommern
		AND = {
			NOT = { exists = POM }
			AND = {
				NOT = { exists = BRA }
				AND = {
					exists = PRU
					event = 263014 #PRU: The Kingdom of Prussia
				}
				OR = {
					event = 3896 #BRA: The Pommern Inheritance
					event = 132008 #BRA: The Pomeranian Inheritance
					event = 259016 #POM: The investiture of Brandenburg
				}
				NOT = { owned = { province = 304 data = PRU } } #Vorpommern
			}
		}
	}
	random = yes
	province = 304 #Vorpommern
	name = "AI_EVENT"
	desc = "Pomerania"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = PRU value = 304 } #Vorpommern
		command = { type = relation which = PRU value = 10 }
	}
}

#Saxony - Meissen
#simplified version
event = {
	id = 5003048
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = {
			exists = SAC
			exists = MEI
		}
		NOT = { core = { province = 332 data = -1 } } #Anhalt
	}
	random = yes
	province = 332 #Anhalt
	name = "AI_EVENT"
	desc = "Saxony"

	action_a = {
		name = "OK"
		command = { type = independence which = SAC }
	}
}
event = {
	id = 5003049
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		exists = SAC
		NOT = { core = { province = 332 data = -1 } } #Anhalt
		NOT = { owned = { province = 332 data = SAC } } #Anhalt
	}
	random = yes
	province = 332 #Anhalt
	name = "AI_EVENT"
	desc = "Saxony"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = SAC value = 332 } #Anhalt
		command = { type = relation which = SAC value = 10 }
	}
}
event = {
	id = 5003050
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = SAC }
		NOT = { core = { province = 332 data = -1 } } #Anhalt
		AND = {
			exists = MEI
			NOT = { year = 1600 }
			NOT = { owned = { province = 332 data = MEI } } #Anhalt
		}
	}
	random = yes
	province = 332 #Anhalt
	name = "AI_EVENT"
	desc = "Saxony"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = MEI value = 332 } #Anhalt
		command = { type = relation which = MEI value = 10 }
	}
}
event = {
	id = 5003051
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		exists = SAC
		NOT = { core = { province = 331 data = -1 } } #Sachsen
		NOT = { owned = { province = 331 data = SAC } } #Sachsen
	}
	random = yes
	province = 331 #Sachsen
	name = "AI_EVENT"
	desc = "Saxony"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = SAC value = 331 } #Sachsen
		command = { type = relation which = SAC value = 10 }
	}
}
event = {
	id = 5003052
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = SAC }
		NOT = { core = { province = 331 data = -1 } } #Sachsen
		AND = {
			exists = MEI
			NOT = { year = 1600 }
			NOT = { owned = { province = 331 data = MEI } } #Sachsen
		}
	}
	random = yes
	province = 331 #Sachsen
	name = "AI_EVENT"
	desc = "Saxony"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = MEI value = 331 } #Sachsen
		command = { type = relation which = MEI value = 10 }
	}
}

#Strassburg
event = {
	id = 5003053
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = STR }
		NOT = { core = { province = 374 data = -1 } } #Alsace
	}
	random = yes
	province = 374 #Alsace
	name = "AI_EVENT"
	desc = "Strassburg"

	action_a = {
		name = "OK"
		command = { type = independence which = STR }
	}
}

#Wirtemberg
event = {
	id = 5003054
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = WUR }
		NOT = { core = { province = 372 data = -1 } } #Württemberg
		NOT = {
			AND = {
				exists = HAB
				core = { province = 372 data = HAB } #covers HAB_179004 and HAB_179006
				NOT = { owned = { province = 372 data = HAB } } #Württemberg
			}
		}
	}
	random = yes
	province = 372 #Württemberg
	name = "AI_EVENT"
	desc = "Wirtemberg"

	action_a = {
		name = "OK"
		command = { type = independence which = WUR }
	}
}
event = {
	id = 5003055
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = WUR }
		NOT = { core = { province = 372 data = -1 } } #Württemberg
		AND = {
			exists = HAB
			core = { province = 372 data = HAB } #covers HAB_179004 and HAB_179006
		}
	}
	random = yes
	province = 372 #Württemberg
	name = "AI_EVENT"
	desc = "Wirtemberg"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = HAB value = 372 } #Württemberg
		command = { type = relation which = HAB value = 10 }
	}
}

#-----------------------------------------------------------------------------------------------

#-----------------------------------------------------------------------------------------------

#Baden
event = {
	id = 5004000
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = BAD }
		NOT = { core = { province = 373 data = -1 } } #Baden
	}
	random = yes
	province = 349 #Baden
	name = "AI_EVENT"
	desc = "Baden"

	action_a = {
		name = "OK"
		command = { type = independence which = BAD }
	}
}

#Bavaria
event = {
	id = 5004001
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = BAY }
		NOT = { core = { province = 349 data = -1 } } #Bayern
		NOT = {
			AND = {
				event = 255003 #PFA: The Palatinate inherits Bavaria
				NOT = {
					event = 125021 #BAY: The Palatinate is united with Bavaria
					event = 125033 #BAY: The Palatinate is united with Bavaria (Palatinate inherited Burgundy)
				}
			}
			event = 255008 #PFA: The Wittelsbach inheritance of Bavaria
		}
	}
	random = yes
	province = 349 #Bayern
	name = "AI_EVENT"
	desc = "Bavaria"

	action_a = {
		name = "OK"
		command = { type = independence which = BAY }
	}
}
event = {
	id = 5004002
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		exists = BAY
		NOT = { core = { province = 349 data = -1 } } #Bayern
		NOT = { owned = { province = 349 data = BAY } } #Bayern
	}
	random = yes
	province = 349 #Bayern
	name = "AI_EVENT"
	desc = "Bavaria"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = BAY value = 349 } #Bayern
		command = { type = relation which = BAY value = 10 }
	}
}
event = {
	id = 5004003
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = BAY }
		NOT = { core = { province = 349 data = -1 } } #Bayern
		AND = {
			exists = PFA
			OR = {
				AND = {
					event = 255003 #PFA: The Palatinate inherits Bavaria
					NOT = {
						event = 125021 #BAY: The Palatinate is united with Bavaria
						event = 125033 #BAY: The Palatinate is united with Bavaria (Palatinate inherited Burgundy)
					}
				}
				event = 255008 #PFA: The Wittelsbach inheritance of Bavaria
			}
			NOT = { owned = { province = 349 data = PFA } } #Bayern
		}
	}
	random = yes
	province = 349 #Bayern
	name = "AI_EVENT"
	desc = "Bavaria"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = PFA value = 349 } #Bayern
		command = { type = relation which = PFA value = 10 }
	}
}
event = {
	id = 5004004
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = BAY }
		NOT = { owned = { province = 349 data = -1 } } #Bayern
		NOT = { core = { province = 348 data = -1 } } #Ansbach
		year = 1430 #LUX and HAB before
		NOT = {
			AND = {
				event = 255003 #PFA: The Palatinate inherits Bavaria
				NOT = {
					event = 125021 #BAY: The Palatinate is united with Bavaria
					event = 125033 #BAY: The Palatinate is united with Bavaria (Palatinate inherited Burgundy)
				}
			}
			event = 255008 #PFA: The Wittelsbach inheritance of Bavaria
			event = 125035 #BAY: Straubing is ceded to Austria
			event = 255009 #PFA: Straubing is ceded to Austria
		}
	}
	random = yes
	province = 348 #Ansbach
	name = "AI_EVENT"
	desc = "Bavaria"

	action_a = {
		name = "OK"
		command = { type = independence which = BAY }
	}
}
event = {
	id = 5004005
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		exists = BAY
		NOT = { core = { province = 348 data = -1 } } #Ansbach
		year = 1430 #LUX and HAB before
		NOT = {
			AND = {
				exists = HAB
				OR = {
					event = 125035 #BAY: Straubing is ceded to Austria
					event = 255009 #PFA: Straubing is ceded to Austria
				}
			}
			NOT = { owned = { province = 348 data = BAY } } #Ansbach
		}
	}
	random = yes
	province = 348 #Ansbach
	name = "AI_EVENT"
	desc = "Bavaria"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = BAY value = 348 } #Ansbach
		command = { type = relation which = BAY value = 10 }
	}
}
event = {
	id = 5004006
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = BAY }
		NOT = { core = { province = 348 data = -1 } } #Ansbach
		year = 1430 #LUX and HAB before
		AND = {
			exists = PFA
			OR = {
				AND = {
					event = 255003 #PFA: The Palatinate inherits Bavaria
					NOT = {
						event = 125021 #BAY: The Palatinate is united with Bavaria
						event = 125033 #BAY: The Palatinate is united with Bavaria (Palatinate inherited Burgundy)
					}
				}
				event = 255008 #PFA: The Wittelsbach inheritance of Bavaria
			}
			NOT = {
				AND = {
					exists = HAB
					OR = {
						event = 125035 #BAY: Straubing is ceded to Austria
						event = 255009 #PFA: Straubing is ceded to Austria
					}
				}
			}
			NOT = { owned = { province = 348 data = PFA } } #Ansbach
		}
	}
	random = yes
	province = 348 #Ansbach
	name = "AI_EVENT"
	desc = "Bavaria"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = PFA value = 348 } #Ansbach
		command = { type = relation which = PFA value = 10 }
	}
}
event = {
	id = 5004007
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { core = { province = 348 data = -1 } } #Ansbach
		year = 1430 #LUX and HAB before
		AND = {
			exists = HAB
			OR = {
				event = 125035 #BAY: Straubing is ceded to Austria
				event = 255009 #PFA: Straubing is ceded to Austria
			}
			NOT = { owned = { province = 348 data = HAB } } #Ansbach
		}
	}
	random = yes
	province = 348 #Ansbach
	name = "AI_EVENT"
	desc = "Bavaria"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = HAB value = 348 } #Ansbach
		command = { type = relation which = HAB value = 10 }
	}
}

#Berg
#simplified version
event = {
	id = 5004008
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = BRG }
		NOT = { core = { province = 343 data = -1 } } #Kleves
		NOT = { year = 1609 }
	}
	random = yes
	province = 334 #Kleves
	name = "AI_EVENT"
	desc = "Berg"

	action_a = {
		name = "OK"
		command = { type = independence which = BRG }
	}
}

#Brandenburg - Prussia
event = {
	id = 5004009
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = BRA }
		NOT = { core = { province = 312 data = -1 } } #Brandenburg
		NOT = {
			AND = {
				exists = PRU
				event = 263014 #PRU: The Kingdom of Prussia
			}
		}
	}
	random = yes
	province = 312 #Brandenburg
	name = "AI_EVENT"
	desc = "Brandenburg"

	action_a = {
		name = "OK"
		command = { type = independence which = BRA }
	}
}
event = {
	id = 5004011
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = BRA }
		NOT = { core = { province = 312 data = -1 } } #Brandenburg
		AND = {
			exists = PRU
			event = 263014 #PRU: The Kingdom of Prussia
			NOT = { owned = { province = 312 data = PRU } } #Brandenburg
		}
	}
	random = yes
	province = 312 #Brandenburg
	name = "AI_EVENT"
	desc = "Brandenburg"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = PRU value = 312 } #Brandenburg
		command = { type = relation which = PRU value = 10 }
	}
}
event = {
	id = 5004012
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = BRA }
		NOT = { core = { province = 313 data = -1 } } #Küstrin
		NOT = { owned = { province = 312 data = -1 } } #Brandenburg
		NOT = {
			AND = {
				exists = PRU
				event = 263014 #PRU: The Kingdom of Prussia
			}
		}
	}
	random = yes
	province = 313 #Küstrin
	name = "AI_EVENT"
	desc = "Brandenburg"

	action_a = {
		name = "OK"
		command = { type = independence which = BRA }
	}
}
event = {
	id = 5004014
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		exists = BRA
		NOT = { core = { province = 313 data = -1 } } #Küstrin
		NOT = { owned = { province = 313 data = BRA } } #Küstrin
	}
	random = yes
	province = 313 #Küstrin
	name = "AI_EVENT"
	desc = "Brandenburg"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = BRA value = 313 } #Küstrin
		command = { type = relation which = BRA value = 10 }
	}
}
event = {
	id = 5004015
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = BRA }
		NOT = { core = { province = 313 data = -1 } } #Küstrin
		AND = {
			exists = PRU
			event = 263014 #PRU: The Kingdom of Prussia
			NOT = { owned = { province = 312 data = PRU } } #Brandenburg
		}
	}
	random = yes
	province = 313 #Küstrin
	name = "AI_EVENT"
	desc = "Brandenburg"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = PRU value = 313 } #Küstrin
		command = { type = relation which = PRU value = 10 }
	}
}
event = {
	id = 5004016
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		exists = BRA
		NOT = { core = { province = 311 data = -1 } } #Magdeburg
		NOT = { owned = { province = 311 data = BRA } } #Magdeburg
	}
	random = yes
	province = 311 #Magdeburg
	name = "AI_EVENT"
	desc = "Brandenburg"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = BRA value = 311 } #Magdeburg
		command = { type = relation which = BRA value = 10 }
	}
}
event = {
	id = 5004017
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = BRA }
		NOT = { core = { province = 311 data = -1 } } #Magdeburg
		AND = {
			exists = PRU
			event = 263014 #PRU: The Kingdom of Prussia
			NOT = { owned = { province = 311 data = PRU } } #Magdeburg
		}
	}
	random = yes
	province = 311 #Magdeburg
	name = "AI_EVENT"
	desc = "Brandenburg"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = PRU value = 311 } #Magdeburg
		command = { type = relation which = PRU value = 10 }
	}
}

#Bremen
event = {
	id = 5004018
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = BRE }
		NOT = { core = { province = 336 data = -1 } } #Bremen
	}
	random = yes
	province = 336 #Bremen
	name = "AI_EVENT"
	desc = "Bremen"

	action_a = {
		name = "OK"
		command = { type = independence which = BRE }
	}
}

#Cleves
#simplified version
event = {
	id = 5004019
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = KLE }
		NOT = { core = { province = 334 data = -1 } } #Münster
		NOT = {
			event = 235009 #BRG: Union with Kleve-Mark
			year = 1609
		}
	}
	random = yes
	province = 334 #Münster
	name = "AI_EVENT"
	desc = "Cleves"

	action_a = {
		name = "OK"
		command = { type = independence which = KLE }
	}
}
event = {
	id = 5004020
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = KLE }
		NOT = { core = { province = 334 data = -1 } } #Münster
		AND = {
			exists = BRG
			event = 235009 #BRG: Union with Kleve-Mark
			NOT = { owned = { province = 334 data = BRG } } #Münster
			NOT = { year = 1609 }
		}
	}
	random = yes
	province = 334 #Münster
	name = "AI_EVENT"
	desc = "Cleves"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = BRG value = 334 } #Münster
		command = { type = relation which = BRG value = 10 }
	}
}

#Cologne
event = {
	id = 5004021
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = KOL }
		NOT = { core = { province = 344 data = -1 } } #Köln
	}
	random = yes
	province = 344 #Köln
	name = "AI_EVENT"
	desc = "Cologne"

	action_a = {
		name = "OK"
		command = { type = independence which = KOL }
	}
}

#Hanover
event = {
	id = 5004022
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = HAN }
		NOT = { core = { province = 310 data = -1 } } #Hannover
	}
	random = yes
	province = 310 #Hannover
	name = "AI_EVENT"
	desc = "Hanover"

	action_a = {
		name = "OK"
		command = { type = independence which = HAN }
	}
}

#Hesse
event = {
	id = 5004023
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = HES }
		NOT = { core = { province = 333 data = -1 } } #Hessen
	}
	random = yes
	province = 333 #Hessen
	name = "AI_EVENT"
	desc = "Hesse"

	action_a = {
		name = "OK"
		command = { type = independence which = HES }
	}
}

#Holstein
event = {
	id = 5004024
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = SHL }
		NOT = { core = { province = 306 data = -1 } } #Holstein
		NOT = {
			AND = {
				event = 159034 #DAN: Denmark inherits Holstein
				NOT = { event = 159011 } #DAN: The fate of Holstein
			}
			event = 247002 #OLD: Oldenburg inherits Holstein
		}
	}
	random = yes
	province = 306 #Holstein
	name = "AI_EVENT"
	desc = "Holstein"

	action_a = {
		name = "OK"
		command = { type = independence which = SHL }
	}
}
event = {
	id = 5004010
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = SHL }
		NOT = { core = { province = 306 data = -1 } } #Holstein
		AND = {
			exists = OLD
			event = 247002 #OLD: Oldenburg inherits Holstein
			NOT = { owned = { province = 306 data = OLD } } #Holstein
		}
	}
	random = yes
	province = 306 #Holstein
	name = "AI_EVENT"
	desc = "Holstein"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = OLD value = 306 } #Holstein
		command = { type = relation which = OLD value = 10 }
	}
}

#Lorraine
event = {
	id = 5004026
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = LOR }
		NOT = { core = { province = 375 data = -1 } } #Lorraine
		NOT = {
			event = 3736 #FRA: French Inheritance of Lothringen
			year = 1766
		}
	}
	random = yes
	province = 375 #Lorraine
	name = "AI_EVENT"
	desc = "Lorraine"

	action_a = {
		name = "OK"
		command = { type = independence which = LOR }
	}
}

#Luxemburg
event = {
	id = 5004028
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = LUX }
		NOT = { core = { province = 377 data = -1 } } #Luxembourg
		NOT = {
			event = 137306 #BUR: Annexation of Luxemburg
			year = 1451 #Burgundian monarchs
		}
	}
	random = yes
	province = 377 #Luxembourg
	name = "AI_EVENT"
	desc = "Luxemburg"

	action_a = {
		name = "OK"
		command = { type = independence which = LUX }
	}
}
event = {
	id = 5004029
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = LUX }
		NOT = { core = { province = 377 data = -1 } } #Luxembourg
		AND = {
			exists = BUR
			event = 137306 #BUR: Annexation of Luxemburg
			NOT = { owned = { province = 377 data = BUR } } #Luxembourg
		}
	}
	random = yes
	province = 377 #Luxembourg
	name = "AI_EVENT"
	desc = "Luxemburg"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = BUR value = 377 } #Luxembourg
		command = { type = relation which = BUR value = 10 }
	}
}

#Mainz
event = {
	id = 5004030
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = MAI }
		NOT = { core = { province = 346 data = -1 } } #Mainz
	}
	random = yes
	province = 346 #Mainz
	name = "AI_EVENT"
	desc = "Mainz"

	action_a = {
		name = "OK"
		command = { type = independence which = MAI }
	}
}

#Mecklenburg
event = {
	id = 5004031
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = MEC }
		NOT = { core = { province = 305 data = -1 } } #Mecklenburg
	}
	random = yes
	province = 305 #Mecklenburg
	name = "AI_EVENT"
	desc = "Mecklenburg"

	action_a = {
		name = "OK"
		command = { type = independence which = MEC }
	}
}

#Oldenburg
event = {
	id = 5004032
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = OLD }
		NOT = { core = { province = 335 data = -1 } } #Oldenburg
		NOT = {
			event = 159033 #DAN: Oldenburg is incorporated into Denmark
			event = 279010 #SHL: Holstein inherits Oldenburg
		}
	}
	random = yes
	province = 335 #Oldenburg
	name = "AI_EVENT"
	desc = "Oldenburg"

	action_a = {
		name = "OK"
		command = { type = independence which = OLD }
	}
}
event = {
	id = 5004013
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = OLD }
		NOT = { core = { province = 335 data = -1 } } #Oldenburg
		AND = {
			exists = SHL
			event = 279010 #SHL: Holstein inherits Oldenburg
			NOT = { owned = { province = 335 data = SHL } } #Oldenburg
		}
	}
	random = yes
	province = 335 #Oldenburg
	name = "AI_EVENT"
	desc = "Oldenburg"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = SHL value = 335 } #Oldenburg
		command = { type = relation which = SHL value = 10 }
	}
}

#Palatinate
event = {
	id = 5004033
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = PFA }
		NOT = { core = { province = 345 data = -1 } } #Pfalz
		NOT = {
			event = 125021 #BAY: The Palatinate is united with Bavaria
			event = 125033 #BAY: The Palatinate is united with Bavaria
		}
	}
	random = yes
	province = 345 #Pfalz
	name = "AI_EVENT"
	desc = "Palatinate"

	action_a = {
		name = "OK"
		command = { type = independence which = PFA }
	}
}
event = {
	id = 5004034
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		exists = PFA
		NOT = { core = { province = 345 data = -1 } } #Pfalz
	}
	random = yes
	province = 345 #Pfalz
	name = "AI_EVENT"
	desc = "Palatinate"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = PFA value = 345 } #Pfalz
		command = { type = relation which = PFA value = 10 }
	}
}
event = {
	id = 5004035
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = PFA }
		NOT = { core = { province = 345 data = -1 } } #Pfalz
		AND = {
			exists = BAY
			OR = {
				event = 125021 #BAY: The Palatinate is united with Bavaria
				event = 125033 #BAY: The Palatinate is united with Bavaria
			}
			NOT = { owned = { province = 345 data = BAY } } #Pfalz
		}
	}
	random = yes
	province = 345 #Pfalz
	name = "AI_EVENT"
	desc = "Palatinate"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = BAY value = 345 } #Pfalz
		command = { type = relation which = BAY value = 10 }
	}
}
event = {
	id = 5004036
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = PFA }
		NOT = { owned = { province = 345 data = -1 } } #Pfalz
		NOT = { core = { province = 347 data = -1 } } #Würzburg
		NOT = {
			event = 125021 #BAY: The Palatinate is united with Bavaria
			event = 125033 #BAY: The Palatinate is united with Bavaria
		}
	}
	random = yes
	province = 347 #Würzburg
	name = "AI_EVENT"
	desc = "Palatinate"

	action_a = {
		name = "OK"
		command = { type = independence which = PFA }
	}
}
event = {
	id = 5004037
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		exists = PFA
		NOT = { core = { province = 347 data = -1 } } #Würzburg
	}
	random = yes
	province = 347 #Würzburg
	name = "AI_EVENT"
	desc = "Palatinate"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = PFA value = 347 } #Würzburg
		command = { type = relation which = PFA value = 10 }
	}
}
event = {
	id = 5004038
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = PFA }
		NOT = { core = { province = 347 data = -1 } } #Würzburg
		AND = {
			exists = BAY
			OR = {
				event = 125021 #BAY: The Palatinate is united with Bavaria
				event = 125033 #BAY: The Palatinate is united with Bavaria
			}
			NOT = { owned = { province = 347 data = BAY } } #Würzburg
		}
	}
	random = yes
	province = 347 #Würzburg
	name = "AI_EVENT"
	desc = "Palatinate"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = BAY value = 347 } #Würzburg
		command = { type = relation which = BAY value = 10 }
	}
}

#Pomerania - Stettin
event = {
	id = 5004039
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = POM }
		NOT = { core = { province = 302 data = -1 } } #Hinterpommern
		NOT = {
			event = 291030 #SWE: The Acquisition of Pomerania
			event = 3896 #BRA: The Pommern Inheritance
			event = 132008 #BRA: The Pomeranian Inheritance
			event = 259016 #POM: The investiture of Brandenburg
			year = 1637
		}
	}
	random = yes
	province = 302 #Hinterpommern
	name = "AI_EVENT"
	desc = "Pomerania"

	action_a = {
		name = "OK"
		command = { type = independence which = POM }
	}
}
event = {
	id = 5004040
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = POM }
		NOT = { core = { province = 302 data = -1 } } #Hinterpommern
		AND = {
			exists = STT
			NOT = { owned = { province = 302 data = STT } } #Hinterpommern
		}
	}
	random = yes
	province = 302 #Hinterpommern
	name = "AI_EVENT"
	desc = "Pomerania"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = STT value = 302 } #Hinterpommern
		command = { type = relation which = STT value = 10 }
	}
}
event = {
	id = 5004041
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = POM }
		NOT = { core = { province = 302 data = -1 } } #Hinterpommern
		AND = {
			NOT = { exists = STT }
			exists = BRA
			OR = {
				event = 3896 #BRA: The Pommern Inheritance
				event = 132008 #BRA: The Pomeranian Inheritance
				event = 259016 #POM: The investiture of Brandenburg
			}
			NOT = { owned = { province = 302 data = BRA } } #Hinterpommern
		}
	}
	random = yes
	province = 302 #Hinterpommern
	name = "AI_EVENT"
	desc = "Pomerania"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = BRA value = 302 } #Hinterpommern
		command = { type = relation which = BRA value = 10 }
	}
}
event = {
	id = 5004042
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = POM }
		NOT = { core = { province = 302 data = -1 } } #Hinterpommern
		AND = {
			NOT = { exists = STT }
			NOT = { exists = BRA }
			AND = {
				exists = PRU
				event = 263014 #PRU: The Kingdom of Prussia
			}
			OR = {
				event = 3896 #BRA: The Pommern Inheritance
				event = 132008 #BRA: The Pomeranian Inheritance
				event = 259016 #POM: The investiture of Brandenburg
			}
			NOT = { owned = { province = 302 data = PRU } } #Hinterpommern
		}
	}
	random = yes
	province = 302 #Hinterpommern
	name = "AI_EVENT"
	desc = "Pomerania"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = PRU value = 302 } #Hinterpommern
		command = { type = relation which = PRU value = 10 }
	}
}
event = {
	id = 5004043
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = STT }
		NOT = { core = { province = 304 data = -1 } } #Vorpommern
		NOT = {
			event = 259000 #POM: Inheritance of Pomerania-Stettin
			AND = {
				event = 259001 #POM: Inheritance of Pomerania-Stettin
				NOT = {
					event = 132018 #BRA: Inheritance of Stettin
				}
			}
			event = 291029 #SWE: The Acquisition of Vorpommern
			event = 291030 #SWE: The Acquisition of Pomerania
			event = 3896 #BRA: The Pommern Inheritance
			event = 132008 #BRA: The Pomeranian Inheritance
			event = 259016 #POM: The investiture of Brandenburg
			year = 1570
		}
	}
	random = yes
	province = 304 #Vorpommern
	name = "AI_EVENT"
	desc = "Pomerania"

	action_a = {
		name = "OK"
		command = { type = independence which = STT }
	}
}
event = {
	id = 5004044
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = STT }
		NOT = { core = { province = 304 data = -1 } } #Vorpommern
		AND = {
			exists = POM
			OR = {
				event = 259000 #POM: Inheritance of Pomerania-Stettin
				AND = {
					event = 259001 #POM: Inheritance of Pomerania-Stettin
					NOT = {
						event = 132018 #BRA: Inheritance of Stettin
					}
				}
			}
			NOT = { owned = { province = 304 data = POM } } #Vorpommern
		}
	}
	random = yes
	province = 304 #Vorpommern
	name = "AI_EVENT"
	desc = "Pomerania"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = POM value = 304 } #Vorpommern
		command = { type = relation which = POM value = 10 }
	}
}
event = {
	id = 5004045
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = STT }
		NOT = { core = { province = 304 data = -1 } } #Vorpommern
		AND = {
			NOT = { exists = POM }
			AND = {
				exists = BRA
				OR = {
					event = 3896 #BRA: The Pommern Inheritance
					event = 132008 #BRA: The Pomeranian Inheritance
					event = 259016 #POM: The investiture of Brandenburg
				}
				NOT = { owned = { province = 304 data = BRA } } #Vorpommern
			}
		}
	}
	random = yes
	province = 304 #Vorpommern
	name = "AI_EVENT"
	desc = "Pomerania"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = BRA value = 304 } #Vorpommern
		command = { type = relation which = BRA value = 10 }
	}
}
event = {
	id = 5004046
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = POM }
		NOT = { core = { province = 304 data = -1 } } #Vorpommern
		AND = {
			NOT = { exists = POM }
			AND = {
				NOT = { exists = BRA }
				AND = {
					exists = PRU
					event = 263014 #PRU: The Kingdom of Prussia
				}
				OR = {
					event = 3896 #BRA: The Pommern Inheritance
					event = 132008 #BRA: The Pomeranian Inheritance
					event = 259016 #POM: The investiture of Brandenburg
				}
				NOT = { owned = { province = 304 data = PRU } } #Vorpommern
			}
		}
	}
	random = yes
	province = 304 #Vorpommern
	name = "AI_EVENT"
	desc = "Pomerania"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = PRU value = 304 } #Vorpommern
		command = { type = relation which = PRU value = 10 }
	}
}

#Saxony - Meissen
#simplified version
event = {
	id = 5004048
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = {
			exists = SAC
			exists = MEI
		}
		NOT = { core = { province = 332 data = -1 } } #Anhalt
	}
	random = yes
	province = 332 #Anhalt
	name = "AI_EVENT"
	desc = "Saxony"

	action_a = {
		name = "OK"
		command = { type = independence which = SAC }
	}
}
event = {
	id = 5004049
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		exists = SAC
		NOT = { core = { province = 332 data = -1 } } #Anhalt
		NOT = { owned = { province = 332 data = SAC } } #Anhalt
	}
	random = yes
	province = 332 #Anhalt
	name = "AI_EVENT"
	desc = "Saxony"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = SAC value = 332 } #Anhalt
		command = { type = relation which = SAC value = 10 }
	}
}
event = {
	id = 5004050
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = SAC }
		NOT = { core = { province = 332 data = -1 } } #Anhalt
		AND = {
			exists = MEI
			NOT = { year = 1600 }
			NOT = { owned = { province = 332 data = MEI } } #Anhalt
		}
	}
	random = yes
	province = 332 #Anhalt
	name = "AI_EVENT"
	desc = "Saxony"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = MEI value = 332 } #Anhalt
		command = { type = relation which = MEI value = 10 }
	}
}
event = {
	id = 5004051
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		exists = SAC
		NOT = { core = { province = 331 data = -1 } } #Sachsen
		NOT = { owned = { province = 331 data = SAC } } #Sachsen
	}
	random = yes
	province = 331 #Sachsen
	name = "AI_EVENT"
	desc = "Saxony"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = SAC value = 331 } #Sachsen
		command = { type = relation which = SAC value = 10 }
	}
}
event = {
	id = 5004052
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = SAC }
		NOT = { core = { province = 331 data = -1 } } #Sachsen
		AND = {
			exists = MEI
			NOT = { year = 1600 }
			NOT = { owned = { province = 331 data = MEI } } #Sachsen
		}
	}
	random = yes
	province = 331 #Sachsen
	name = "AI_EVENT"
	desc = "Saxony"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = MEI value = 331 } #Sachsen
		command = { type = relation which = MEI value = 10 }
	}
}

#Strassburg
event = {
	id = 5004053
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = STR }
		NOT = { core = { province = 374 data = -1 } } #Alsace
	}
	random = yes
	province = 374 #Alsace
	name = "AI_EVENT"
	desc = "Strassburg"

	action_a = {
		name = "OK"
		command = { type = independence which = STR }
	}
}

#Wirtemberg
event = {
	id = 5004054
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = WUR }
		NOT = { core = { province = 372 data = -1 } } #Württemberg
		NOT = {
			AND = {
				exists = HAB
				core = { province = 372 data = HAB } #covers HAB_179004 and HAB_179006
				NOT = { owned = { province = 372 data = HAB } } #Württemberg
			}
		}
	}
	random = yes
	province = 372 #Württemberg
	name = "AI_EVENT"
	desc = "Wirtemberg"

	action_a = {
		name = "OK"
		command = { type = independence which = WUR }
	}
}
event = {
	id = 5004055
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = WUR }
		NOT = { core = { province = 372 data = -1 } } #Württemberg
		AND = {
			exists = HAB
			core = { province = 372 data = HAB } #covers HAB_179004 and HAB_179006
		}
	}
	random = yes
	province = 372 #Württemberg
	name = "AI_EVENT"
	desc = "Wirtemberg"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = HAB value = 372 } #Württemberg
		command = { type = relation which = HAB value = 10 }
	}
}

#-----------------------------------------------------------------------------------------------

#-----------------------------------------------------------------------------------------------

#Baden
event = {
	id = 5005000
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = BAD }
		NOT = { core = { province = 373 data = -1 } } #Baden
	}
	random = yes
	province = 349 #Baden
	name = "AI_EVENT"
	desc = "Baden"

	action_a = {
		name = "OK"
		command = { type = independence which = BAD }
	}
}

#Bavaria
event = {
	id = 5005001
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = BAY }
		NOT = { core = { province = 349 data = -1 } } #Bayern
		NOT = {
			AND = {
				event = 255003 #PFA: The Palatinate inherits Bavaria
				NOT = {
					event = 125021 #BAY: The Palatinate is united with Bavaria
					event = 125033 #BAY: The Palatinate is united with Bavaria (Palatinate inherited Burgundy)
				}
			}
			event = 255008 #PFA: The Wittelsbach inheritance of Bavaria
		}
	}
	random = yes
	province = 349 #Bayern
	name = "AI_EVENT"
	desc = "Bavaria"

	action_a = {
		name = "OK"
		command = { type = independence which = BAY }
	}
}
event = {
	id = 5005002
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		exists = BAY
		NOT = { core = { province = 349 data = -1 } } #Bayern
		NOT = { owned = { province = 349 data = BAY } } #Bayern
	}
	random = yes
	province = 349 #Bayern
	name = "AI_EVENT"
	desc = "Bavaria"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = BAY value = 349 } #Bayern
		command = { type = relation which = BAY value = 10 }
	}
}
event = {
	id = 5005003
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = BAY }
		NOT = { core = { province = 349 data = -1 } } #Bayern
		AND = {
			exists = PFA
			OR = {
				AND = {
					event = 255003 #PFA: The Palatinate inherits Bavaria
					NOT = {
						event = 125021 #BAY: The Palatinate is united with Bavaria
						event = 125033 #BAY: The Palatinate is united with Bavaria (Palatinate inherited Burgundy)
					}
				}
				event = 255008 #PFA: The Wittelsbach inheritance of Bavaria
			}
			NOT = { owned = { province = 349 data = PFA } } #Bayern
		}
	}
	random = yes
	province = 349 #Bayern
	name = "AI_EVENT"
	desc = "Bavaria"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = PFA value = 349 } #Bayern
		command = { type = relation which = PFA value = 10 }
	}
}
event = {
	id = 5005004
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = BAY }
		NOT = { owned = { province = 349 data = -1 } } #Bayern
		NOT = { core = { province = 348 data = -1 } } #Ansbach
		year = 1430 #LUX and HAB before
		NOT = {
			AND = {
				event = 255003 #PFA: The Palatinate inherits Bavaria
				NOT = {
					event = 125021 #BAY: The Palatinate is united with Bavaria
					event = 125033 #BAY: The Palatinate is united with Bavaria (Palatinate inherited Burgundy)
				}
			}
			event = 255008 #PFA: The Wittelsbach inheritance of Bavaria
			event = 125035 #BAY: Straubing is ceded to Austria
			event = 255009 #PFA: Straubing is ceded to Austria
		}
	}
	random = yes
	province = 348 #Ansbach
	name = "AI_EVENT"
	desc = "Bavaria"

	action_a = {
		name = "OK"
		command = { type = independence which = BAY }
	}
}
event = {
	id = 5005005
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		exists = BAY
		NOT = { core = { province = 348 data = -1 } } #Ansbach
		year = 1430 #LUX and HAB before
		NOT = {
			AND = {
				exists = HAB
				OR = {
					event = 125035 #BAY: Straubing is ceded to Austria
					event = 255009 #PFA: Straubing is ceded to Austria
				}
			}
			NOT = { owned = { province = 348 data = BAY } } #Ansbach
		}
	}
	random = yes
	province = 348 #Ansbach
	name = "AI_EVENT"
	desc = "Bavaria"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = BAY value = 348 } #Ansbach
		command = { type = relation which = BAY value = 10 }
	}
}
event = {
	id = 5005006
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = BAY }
		NOT = { core = { province = 348 data = -1 } } #Ansbach
		year = 1430 #LUX and HAB before
		AND = {
			exists = PFA
			OR = {
				AND = {
					event = 255003 #PFA: The Palatinate inherits Bavaria
					NOT = {
						event = 125021 #BAY: The Palatinate is united with Bavaria
						event = 125033 #BAY: The Palatinate is united with Bavaria (Palatinate inherited Burgundy)
					}
				}
				event = 255008 #PFA: The Wittelsbach inheritance of Bavaria
			}
			NOT = {
				AND = {
					exists = HAB
					OR = {
						event = 125035 #BAY: Straubing is ceded to Austria
						event = 255009 #PFA: Straubing is ceded to Austria
					}
				}
			}
			NOT = { owned = { province = 348 data = PFA } } #Ansbach
		}
	}
	random = yes
	province = 348 #Ansbach
	name = "AI_EVENT"
	desc = "Bavaria"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = PFA value = 348 } #Ansbach
		command = { type = relation which = PFA value = 10 }
	}
}
event = {
	id = 5005007
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { core = { province = 348 data = -1 } } #Ansbach
		year = 1430 #LUX and HAB before
		AND = {
			exists = HAB
			OR = {
				event = 125035 #BAY: Straubing is ceded to Austria
				event = 255009 #PFA: Straubing is ceded to Austria
			}
			NOT = { owned = { province = 348 data = HAB } } #Ansbach
		}
	}
	random = yes
	province = 348 #Ansbach
	name = "AI_EVENT"
	desc = "Bavaria"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = HAB value = 348 } #Ansbach
		command = { type = relation which = HAB value = 10 }
	}
}

#Berg
#simplified version
event = {
	id = 5005008
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = BRG }
		NOT = { core = { province = 343 data = -1 } } #Kleves
		NOT = { year = 1609 }
	}
	random = yes
	province = 334 #Kleves
	name = "AI_EVENT"
	desc = "Berg"

	action_a = {
		name = "OK"
		command = { type = independence which = BRG }
	}
}

#Brandenburg - Prussia
event = {
	id = 5005009
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = BRA }
		NOT = { core = { province = 312 data = -1 } } #Brandenburg
		NOT = {
			AND = {
				exists = PRU
				event = 263014 #PRU: The Kingdom of Prussia
			}
		}
	}
	random = yes
	province = 312 #Brandenburg
	name = "AI_EVENT"
	desc = "Brandenburg"

	action_a = {
		name = "OK"
		command = { type = independence which = BRA }
	}
}
event = {
	id = 5005011
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = BRA }
		NOT = { core = { province = 312 data = -1 } } #Brandenburg
		AND = {
			exists = PRU
			event = 263014 #PRU: The Kingdom of Prussia
			NOT = { owned = { province = 312 data = PRU } } #Brandenburg
		}
	}
	random = yes
	province = 312 #Brandenburg
	name = "AI_EVENT"
	desc = "Brandenburg"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = PRU value = 312 } #Brandenburg
		command = { type = relation which = PRU value = 10 }
	}
}
event = {
	id = 5005012
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = BRA }
		NOT = { core = { province = 313 data = -1 } } #Küstrin
		NOT = { owned = { province = 312 data = -1 } } #Brandenburg
		NOT = {
			AND = {
				exists = PRU
				event = 263014 #PRU: The Kingdom of Prussia
			}
		}
	}
	random = yes
	province = 313 #Küstrin
	name = "AI_EVENT"
	desc = "Brandenburg"

	action_a = {
		name = "OK"
		command = { type = independence which = BRA }
	}
}
event = {
	id = 5005014
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		exists = BRA
		NOT = { core = { province = 313 data = -1 } } #Küstrin
		NOT = { owned = { province = 313 data = BRA } } #Küstrin
	}
	random = yes
	province = 313 #Küstrin
	name = "AI_EVENT"
	desc = "Brandenburg"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = BRA value = 313 } #Küstrin
		command = { type = relation which = BRA value = 10 }
	}
}
event = {
	id = 5005015
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = BRA }
		NOT = { core = { province = 313 data = -1 } } #Küstrin
		AND = {
			exists = PRU
			event = 263014 #PRU: The Kingdom of Prussia
			NOT = { owned = { province = 312 data = PRU } } #Brandenburg
		}
	}
	random = yes
	province = 313 #Küstrin
	name = "AI_EVENT"
	desc = "Brandenburg"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = PRU value = 313 } #Küstrin
		command = { type = relation which = PRU value = 10 }
	}
}
event = {
	id = 5005016
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		exists = BRA
		NOT = { core = { province = 311 data = -1 } } #Magdeburg
		NOT = { owned = { province = 311 data = BRA } } #Magdeburg
	}
	random = yes
	province = 311 #Magdeburg
	name = "AI_EVENT"
	desc = "Brandenburg"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = BRA value = 311 } #Magdeburg
		command = { type = relation which = BRA value = 10 }
	}
}
event = {
	id = 5005017
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = BRA }
		NOT = { core = { province = 311 data = -1 } } #Magdeburg
		AND = {
			exists = PRU
			event = 263014 #PRU: The Kingdom of Prussia
			NOT = { owned = { province = 311 data = PRU } } #Magdeburg
		}
	}
	random = yes
	province = 311 #Magdeburg
	name = "AI_EVENT"
	desc = "Brandenburg"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = PRU value = 311 } #Magdeburg
		command = { type = relation which = PRU value = 10 }
	}
}

#Bremen
event = {
	id = 5005018
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = BRE }
		NOT = { core = { province = 336 data = -1 } } #Bremen
	}
	random = yes
	province = 336 #Bremen
	name = "AI_EVENT"
	desc = "Bremen"

	action_a = {
		name = "OK"
		command = { type = independence which = BRE }
	}
}

#Cleves
#simplified version
event = {
	id = 5005019
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = KLE }
		NOT = { core = { province = 334 data = -1 } } #Münster
		NOT = {
			event = 235009 #BRG: Union with Kleve-Mark
			year = 1609
		}
	}
	random = yes
	province = 334 #Münster
	name = "AI_EVENT"
	desc = "Cleves"

	action_a = {
		name = "OK"
		command = { type = independence which = KLE }
	}
}
event = {
	id = 5005020
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = KLE }
		NOT = { core = { province = 334 data = -1 } } #Münster
		AND = {
			exists = BRG
			event = 235009 #BRG: Union with Kleve-Mark
			NOT = { owned = { province = 334 data = BRG } } #Münster
			NOT = { year = 1609 }
		}
	}
	random = yes
	province = 334 #Münster
	name = "AI_EVENT"
	desc = "Cleves"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = BRG value = 334 } #Münster
		command = { type = relation which = BRG value = 10 }
	}
}

#Cologne
event = {
	id = 5005021
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = KOL }
		NOT = { core = { province = 344 data = -1 } } #Köln
	}
	random = yes
	province = 344 #Köln
	name = "AI_EVENT"
	desc = "Cologne"

	action_a = {
		name = "OK"
		command = { type = independence which = KOL }
	}
}

#Hanover
event = {
	id = 5005022
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = HAN }
		NOT = { core = { province = 310 data = -1 } } #Hannover
	}
	random = yes
	province = 310 #Hannover
	name = "AI_EVENT"
	desc = "Hanover"

	action_a = {
		name = "OK"
		command = { type = independence which = HAN }
	}
}

#Hesse
event = {
	id = 5005023
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = HES }
		NOT = { core = { province = 333 data = -1 } } #Hessen
	}
	random = yes
	province = 333 #Hessen
	name = "AI_EVENT"
	desc = "Hesse"

	action_a = {
		name = "OK"
		command = { type = independence which = HES }
	}
}

#Holstein
event = {
	id = 5005024
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = SHL }
		NOT = { core = { province = 306 data = -1 } } #Holstein
		NOT = {
			AND = {
				event = 159034 #DAN: Denmark inherits Holstein
				NOT = { event = 159011 } #DAN: The fate of Holstein
			}
			event = 247002 #OLD: Oldenburg inherits Holstein
		}
	}
	random = yes
	province = 306 #Holstein
	name = "AI_EVENT"
	desc = "Holstein"

	action_a = {
		name = "OK"
		command = { type = independence which = SHL }
	}
}
event = {
	id = 5005010
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = SHL }
		NOT = { core = { province = 306 data = -1 } } #Holstein
		AND = {
			exists = OLD
			event = 247002 #OLD: Oldenburg inherits Holstein
			NOT = { owned = { province = 306 data = OLD } } #Holstein
		}
	}
	random = yes
	province = 306 #Holstein
	name = "AI_EVENT"
	desc = "Holstein"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = OLD value = 306 } #Holstein
		command = { type = relation which = OLD value = 10 }
	}
}

#Lorraine
event = {
	id = 5005026
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = LOR }
		NOT = { core = { province = 375 data = -1 } } #Lorraine
		NOT = {
			event = 3736 #FRA: French Inheritance of Lothringen
			year = 1766
		}
	}
	random = yes
	province = 375 #Lorraine
	name = "AI_EVENT"
	desc = "Lorraine"

	action_a = {
		name = "OK"
		command = { type = independence which = LOR }
	}
}

#Luxemburg
event = {
	id = 5005028
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = LUX }
		NOT = { core = { province = 377 data = -1 } } #Luxembourg
		NOT = {
			event = 137306 #BUR: Annexation of Luxemburg
			year = 1451 #Burgundian monarchs
		}
	}
	random = yes
	province = 377 #Luxembourg
	name = "AI_EVENT"
	desc = "Luxemburg"

	action_a = {
		name = "OK"
		command = { type = independence which = LUX }
	}
}
event = {
	id = 5005029
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = LUX }
		NOT = { core = { province = 377 data = -1 } } #Luxembourg
		AND = {
			exists = BUR
			event = 137306 #BUR: Annexation of Luxemburg
			NOT = { owned = { province = 377 data = BUR } } #Luxembourg
		}
	}
	random = yes
	province = 377 #Luxembourg
	name = "AI_EVENT"
	desc = "Luxemburg"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = BUR value = 377 } #Luxembourg
		command = { type = relation which = BUR value = 10 }
	}
}

#Mainz
event = {
	id = 5005030
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = MAI }
		NOT = { core = { province = 346 data = -1 } } #Mainz
	}
	random = yes
	province = 346 #Mainz
	name = "AI_EVENT"
	desc = "Mainz"

	action_a = {
		name = "OK"
		command = { type = independence which = MAI }
	}
}

#Mecklenburg
event = {
	id = 5005031
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = MEC }
		NOT = { core = { province = 305 data = -1 } } #Mecklenburg
	}
	random = yes
	province = 305 #Mecklenburg
	name = "AI_EVENT"
	desc = "Mecklenburg"

	action_a = {
		name = "OK"
		command = { type = independence which = MEC }
	}
}

#Oldenburg
event = {
	id = 5005032
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = OLD }
		NOT = { core = { province = 335 data = -1 } } #Oldenburg
		NOT = {
			event = 159033 #DAN: Oldenburg is incorporated into Denmark
			event = 279010 #SHL: Holstein inherits Oldenburg
		}
	}
	random = yes
	province = 335 #Oldenburg
	name = "AI_EVENT"
	desc = "Oldenburg"

	action_a = {
		name = "OK"
		command = { type = independence which = OLD }
	}
}
event = {
	id = 50050013
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = OLD }
		NOT = { core = { province = 335 data = -1 } } #Oldenburg
		AND = {
			exists = SHL
			event = 279010 #SHL: Holstein inherits Oldenburg
			NOT = { owned = { province = 335 data = SHL } } #Oldenburg
		}
	}
	random = yes
	province = 335 #Oldenburg
	name = "AI_EVENT"
	desc = "Oldenburg"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = SHL value = 335 } #Oldenburg
		command = { type = relation which = SHL value = 10 }
	}
}

#Palatinate
event = {
	id = 5005033
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = PFA }
		NOT = { core = { province = 345 data = -1 } } #Pfalz
		NOT = {
			event = 125021 #BAY: The Palatinate is united with Bavaria
			event = 125033 #BAY: The Palatinate is united with Bavaria
		}
	}
	random = yes
	province = 345 #Pfalz
	name = "AI_EVENT"
	desc = "Palatinate"

	action_a = {
		name = "OK"
		command = { type = independence which = PFA }
	}
}
event = {
	id = 5005034
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		exists = PFA
		NOT = { core = { province = 345 data = -1 } } #Pfalz
	}
	random = yes
	province = 345 #Pfalz
	name = "AI_EVENT"
	desc = "Palatinate"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = PFA value = 345 } #Pfalz
		command = { type = relation which = PFA value = 10 }
	}
}
event = {
	id = 5005035
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = PFA }
		NOT = { core = { province = 345 data = -1 } } #Pfalz
		AND = {
			exists = BAY
			OR = {
				event = 125021 #BAY: The Palatinate is united with Bavaria
				event = 125033 #BAY: The Palatinate is united with Bavaria
			}
			NOT = { owned = { province = 345 data = BAY } } #Pfalz
		}
	}
	random = yes
	province = 345 #Pfalz
	name = "AI_EVENT"
	desc = "Palatinate"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = BAY value = 345 } #Pfalz
		command = { type = relation which = BAY value = 10 }
	}
}
event = {
	id = 5005036
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = PFA }
		NOT = { owned = { province = 345 data = -1 } } #Pfalz
		NOT = { core = { province = 347 data = -1 } } #Würzburg
		NOT = {
			event = 125021 #BAY: The Palatinate is united with Bavaria
			event = 125033 #BAY: The Palatinate is united with Bavaria
		}
	}
	random = yes
	province = 347 #Würzburg
	name = "AI_EVENT"
	desc = "Palatinate"

	action_a = {
		name = "OK"
		command = { type = independence which = PFA }
	}
}
event = {
	id = 5005037
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		exists = PFA
		NOT = { core = { province = 347 data = -1 } } #Würzburg
	}
	random = yes
	province = 347 #Würzburg
	name = "AI_EVENT"
	desc = "Palatinate"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = PFA value = 347 } #Würzburg
		command = { type = relation which = PFA value = 10 }
	}
}
event = {
	id = 5005038
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = PFA }
		NOT = { core = { province = 347 data = -1 } } #Würzburg
		AND = {
			exists = BAY
			OR = {
				event = 125021 #BAY: The Palatinate is united with Bavaria
				event = 125033 #BAY: The Palatinate is united with Bavaria
			}
			NOT = { owned = { province = 347 data = BAY } } #Würzburg
		}
	}
	random = yes
	province = 347 #Würzburg
	name = "AI_EVENT"
	desc = "Palatinate"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = BAY value = 347 } #Würzburg
		command = { type = relation which = BAY value = 10 }
	}
}

#Pomerania - Stettin
event = {
	id = 5005039
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = POM }
		NOT = { core = { province = 302 data = -1 } } #Hinterpommern
		NOT = {
			event = 291030 #SWE: The Acquisition of Pomerania
			event = 3896 #BRA: The Pommern Inheritance
			event = 132008 #BRA: The Pomeranian Inheritance
			event = 259016 #POM: The investiture of Brandenburg
			year = 1637
		}
	}
	random = yes
	province = 302 #Hinterpommern
	name = "AI_EVENT"
	desc = "Pomerania"

	action_a = {
		name = "OK"
		command = { type = independence which = POM }
	}
}
event = {
	id = 5005040
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = POM }
		NOT = { core = { province = 302 data = -1 } } #Hinterpommern
		AND = {
			exists = STT
			NOT = { owned = { province = 302 data = STT } } #Hinterpommern
		}
	}
	random = yes
	province = 302 #Hinterpommern
	name = "AI_EVENT"
	desc = "Pomerania"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = STT value = 302 } #Hinterpommern
		command = { type = relation which = STT value = 10 }
	}
}
event = {
	id = 5005041
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = POM }
		NOT = { core = { province = 302 data = -1 } } #Hinterpommern
		AND = {
			NOT = { exists = STT }
			exists = BRA
			OR = {
				event = 3896 #BRA: The Pommern Inheritance
				event = 132008 #BRA: The Pomeranian Inheritance
				event = 259016 #POM: The investiture of Brandenburg
			}
			NOT = { owned = { province = 302 data = BRA } } #Hinterpommern
		}
	}
	random = yes
	province = 302 #Hinterpommern
	name = "AI_EVENT"
	desc = "Pomerania"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = BRA value = 302 } #Hinterpommern
		command = { type = relation which = BRA value = 10 }
	}
}
event = {
	id = 5005042
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = POM }
		NOT = { core = { province = 302 data = -1 } } #Hinterpommern
		AND = {
			NOT = { exists = STT }
			NOT = { exists = BRA }
			AND = {
				exists = PRU
				event = 263014 #PRU: The Kingdom of Prussia
			}
			OR = {
				event = 3896 #BRA: The Pommern Inheritance
				event = 132008 #BRA: The Pomeranian Inheritance
				event = 259016 #POM: The investiture of Brandenburg
			}
			NOT = { owned = { province = 302 data = PRU } } #Hinterpommern
		}
	}
	random = yes
	province = 302 #Hinterpommern
	name = "AI_EVENT"
	desc = "Pomerania"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = PRU value = 302 } #Hinterpommern
		command = { type = relation which = PRU value = 10 }
	}
}
event = {
	id = 5005043
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = STT }
		NOT = { core = { province = 304 data = -1 } } #Vorpommern
		NOT = {
			event = 259000 #POM: Inheritance of Pomerania-Stettin
			AND = {
				event = 259001 #POM: Inheritance of Pomerania-Stettin
				NOT = {
					event = 132018 #BRA: Inheritance of Stettin
				}
			}
			event = 291029 #SWE: The Acquisition of Vorpommern
			event = 291030 #SWE: The Acquisition of Pomerania
			event = 3896 #BRA: The Pommern Inheritance
			event = 132008 #BRA: The Pomeranian Inheritance
			event = 259016 #POM: The investiture of Brandenburg
			year = 1570
		}
	}
	random = yes
	province = 304 #Vorpommern
	name = "AI_EVENT"
	desc = "Pomerania"

	action_a = {
		name = "OK"
		command = { type = independence which = STT }
	}
}
event = {
	id = 5005044
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = STT }
		NOT = { core = { province = 304 data = -1 } } #Vorpommern
		AND = {
			exists = POM
			OR = {
				event = 259000 #POM: Inheritance of Pomerania-Stettin
				AND = {
					event = 259001 #POM: Inheritance of Pomerania-Stettin
					NOT = {
						event = 132018 #BRA: Inheritance of Stettin
					}
				}
			}
			NOT = { owned = { province = 304 data = POM } } #Vorpommern
		}
	}
	random = yes
	province = 304 #Vorpommern
	name = "AI_EVENT"
	desc = "Pomerania"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = POM value = 304 } #Vorpommern
		command = { type = relation which = POM value = 10 }
	}
}
event = {
	id = 5005045
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = STT }
		NOT = { core = { province = 304 data = -1 } } #Vorpommern
		AND = {
			NOT = { exists = POM }
			AND = {
				exists = BRA
				OR = {
					event = 3896 #BRA: The Pommern Inheritance
					event = 132008 #BRA: The Pomeranian Inheritance
					event = 259016 #POM: The investiture of Brandenburg
				}
				NOT = { owned = { province = 304 data = BRA } } #Vorpommern
			}
		}
	}
	random = yes
	province = 304 #Vorpommern
	name = "AI_EVENT"
	desc = "Pomerania"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = BRA value = 304 } #Vorpommern
		command = { type = relation which = BRA value = 10 }
	}
}
event = {
	id = 5005046
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = POM }
		NOT = { core = { province = 304 data = -1 } } #Vorpommern
		AND = {
			NOT = { exists = POM }
			AND = {
				NOT = { exists = BRA }
				AND = {
					exists = PRU
					event = 263014 #PRU: The Kingdom of Prussia
				}
				OR = {
					event = 3896 #BRA: The Pommern Inheritance
					event = 132008 #BRA: The Pomeranian Inheritance
					event = 259016 #POM: The investiture of Brandenburg
				}
				NOT = { owned = { province = 304 data = PRU } } #Vorpommern
			}
		}
	}
	random = yes
	province = 304 #Vorpommern
	name = "AI_EVENT"
	desc = "Pomerania"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = PRU value = 304 } #Vorpommern
		command = { type = relation which = PRU value = 10 }
	}
}

#Saxony - Meissen
#simplified version
event = {
	id = 5005048
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = {
			exists = SAC
			exists = MEI
		}
		NOT = { core = { province = 332 data = -1 } } #Anhalt
	}
	random = yes
	province = 332 #Anhalt
	name = "AI_EVENT"
	desc = "Saxony"

	action_a = {
		name = "OK"
		command = { type = independence which = SAC }
	}
}
event = {
	id = 5005049
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		exists = SAC
		NOT = { core = { province = 332 data = -1 } } #Anhalt
		NOT = { owned = { province = 332 data = SAC } } #Anhalt
	}
	random = yes
	province = 332 #Anhalt
	name = "AI_EVENT"
	desc = "Saxony"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = SAC value = 332 } #Anhalt
		command = { type = relation which = SAC value = 10 }
	}
}
event = {
	id = 5005050
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = SAC }
		NOT = { core = { province = 332 data = -1 } } #Anhalt
		AND = {
			exists = MEI
			NOT = { year = 1600 }
			NOT = { owned = { province = 332 data = MEI } } #Anhalt
		}
	}
	random = yes
	province = 332 #Anhalt
	name = "AI_EVENT"
	desc = "Saxony"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = MEI value = 332 } #Anhalt
		command = { type = relation which = MEI value = 10 }
	}
}
event = {
	id = 5005051
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		exists = SAC
		NOT = { core = { province = 331 data = -1 } } #Sachsen
		NOT = { owned = { province = 331 data = SAC } } #Sachsen
	}
	random = yes
	province = 331 #Sachsen
	name = "AI_EVENT"
	desc = "Saxony"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = SAC value = 331 } #Sachsen
		command = { type = relation which = SAC value = 10 }
	}
}
event = {
	id = 5005052
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = SAC }
		NOT = { core = { province = 331 data = -1 } } #Sachsen
		AND = {
			exists = MEI
			NOT = { year = 1600 }
			NOT = { owned = { province = 331 data = MEI } } #Sachsen
		}
	}
	random = yes
	province = 331 #Sachsen
	name = "AI_EVENT"
	desc = "Saxony"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = MEI value = 331 } #Sachsen
		command = { type = relation which = MEI value = 10 }
	}
}

#Strassburg
event = {
	id = 5005053
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = STR }
		NOT = { core = { province = 374 data = -1 } } #Alsace
	}
	random = yes
	province = 374 #Alsace
	name = "AI_EVENT"
	desc = "Strassburg"

	action_a = {
		name = "OK"
		command = { type = independence which = STR }
	}
}

#Wirtemberg
event = {
	id = 5005054
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = WUR }
		NOT = { core = { province = 372 data = -1 } } #Württemberg
		NOT = {
			AND = {
				exists = HAB
				core = { province = 372 data = HAB } #covers HAB_179004 and HAB_179006
				NOT = { owned = { province = 372 data = HAB } } #Württemberg
			}
		}
	}
	random = yes
	province = 372 #Württemberg
	name = "AI_EVENT"
	desc = "Wirtemberg"

	action_a = {
		name = "OK"
		command = { type = independence which = WUR }
	}
}
event = {
	id = 5005055
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = WUR }
		NOT = { core = { province = 372 data = -1 } } #Württemberg
		AND = {
			exists = HAB
			core = { province = 372 data = HAB } #covers HAB_179004 and HAB_179006
		}
	}
	random = yes
	province = 372 #Württemberg
	name = "AI_EVENT"
	desc = "Wirtemberg"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = HAB value = 372 } #Württemberg
		command = { type = relation which = HAB value = 10 }
	}
}

#-----------------------------------------------------------------------------------------------

#-----------------------------------------------------------------------------------------------

#Baden
event = {
	id = 5006000
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = BAD }
		NOT = { core = { province = 373 data = -1 } } #Baden
	}
	random = yes
	province = 349 #Baden
	name = "AI_EVENT"
	desc = "Baden"

	action_a = {
		name = "OK"
		command = { type = independence which = BAD }
	}
}

#Bavaria
event = {
	id = 5006001
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = BAY }
		NOT = { core = { province = 349 data = -1 } } #Bayern
		NOT = {
			AND = {
				event = 255003 #PFA: The Palatinate inherits Bavaria
				NOT = {
					event = 125021 #BAY: The Palatinate is united with Bavaria
					event = 125033 #BAY: The Palatinate is united with Bavaria (Palatinate inherited Burgundy)
				}
			}
			event = 255008 #PFA: The Wittelsbach inheritance of Bavaria
		}
	}
	random = yes
	province = 349 #Bayern
	name = "AI_EVENT"
	desc = "Bavaria"

	action_a = {
		name = "OK"
		command = { type = independence which = BAY }
	}
}
event = {
	id = 5006002
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		exists = BAY
		NOT = { core = { province = 349 data = -1 } } #Bayern
		NOT = { owned = { province = 349 data = BAY } } #Bayern
	}
	random = yes
	province = 349 #Bayern
	name = "AI_EVENT"
	desc = "Bavaria"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = BAY value = 349 } #Bayern
		command = { type = relation which = BAY value = 10 }
	}
}
event = {
	id = 5006003
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = BAY }
		NOT = { core = { province = 349 data = -1 } } #Bayern
		AND = {
			exists = PFA
			OR = {
				AND = {
					event = 255003 #PFA: The Palatinate inherits Bavaria
					NOT = {
						event = 125021 #BAY: The Palatinate is united with Bavaria
						event = 125033 #BAY: The Palatinate is united with Bavaria (Palatinate inherited Burgundy)
					}
				}
				event = 255008 #PFA: The Wittelsbach inheritance of Bavaria
			}
			NOT = { owned = { province = 349 data = PFA } } #Bayern
		}
	}
	random = yes
	province = 349 #Bayern
	name = "AI_EVENT"
	desc = "Bavaria"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = PFA value = 349 } #Bayern
		command = { type = relation which = PFA value = 10 }
	}
}
event = {
	id = 5006004
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = BAY }
		NOT = { owned = { province = 349 data = -1 } } #Bayern
		NOT = { core = { province = 348 data = -1 } } #Ansbach
		year = 1430 #LUX and HAB before
		NOT = {
			AND = {
				event = 255003 #PFA: The Palatinate inherits Bavaria
				NOT = {
					event = 125021 #BAY: The Palatinate is united with Bavaria
					event = 125033 #BAY: The Palatinate is united with Bavaria (Palatinate inherited Burgundy)
				}
			}
			event = 255008 #PFA: The Wittelsbach inheritance of Bavaria
			event = 125035 #BAY: Straubing is ceded to Austria
			event = 255009 #PFA: Straubing is ceded to Austria
		}
	}
	random = yes
	province = 348 #Ansbach
	name = "AI_EVENT"
	desc = "Bavaria"

	action_a = {
		name = "OK"
		command = { type = independence which = BAY }
	}
}
event = {
	id = 5006005
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		exists = BAY
		NOT = { core = { province = 348 data = -1 } } #Ansbach
		year = 1430 #LUX and HAB before
		NOT = {
			AND = {
				exists = HAB
				OR = {
					event = 125035 #BAY: Straubing is ceded to Austria
					event = 255009 #PFA: Straubing is ceded to Austria
				}
			}
			NOT = { owned = { province = 348 data = BAY } } #Ansbach
		}
	}
	random = yes
	province = 348 #Ansbach
	name = "AI_EVENT"
	desc = "Bavaria"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = BAY value = 348 } #Ansbach
		command = { type = relation which = BAY value = 10 }
	}
}
event = {
	id = 5006006
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = BAY }
		NOT = { core = { province = 348 data = -1 } } #Ansbach
		year = 1430 #LUX and HAB before
		AND = {
			exists = PFA
			OR = {
				AND = {
					event = 255003 #PFA: The Palatinate inherits Bavaria
					NOT = {
						event = 125021 #BAY: The Palatinate is united with Bavaria
						event = 125033 #BAY: The Palatinate is united with Bavaria (Palatinate inherited Burgundy)
					}
				}
				event = 255008 #PFA: The Wittelsbach inheritance of Bavaria
			}
			NOT = {
				AND = {
					exists = HAB
					OR = {
						event = 125035 #BAY: Straubing is ceded to Austria
						event = 255009 #PFA: Straubing is ceded to Austria
					}
				}
			}
			NOT = { owned = { province = 348 data = PFA } } #Ansbach
		}
	}
	random = yes
	province = 348 #Ansbach
	name = "AI_EVENT"
	desc = "Bavaria"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = PFA value = 348 } #Ansbach
		command = { type = relation which = PFA value = 10 }
	}
}
event = {
	id = 5006007
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { core = { province = 348 data = -1 } } #Ansbach
		year = 1430 #LUX and HAB before
		AND = {
			exists = HAB
			OR = {
				event = 125035 #BAY: Straubing is ceded to Austria
				event = 255009 #PFA: Straubing is ceded to Austria
			}
			NOT = { owned = { province = 348 data = HAB } } #Ansbach
		}
	}
	random = yes
	province = 348 #Ansbach
	name = "AI_EVENT"
	desc = "Bavaria"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = HAB value = 348 } #Ansbach
		command = { type = relation which = HAB value = 10 }
	}
}

#Berg
#simplified version
event = {
	id = 5006008
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = BRG }
		NOT = { core = { province = 343 data = -1 } } #Kleves
		NOT = { year = 1609 }
	}
	random = yes
	province = 334 #Kleves
	name = "AI_EVENT"
	desc = "Berg"

	action_a = {
		name = "OK"
		command = { type = independence which = BRG }
	}
}

#Brandenburg - Prussia
event = {
	id = 5006009
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = BRA }
		NOT = { core = { province = 312 data = -1 } } #Brandenburg
		NOT = {
			AND = {
				exists = PRU
				event = 263014 #PRU: The Kingdom of Prussia
			}
		}
	}
	random = yes
	province = 312 #Brandenburg
	name = "AI_EVENT"
	desc = "Brandenburg"

	action_a = {
		name = "OK"
		command = { type = independence which = BRA }
	}
}
event = {
	id = 5006011
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = BRA }
		NOT = { core = { province = 312 data = -1 } } #Brandenburg
		AND = {
			exists = PRU
			event = 263014 #PRU: The Kingdom of Prussia
			NOT = { owned = { province = 312 data = PRU } } #Brandenburg
		}
	}
	random = yes
	province = 312 #Brandenburg
	name = "AI_EVENT"
	desc = "Brandenburg"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = PRU value = 312 } #Brandenburg
		command = { type = relation which = PRU value = 10 }
	}
}
event = {
	id = 5006012
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = BRA }
		NOT = { core = { province = 313 data = -1 } } #Küstrin
		NOT = { owned = { province = 312 data = -1 } } #Brandenburg
		NOT = {
			AND = {
				exists = PRU
				event = 263014 #PRU: The Kingdom of Prussia
			}
		}
	}
	random = yes
	province = 313 #Küstrin
	name = "AI_EVENT"
	desc = "Brandenburg"

	action_a = {
		name = "OK"
		command = { type = independence which = BRA }
	}
}
event = {
	id = 5006014
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		exists = BRA
		NOT = { core = { province = 313 data = -1 } } #Küstrin
		NOT = { owned = { province = 313 data = BRA } } #Küstrin
	}
	random = yes
	province = 313 #Küstrin
	name = "AI_EVENT"
	desc = "Brandenburg"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = BRA value = 313 } #Küstrin
		command = { type = relation which = BRA value = 10 }
	}
}
event = {
	id = 5006015
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = BRA }
		NOT = { core = { province = 313 data = -1 } } #Küstrin
		AND = {
			exists = PRU
			event = 263014 #PRU: The Kingdom of Prussia
			NOT = { owned = { province = 312 data = PRU } } #Brandenburg
		}
	}
	random = yes
	province = 313 #Küstrin
	name = "AI_EVENT"
	desc = "Brandenburg"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = PRU value = 313 } #Küstrin
		command = { type = relation which = PRU value = 10 }
	}
}
event = {
	id = 5006016
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		exists = BRA
		NOT = { core = { province = 311 data = -1 } } #Magdeburg
		NOT = { owned = { province = 311 data = BRA } } #Magdeburg
	}
	random = yes
	province = 311 #Magdeburg
	name = "AI_EVENT"
	desc = "Brandenburg"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = BRA value = 311 } #Magdeburg
		command = { type = relation which = BRA value = 10 }
	}
}
event = {
	id = 5006017
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = BRA }
		NOT = { core = { province = 311 data = -1 } } #Magdeburg
		AND = {
			exists = PRU
			event = 263014 #PRU: The Kingdom of Prussia
			NOT = { owned = { province = 311 data = PRU } } #Magdeburg
		}
	}
	random = yes
	province = 311 #Magdeburg
	name = "AI_EVENT"
	desc = "Brandenburg"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = PRU value = 311 } #Magdeburg
		command = { type = relation which = PRU value = 10 }
	}
}

#Bremen
event = {
	id = 5006018
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = BRE }
		NOT = { core = { province = 336 data = -1 } } #Bremen
	}
	random = yes
	province = 336 #Bremen
	name = "AI_EVENT"
	desc = "Bremen"

	action_a = {
		name = "OK"
		command = { type = independence which = BRE }
	}
}

#Cleves
#simplified version
event = {
	id = 5006019
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = KLE }
		NOT = { core = { province = 334 data = -1 } } #Münster
		NOT = {
			event = 235009 #BRG: Union with Kleve-Mark
			year = 1609
		}
	}
	random = yes
	province = 334 #Münster
	name = "AI_EVENT"
	desc = "Cleves"

	action_a = {
		name = "OK"
		command = { type = independence which = KLE }
	}
}
event = {
	id = 5006020
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = KLE }
		NOT = { core = { province = 334 data = -1 } } #Münster
		AND = {
			exists = BRG
			event = 235009 #BRG: Union with Kleve-Mark
			NOT = { owned = { province = 334 data = BRG } } #Münster
			NOT = { year = 1609 }
		}
	}
	random = yes
	province = 334 #Münster
	name = "AI_EVENT"
	desc = "Cleves"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = BRG value = 334 } #Münster
		command = { type = relation which = BRG value = 10 }
	}
}

#Cologne
event = {
	id = 5006021
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = KOL }
		NOT = { core = { province = 344 data = -1 } } #Köln
	}
	random = yes
	province = 344 #Köln
	name = "AI_EVENT"
	desc = "Cologne"

	action_a = {
		name = "OK"
		command = { type = independence which = KOL }
	}
}

#Hanover
event = {
	id = 5006022
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = HAN }
		NOT = { core = { province = 310 data = -1 } } #Hannover
	}
	random = yes
	province = 310 #Hannover
	name = "AI_EVENT"
	desc = "Hanover"

	action_a = {
		name = "OK"
		command = { type = independence which = HAN }
	}
}

#Hesse
event = {
	id = 5006023
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = HES }
		NOT = { core = { province = 333 data = -1 } } #Hessen
	}
	random = yes
	province = 333 #Hessen
	name = "AI_EVENT"
	desc = "Hesse"

	action_a = {
		name = "OK"
		command = { type = independence which = HES }
	}
}

#Holstein
event = {
	id = 5006024
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = SHL }
		NOT = { core = { province = 306 data = -1 } } #Holstein
		NOT = {
			AND = {
				event = 159034 #DAN: Denmark inherits Holstein
				NOT = { event = 159011 } #DAN: The fate of Holstein
			}
			event = 247002 #OLD: Oldenburg inherits Holstein
		}
	}
	random = yes
	province = 306 #Holstein
	name = "AI_EVENT"
	desc = "Holstein"

	action_a = {
		name = "OK"
		command = { type = independence which = SHL }
	}
}
event = {
	id = 5006010
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = SHL }
		NOT = { core = { province = 306 data = -1 } } #Holstein
		AND = {
			exists = OLD
			event = 247002 #OLD: Oldenburg inherits Holstein
			NOT = { owned = { province = 306 data = OLD } } #Holstein
		}
	}
	random = yes
	province = 306 #Holstein
	name = "AI_EVENT"
	desc = "Holstein"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = OLD value = 306 } #Holstein
		command = { type = relation which = OLD value = 10 }
	}
}

#Lorraine
event = {
	id = 5006026
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = LOR }
		NOT = { core = { province = 375 data = -1 } } #Lorraine
		NOT = {
			event = 3736 #FRA: French Inheritance of Lothringen
			year = 1766
		}
	}
	random = yes
	province = 375 #Lorraine
	name = "AI_EVENT"
	desc = "Lorraine"

	action_a = {
		name = "OK"
		command = { type = independence which = LOR }
	}
}

#Luxemburg
event = {
	id = 5006028
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = LUX }
		NOT = { core = { province = 377 data = -1 } } #Luxembourg
		NOT = {
			event = 137306 #BUR: Annexation of Luxemburg
			year = 1451 #Burgundian monarchs
		}
	}
	random = yes
	province = 377 #Luxembourg
	name = "AI_EVENT"
	desc = "Luxemburg"

	action_a = {
		name = "OK"
		command = { type = independence which = LUX }
	}
}
event = {
	id = 5006029
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = LUX }
		NOT = { core = { province = 377 data = -1 } } #Luxembourg
		AND = {
			exists = BUR
			event = 137306 #BUR: Annexation of Luxemburg
			NOT = { owned = { province = 377 data = BUR } } #Luxembourg
		}
	}
	random = yes
	province = 377 #Luxembourg
	name = "AI_EVENT"
	desc = "Luxemburg"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = BUR value = 377 } #Luxembourg
		command = { type = relation which = BUR value = 10 }
	}
}

#Mainz
event = {
	id = 5006030
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = MAI }
		NOT = { core = { province = 346 data = -1 } } #Mainz
	}
	random = yes
	province = 346 #Mainz
	name = "AI_EVENT"
	desc = "Mainz"

	action_a = {
		name = "OK"
		command = { type = independence which = MAI }
	}
}

#Mecklenburg
event = {
	id = 5006031
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = MEC }
		NOT = { core = { province = 305 data = -1 } } #Mecklenburg
	}
	random = yes
	province = 305 #Mecklenburg
	name = "AI_EVENT"
	desc = "Mecklenburg"

	action_a = {
		name = "OK"
		command = { type = independence which = MEC }
	}
}

#Oldenburg
event = {
	id = 5006032
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = OLD }
		NOT = { core = { province = 335 data = -1 } } #Oldenburg
		NOT = {
			event = 159033 #DAN: Oldenburg is incorporated into Denmark
			event = 279010 #SHL: Holstein inherits Oldenburg
		}
	}
	random = yes
	province = 335 #Oldenburg
	name = "AI_EVENT"
	desc = "Oldenburg"

	action_a = {
		name = "OK"
		command = { type = independence which = OLD }
	}
}
event = {
	id = 5006013
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = OLD }
		NOT = { core = { province = 335 data = -1 } } #Oldenburg
		AND = {
			exists = SHL
			event = 279010 #SHL: Holstein inherits Oldenburg
			NOT = { owned = { province = 335 data = SHL } } #Oldenburg
		}
	}
	random = yes
	province = 335 #Oldenburg
	name = "AI_EVENT"
	desc = "Oldenburg"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = SHL value = 335 } #Oldenburg
		command = { type = relation which = SHL value = 10 }
	}
}

#Palatinate
event = {
	id = 5006033
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = PFA }
		NOT = { core = { province = 345 data = -1 } } #Pfalz
		NOT = {
			event = 125021 #BAY: The Palatinate is united with Bavaria
			event = 125033 #BAY: The Palatinate is united with Bavaria
		}
	}
	random = yes
	province = 345 #Pfalz
	name = "AI_EVENT"
	desc = "Palatinate"

	action_a = {
		name = "OK"
		command = { type = independence which = PFA }
	}
}
event = {
	id = 5006034
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		exists = PFA
		NOT = { core = { province = 345 data = -1 } } #Pfalz
	}
	random = yes
	province = 345 #Pfalz
	name = "AI_EVENT"
	desc = "Palatinate"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = PFA value = 345 } #Pfalz
		command = { type = relation which = PFA value = 10 }
	}
}
event = {
	id = 5006035
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = PFA }
		NOT = { core = { province = 345 data = -1 } } #Pfalz
		AND = {
			exists = BAY
			OR = {
				event = 125021 #BAY: The Palatinate is united with Bavaria
				event = 125033 #BAY: The Palatinate is united with Bavaria
			}
			NOT = { owned = { province = 345 data = BAY } } #Pfalz
		}
	}
	random = yes
	province = 345 #Pfalz
	name = "AI_EVENT"
	desc = "Palatinate"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = BAY value = 345 } #Pfalz
		command = { type = relation which = BAY value = 10 }
	}
}
event = {
	id = 5006036
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = PFA }
		NOT = { owned = { province = 345 data = -1 } } #Pfalz
		NOT = { core = { province = 347 data = -1 } } #Würzburg
		NOT = {
			event = 125021 #BAY: The Palatinate is united with Bavaria
			event = 125033 #BAY: The Palatinate is united with Bavaria
		}
	}
	random = yes
	province = 347 #Würzburg
	name = "AI_EVENT"
	desc = "Palatinate"

	action_a = {
		name = "OK"
		command = { type = independence which = PFA }
	}
}
event = {
	id = 5006037
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		exists = PFA
		NOT = { core = { province = 347 data = -1 } } #Würzburg
	}
	random = yes
	province = 347 #Würzburg
	name = "AI_EVENT"
	desc = "Palatinate"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = PFA value = 347 } #Würzburg
		command = { type = relation which = PFA value = 10 }
	}
}
event = {
	id = 5006038
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = PFA }
		NOT = { core = { province = 347 data = -1 } } #Würzburg
		AND = {
			exists = BAY
			OR = {
				event = 125021 #BAY: The Palatinate is united with Bavaria
				event = 125033 #BAY: The Palatinate is united with Bavaria
			}
			NOT = { owned = { province = 347 data = BAY } } #Würzburg
		}
	}
	random = yes
	province = 347 #Würzburg
	name = "AI_EVENT"
	desc = "Palatinate"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = BAY value = 347 } #Würzburg
		command = { type = relation which = BAY value = 10 }
	}
}

#Pomerania - Stettin
event = {
	id = 5006039
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = POM }
		NOT = { core = { province = 302 data = -1 } } #Hinterpommern
		NOT = {
			event = 291030 #SWE: The Acquisition of Pomerania
			event = 3896 #BRA: The Pommern Inheritance
			event = 132008 #BRA: The Pomeranian Inheritance
			event = 259016 #POM: The investiture of Brandenburg
			year = 1637
		}
	}
	random = yes
	province = 302 #Hinterpommern
	name = "AI_EVENT"
	desc = "Pomerania"

	action_a = {
		name = "OK"
		command = { type = independence which = POM }
	}
}
event = {
	id = 5006040
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = POM }
		NOT = { core = { province = 302 data = -1 } } #Hinterpommern
		AND = {
			exists = STT
			NOT = { owned = { province = 302 data = STT } } #Hinterpommern
		}
	}
	random = yes
	province = 302 #Hinterpommern
	name = "AI_EVENT"
	desc = "Pomerania"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = STT value = 302 } #Hinterpommern
		command = { type = relation which = STT value = 10 }
	}
}
event = {
	id = 5006041
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = POM }
		NOT = { core = { province = 302 data = -1 } } #Hinterpommern
		AND = {
			NOT = { exists = STT }
			exists = BRA
			OR = {
				event = 3896 #BRA: The Pommern Inheritance
				event = 132008 #BRA: The Pomeranian Inheritance
				event = 259016 #POM: The investiture of Brandenburg
			}
			NOT = { owned = { province = 302 data = BRA } } #Hinterpommern
		}
	}
	random = yes
	province = 302 #Hinterpommern
	name = "AI_EVENT"
	desc = "Pomerania"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = BRA value = 302 } #Hinterpommern
		command = { type = relation which = BRA value = 10 }
	}
}
event = {
	id = 5006042
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = POM }
		NOT = { core = { province = 302 data = -1 } } #Hinterpommern
		AND = {
			NOT = { exists = STT }
			NOT = { exists = BRA }
			AND = {
				exists = PRU
				event = 263014 #PRU: The Kingdom of Prussia
			}
			OR = {
				event = 3896 #BRA: The Pommern Inheritance
				event = 132008 #BRA: The Pomeranian Inheritance
				event = 259016 #POM: The investiture of Brandenburg
			}
			NOT = { owned = { province = 302 data = PRU } } #Hinterpommern
		}
	}
	random = yes
	province = 302 #Hinterpommern
	name = "AI_EVENT"
	desc = "Pomerania"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = PRU value = 302 } #Hinterpommern
		command = { type = relation which = PRU value = 10 }
	}
}
event = {
	id = 5006043
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = STT }
		NOT = { core = { province = 304 data = -1 } } #Vorpommern
		NOT = {
			event = 259000 #POM: Inheritance of Pomerania-Stettin
			AND = {
				event = 259001 #POM: Inheritance of Pomerania-Stettin
				NOT = {
					event = 132018 #BRA: Inheritance of Stettin
				}
			}
			event = 291029 #SWE: The Acquisition of Vorpommern
			event = 291030 #SWE: The Acquisition of Pomerania
			event = 3896 #BRA: The Pommern Inheritance
			event = 132008 #BRA: The Pomeranian Inheritance
			event = 259016 #POM: The investiture of Brandenburg
			year = 1570
		}
	}
	random = yes
	province = 304 #Vorpommern
	name = "AI_EVENT"
	desc = "Pomerania"

	action_a = {
		name = "OK"
		command = { type = independence which = STT }
	}
}
event = {
	id = 5006044
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = STT }
		NOT = { core = { province = 304 data = -1 } } #Vorpommern
		AND = {
			exists = POM
			OR = {
				event = 259000 #POM: Inheritance of Pomerania-Stettin
				AND = {
					event = 259001 #POM: Inheritance of Pomerania-Stettin
					NOT = {
						event = 132018 #BRA: Inheritance of Stettin
					}
				}
			}
			NOT = { owned = { province = 304 data = POM } } #Vorpommern
		}
	}
	random = yes
	province = 304 #Vorpommern
	name = "AI_EVENT"
	desc = "Pomerania"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = POM value = 304 } #Vorpommern
		command = { type = relation which = POM value = 10 }
	}
}
event = {
	id = 5006045
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = STT }
		NOT = { core = { province = 304 data = -1 } } #Vorpommern
		AND = {
			NOT = { exists = POM }
			AND = {
				exists = BRA
				OR = {
					event = 3896 #BRA: The Pommern Inheritance
					event = 132008 #BRA: The Pomeranian Inheritance
					event = 259016 #POM: The investiture of Brandenburg
				}
				NOT = { owned = { province = 304 data = BRA } } #Vorpommern
			}
		}
	}
	random = yes
	province = 304 #Vorpommern
	name = "AI_EVENT"
	desc = "Pomerania"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = BRA value = 304 } #Vorpommern
		command = { type = relation which = BRA value = 10 }
	}
}
event = {
	id = 5006046
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = POM }
		NOT = { core = { province = 304 data = -1 } } #Vorpommern
		AND = {
			NOT = { exists = POM }
			AND = {
				NOT = { exists = BRA }
				AND = {
					exists = PRU
					event = 263014 #PRU: The Kingdom of Prussia
				}
				OR = {
					event = 3896 #BRA: The Pommern Inheritance
					event = 132008 #BRA: The Pomeranian Inheritance
					event = 259016 #POM: The investiture of Brandenburg
				}
				NOT = { owned = { province = 304 data = PRU } } #Vorpommern
			}
		}
	}
	random = yes
	province = 304 #Vorpommern
	name = "AI_EVENT"
	desc = "Pomerania"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = PRU value = 304 } #Vorpommern
		command = { type = relation which = PRU value = 10 }
	}
}

#Saxony - Meissen
#simplified version
event = {
	id = 5006048
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = {
			exists = SAC
			exists = MEI
		}
		NOT = { core = { province = 332 data = -1 } } #Anhalt
	}
	random = yes
	province = 332 #Anhalt
	name = "AI_EVENT"
	desc = "Saxony"

	action_a = {
		name = "OK"
		command = { type = independence which = SAC }
	}
}
event = {
	id = 5006049
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		exists = SAC
		NOT = { core = { province = 332 data = -1 } } #Anhalt
		NOT = { owned = { province = 332 data = SAC } } #Anhalt
	}
	random = yes
	province = 332 #Anhalt
	name = "AI_EVENT"
	desc = "Saxony"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = SAC value = 332 } #Anhalt
		command = { type = relation which = SAC value = 10 }
	}
}
event = {
	id = 5006050
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = SAC }
		NOT = { core = { province = 332 data = -1 } } #Anhalt
		AND = {
			exists = MEI
			NOT = { year = 1600 }
			NOT = { owned = { province = 332 data = MEI } } #Anhalt
		}
	}
	random = yes
	province = 332 #Anhalt
	name = "AI_EVENT"
	desc = "Saxony"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = MEI value = 332 } #Anhalt
		command = { type = relation which = MEI value = 10 }
	}
}
event = {
	id = 5006051
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		exists = SAC
		NOT = { core = { province = 331 data = -1 } } #Sachsen
		NOT = { owned = { province = 331 data = SAC } } #Sachsen
	}
	random = yes
	province = 331 #Sachsen
	name = "AI_EVENT"
	desc = "Saxony"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = SAC value = 331 } #Sachsen
		command = { type = relation which = SAC value = 10 }
	}
}
event = {
	id = 5006052
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = SAC }
		NOT = { core = { province = 331 data = -1 } } #Sachsen
		AND = {
			exists = MEI
			NOT = { year = 1600 }
			NOT = { owned = { province = 331 data = MEI } } #Sachsen
		}
	}
	random = yes
	province = 331 #Sachsen
	name = "AI_EVENT"
	desc = "Saxony"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = MEI value = 331 } #Sachsen
		command = { type = relation which = MEI value = 10 }
	}
}

#Strassburg
event = {
	id = 5006053
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = STR }
		NOT = { core = { province = 374 data = -1 } } #Alsace
	}
	random = yes
	province = 374 #Alsace
	name = "AI_EVENT"
	desc = "Strassburg"

	action_a = {
		name = "OK"
		command = { type = independence which = STR }
	}
}

#Wirtemberg
event = {
	id = 5006054
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = WUR }
		NOT = { core = { province = 372 data = -1 } } #Württemberg
		NOT = {
			AND = {
				exists = HAB
				core = { province = 372 data = HAB } #covers HAB_179004 and HAB_179006
				NOT = { owned = { province = 372 data = HAB } } #Württemberg
			}
		}
	}
	random = yes
	province = 372 #Württemberg
	name = "AI_EVENT"
	desc = "Wirtemberg"

	action_a = {
		name = "OK"
		command = { type = independence which = WUR }
	}
}
event = {
	id = 5006055
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = WUR }
		NOT = { core = { province = 372 data = -1 } } #Württemberg
		AND = {
			exists = HAB
			core = { province = 372 data = HAB } #covers HAB_179004 and HAB_179006
		}
	}
	random = yes
	province = 372 #Württemberg
	name = "AI_EVENT"
	desc = "Wirtemberg"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = HAB value = 372 } #Württemberg
		command = { type = relation which = HAB value = 10 }
	}
}

#-----------------------------------------------------------------------------------------------

#-----------------------------------------------------------------------------------------------

#Baden
event = {
	id = 5007000
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = BAD }
		NOT = { core = { province = 373 data = -1 } } #Baden
	}
	random = yes
	province = 349 #Baden
	name = "AI_EVENT"
	desc = "Baden"

	action_a = {
		name = "OK"
		command = { type = independence which = BAD }
	}
}

#Bavaria
event = {
	id = 5007001
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = BAY }
		NOT = { core = { province = 349 data = -1 } } #Bayern
		NOT = {
			AND = {
				event = 255003 #PFA: The Palatinate inherits Bavaria
				NOT = {
					event = 125021 #BAY: The Palatinate is united with Bavaria
					event = 125033 #BAY: The Palatinate is united with Bavaria (Palatinate inherited Burgundy)
				}
			}
			event = 255008 #PFA: The Wittelsbach inheritance of Bavaria
		}
	}
	random = yes
	province = 349 #Bayern
	name = "AI_EVENT"
	desc = "Bavaria"

	action_a = {
		name = "OK"
		command = { type = independence which = BAY }
	}
}
event = {
	id = 5007002
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		exists = BAY
		NOT = { core = { province = 349 data = -1 } } #Bayern
		NOT = { owned = { province = 349 data = BAY } } #Bayern
	}
	random = yes
	province = 349 #Bayern
	name = "AI_EVENT"
	desc = "Bavaria"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = BAY value = 349 } #Bayern
		command = { type = relation which = BAY value = 10 }
	}
}
event = {
	id = 5007003
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = BAY }
		NOT = { core = { province = 349 data = -1 } } #Bayern
		AND = {
			exists = PFA
			OR = {
				AND = {
					event = 255003 #PFA: The Palatinate inherits Bavaria
					NOT = {
						event = 125021 #BAY: The Palatinate is united with Bavaria
						event = 125033 #BAY: The Palatinate is united with Bavaria (Palatinate inherited Burgundy)
					}
				}
				event = 255008 #PFA: The Wittelsbach inheritance of Bavaria
			}
			NOT = { owned = { province = 349 data = PFA } } #Bayern
		}
	}
	random = yes
	province = 349 #Bayern
	name = "AI_EVENT"
	desc = "Bavaria"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = PFA value = 349 } #Bayern
		command = { type = relation which = PFA value = 10 }
	}
}
event = {
	id = 5007004
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = BAY }
		NOT = { owned = { province = 349 data = -1 } } #Bayern
		NOT = { core = { province = 348 data = -1 } } #Ansbach
		year = 1430 #LUX and HAB before
		NOT = {
			AND = {
				event = 255003 #PFA: The Palatinate inherits Bavaria
				NOT = {
					event = 125021 #BAY: The Palatinate is united with Bavaria
					event = 125033 #BAY: The Palatinate is united with Bavaria (Palatinate inherited Burgundy)
				}
			}
			event = 255008 #PFA: The Wittelsbach inheritance of Bavaria
			event = 125035 #BAY: Straubing is ceded to Austria
			event = 255009 #PFA: Straubing is ceded to Austria
		}
	}
	random = yes
	province = 348 #Ansbach
	name = "AI_EVENT"
	desc = "Bavaria"

	action_a = {
		name = "OK"
		command = { type = independence which = BAY }
	}
}
event = {
	id = 5007005
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		exists = BAY
		NOT = { core = { province = 348 data = -1 } } #Ansbach
		year = 1430 #LUX and HAB before
		NOT = {
			AND = {
				exists = HAB
				OR = {
					event = 125035 #BAY: Straubing is ceded to Austria
					event = 255009 #PFA: Straubing is ceded to Austria
				}
			}
			NOT = { owned = { province = 348 data = BAY } } #Ansbach
		}
	}
	random = yes
	province = 348 #Ansbach
	name = "AI_EVENT"
	desc = "Bavaria"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = BAY value = 348 } #Ansbach
		command = { type = relation which = BAY value = 10 }
	}
}
event = {
	id = 5007006
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = BAY }
		NOT = { core = { province = 348 data = -1 } } #Ansbach
		year = 1430 #LUX and HAB before
		AND = {
			exists = PFA
			OR = {
				AND = {
					event = 255003 #PFA: The Palatinate inherits Bavaria
					NOT = {
						event = 125021 #BAY: The Palatinate is united with Bavaria
						event = 125033 #BAY: The Palatinate is united with Bavaria (Palatinate inherited Burgundy)
					}
				}
				event = 255008 #PFA: The Wittelsbach inheritance of Bavaria
			}
			NOT = {
				AND = {
					exists = HAB
					OR = {
						event = 125035 #BAY: Straubing is ceded to Austria
						event = 255009 #PFA: Straubing is ceded to Austria
					}
				}
			}
			NOT = { owned = { province = 348 data = PFA } } #Ansbach
		}
	}
	random = yes
	province = 348 #Ansbach
	name = "AI_EVENT"
	desc = "Bavaria"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = PFA value = 348 } #Ansbach
		command = { type = relation which = PFA value = 10 }
	}
}
event = {
	id = 5007007
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { core = { province = 348 data = -1 } } #Ansbach
		year = 1430 #LUX and HAB before
		AND = {
			exists = HAB
			OR = {
				event = 125035 #BAY: Straubing is ceded to Austria
				event = 255009 #PFA: Straubing is ceded to Austria
			}
			NOT = { owned = { province = 348 data = HAB } } #Ansbach
		}
	}
	random = yes
	province = 348 #Ansbach
	name = "AI_EVENT"
	desc = "Bavaria"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = HAB value = 348 } #Ansbach
		command = { type = relation which = HAB value = 10 }
	}
}

#Berg
#simplified version
event = {
	id = 5007008
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = BRG }
		NOT = { core = { province = 343 data = -1 } } #Kleves
		NOT = { year = 1609 }
	}
	random = yes
	province = 334 #Kleves
	name = "AI_EVENT"
	desc = "Berg"

	action_a = {
		name = "OK"
		command = { type = independence which = BRG }
	}
}

#Brandenburg - Prussia
event = {
	id = 5007009
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = BRA }
		NOT = { core = { province = 312 data = -1 } } #Brandenburg
		NOT = {
			AND = {
				exists = PRU
				event = 263014 #PRU: The Kingdom of Prussia
			}
		}
	}
	random = yes
	province = 312 #Brandenburg
	name = "AI_EVENT"
	desc = "Brandenburg"

	action_a = {
		name = "OK"
		command = { type = independence which = BRA }
	}
}
event = {
	id = 5007011
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = BRA }
		NOT = { core = { province = 312 data = -1 } } #Brandenburg
		AND = {
			exists = PRU
			event = 263014 #PRU: The Kingdom of Prussia
			NOT = { owned = { province = 312 data = PRU } } #Brandenburg
		}
	}
	random = yes
	province = 312 #Brandenburg
	name = "AI_EVENT"
	desc = "Brandenburg"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = PRU value = 312 } #Brandenburg
		command = { type = relation which = PRU value = 10 }
	}
}
event = {
	id = 5007012
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = BRA }
		NOT = { core = { province = 313 data = -1 } } #Küstrin
		NOT = { owned = { province = 312 data = -1 } } #Brandenburg
		NOT = {
			AND = {
				exists = PRU
				event = 263014 #PRU: The Kingdom of Prussia
			}
		}
	}
	random = yes
	province = 313 #Küstrin
	name = "AI_EVENT"
	desc = "Brandenburg"

	action_a = {
		name = "OK"
		command = { type = independence which = BRA }
	}
}
event = {
	id = 5007014
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		exists = BRA
		NOT = { core = { province = 313 data = -1 } } #Küstrin
		NOT = { owned = { province = 313 data = BRA } } #Küstrin
	}
	random = yes
	province = 313 #Küstrin
	name = "AI_EVENT"
	desc = "Brandenburg"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = BRA value = 313 } #Küstrin
		command = { type = relation which = BRA value = 10 }
	}
}
event = {
	id = 5007015
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = BRA }
		NOT = { core = { province = 313 data = -1 } } #Küstrin
		AND = {
			exists = PRU
			event = 263014 #PRU: The Kingdom of Prussia
			NOT = { owned = { province = 312 data = PRU } } #Brandenburg
		}
	}
	random = yes
	province = 313 #Küstrin
	name = "AI_EVENT"
	desc = "Brandenburg"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = PRU value = 313 } #Küstrin
		command = { type = relation which = PRU value = 10 }
	}
}
event = {
	id = 5007016
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		exists = BRA
		NOT = { core = { province = 311 data = -1 } } #Magdeburg
		NOT = { owned = { province = 311 data = BRA } } #Magdeburg
	}
	random = yes
	province = 311 #Magdeburg
	name = "AI_EVENT"
	desc = "Brandenburg"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = BRA value = 311 } #Magdeburg
		command = { type = relation which = BRA value = 10 }
	}
}
event = {
	id = 5007017
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = BRA }
		NOT = { core = { province = 311 data = -1 } } #Magdeburg
		AND = {
			exists = PRU
			event = 263014 #PRU: The Kingdom of Prussia
			NOT = { owned = { province = 311 data = PRU } } #Magdeburg
		}
	}
	random = yes
	province = 311 #Magdeburg
	name = "AI_EVENT"
	desc = "Brandenburg"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = PRU value = 311 } #Magdeburg
		command = { type = relation which = PRU value = 10 }
	}
}

#Bremen
event = {
	id = 5007018
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = BRE }
		NOT = { core = { province = 336 data = -1 } } #Bremen
	}
	random = yes
	province = 336 #Bremen
	name = "AI_EVENT"
	desc = "Bremen"

	action_a = {
		name = "OK"
		command = { type = independence which = BRE }
	}
}

#Cleves
#simplified version
event = {
	id = 5007019
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = KLE }
		NOT = { core = { province = 334 data = -1 } } #Münster
		NOT = {
			event = 235009 #BRG: Union with Kleve-Mark
			year = 1609
		}
	}
	random = yes
	province = 334 #Münster
	name = "AI_EVENT"
	desc = "Cleves"

	action_a = {
		name = "OK"
		command = { type = independence which = KLE }
	}
}
event = {
	id = 5007020
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = KLE }
		NOT = { core = { province = 334 data = -1 } } #Münster
		AND = {
			exists = BRG
			event = 235009 #BRG: Union with Kleve-Mark
			NOT = { owned = { province = 334 data = BRG } } #Münster
			NOT = { year = 1609 }
		}
	}
	random = yes
	province = 334 #Münster
	name = "AI_EVENT"
	desc = "Cleves"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = BRG value = 334 } #Münster
		command = { type = relation which = BRG value = 10 }
	}
}

#Cologne
event = {
	id = 5007021
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = KOL }
		NOT = { core = { province = 344 data = -1 } } #Köln
	}
	random = yes
	province = 344 #Köln
	name = "AI_EVENT"
	desc = "Cologne"

	action_a = {
		name = "OK"
		command = { type = independence which = KOL }
	}
}

#Hanover
event = {
	id = 5007022
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = HAN }
		NOT = { core = { province = 310 data = -1 } } #Hannover
	}
	random = yes
	province = 310 #Hannover
	name = "AI_EVENT"
	desc = "Hanover"

	action_a = {
		name = "OK"
		command = { type = independence which = HAN }
	}
}

#Hesse
event = {
	id = 5007023
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = HES }
		NOT = { core = { province = 333 data = -1 } } #Hessen
	}
	random = yes
	province = 333 #Hessen
	name = "AI_EVENT"
	desc = "Hesse"

	action_a = {
		name = "OK"
		command = { type = independence which = HES }
	}
}

#Holstein
event = {
	id = 5007024
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = SHL }
		NOT = { core = { province = 306 data = -1 } } #Holstein
		NOT = {
			AND = {
				event = 159034 #DAN: Denmark inherits Holstein
				NOT = { event = 159011 } #DAN: The fate of Holstein
			}
			event = 247002 #OLD: Oldenburg inherits Holstein
		}
	}
	random = yes
	province = 306 #Holstein
	name = "AI_EVENT"
	desc = "Holstein"

	action_a = {
		name = "OK"
		command = { type = independence which = SHL }
	}
}
event = {
	id = 5007010
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = SHL }
		NOT = { core = { province = 306 data = -1 } } #Holstein
		AND = {
			exists = OLD
			event = 247002 #OLD: Oldenburg inherits Holstein
			NOT = { owned = { province = 306 data = OLD } } #Holstein
		}
	}
	random = yes
	province = 306 #Holstein
	name = "AI_EVENT"
	desc = "Holstein"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = OLD value = 306 } #Holstein
		command = { type = relation which = OLD value = 10 }
	}
}

#Lorraine
event = {
	id = 5007026
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = LOR }
		NOT = { core = { province = 375 data = -1 } } #Lorraine
		NOT = {
			event = 3736 #FRA: French Inheritance of Lothringen
			year = 1766
		}
	}
	random = yes
	province = 375 #Lorraine
	name = "AI_EVENT"
	desc = "Lorraine"

	action_a = {
		name = "OK"
		command = { type = independence which = LOR }
	}
}

#Luxemburg
event = {
	id = 5007028
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = LUX }
		NOT = { core = { province = 377 data = -1 } } #Luxembourg
		NOT = {
			event = 137306 #BUR: Annexation of Luxemburg
			year = 1451 #Burgundian monarchs
		}
	}
	random = yes
	province = 377 #Luxembourg
	name = "AI_EVENT"
	desc = "Luxemburg"

	action_a = {
		name = "OK"
		command = { type = independence which = LUX }
	}
}
event = {
	id = 5007029
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = LUX }
		NOT = { core = { province = 377 data = -1 } } #Luxembourg
		AND = {
			exists = BUR
			event = 137306 #BUR: Annexation of Luxemburg
			NOT = { owned = { province = 377 data = BUR } } #Luxembourg
		}
	}
	random = yes
	province = 377 #Luxembourg
	name = "AI_EVENT"
	desc = "Luxemburg"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = BUR value = 377 } #Luxembourg
		command = { type = relation which = BUR value = 10 }
	}
}

#Mainz
event = {
	id = 5007030
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = MAI }
		NOT = { core = { province = 346 data = -1 } } #Mainz
	}
	random = yes
	province = 346 #Mainz
	name = "AI_EVENT"
	desc = "Mainz"

	action_a = {
		name = "OK"
		command = { type = independence which = MAI }
	}
}

#Mecklenburg
event = {
	id = 5007031
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = MEC }
		NOT = { core = { province = 305 data = -1 } } #Mecklenburg
	}
	random = yes
	province = 305 #Mecklenburg
	name = "AI_EVENT"
	desc = "Mecklenburg"

	action_a = {
		name = "OK"
		command = { type = independence which = MEC }
	}
}

#Oldenburg
event = {
	id = 5007032
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = OLD }
		NOT = { core = { province = 335 data = -1 } } #Oldenburg
		NOT = {
			event = 159033 #DAN: Oldenburg is incorporated into Denmark
			event = 279010 #SHL: Holstein inherits Oldenburg
		}
	}
	random = yes
	province = 335 #Oldenburg
	name = "AI_EVENT"
	desc = "Oldenburg"

	action_a = {
		name = "OK"
		command = { type = independence which = OLD }
	}
}
event = {
	id = 5007013
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = OLD }
		NOT = { core = { province = 335 data = -1 } } #Oldenburg
		AND = {
			exists = SHL
			event = 279010 #SHL: Holstein inherits Oldenburg
			NOT = { owned = { province = 335 data = SHL } } #Oldenburg
		}
	}
	random = yes
	province = 335 #Oldenburg
	name = "AI_EVENT"
	desc = "Oldenburg"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = SHL value = 335 } #Oldenburg
		command = { type = relation which = SHL value = 10 }
	}
}

#Palatinate
event = {
	id = 5007033
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = PFA }
		NOT = { core = { province = 345 data = -1 } } #Pfalz
		NOT = {
			event = 125021 #BAY: The Palatinate is united with Bavaria
			event = 125033 #BAY: The Palatinate is united with Bavaria
		}
	}
	random = yes
	province = 345 #Pfalz
	name = "AI_EVENT"
	desc = "Palatinate"

	action_a = {
		name = "OK"
		command = { type = independence which = PFA }
	}
}
event = {
	id = 5007034
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		exists = PFA
		NOT = { core = { province = 345 data = -1 } } #Pfalz
	}
	random = yes
	province = 345 #Pfalz
	name = "AI_EVENT"
	desc = "Palatinate"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = PFA value = 345 } #Pfalz
		command = { type = relation which = PFA value = 10 }
	}
}
event = {
	id = 5007035
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = PFA }
		NOT = { core = { province = 345 data = -1 } } #Pfalz
		AND = {
			exists = BAY
			OR = {
				event = 125021 #BAY: The Palatinate is united with Bavaria
				event = 125033 #BAY: The Palatinate is united with Bavaria
			}
			NOT = { owned = { province = 345 data = BAY } } #Pfalz
		}
	}
	random = yes
	province = 345 #Pfalz
	name = "AI_EVENT"
	desc = "Palatinate"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = BAY value = 345 } #Pfalz
		command = { type = relation which = BAY value = 10 }
	}
}
event = {
	id = 5007036
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = PFA }
		NOT = { owned = { province = 345 data = -1 } } #Pfalz
		NOT = { core = { province = 347 data = -1 } } #Würzburg
		NOT = {
			event = 125021 #BAY: The Palatinate is united with Bavaria
			event = 125033 #BAY: The Palatinate is united with Bavaria
		}
	}
	random = yes
	province = 347 #Würzburg
	name = "AI_EVENT"
	desc = "Palatinate"

	action_a = {
		name = "OK"
		command = { type = independence which = PFA }
	}
}
event = {
	id = 5007037
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		exists = PFA
		NOT = { core = { province = 347 data = -1 } } #Würzburg
	}
	random = yes
	province = 347 #Würzburg
	name = "AI_EVENT"
	desc = "Palatinate"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = PFA value = 347 } #Würzburg
		command = { type = relation which = PFA value = 10 }
	}
}
event = {
	id = 5007038
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = PFA }
		NOT = { core = { province = 347 data = -1 } } #Würzburg
		AND = {
			exists = BAY
			OR = {
				event = 125021 #BAY: The Palatinate is united with Bavaria
				event = 125033 #BAY: The Palatinate is united with Bavaria
			}
			NOT = { owned = { province = 347 data = BAY } } #Würzburg
		}
	}
	random = yes
	province = 347 #Würzburg
	name = "AI_EVENT"
	desc = "Palatinate"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = BAY value = 347 } #Würzburg
		command = { type = relation which = BAY value = 10 }
	}
}

#Pomerania - Stettin
event = {
	id = 5007039
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = POM }
		NOT = { core = { province = 302 data = -1 } } #Hinterpommern
		NOT = {
			event = 291030 #SWE: The Acquisition of Pomerania
			event = 3896 #BRA: The Pommern Inheritance
			event = 132008 #BRA: The Pomeranian Inheritance
			event = 259016 #POM: The investiture of Brandenburg
			year = 1637
		}
	}
	random = yes
	province = 302 #Hinterpommern
	name = "AI_EVENT"
	desc = "Pomerania"

	action_a = {
		name = "OK"
		command = { type = independence which = POM }
	}
}
event = {
	id = 5007040
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = POM }
		NOT = { core = { province = 302 data = -1 } } #Hinterpommern
		AND = {
			exists = STT
			NOT = { owned = { province = 302 data = STT } } #Hinterpommern
		}
	}
	random = yes
	province = 302 #Hinterpommern
	name = "AI_EVENT"
	desc = "Pomerania"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = STT value = 302 } #Hinterpommern
		command = { type = relation which = STT value = 10 }
	}
}
event = {
	id = 5007041
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = POM }
		NOT = { core = { province = 302 data = -1 } } #Hinterpommern
		AND = {
			NOT = { exists = STT }
			exists = BRA
			OR = {
				event = 3896 #BRA: The Pommern Inheritance
				event = 132008 #BRA: The Pomeranian Inheritance
				event = 259016 #POM: The investiture of Brandenburg
			}
			NOT = { owned = { province = 302 data = BRA } } #Hinterpommern
		}
	}
	random = yes
	province = 302 #Hinterpommern
	name = "AI_EVENT"
	desc = "Pomerania"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = BRA value = 302 } #Hinterpommern
		command = { type = relation which = BRA value = 10 }
	}
}
event = {
	id = 5007042
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = POM }
		NOT = { core = { province = 302 data = -1 } } #Hinterpommern
		AND = {
			NOT = { exists = STT }
			NOT = { exists = BRA }
			AND = {
				exists = PRU
				event = 263014 #PRU: The Kingdom of Prussia
			}
			OR = {
				event = 3896 #BRA: The Pommern Inheritance
				event = 132008 #BRA: The Pomeranian Inheritance
				event = 259016 #POM: The investiture of Brandenburg
			}
			NOT = { owned = { province = 302 data = PRU } } #Hinterpommern
		}
	}
	random = yes
	province = 302 #Hinterpommern
	name = "AI_EVENT"
	desc = "Pomerania"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = PRU value = 302 } #Hinterpommern
		command = { type = relation which = PRU value = 10 }
	}
}
event = {
	id = 5007043
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = STT }
		NOT = { core = { province = 304 data = -1 } } #Vorpommern
		NOT = {
			event = 259000 #POM: Inheritance of Pomerania-Stettin
			AND = {
				event = 259001 #POM: Inheritance of Pomerania-Stettin
				NOT = {
					event = 132018 #BRA: Inheritance of Stettin
				}
			}
			event = 291029 #SWE: The Acquisition of Vorpommern
			event = 291030 #SWE: The Acquisition of Pomerania
			event = 3896 #BRA: The Pommern Inheritance
			event = 132008 #BRA: The Pomeranian Inheritance
			event = 259016 #POM: The investiture of Brandenburg
			year = 1570
		}
	}
	random = yes
	province = 304 #Vorpommern
	name = "AI_EVENT"
	desc = "Pomerania"

	action_a = {
		name = "OK"
		command = { type = independence which = STT }
	}
}
event = {
	id = 5007044
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = STT }
		NOT = { core = { province = 304 data = -1 } } #Vorpommern
		AND = {
			exists = POM
			OR = {
				event = 259000 #POM: Inheritance of Pomerania-Stettin
				AND = {
					event = 259001 #POM: Inheritance of Pomerania-Stettin
					NOT = {
						event = 132018 #BRA: Inheritance of Stettin
					}
				}
			}
			NOT = { owned = { province = 304 data = POM } } #Vorpommern
		}
	}
	random = yes
	province = 304 #Vorpommern
	name = "AI_EVENT"
	desc = "Pomerania"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = POM value = 304 } #Vorpommern
		command = { type = relation which = POM value = 10 }
	}
}
event = {
	id = 5007045
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = STT }
		NOT = { core = { province = 304 data = -1 } } #Vorpommern
		AND = {
			NOT = { exists = POM }
			AND = {
				exists = BRA
				OR = {
					event = 3896 #BRA: The Pommern Inheritance
					event = 132008 #BRA: The Pomeranian Inheritance
					event = 259016 #POM: The investiture of Brandenburg
				}
				NOT = { owned = { province = 304 data = BRA } } #Vorpommern
			}
		}
	}
	random = yes
	province = 304 #Vorpommern
	name = "AI_EVENT"
	desc = "Pomerania"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = BRA value = 304 } #Vorpommern
		command = { type = relation which = BRA value = 10 }
	}
}
event = {
	id = 5007046
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = POM }
		NOT = { core = { province = 304 data = -1 } } #Vorpommern
		AND = {
			NOT = { exists = POM }
			AND = {
				NOT = { exists = BRA }
				AND = {
					exists = PRU
					event = 263014 #PRU: The Kingdom of Prussia
				}
				OR = {
					event = 3896 #BRA: The Pommern Inheritance
					event = 132008 #BRA: The Pomeranian Inheritance
					event = 259016 #POM: The investiture of Brandenburg
				}
				NOT = { owned = { province = 304 data = PRU } } #Vorpommern
			}
		}
	}
	random = yes
	province = 304 #Vorpommern
	name = "AI_EVENT"
	desc = "Pomerania"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = PRU value = 304 } #Vorpommern
		command = { type = relation which = PRU value = 10 }
	}
}

#Saxony - Meissen
#simplified version
event = {
	id = 5007048
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = {
			exists = SAC
			exists = MEI
		}
		NOT = { core = { province = 332 data = -1 } } #Anhalt
	}
	random = yes
	province = 332 #Anhalt
	name = "AI_EVENT"
	desc = "Saxony"

	action_a = {
		name = "OK"
		command = { type = independence which = SAC }
	}
}
event = {
	id = 5007049
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		exists = SAC
		NOT = { core = { province = 332 data = -1 } } #Anhalt
		NOT = { owned = { province = 332 data = SAC } } #Anhalt
	}
	random = yes
	province = 332 #Anhalt
	name = "AI_EVENT"
	desc = "Saxony"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = SAC value = 332 } #Anhalt
		command = { type = relation which = SAC value = 10 }
	}
}
event = {
	id = 5007050
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = SAC }
		NOT = { core = { province = 332 data = -1 } } #Anhalt
		AND = {
			exists = MEI
			NOT = { year = 1600 }
			NOT = { owned = { province = 332 data = MEI } } #Anhalt
		}
	}
	random = yes
	province = 332 #Anhalt
	name = "AI_EVENT"
	desc = "Saxony"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = MEI value = 332 } #Anhalt
		command = { type = relation which = MEI value = 10 }
	}
}
event = {
	id = 5007051
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		exists = SAC
		NOT = { core = { province = 331 data = -1 } } #Sachsen
		NOT = { owned = { province = 331 data = SAC } } #Sachsen
	}
	random = yes
	province = 331 #Sachsen
	name = "AI_EVENT"
	desc = "Saxony"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = SAC value = 331 } #Sachsen
		command = { type = relation which = SAC value = 10 }
	}
}
event = {
	id = 5007052
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = SAC }
		NOT = { core = { province = 331 data = -1 } } #Sachsen
		AND = {
			exists = MEI
			NOT = { year = 1600 }
			NOT = { owned = { province = 331 data = MEI } } #Sachsen
		}
	}
	random = yes
	province = 331 #Sachsen
	name = "AI_EVENT"
	desc = "Saxony"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = MEI value = 331 } #Sachsen
		command = { type = relation which = MEI value = 10 }
	}
}

#Strassburg
event = {
	id = 5007053
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = STR }
		NOT = { core = { province = 374 data = -1 } } #Alsace
	}
	random = yes
	province = 374 #Alsace
	name = "AI_EVENT"
	desc = "Strassburg"

	action_a = {
		name = "OK"
		command = { type = independence which = STR }
	}
}

#Wirtemberg
event = {
	id = 5007054
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = WUR }
		NOT = { core = { province = 372 data = -1 } } #Württemberg
		NOT = {
			AND = {
				exists = HAB
				core = { province = 372 data = HAB } #covers HAB_179004 and HAB_179006
				NOT = { owned = { province = 372 data = HAB } } #Württemberg
			}
		}
	}
	random = yes
	province = 372 #Württemberg
	name = "AI_EVENT"
	desc = "Wirtemberg"

	action_a = {
		name = "OK"
		command = { type = independence which = WUR }
	}
}
event = {
	id = 5007055
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = WUR }
		NOT = { core = { province = 372 data = -1 } } #Württemberg
		AND = {
			exists = HAB
			core = { province = 372 data = HAB } #covers HAB_179004 and HAB_179006
		}
	}
	random = yes
	province = 372 #Württemberg
	name = "AI_EVENT"
	desc = "Wirtemberg"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = HAB value = 372 } #Württemberg
		command = { type = relation which = HAB value = 10 }
	}
}

#-----------------------------------------------------------------------------------------------

#-----------------------------------------------------------------------------------------------

#Baden
event = {
	id = 5008000
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = BAD }
		NOT = { core = { province = 373 data = -1 } } #Baden
	}
	random = yes
	province = 349 #Baden
	name = "AI_EVENT"
	desc = "Baden"

	action_a = {
		name = "OK"
		command = { type = independence which = BAD }
	}
}

#Bavaria
event = {
	id = 5008001
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = BAY }
		NOT = { core = { province = 349 data = -1 } } #Bayern
		NOT = {
			AND = {
				event = 255003 #PFA: The Palatinate inherits Bavaria
				NOT = {
					event = 125021 #BAY: The Palatinate is united with Bavaria
					event = 125033 #BAY: The Palatinate is united with Bavaria (Palatinate inherited Burgundy)
				}
			}
			event = 255008 #PFA: The Wittelsbach inheritance of Bavaria
		}
	}
	random = yes
	province = 349 #Bayern
	name = "AI_EVENT"
	desc = "Bavaria"

	action_a = {
		name = "OK"
		command = { type = independence which = BAY }
	}
}
event = {
	id = 5008002
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		exists = BAY
		NOT = { core = { province = 349 data = -1 } } #Bayern
		NOT = { owned = { province = 349 data = BAY } } #Bayern
	}
	random = yes
	province = 349 #Bayern
	name = "AI_EVENT"
	desc = "Bavaria"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = BAY value = 349 } #Bayern
		command = { type = relation which = BAY value = 10 }
	}
}
event = {
	id = 5008003
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = BAY }
		NOT = { core = { province = 349 data = -1 } } #Bayern
		AND = {
			exists = PFA
			OR = {
				AND = {
					event = 255003 #PFA: The Palatinate inherits Bavaria
					NOT = {
						event = 125021 #BAY: The Palatinate is united with Bavaria
						event = 125033 #BAY: The Palatinate is united with Bavaria (Palatinate inherited Burgundy)
					}
				}
				event = 255008 #PFA: The Wittelsbach inheritance of Bavaria
			}
			NOT = { owned = { province = 349 data = PFA } } #Bayern
		}
	}
	random = yes
	province = 349 #Bayern
	name = "AI_EVENT"
	desc = "Bavaria"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = PFA value = 349 } #Bayern
		command = { type = relation which = PFA value = 10 }
	}
}
event = {
	id = 5008004
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = BAY }
		NOT = { owned = { province = 349 data = -1 } } #Bayern
		NOT = { core = { province = 348 data = -1 } } #Ansbach
		year = 1430 #LUX and HAB before
		NOT = {
			AND = {
				event = 255003 #PFA: The Palatinate inherits Bavaria
				NOT = {
					event = 125021 #BAY: The Palatinate is united with Bavaria
					event = 125033 #BAY: The Palatinate is united with Bavaria (Palatinate inherited Burgundy)
				}
			}
			event = 255008 #PFA: The Wittelsbach inheritance of Bavaria
			event = 125035 #BAY: Straubing is ceded to Austria
			event = 255009 #PFA: Straubing is ceded to Austria
		}
	}
	random = yes
	province = 348 #Ansbach
	name = "AI_EVENT"
	desc = "Bavaria"

	action_a = {
		name = "OK"
		command = { type = independence which = BAY }
	}
}
event = {
	id = 5008005
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		exists = BAY
		NOT = { core = { province = 348 data = -1 } } #Ansbach
		year = 1430 #LUX and HAB before
		NOT = {
			AND = {
				exists = HAB
				OR = {
					event = 125035 #BAY: Straubing is ceded to Austria
					event = 255009 #PFA: Straubing is ceded to Austria
				}
			}
			NOT = { owned = { province = 348 data = BAY } } #Ansbach
		}
	}
	random = yes
	province = 348 #Ansbach
	name = "AI_EVENT"
	desc = "Bavaria"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = BAY value = 348 } #Ansbach
		command = { type = relation which = BAY value = 10 }
	}
}
event = {
	id = 5008006
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = BAY }
		NOT = { core = { province = 348 data = -1 } } #Ansbach
		year = 1430 #LUX and HAB before
		AND = {
			exists = PFA
			OR = {
				AND = {
					event = 255003 #PFA: The Palatinate inherits Bavaria
					NOT = {
						event = 125021 #BAY: The Palatinate is united with Bavaria
						event = 125033 #BAY: The Palatinate is united with Bavaria (Palatinate inherited Burgundy)
					}
				}
				event = 255008 #PFA: The Wittelsbach inheritance of Bavaria
			}
			NOT = {
				AND = {
					exists = HAB
					OR = {
						event = 125035 #BAY: Straubing is ceded to Austria
						event = 255009 #PFA: Straubing is ceded to Austria
					}
				}
			}
			NOT = { owned = { province = 348 data = PFA } } #Ansbach
		}
	}
	random = yes
	province = 348 #Ansbach
	name = "AI_EVENT"
	desc = "Bavaria"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = PFA value = 348 } #Ansbach
		command = { type = relation which = PFA value = 10 }
	}
}
event = {
	id = 5008007
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { core = { province = 348 data = -1 } } #Ansbach
		year = 1430 #LUX and HAB before
		AND = {
			exists = HAB
			OR = {
				event = 125035 #BAY: Straubing is ceded to Austria
				event = 255009 #PFA: Straubing is ceded to Austria
			}
			NOT = { owned = { province = 348 data = HAB } } #Ansbach
		}
	}
	random = yes
	province = 348 #Ansbach
	name = "AI_EVENT"
	desc = "Bavaria"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = HAB value = 348 } #Ansbach
		command = { type = relation which = HAB value = 10 }
	}
}

#Berg
#simplified version
event = {
	id = 5008008
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = BRG }
		NOT = { core = { province = 343 data = -1 } } #Kleves
		NOT = { year = 1609 }
	}
	random = yes
	province = 334 #Kleves
	name = "AI_EVENT"
	desc = "Berg"

	action_a = {
		name = "OK"
		command = { type = independence which = BRG }
	}
}

#Brandenburg - Prussia
event = {
	id = 5008009
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = BRA }
		NOT = { core = { province = 312 data = -1 } } #Brandenburg
		NOT = {
			AND = {
				exists = PRU
				event = 263014 #PRU: The Kingdom of Prussia
			}
		}
	}
	random = yes
	province = 312 #Brandenburg
	name = "AI_EVENT"
	desc = "Brandenburg"

	action_a = {
		name = "OK"
		command = { type = independence which = BRA }
	}
}
event = {
	id = 5008011
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = BRA }
		NOT = { core = { province = 312 data = -1 } } #Brandenburg
		AND = {
			exists = PRU
			event = 263014 #PRU: The Kingdom of Prussia
			NOT = { owned = { province = 312 data = PRU } } #Brandenburg
		}
	}
	random = yes
	province = 312 #Brandenburg
	name = "AI_EVENT"
	desc = "Brandenburg"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = PRU value = 312 } #Brandenburg
		command = { type = relation which = PRU value = 10 }
	}
}
event = {
	id = 5008012
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = BRA }
		NOT = { core = { province = 313 data = -1 } } #Küstrin
		NOT = { owned = { province = 312 data = -1 } } #Brandenburg
		NOT = {
			AND = {
				exists = PRU
				event = 263014 #PRU: The Kingdom of Prussia
			}
		}
	}
	random = yes
	province = 313 #Küstrin
	name = "AI_EVENT"
	desc = "Brandenburg"

	action_a = {
		name = "OK"
		command = { type = independence which = BRA }
	}
}
event = {
	id = 5008014
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		exists = BRA
		NOT = { core = { province = 313 data = -1 } } #Küstrin
		NOT = { owned = { province = 313 data = BRA } } #Küstrin
	}
	random = yes
	province = 313 #Küstrin
	name = "AI_EVENT"
	desc = "Brandenburg"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = BRA value = 313 } #Küstrin
		command = { type = relation which = BRA value = 10 }
	}
}
event = {
	id = 5008015
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = BRA }
		NOT = { core = { province = 313 data = -1 } } #Küstrin
		AND = {
			exists = PRU
			event = 263014 #PRU: The Kingdom of Prussia
			NOT = { owned = { province = 312 data = PRU } } #Brandenburg
		}
	}
	random = yes
	province = 313 #Küstrin
	name = "AI_EVENT"
	desc = "Brandenburg"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = PRU value = 313 } #Küstrin
		command = { type = relation which = PRU value = 10 }
	}
}
event = {
	id = 5008016
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		exists = BRA
		NOT = { core = { province = 311 data = -1 } } #Magdeburg
		NOT = { owned = { province = 311 data = BRA } } #Magdeburg
	}
	random = yes
	province = 311 #Magdeburg
	name = "AI_EVENT"
	desc = "Brandenburg"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = BRA value = 311 } #Magdeburg
		command = { type = relation which = BRA value = 10 }
	}
}
event = {
	id = 5008017
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = BRA }
		NOT = { core = { province = 311 data = -1 } } #Magdeburg
		AND = {
			exists = PRU
			event = 263014 #PRU: The Kingdom of Prussia
			NOT = { owned = { province = 311 data = PRU } } #Magdeburg
		}
	}
	random = yes
	province = 311 #Magdeburg
	name = "AI_EVENT"
	desc = "Brandenburg"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = PRU value = 311 } #Magdeburg
		command = { type = relation which = PRU value = 10 }
	}
}

#Bremen
event = {
	id = 5008018
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = BRE }
		NOT = { core = { province = 336 data = -1 } } #Bremen
	}
	random = yes
	province = 336 #Bremen
	name = "AI_EVENT"
	desc = "Bremen"

	action_a = {
		name = "OK"
		command = { type = independence which = BRE }
	}
}

#Cleves
#simplified version
event = {
	id = 5008019
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = KLE }
		NOT = { core = { province = 334 data = -1 } } #Münster
		NOT = {
			event = 235009 #BRG: Union with Kleve-Mark
			year = 1609
		}
	}
	random = yes
	province = 334 #Münster
	name = "AI_EVENT"
	desc = "Cleves"

	action_a = {
		name = "OK"
		command = { type = independence which = KLE }
	}
}
event = {
	id = 5008020
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = KLE }
		NOT = { core = { province = 334 data = -1 } } #Münster
		AND = {
			exists = BRG
			event = 235009 #BRG: Union with Kleve-Mark
			NOT = { owned = { province = 334 data = BRG } } #Münster
			NOT = { year = 1609 }
		}
	}
	random = yes
	province = 334 #Münster
	name = "AI_EVENT"
	desc = "Cleves"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = BRG value = 334 } #Münster
		command = { type = relation which = BRG value = 10 }
	}
}

#Cologne
event = {
	id = 5008021
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = KOL }
		NOT = { core = { province = 344 data = -1 } } #Köln
	}
	random = yes
	province = 344 #Köln
	name = "AI_EVENT"
	desc = "Cologne"

	action_a = {
		name = "OK"
		command = { type = independence which = KOL }
	}
}

#Hanover
event = {
	id = 5008022
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = HAN }
		NOT = { core = { province = 310 data = -1 } } #Hannover
	}
	random = yes
	province = 310 #Hannover
	name = "AI_EVENT"
	desc = "Hanover"

	action_a = {
		name = "OK"
		command = { type = independence which = HAN }
	}
}

#Hesse
event = {
	id = 5008023
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = HES }
		NOT = { core = { province = 333 data = -1 } } #Hessen
	}
	random = yes
	province = 333 #Hessen
	name = "AI_EVENT"
	desc = "Hesse"

	action_a = {
		name = "OK"
		command = { type = independence which = HES }
	}
}

#Holstein
event = {
	id = 5008024
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = SHL }
		NOT = { core = { province = 306 data = -1 } } #Holstein
		NOT = {
			AND = {
				event = 159034 #DAN: Denmark inherits Holstein
				NOT = { event = 159011 } #DAN: The fate of Holstein
			}
			event = 247002 #OLD: Oldenburg inherits Holstein
		}
	}
	random = yes
	province = 306 #Holstein
	name = "AI_EVENT"
	desc = "Holstein"

	action_a = {
		name = "OK"
		command = { type = independence which = SHL }
	}
}
event = {
	id = 5008010
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = SHL }
		NOT = { core = { province = 306 data = -1 } } #Holstein
		AND = {
			exists = OLD
			event = 247002 #OLD: Oldenburg inherits Holstein
			NOT = { owned = { province = 306 data = OLD } } #Holstein
		}
	}
	random = yes
	province = 306 #Holstein
	name = "AI_EVENT"
	desc = "Holstein"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = OLD value = 306 } #Holstein
		command = { type = relation which = OLD value = 10 }
	}
}

#Lorraine
event = {
	id = 5008026
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = LOR }
		NOT = { core = { province = 375 data = -1 } } #Lorraine
		NOT = {
			event = 3736 #FRA: French Inheritance of Lothringen
			year = 1766
		}
	}
	random = yes
	province = 375 #Lorraine
	name = "AI_EVENT"
	desc = "Lorraine"

	action_a = {
		name = "OK"
		command = { type = independence which = LOR }
	}
}

#Luxemburg
event = {
	id = 5008028
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = LUX }
		NOT = { core = { province = 377 data = -1 } } #Luxembourg
		NOT = {
			event = 137306 #BUR: Annexation of Luxemburg
			year = 1451 #Burgundian monarchs
		}
	}
	random = yes
	province = 377 #Luxembourg
	name = "AI_EVENT"
	desc = "Luxemburg"

	action_a = {
		name = "OK"
		command = { type = independence which = LUX }
	}
}
event = {
	id = 5008029
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = LUX }
		NOT = { core = { province = 377 data = -1 } } #Luxembourg
		AND = {
			exists = BUR
			event = 137306 #BUR: Annexation of Luxemburg
			NOT = { owned = { province = 377 data = BUR } } #Luxembourg
		}
	}
	random = yes
	province = 377 #Luxembourg
	name = "AI_EVENT"
	desc = "Luxemburg"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = BUR value = 377 } #Luxembourg
		command = { type = relation which = BUR value = 10 }
	}
}

#Mainz
event = {
	id = 5008030
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = MAI }
		NOT = { core = { province = 346 data = -1 } } #Mainz
	}
	random = yes
	province = 346 #Mainz
	name = "AI_EVENT"
	desc = "Mainz"

	action_a = {
		name = "OK"
		command = { type = independence which = MAI }
	}
}

#Mecklenburg
event = {
	id = 5008031
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = MEC }
		NOT = { core = { province = 305 data = -1 } } #Mecklenburg
	}
	random = yes
	province = 305 #Mecklenburg
	name = "AI_EVENT"
	desc = "Mecklenburg"

	action_a = {
		name = "OK"
		command = { type = independence which = MEC }
	}
}

#Oldenburg
event = {
	id = 5008032
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = OLD }
		NOT = { core = { province = 335 data = -1 } } #Oldenburg
		NOT = {
			event = 159033 #DAN: Oldenburg is incorporated into Denmark
			event = 279010 #SHL: Holstein inherits Oldenburg
		}
	}
	random = yes
	province = 335 #Oldenburg
	name = "AI_EVENT"
	desc = "Oldenburg"

	action_a = {
		name = "OK"
		command = { type = independence which = OLD }
	}
}
event = {
	id = 5008013
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = OLD }
		NOT = { core = { province = 335 data = -1 } } #Oldenburg
		AND = {
			exists = SHL
			event = 279010 #SHL: Holstein inherits Oldenburg
			NOT = { owned = { province = 335 data = SHL } } #Oldenburg
		}
	}
	random = yes
	province = 335 #Oldenburg
	name = "AI_EVENT"
	desc = "Oldenburg"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = SHL value = 335 } #Oldenburg
		command = { type = relation which = SHL value = 10 }
	}
}

#Palatinate
event = {
	id = 5008033
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = PFA }
		NOT = { core = { province = 345 data = -1 } } #Pfalz
		NOT = {
			event = 125021 #BAY: The Palatinate is united with Bavaria
			event = 125033 #BAY: The Palatinate is united with Bavaria
		}
	}
	random = yes
	province = 345 #Pfalz
	name = "AI_EVENT"
	desc = "Palatinate"

	action_a = {
		name = "OK"
		command = { type = independence which = PFA }
	}
}
event = {
	id = 5008034
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		exists = PFA
		NOT = { core = { province = 345 data = -1 } } #Pfalz
	}
	random = yes
	province = 345 #Pfalz
	name = "AI_EVENT"
	desc = "Palatinate"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = PFA value = 345 } #Pfalz
		command = { type = relation which = PFA value = 10 }
	}
}
event = {
	id = 5008035
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = PFA }
		NOT = { core = { province = 345 data = -1 } } #Pfalz
		AND = {
			exists = BAY
			OR = {
				event = 125021 #BAY: The Palatinate is united with Bavaria
				event = 125033 #BAY: The Palatinate is united with Bavaria
			}
			NOT = { owned = { province = 345 data = BAY } } #Pfalz
		}
	}
	random = yes
	province = 345 #Pfalz
	name = "AI_EVENT"
	desc = "Palatinate"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = BAY value = 345 } #Pfalz
		command = { type = relation which = BAY value = 10 }
	}
}
event = {
	id = 5008036
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = PFA }
		NOT = { owned = { province = 345 data = -1 } } #Pfalz
		NOT = { core = { province = 347 data = -1 } } #Würzburg
		NOT = {
			event = 125021 #BAY: The Palatinate is united with Bavaria
			event = 125033 #BAY: The Palatinate is united with Bavaria
		}
	}
	random = yes
	province = 347 #Würzburg
	name = "AI_EVENT"
	desc = "Palatinate"

	action_a = {
		name = "OK"
		command = { type = independence which = PFA }
	}
}
event = {
	id = 5008037
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		exists = PFA
		NOT = { core = { province = 347 data = -1 } } #Würzburg
	}
	random = yes
	province = 347 #Würzburg
	name = "AI_EVENT"
	desc = "Palatinate"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = PFA value = 347 } #Würzburg
		command = { type = relation which = PFA value = 10 }
	}
}
event = {
	id = 5008038
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = PFA }
		NOT = { core = { province = 347 data = -1 } } #Würzburg
		AND = {
			exists = BAY
			OR = {
				event = 125021 #BAY: The Palatinate is united with Bavaria
				event = 125033 #BAY: The Palatinate is united with Bavaria
			}
			NOT = { owned = { province = 347 data = BAY } } #Würzburg
		}
	}
	random = yes
	province = 347 #Würzburg
	name = "AI_EVENT"
	desc = "Palatinate"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = BAY value = 347 } #Würzburg
		command = { type = relation which = BAY value = 10 }
	}
}

#Pomerania - Stettin
event = {
	id = 5008039
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = POM }
		NOT = { core = { province = 302 data = -1 } } #Hinterpommern
		NOT = {
			event = 291030 #SWE: The Acquisition of Pomerania
			event = 3896 #BRA: The Pommern Inheritance
			event = 132008 #BRA: The Pomeranian Inheritance
			event = 259016 #POM: The investiture of Brandenburg
			year = 1637
		}
	}
	random = yes
	province = 302 #Hinterpommern
	name = "AI_EVENT"
	desc = "Pomerania"

	action_a = {
		name = "OK"
		command = { type = independence which = POM }
	}
}
event = {
	id = 5008040
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = POM }
		NOT = { core = { province = 302 data = -1 } } #Hinterpommern
		AND = {
			exists = STT
			NOT = { owned = { province = 302 data = STT } } #Hinterpommern
		}
	}
	random = yes
	province = 302 #Hinterpommern
	name = "AI_EVENT"
	desc = "Pomerania"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = STT value = 302 } #Hinterpommern
		command = { type = relation which = STT value = 10 }
	}
}
event = {
	id = 5008041
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = POM }
		NOT = { core = { province = 302 data = -1 } } #Hinterpommern
		AND = {
			NOT = { exists = STT }
			exists = BRA
			OR = {
				event = 3896 #BRA: The Pommern Inheritance
				event = 132008 #BRA: The Pomeranian Inheritance
				event = 259016 #POM: The investiture of Brandenburg
			}
			NOT = { owned = { province = 302 data = BRA } } #Hinterpommern
		}
	}
	random = yes
	province = 302 #Hinterpommern
	name = "AI_EVENT"
	desc = "Pomerania"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = BRA value = 302 } #Hinterpommern
		command = { type = relation which = BRA value = 10 }
	}
}
event = {
	id = 5008042
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = POM }
		NOT = { core = { province = 302 data = -1 } } #Hinterpommern
		AND = {
			NOT = { exists = STT }
			NOT = { exists = BRA }
			AND = {
				exists = PRU
				event = 263014 #PRU: The Kingdom of Prussia
			}
			OR = {
				event = 3896 #BRA: The Pommern Inheritance
				event = 132008 #BRA: The Pomeranian Inheritance
				event = 259016 #POM: The investiture of Brandenburg
			}
			NOT = { owned = { province = 302 data = PRU } } #Hinterpommern
		}
	}
	random = yes
	province = 302 #Hinterpommern
	name = "AI_EVENT"
	desc = "Pomerania"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = PRU value = 302 } #Hinterpommern
		command = { type = relation which = PRU value = 10 }
	}
}
event = {
	id = 5008043
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = STT }
		NOT = { core = { province = 304 data = -1 } } #Vorpommern
		NOT = {
			event = 259000 #POM: Inheritance of Pomerania-Stettin
			AND = {
				event = 259001 #POM: Inheritance of Pomerania-Stettin
				NOT = {
					event = 132018 #BRA: Inheritance of Stettin
				}
			}
			event = 291029 #SWE: The Acquisition of Vorpommern
			event = 291030 #SWE: The Acquisition of Pomerania
			event = 3896 #BRA: The Pommern Inheritance
			event = 132008 #BRA: The Pomeranian Inheritance
			event = 259016 #POM: The investiture of Brandenburg
			year = 1570
		}
	}
	random = yes
	province = 304 #Vorpommern
	name = "AI_EVENT"
	desc = "Pomerania"

	action_a = {
		name = "OK"
		command = { type = independence which = STT }
	}
}
event = {
	id = 5008044
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = STT }
		NOT = { core = { province = 304 data = -1 } } #Vorpommern
		AND = {
			exists = POM
			OR = {
				event = 259000 #POM: Inheritance of Pomerania-Stettin
				AND = {
					event = 259001 #POM: Inheritance of Pomerania-Stettin
					NOT = {
						event = 132018 #BRA: Inheritance of Stettin
					}
				}
			}
			NOT = { owned = { province = 304 data = POM } } #Vorpommern
		}
	}
	random = yes
	province = 304 #Vorpommern
	name = "AI_EVENT"
	desc = "Pomerania"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = POM value = 304 } #Vorpommern
		command = { type = relation which = POM value = 10 }
	}
}
event = {
	id = 5008045
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = STT }
		NOT = { core = { province = 304 data = -1 } } #Vorpommern
		AND = {
			NOT = { exists = POM }
			AND = {
				exists = BRA
				OR = {
					event = 3896 #BRA: The Pommern Inheritance
					event = 132008 #BRA: The Pomeranian Inheritance
					event = 259016 #POM: The investiture of Brandenburg
				}
				NOT = { owned = { province = 304 data = BRA } } #Vorpommern
			}
		}
	}
	random = yes
	province = 304 #Vorpommern
	name = "AI_EVENT"
	desc = "Pomerania"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = BRA value = 304 } #Vorpommern
		command = { type = relation which = BRA value = 10 }
	}
}
event = {
	id = 5008046
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = POM }
		NOT = { core = { province = 304 data = -1 } } #Vorpommern
		AND = {
			NOT = { exists = POM }
			AND = {
				NOT = { exists = BRA }
				AND = {
					exists = PRU
					event = 263014 #PRU: The Kingdom of Prussia
				}
				OR = {
					event = 3896 #BRA: The Pommern Inheritance
					event = 132008 #BRA: The Pomeranian Inheritance
					event = 259016 #POM: The investiture of Brandenburg
				}
				NOT = { owned = { province = 304 data = PRU } } #Vorpommern
			}
		}
	}
	random = yes
	province = 304 #Vorpommern
	name = "AI_EVENT"
	desc = "Pomerania"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = PRU value = 304 } #Vorpommern
		command = { type = relation which = PRU value = 10 }
	}
}

#Saxony - Meissen
#simplified version
event = {
	id = 5008048
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = {
			exists = SAC
			exists = MEI
		}
		NOT = { core = { province = 332 data = -1 } } #Anhalt
	}
	random = yes
	province = 332 #Anhalt
	name = "AI_EVENT"
	desc = "Saxony"

	action_a = {
		name = "OK"
		command = { type = independence which = SAC }
	}
}
event = {
	id = 5008049
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		exists = SAC
		NOT = { core = { province = 332 data = -1 } } #Anhalt
		NOT = { owned = { province = 332 data = SAC } } #Anhalt
	}
	random = yes
	province = 332 #Anhalt
	name = "AI_EVENT"
	desc = "Saxony"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = SAC value = 332 } #Anhalt
		command = { type = relation which = SAC value = 10 }
	}
}
event = {
	id = 5008050
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = SAC }
		NOT = { core = { province = 332 data = -1 } } #Anhalt
		AND = {
			exists = MEI
			NOT = { year = 1600 }
			NOT = { owned = { province = 332 data = MEI } } #Anhalt
		}
	}
	random = yes
	province = 332 #Anhalt
	name = "AI_EVENT"
	desc = "Saxony"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = MEI value = 332 } #Anhalt
		command = { type = relation which = MEI value = 10 }
	}
}
event = {
	id = 5008051
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		exists = SAC
		NOT = { core = { province = 331 data = -1 } } #Sachsen
		NOT = { owned = { province = 331 data = SAC } } #Sachsen
	}
	random = yes
	province = 331 #Sachsen
	name = "AI_EVENT"
	desc = "Saxony"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = SAC value = 331 } #Sachsen
		command = { type = relation which = SAC value = 10 }
	}
}
event = {
	id = 5008052
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = SAC }
		NOT = { core = { province = 331 data = -1 } } #Sachsen
		AND = {
			exists = MEI
			NOT = { year = 1600 }
			NOT = { owned = { province = 331 data = MEI } } #Sachsen
		}
	}
	random = yes
	province = 331 #Sachsen
	name = "AI_EVENT"
	desc = "Saxony"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = MEI value = 331 } #Sachsen
		command = { type = relation which = MEI value = 10 }
	}
}

#Strassburg
event = {
	id = 5008053
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = STR }
		NOT = { core = { province = 374 data = -1 } } #Alsace
	}
	random = yes
	province = 374 #Alsace
	name = "AI_EVENT"
	desc = "Strassburg"

	action_a = {
		name = "OK"
		command = { type = independence which = STR }
	}
}

#Wirtemberg
event = {
	id = 5008054
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = WUR }
		NOT = { core = { province = 372 data = -1 } } #Württemberg
		NOT = {
			AND = {
				exists = HAB
				core = { province = 372 data = HAB } #covers HAB_179004 and HAB_179006
				NOT = { owned = { province = 372 data = HAB } } #Württemberg
			}
		}
	}
	random = yes
	province = 372 #Württemberg
	name = "AI_EVENT"
	desc = "Wirtemberg"

	action_a = {
		name = "OK"
		command = { type = independence which = WUR }
	}
}
event = {
	id = 5008055
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = WUR }
		NOT = { core = { province = 372 data = -1 } } #Württemberg
		AND = {
			exists = HAB
			core = { province = 372 data = HAB } #covers HAB_179004 and HAB_179006
		}
	}
	random = yes
	province = 372 #Württemberg
	name = "AI_EVENT"
	desc = "Wirtemberg"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = HAB value = 372 } #Württemberg
		command = { type = relation which = HAB value = 10 }
	}
}

#-----------------------------------------------------------------------------------------------

#-----------------------------------------------------------------------------------------------

#Baden
event = {
	id = 5009000
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = BAD }
		NOT = { core = { province = 373 data = -1 } } #Baden
	}
	random = yes
	province = 349 #Baden
	name = "AI_EVENT"
	desc = "Baden"

	action_a = {
		name = "OK"
		command = { type = independence which = BAD }
	}
}

#Bavaria
event = {
	id = 5009001
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = BAY }
		NOT = { core = { province = 349 data = -1 } } #Bayern
		NOT = {
			AND = {
				event = 255003 #PFA: The Palatinate inherits Bavaria
				NOT = {
					event = 125021 #BAY: The Palatinate is united with Bavaria
					event = 125033 #BAY: The Palatinate is united with Bavaria (Palatinate inherited Burgundy)
				}
			}
			event = 255008 #PFA: The Wittelsbach inheritance of Bavaria
		}
	}
	random = yes
	province = 349 #Bayern
	name = "AI_EVENT"
	desc = "Bavaria"

	action_a = {
		name = "OK"
		command = { type = independence which = BAY }
	}
}
event = {
	id = 5009002
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		exists = BAY
		NOT = { core = { province = 349 data = -1 } } #Bayern
		NOT = { owned = { province = 349 data = BAY } } #Bayern
	}
	random = yes
	province = 349 #Bayern
	name = "AI_EVENT"
	desc = "Bavaria"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = BAY value = 349 } #Bayern
		command = { type = relation which = BAY value = 10 }
	}
}
event = {
	id = 5009003
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = BAY }
		NOT = { core = { province = 349 data = -1 } } #Bayern
		AND = {
			exists = PFA
			OR = {
				AND = {
					event = 255003 #PFA: The Palatinate inherits Bavaria
					NOT = {
						event = 125021 #BAY: The Palatinate is united with Bavaria
						event = 125033 #BAY: The Palatinate is united with Bavaria (Palatinate inherited Burgundy)
					}
				}
				event = 255008 #PFA: The Wittelsbach inheritance of Bavaria
			}
			NOT = { owned = { province = 349 data = PFA } } #Bayern
		}
	}
	random = yes
	province = 349 #Bayern
	name = "AI_EVENT"
	desc = "Bavaria"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = PFA value = 349 } #Bayern
		command = { type = relation which = PFA value = 10 }
	}
}
event = {
	id = 5009004
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = BAY }
		NOT = { owned = { province = 349 data = -1 } } #Bayern
		NOT = { core = { province = 348 data = -1 } } #Ansbach
		year = 1430 #LUX and HAB before
		NOT = {
			AND = {
				event = 255003 #PFA: The Palatinate inherits Bavaria
				NOT = {
					event = 125021 #BAY: The Palatinate is united with Bavaria
					event = 125033 #BAY: The Palatinate is united with Bavaria (Palatinate inherited Burgundy)
				}
			}
			event = 255008 #PFA: The Wittelsbach inheritance of Bavaria
			event = 125035 #BAY: Straubing is ceded to Austria
			event = 255009 #PFA: Straubing is ceded to Austria
		}
	}
	random = yes
	province = 348 #Ansbach
	name = "AI_EVENT"
	desc = "Bavaria"

	action_a = {
		name = "OK"
		command = { type = independence which = BAY }
	}
}
event = {
	id = 5009005
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		exists = BAY
		NOT = { core = { province = 348 data = -1 } } #Ansbach
		year = 1430 #LUX and HAB before
		NOT = {
			AND = {
				exists = HAB
				OR = {
					event = 125035 #BAY: Straubing is ceded to Austria
					event = 255009 #PFA: Straubing is ceded to Austria
				}
			}
			NOT = { owned = { province = 348 data = BAY } } #Ansbach
		}
	}
	random = yes
	province = 348 #Ansbach
	name = "AI_EVENT"
	desc = "Bavaria"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = BAY value = 348 } #Ansbach
		command = { type = relation which = BAY value = 10 }
	}
}
event = {
	id = 5009006
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = BAY }
		NOT = { core = { province = 348 data = -1 } } #Ansbach
		year = 1430 #LUX and HAB before
		AND = {
			exists = PFA
			OR = {
				AND = {
					event = 255003 #PFA: The Palatinate inherits Bavaria
					NOT = {
						event = 125021 #BAY: The Palatinate is united with Bavaria
						event = 125033 #BAY: The Palatinate is united with Bavaria (Palatinate inherited Burgundy)
					}
				}
				event = 255008 #PFA: The Wittelsbach inheritance of Bavaria
			}
			NOT = {
				AND = {
					exists = HAB
					OR = {
						event = 125035 #BAY: Straubing is ceded to Austria
						event = 255009 #PFA: Straubing is ceded to Austria
					}
				}
			}
			NOT = { owned = { province = 348 data = PFA } } #Ansbach
		}
	}
	random = yes
	province = 348 #Ansbach
	name = "AI_EVENT"
	desc = "Bavaria"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = PFA value = 348 } #Ansbach
		command = { type = relation which = PFA value = 10 }
	}
}
event = {
	id = 5009007
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { core = { province = 348 data = -1 } } #Ansbach
		year = 1430 #LUX and HAB before
		AND = {
			exists = HAB
			OR = {
				event = 125035 #BAY: Straubing is ceded to Austria
				event = 255009 #PFA: Straubing is ceded to Austria
			}
			NOT = { owned = { province = 348 data = HAB } } #Ansbach
		}
	}
	random = yes
	province = 348 #Ansbach
	name = "AI_EVENT"
	desc = "Bavaria"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = HAB value = 348 } #Ansbach
		command = { type = relation which = HAB value = 10 }
	}
}

#Berg
#simplified version
event = {
	id = 5009008
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = BRG }
		NOT = { core = { province = 343 data = -1 } } #Kleves
		NOT = { year = 1609 }
	}
	random = yes
	province = 334 #Kleves
	name = "AI_EVENT"
	desc = "Berg"

	action_a = {
		name = "OK"
		command = { type = independence which = BRG }
	}
}

#Brandenburg - Prussia
event = {
	id = 5009009
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = BRA }
		NOT = { core = { province = 312 data = -1 } } #Brandenburg
		NOT = {
			AND = {
				exists = PRU
				event = 263014 #PRU: The Kingdom of Prussia
			}
		}
	}
	random = yes
	province = 312 #Brandenburg
	name = "AI_EVENT"
	desc = "Brandenburg"

	action_a = {
		name = "OK"
		command = { type = independence which = BRA }
	}
}
event = {
	id = 5009011
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = BRA }
		NOT = { core = { province = 312 data = -1 } } #Brandenburg
		AND = {
			exists = PRU
			event = 263014 #PRU: The Kingdom of Prussia
			NOT = { owned = { province = 312 data = PRU } } #Brandenburg
		}
	}
	random = yes
	province = 312 #Brandenburg
	name = "AI_EVENT"
	desc = "Brandenburg"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = PRU value = 312 } #Brandenburg
		command = { type = relation which = PRU value = 10 }
	}
}
event = {
	id = 5009012
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = BRA }
		NOT = { core = { province = 313 data = -1 } } #Küstrin
		NOT = { owned = { province = 312 data = -1 } } #Brandenburg
		NOT = {
			AND = {
				exists = PRU
				event = 263014 #PRU: The Kingdom of Prussia
			}
		}
	}
	random = yes
	province = 313 #Küstrin
	name = "AI_EVENT"
	desc = "Brandenburg"

	action_a = {
		name = "OK"
		command = { type = independence which = BRA }
	}
}
event = {
	id = 5009014
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		exists = BRA
		NOT = { core = { province = 313 data = -1 } } #Küstrin
		NOT = { owned = { province = 313 data = BRA } } #Küstrin
	}
	random = yes
	province = 313 #Küstrin
	name = "AI_EVENT"
	desc = "Brandenburg"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = BRA value = 313 } #Küstrin
		command = { type = relation which = BRA value = 10 }
	}
}
event = {
	id = 5009015
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = BRA }
		NOT = { core = { province = 313 data = -1 } } #Küstrin
		AND = {
			exists = PRU
			event = 263014 #PRU: The Kingdom of Prussia
			NOT = { owned = { province = 312 data = PRU } } #Brandenburg
		}
	}
	random = yes
	province = 313 #Küstrin
	name = "AI_EVENT"
	desc = "Brandenburg"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = PRU value = 313 } #Küstrin
		command = { type = relation which = PRU value = 10 }
	}
}
event = {
	id = 5009016
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		exists = BRA
		NOT = { core = { province = 311 data = -1 } } #Magdeburg
		NOT = { owned = { province = 311 data = BRA } } #Magdeburg
	}
	random = yes
	province = 311 #Magdeburg
	name = "AI_EVENT"
	desc = "Brandenburg"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = BRA value = 311 } #Magdeburg
		command = { type = relation which = BRA value = 10 }
	}
}
event = {
	id = 5009017
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = BRA }
		NOT = { core = { province = 311 data = -1 } } #Magdeburg
		AND = {
			exists = PRU
			event = 263014 #PRU: The Kingdom of Prussia
			NOT = { owned = { province = 311 data = PRU } } #Magdeburg
		}
	}
	random = yes
	province = 311 #Magdeburg
	name = "AI_EVENT"
	desc = "Brandenburg"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = PRU value = 311 } #Magdeburg
		command = { type = relation which = PRU value = 10 }
	}
}

#Bremen
event = {
	id = 5009018
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = BRE }
		NOT = { core = { province = 336 data = -1 } } #Bremen
	}
	random = yes
	province = 336 #Bremen
	name = "AI_EVENT"
	desc = "Bremen"

	action_a = {
		name = "OK"
		command = { type = independence which = BRE }
	}
}

#Cleves
#simplified version
event = {
	id = 5009019
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = KLE }
		NOT = { core = { province = 334 data = -1 } } #Münster
		NOT = {
			event = 235009 #BRG: Union with Kleve-Mark
			year = 1609
		}
	}
	random = yes
	province = 334 #Münster
	name = "AI_EVENT"
	desc = "Cleves"

	action_a = {
		name = "OK"
		command = { type = independence which = KLE }
	}
}
event = {
	id = 5009020
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = KLE }
		NOT = { core = { province = 334 data = -1 } } #Münster
		AND = {
			exists = BRG
			event = 235009 #BRG: Union with Kleve-Mark
			NOT = { owned = { province = 334 data = BRG } } #Münster
			NOT = { year = 1609 }
		}
	}
	random = yes
	province = 334 #Münster
	name = "AI_EVENT"
	desc = "Cleves"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = BRG value = 334 } #Münster
		command = { type = relation which = BRG value = 10 }
	}
}

#Cologne
event = {
	id = 5009021
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = KOL }
		NOT = { core = { province = 344 data = -1 } } #Köln
	}
	random = yes
	province = 344 #Köln
	name = "AI_EVENT"
	desc = "Cologne"

	action_a = {
		name = "OK"
		command = { type = independence which = KOL }
	}
}

#Hanover
event = {
	id = 5009022
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = HAN }
		NOT = { core = { province = 310 data = -1 } } #Hannover
	}
	random = yes
	province = 310 #Hannover
	name = "AI_EVENT"
	desc = "Hanover"

	action_a = {
		name = "OK"
		command = { type = independence which = HAN }
	}
}

#Hesse
event = {
	id = 5009023
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = HES }
		NOT = { core = { province = 333 data = -1 } } #Hessen
	}
	random = yes
	province = 333 #Hessen
	name = "AI_EVENT"
	desc = "Hesse"

	action_a = {
		name = "OK"
		command = { type = independence which = HES }
	}
}

#Holstein
event = {
	id = 5009024
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = SHL }
		NOT = { core = { province = 306 data = -1 } } #Holstein
		NOT = {
			AND = {
				event = 159034 #DAN: Denmark inherits Holstein
				NOT = { event = 159011 } #DAN: The fate of Holstein
			}
			event = 247002 #OLD: Oldenburg inherits Holstein
		}
	}
	random = yes
	province = 306 #Holstein
	name = "AI_EVENT"
	desc = "Holstein"

	action_a = {
		name = "OK"
		command = { type = independence which = SHL }
	}
}
event = {
	id = 5009010
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = SHL }
		NOT = { core = { province = 306 data = -1 } } #Holstein
		AND = {
			exists = OLD
			event = 247002 #OLD: Oldenburg inherits Holstein
			NOT = { owned = { province = 306 data = OLD } } #Holstein
		}
	}
	random = yes
	province = 306 #Holstein
	name = "AI_EVENT"
	desc = "Holstein"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = OLD value = 306 } #Holstein
		command = { type = relation which = OLD value = 10 }
	}
}

#Lorraine
event = {
	id = 5009026
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = LOR }
		NOT = { core = { province = 375 data = -1 } } #Lorraine
		NOT = {
			event = 3736 #FRA: French Inheritance of Lothringen
			year = 1766
		}
	}
	random = yes
	province = 375 #Lorraine
	name = "AI_EVENT"
	desc = "Lorraine"

	action_a = {
		name = "OK"
		command = { type = independence which = LOR }
	}
}

#Luxemburg
event = {
	id = 5009028
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = LUX }
		NOT = { core = { province = 377 data = -1 } } #Luxembourg
		NOT = {
			event = 137306 #BUR: Annexation of Luxemburg
			year = 1451 #Burgundian monarchs
		}
	}
	random = yes
	province = 377 #Luxembourg
	name = "AI_EVENT"
	desc = "Luxemburg"

	action_a = {
		name = "OK"
		command = { type = independence which = LUX }
	}
}
event = {
	id = 5009029
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = LUX }
		NOT = { core = { province = 377 data = -1 } } #Luxembourg
		AND = {
			exists = BUR
			event = 137306 #BUR: Annexation of Luxemburg
			NOT = { owned = { province = 377 data = BUR } } #Luxembourg
		}
	}
	random = yes
	province = 377 #Luxembourg
	name = "AI_EVENT"
	desc = "Luxemburg"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = BUR value = 377 } #Luxembourg
		command = { type = relation which = BUR value = 10 }
	}
}

#Mainz
event = {
	id = 5009030
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = MAI }
		NOT = { core = { province = 346 data = -1 } } #Mainz
	}
	random = yes
	province = 346 #Mainz
	name = "AI_EVENT"
	desc = "Mainz"

	action_a = {
		name = "OK"
		command = { type = independence which = MAI }
	}
}

#Mecklenburg
event = {
	id = 5009031
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = MEC }
		NOT = { core = { province = 305 data = -1 } } #Mecklenburg
	}
	random = yes
	province = 305 #Mecklenburg
	name = "AI_EVENT"
	desc = "Mecklenburg"

	action_a = {
		name = "OK"
		command = { type = independence which = MEC }
	}
}

#Oldenburg
event = {
	id = 5009032
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = OLD }
		NOT = { core = { province = 335 data = -1 } } #Oldenburg
		NOT = {
			event = 159033 #DAN: Oldenburg is incorporated into Denmark
			event = 279010 #SHL: Holstein inherits Oldenburg
		}
	}
	random = yes
	province = 335 #Oldenburg
	name = "AI_EVENT"
	desc = "Oldenburg"

	action_a = {
		name = "OK"
		command = { type = independence which = OLD }
	}
}
event = {
	id = 5009013
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = OLD }
		NOT = { core = { province = 335 data = -1 } } #Oldenburg
		AND = {
			exists = SHL
			event = 279010 #SHL: Holstein inherits Oldenburg
			NOT = { owned = { province = 335 data = SHL } } #Oldenburg
		}
	}
	random = yes
	province = 335 #Oldenburg
	name = "AI_EVENT"
	desc = "Oldenburg"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = SHL value = 335 } #Oldenburg
		command = { type = relation which = SHL value = 10 }
	}
}

#Palatinate
event = {
	id = 5009033
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = PFA }
		NOT = { core = { province = 345 data = -1 } } #Pfalz
		NOT = {
			event = 125021 #BAY: The Palatinate is united with Bavaria
			event = 125033 #BAY: The Palatinate is united with Bavaria
		}
	}
	random = yes
	province = 345 #Pfalz
	name = "AI_EVENT"
	desc = "Palatinate"

	action_a = {
		name = "OK"
		command = { type = independence which = PFA }
	}
}
event = {
	id = 5009034
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		exists = PFA
		NOT = { core = { province = 345 data = -1 } } #Pfalz
	}
	random = yes
	province = 345 #Pfalz
	name = "AI_EVENT"
	desc = "Palatinate"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = PFA value = 345 } #Pfalz
		command = { type = relation which = PFA value = 10 }
	}
}
event = {
	id = 5009035
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = PFA }
		NOT = { core = { province = 345 data = -1 } } #Pfalz
		AND = {
			exists = BAY
			OR = {
				event = 125021 #BAY: The Palatinate is united with Bavaria
				event = 125033 #BAY: The Palatinate is united with Bavaria
			}
			NOT = { owned = { province = 345 data = BAY } } #Pfalz
		}
	}
	random = yes
	province = 345 #Pfalz
	name = "AI_EVENT"
	desc = "Palatinate"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = BAY value = 345 } #Pfalz
		command = { type = relation which = BAY value = 10 }
	}
}
event = {
	id = 5009036
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = PFA }
		NOT = { owned = { province = 345 data = -1 } } #Pfalz
		NOT = { core = { province = 347 data = -1 } } #Würzburg
		NOT = {
			event = 125021 #BAY: The Palatinate is united with Bavaria
			event = 125033 #BAY: The Palatinate is united with Bavaria
		}
	}
	random = yes
	province = 347 #Würzburg
	name = "AI_EVENT"
	desc = "Palatinate"

	action_a = {
		name = "OK"
		command = { type = independence which = PFA }
	}
}
event = {
	id = 5009037
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		exists = PFA
		NOT = { core = { province = 347 data = -1 } } #Würzburg
	}
	random = yes
	province = 347 #Würzburg
	name = "AI_EVENT"
	desc = "Palatinate"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = PFA value = 347 } #Würzburg
		command = { type = relation which = PFA value = 10 }
	}
}
event = {
	id = 5009038
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = PFA }
		NOT = { core = { province = 347 data = -1 } } #Würzburg
		AND = {
			exists = BAY
			OR = {
				event = 125021 #BAY: The Palatinate is united with Bavaria
				event = 125033 #BAY: The Palatinate is united with Bavaria
			}
			NOT = { owned = { province = 347 data = BAY } } #Würzburg
		}
	}
	random = yes
	province = 347 #Würzburg
	name = "AI_EVENT"
	desc = "Palatinate"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = BAY value = 347 } #Würzburg
		command = { type = relation which = BAY value = 10 }
	}
}

#Pomerania - Stettin
event = {
	id = 5009039
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = POM }
		NOT = { core = { province = 302 data = -1 } } #Hinterpommern
		NOT = {
			event = 291030 #SWE: The Acquisition of Pomerania
			event = 3896 #BRA: The Pommern Inheritance
			event = 132008 #BRA: The Pomeranian Inheritance
			event = 259016 #POM: The investiture of Brandenburg
			year = 1637
		}
	}
	random = yes
	province = 302 #Hinterpommern
	name = "AI_EVENT"
	desc = "Pomerania"

	action_a = {
		name = "OK"
		command = { type = independence which = POM }
	}
}
event = {
	id = 5009040
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = POM }
		NOT = { core = { province = 302 data = -1 } } #Hinterpommern
		AND = {
			exists = STT
			NOT = { owned = { province = 302 data = STT } } #Hinterpommern
		}
	}
	random = yes
	province = 302 #Hinterpommern
	name = "AI_EVENT"
	desc = "Pomerania"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = STT value = 302 } #Hinterpommern
		command = { type = relation which = STT value = 10 }
	}
}
event = {
	id = 5009041
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = POM }
		NOT = { core = { province = 302 data = -1 } } #Hinterpommern
		AND = {
			NOT = { exists = STT }
			exists = BRA
			OR = {
				event = 3896 #BRA: The Pommern Inheritance
				event = 132008 #BRA: The Pomeranian Inheritance
				event = 259016 #POM: The investiture of Brandenburg
			}
			NOT = { owned = { province = 302 data = BRA } } #Hinterpommern
		}
	}
	random = yes
	province = 302 #Hinterpommern
	name = "AI_EVENT"
	desc = "Pomerania"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = BRA value = 302 } #Hinterpommern
		command = { type = relation which = BRA value = 10 }
	}
}
event = {
	id = 5009042
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = POM }
		NOT = { core = { province = 302 data = -1 } } #Hinterpommern
		AND = {
			NOT = { exists = STT }
			NOT = { exists = BRA }
			AND = {
				exists = PRU
				event = 263014 #PRU: The Kingdom of Prussia
			}
			OR = {
				event = 3896 #BRA: The Pommern Inheritance
				event = 132008 #BRA: The Pomeranian Inheritance
				event = 259016 #POM: The investiture of Brandenburg
			}
			NOT = { owned = { province = 302 data = PRU } } #Hinterpommern
		}
	}
	random = yes
	province = 302 #Hinterpommern
	name = "AI_EVENT"
	desc = "Pomerania"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = PRU value = 302 } #Hinterpommern
		command = { type = relation which = PRU value = 10 }
	}
}
event = {
	id = 5009043
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = STT }
		NOT = { core = { province = 304 data = -1 } } #Vorpommern
		NOT = {
			event = 259000 #POM: Inheritance of Pomerania-Stettin
			AND = {
				event = 259001 #POM: Inheritance of Pomerania-Stettin
				NOT = {
					event = 132018 #BRA: Inheritance of Stettin
				}
			}
			event = 291029 #SWE: The Acquisition of Vorpommern
			event = 291030 #SWE: The Acquisition of Pomerania
			event = 3896 #BRA: The Pommern Inheritance
			event = 132008 #BRA: The Pomeranian Inheritance
			event = 259016 #POM: The investiture of Brandenburg
			year = 1570
		}
	}
	random = yes
	province = 304 #Vorpommern
	name = "AI_EVENT"
	desc = "Pomerania"

	action_a = {
		name = "OK"
		command = { type = independence which = STT }
	}
}
event = {
	id = 5009044
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = STT }
		NOT = { core = { province = 304 data = -1 } } #Vorpommern
		AND = {
			exists = POM
			OR = {
				event = 259000 #POM: Inheritance of Pomerania-Stettin
				AND = {
					event = 259001 #POM: Inheritance of Pomerania-Stettin
					NOT = {
						event = 132018 #BRA: Inheritance of Stettin
					}
				}
			}
			NOT = { owned = { province = 304 data = POM } } #Vorpommern
		}
	}
	random = yes
	province = 304 #Vorpommern
	name = "AI_EVENT"
	desc = "Pomerania"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = POM value = 304 } #Vorpommern
		command = { type = relation which = POM value = 10 }
	}
}
event = {
	id = 5009045
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = STT }
		NOT = { core = { province = 304 data = -1 } } #Vorpommern
		AND = {
			NOT = { exists = POM }
			AND = {
				exists = BRA
				OR = {
					event = 3896 #BRA: The Pommern Inheritance
					event = 132008 #BRA: The Pomeranian Inheritance
					event = 259016 #POM: The investiture of Brandenburg
				}
				NOT = { owned = { province = 304 data = BRA } } #Vorpommern
			}
		}
	}
	random = yes
	province = 304 #Vorpommern
	name = "AI_EVENT"
	desc = "Pomerania"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = BRA value = 304 } #Vorpommern
		command = { type = relation which = BRA value = 10 }
	}
}
event = {
	id = 5009046
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = POM }
		NOT = { core = { province = 304 data = -1 } } #Vorpommern
		AND = {
			NOT = { exists = POM }
			AND = {
				NOT = { exists = BRA }
				AND = {
					exists = PRU
					event = 263014 #PRU: The Kingdom of Prussia
				}
				OR = {
					event = 3896 #BRA: The Pommern Inheritance
					event = 132008 #BRA: The Pomeranian Inheritance
					event = 259016 #POM: The investiture of Brandenburg
				}
				NOT = { owned = { province = 304 data = PRU } } #Vorpommern
			}
		}
	}
	random = yes
	province = 304 #Vorpommern
	name = "AI_EVENT"
	desc = "Pomerania"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = PRU value = 304 } #Vorpommern
		command = { type = relation which = PRU value = 10 }
	}
}

#Saxony - Meissen
#simplified version
event = {
	id = 5009048
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = {
			exists = SAC
			exists = MEI
		}
		NOT = { core = { province = 332 data = -1 } } #Anhalt
	}
	random = yes
	province = 332 #Anhalt
	name = "AI_EVENT"
	desc = "Saxony"

	action_a = {
		name = "OK"
		command = { type = independence which = SAC }
	}
}
event = {
	id = 5009049
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		exists = SAC
		NOT = { core = { province = 332 data = -1 } } #Anhalt
		NOT = { owned = { province = 332 data = SAC } } #Anhalt
	}
	random = yes
	province = 332 #Anhalt
	name = "AI_EVENT"
	desc = "Saxony"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = SAC value = 332 } #Anhalt
		command = { type = relation which = SAC value = 10 }
	}
}
event = {
	id = 5009050
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = SAC }
		NOT = { core = { province = 332 data = -1 } } #Anhalt
		AND = {
			exists = MEI
			NOT = { year = 1600 }
			NOT = { owned = { province = 332 data = MEI } } #Anhalt
		}
	}
	random = yes
	province = 332 #Anhalt
	name = "AI_EVENT"
	desc = "Saxony"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = MEI value = 332 } #Anhalt
		command = { type = relation which = MEI value = 10 }
	}
}
event = {
	id = 5009051
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		exists = SAC
		NOT = { core = { province = 331 data = -1 } } #Sachsen
		NOT = { owned = { province = 331 data = SAC } } #Sachsen
	}
	random = yes
	province = 331 #Sachsen
	name = "AI_EVENT"
	desc = "Saxony"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = SAC value = 331 } #Sachsen
		command = { type = relation which = SAC value = 10 }
	}
}
event = {
	id = 5009052
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = SAC }
		NOT = { core = { province = 331 data = -1 } } #Sachsen
		AND = {
			exists = MEI
			NOT = { year = 1600 }
			NOT = { owned = { province = 331 data = MEI } } #Sachsen
		}
	}
	random = yes
	province = 331 #Sachsen
	name = "AI_EVENT"
	desc = "Saxony"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = MEI value = 331 } #Sachsen
		command = { type = relation which = MEI value = 10 }
	}
}

#Strassburg
event = {
	id = 5009053
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = STR }
		NOT = { core = { province = 374 data = -1 } } #Alsace
	}
	random = yes
	province = 374 #Alsace
	name = "AI_EVENT"
	desc = "Strassburg"

	action_a = {
		name = "OK"
		command = { type = independence which = STR }
	}
}

#Wirtemberg
event = {
	id = 5009054
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = WUR }
		NOT = { core = { province = 372 data = -1 } } #Württemberg
		NOT = {
			AND = {
				exists = HAB
				core = { province = 372 data = HAB } #covers HAB_179004 and HAB_179006
				NOT = { owned = { province = 372 data = HAB } } #Württemberg
			}
		}
	}
	random = yes
	province = 372 #Württemberg
	name = "AI_EVENT"
	desc = "Wirtemberg"

	action_a = {
		name = "OK"
		command = { type = independence which = WUR }
	}
}
event = {
	id = 5009055
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = WUR }
		NOT = { core = { province = 372 data = -1 } } #Württemberg
		AND = {
			exists = HAB
			core = { province = 372 data = HAB } #covers HAB_179004 and HAB_179006
		}
	}
	random = yes
	province = 372 #Württemberg
	name = "AI_EVENT"
	desc = "Wirtemberg"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = HAB value = 372 } #Württemberg
		command = { type = relation which = HAB value = 10 }
	}
}
#Baden
event = {
	id = 5010000
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = BAD }
		NOT = { core = { province = 373 data = -1 } } #Baden
	}
	random = yes
	province = 349 #Baden
	name = "AI_EVENT"
	desc = "Baden"

	action_a = {
		name = "OK"
		command = { type = independence which = BAD }
	}
}

#Bavaria
event = {
	id = 5010001
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = BAY }
		NOT = { core = { province = 349 data = -1 } } #Bayern
		NOT = {
			AND = {
				event = 255003 #PFA: The Palatinate inherits Bavaria
				NOT = {
					event = 125021 #BAY: The Palatinate is united with Bavaria
					event = 125033 #BAY: The Palatinate is united with Bavaria (Palatinate inherited Burgundy)
				}
			}
			event = 255008 #PFA: The Wittelsbach inheritance of Bavaria
		}
	}
	random = yes
	province = 349 #Bayern
	name = "AI_EVENT"
	desc = "Bavaria"

	action_a = {
		name = "OK"
		command = { type = independence which = BAY }
	}
}
event = {
	id = 5010002
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		exists = BAY
		NOT = { core = { province = 349 data = -1 } } #Bayern
		NOT = { owned = { province = 349 data = BAY } } #Bayern
	}
	random = yes
	province = 349 #Bayern
	name = "AI_EVENT"
	desc = "Bavaria"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = BAY value = 349 } #Bayern
		command = { type = relation which = BAY value = 10 }
	}
}
event = {
	id = 5010003
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = BAY }
		NOT = { core = { province = 349 data = -1 } } #Bayern
		AND = {
			exists = PFA
			OR = {
				AND = {
					event = 255003 #PFA: The Palatinate inherits Bavaria
					NOT = {
						event = 125021 #BAY: The Palatinate is united with Bavaria
						event = 125033 #BAY: The Palatinate is united with Bavaria (Palatinate inherited Burgundy)
					}
				}
				event = 255008 #PFA: The Wittelsbach inheritance of Bavaria
			}
			NOT = { owned = { province = 349 data = PFA } } #Bayern
		}
	}
	random = yes
	province = 349 #Bayern
	name = "AI_EVENT"
	desc = "Bavaria"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = PFA value = 349 } #Bayern
		command = { type = relation which = PFA value = 10 }
	}
}
event = {
	id = 5010004
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = BAY }
		NOT = { owned = { province = 349 data = -1 } } #Bayern
		NOT = { core = { province = 348 data = -1 } } #Ansbach
		year = 1430 #LUX and HAB before
		NOT = {
			AND = {
				event = 255003 #PFA: The Palatinate inherits Bavaria
				NOT = {
					event = 125021 #BAY: The Palatinate is united with Bavaria
					event = 125033 #BAY: The Palatinate is united with Bavaria (Palatinate inherited Burgundy)
				}
			}
			event = 255008 #PFA: The Wittelsbach inheritance of Bavaria
			event = 125035 #BAY: Straubing is ceded to Austria
			event = 255009 #PFA: Straubing is ceded to Austria
		}
	}
	random = yes
	province = 348 #Ansbach
	name = "AI_EVENT"
	desc = "Bavaria"

	action_a = {
		name = "OK"
		command = { type = independence which = BAY }
	}
}
event = {
	id = 5010005
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		exists = BAY
		NOT = { core = { province = 348 data = -1 } } #Ansbach
		year = 1430 #LUX and HAB before
		NOT = {
			AND = {
				exists = HAB
				OR = {
					event = 125035 #BAY: Straubing is ceded to Austria
					event = 255009 #PFA: Straubing is ceded to Austria
				}
			}
			NOT = { owned = { province = 348 data = BAY } } #Ansbach
		}
	}
	random = yes
	province = 348 #Ansbach
	name = "AI_EVENT"
	desc = "Bavaria"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = BAY value = 348 } #Ansbach
		command = { type = relation which = BAY value = 10 }
	}
}
event = {
	id = 5010006
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = BAY }
		NOT = { core = { province = 348 data = -1 } } #Ansbach
		year = 1430 #LUX and HAB before
		AND = {
			exists = PFA
			OR = {
				AND = {
					event = 255003 #PFA: The Palatinate inherits Bavaria
					NOT = {
						event = 125021 #BAY: The Palatinate is united with Bavaria
						event = 125033 #BAY: The Palatinate is united with Bavaria (Palatinate inherited Burgundy)
					}
				}
				event = 255008 #PFA: The Wittelsbach inheritance of Bavaria
			}
			NOT = {
				AND = {
					exists = HAB
					OR = {
						event = 125035 #BAY: Straubing is ceded to Austria
						event = 255009 #PFA: Straubing is ceded to Austria
					}
				}
			}
			NOT = { owned = { province = 348 data = PFA } } #Ansbach
		}
	}
	random = yes
	province = 348 #Ansbach
	name = "AI_EVENT"
	desc = "Bavaria"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = PFA value = 348 } #Ansbach
		command = { type = relation which = PFA value = 10 }
	}
}
event = {
	id = 5010007
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { core = { province = 348 data = -1 } } #Ansbach
		year = 1430 #LUX and HAB before
		AND = {
			exists = HAB
			OR = {
				event = 125035 #BAY: Straubing is ceded to Austria
				event = 255009 #PFA: Straubing is ceded to Austria
			}
			NOT = { owned = { province = 348 data = HAB } } #Ansbach
		}
	}
	random = yes
	province = 348 #Ansbach
	name = "AI_EVENT"
	desc = "Bavaria"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = HAB value = 348 } #Ansbach
		command = { type = relation which = HAB value = 10 }
	}
}

#Berg
#simplified version
event = {
	id = 5010008
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = BRG }
		NOT = { core = { province = 343 data = -1 } } #Kleves
		NOT = { year = 1609 }
	}
	random = yes
	province = 334 #Kleves
	name = "AI_EVENT"
	desc = "Berg"

	action_a = {
		name = "OK"
		command = { type = independence which = BRG }
	}
}

#Brandenburg - Prussia
event = {
	id = 5010009
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = BRA }
		NOT = { core = { province = 312 data = -1 } } #Brandenburg
		NOT = {
			AND = {
				exists = PRU
				event = 263014 #PRU: The Kingdom of Prussia
			}
		}
	}
	random = yes
	province = 312 #Brandenburg
	name = "AI_EVENT"
	desc = "Brandenburg"

	action_a = {
		name = "OK"
		command = { type = independence which = BRA }
	}
}
event = {
	id = 5010011
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = BRA }
		NOT = { core = { province = 312 data = -1 } } #Brandenburg
		AND = {
			exists = PRU
			event = 263014 #PRU: The Kingdom of Prussia
			NOT = { owned = { province = 312 data = PRU } } #Brandenburg
		}
	}
	random = yes
	province = 312 #Brandenburg
	name = "AI_EVENT"
	desc = "Brandenburg"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = PRU value = 312 } #Brandenburg
		command = { type = relation which = PRU value = 10 }
	}
}
event = {
	id = 5010012
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = BRA }
		NOT = { core = { province = 313 data = -1 } } #Küstrin
		NOT = { owned = { province = 312 data = -1 } } #Brandenburg
		NOT = {
			AND = {
				exists = PRU
				event = 263014 #PRU: The Kingdom of Prussia
			}
		}
	}
	random = yes
	province = 313 #Küstrin
	name = "AI_EVENT"
	desc = "Brandenburg"

	action_a = {
		name = "OK"
		command = { type = independence which = BRA }
	}
}
event = {
	id = 5010014
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		exists = BRA
		NOT = { core = { province = 313 data = -1 } } #Küstrin
		NOT = { owned = { province = 313 data = BRA } } #Küstrin
	}
	random = yes
	province = 313 #Küstrin
	name = "AI_EVENT"
	desc = "Brandenburg"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = BRA value = 313 } #Küstrin
		command = { type = relation which = BRA value = 10 }
	}
}
event = {
	id = 5010015
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = BRA }
		NOT = { core = { province = 313 data = -1 } } #Küstrin
		AND = {
			exists = PRU
			event = 263014 #PRU: The Kingdom of Prussia
			NOT = { owned = { province = 312 data = PRU } } #Brandenburg
		}
	}
	random = yes
	province = 313 #Küstrin
	name = "AI_EVENT"
	desc = "Brandenburg"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = PRU value = 313 } #Küstrin
		command = { type = relation which = PRU value = 10 }
	}
}
event = {
	id = 5010016
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		exists = BRA
		NOT = { core = { province = 311 data = -1 } } #Magdeburg
		NOT = { owned = { province = 311 data = BRA } } #Magdeburg
	}
	random = yes
	province = 311 #Magdeburg
	name = "AI_EVENT"
	desc = "Brandenburg"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = BRA value = 311 } #Magdeburg
		command = { type = relation which = BRA value = 10 }
	}
}
event = {
	id = 5010017
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = BRA }
		NOT = { core = { province = 311 data = -1 } } #Magdeburg
		AND = {
			exists = PRU
			event = 263014 #PRU: The Kingdom of Prussia
			NOT = { owned = { province = 311 data = PRU } } #Magdeburg
		}
	}
	random = yes
	province = 311 #Magdeburg
	name = "AI_EVENT"
	desc = "Brandenburg"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = PRU value = 311 } #Magdeburg
		command = { type = relation which = PRU value = 10 }
	}
}

#Bremen
event = {
	id = 5010018
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = BRE }
		NOT = { core = { province = 336 data = -1 } } #Bremen
	}
	random = yes
	province = 336 #Bremen
	name = "AI_EVENT"
	desc = "Bremen"

	action_a = {
		name = "OK"
		command = { type = independence which = BRE }
	}
}

#Cleves
#simplified version
event = {
	id = 5010019
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = KLE }
		NOT = { core = { province = 334 data = -1 } } #Münster
		NOT = {
			event = 235009 #BRG: Union with Kleve-Mark
			year = 1609
		}
	}
	random = yes
	province = 334 #Münster
	name = "AI_EVENT"
	desc = "Cleves"

	action_a = {
		name = "OK"
		command = { type = independence which = KLE }
	}
}
event = {
	id = 5010020
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = KLE }
		NOT = { core = { province = 334 data = -1 } } #Münster
		AND = {
			exists = BRG
			event = 235009 #BRG: Union with Kleve-Mark
			NOT = { owned = { province = 334 data = BRG } } #Münster
			NOT = { year = 1609 }
		}
	}
	random = yes
	province = 334 #Münster
	name = "AI_EVENT"
	desc = "Cleves"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = BRG value = 334 } #Münster
		command = { type = relation which = BRG value = 10 }
	}
}

#Cologne
event = {
	id = 5010021
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = KOL }
		NOT = { core = { province = 344 data = -1 } } #Köln
	}
	random = yes
	province = 344 #Köln
	name = "AI_EVENT"
	desc = "Cologne"

	action_a = {
		name = "OK"
		command = { type = independence which = KOL }
	}
}

#Hanover
event = {
	id = 5010022
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = HAN }
		NOT = { core = { province = 310 data = -1 } } #Hannover
	}
	random = yes
	province = 310 #Hannover
	name = "AI_EVENT"
	desc = "Hanover"

	action_a = {
		name = "OK"
		command = { type = independence which = HAN }
	}
}

#Hesse
event = {
	id = 5010023
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = HES }
		NOT = { core = { province = 333 data = -1 } } #Hessen
	}
	random = yes
	province = 333 #Hessen
	name = "AI_EVENT"
	desc = "Hesse"

	action_a = {
		name = "OK"
		command = { type = independence which = HES }
	}
}

#Holstein
event = {
	id = 5010024
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = SHL }
		NOT = { core = { province = 306 data = -1 } } #Holstein
		NOT = {
			AND = {
				event = 159034 #DAN: Denmark inherits Holstein
				NOT = { event = 159011 } #DAN: The fate of Holstein
			}
			event = 247002 #OLD: Oldenburg inherits Holstein
		}
	}
	random = yes
	province = 306 #Holstein
	name = "AI_EVENT"
	desc = "Holstein"

	action_a = {
		name = "OK"
		command = { type = independence which = SHL }
	}
}
event = {
	id = 5010010
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = SHL }
		NOT = { core = { province = 306 data = -1 } } #Holstein
		AND = {
			exists = OLD
			event = 247002 #OLD: Oldenburg inherits Holstein
			NOT = { owned = { province = 306 data = OLD } } #Holstein
		}
	}
	random = yes
	province = 306 #Holstein
	name = "AI_EVENT"
	desc = "Holstein"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = OLD value = 306 } #Holstein
		command = { type = relation which = OLD value = 10 }
	}
}

#Lorraine
event = {
	id = 5010026
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = LOR }
		NOT = { core = { province = 375 data = -1 } } #Lorraine
		NOT = {
			event = 3736 #FRA: French Inheritance of Lothringen
			year = 1766
		}
	}
	random = yes
	province = 375 #Lorraine
	name = "AI_EVENT"
	desc = "Lorraine"

	action_a = {
		name = "OK"
		command = { type = independence which = LOR }
	}
}

#Luxemburg
event = {
	id = 5010028
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = LUX }
		NOT = { core = { province = 377 data = -1 } } #Luxembourg
		NOT = {
			event = 137306 #BUR: Annexation of Luxemburg
			year = 1451 #Burgundian monarchs
		}
	}
	random = yes
	province = 377 #Luxembourg
	name = "AI_EVENT"
	desc = "Luxemburg"

	action_a = {
		name = "OK"
		command = { type = independence which = LUX }
	}
}
event = {
	id = 5010029
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = LUX }
		NOT = { core = { province = 377 data = -1 } } #Luxembourg
		AND = {
			exists = BUR
			event = 137306 #BUR: Annexation of Luxemburg
			NOT = { owned = { province = 377 data = BUR } } #Luxembourg
		}
	}
	random = yes
	province = 377 #Luxembourg
	name = "AI_EVENT"
	desc = "Luxemburg"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = BUR value = 377 } #Luxembourg
		command = { type = relation which = BUR value = 10 }
	}
}

#Mainz
event = {
	id = 5010030
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = MAI }
		NOT = { core = { province = 346 data = -1 } } #Mainz
	}
	random = yes
	province = 346 #Mainz
	name = "AI_EVENT"
	desc = "Mainz"

	action_a = {
		name = "OK"
		command = { type = independence which = MAI }
	}
}

#Mecklenburg
event = {
	id = 5010031
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = MEC }
		NOT = { core = { province = 305 data = -1 } } #Mecklenburg
	}
	random = yes
	province = 305 #Mecklenburg
	name = "AI_EVENT"
	desc = "Mecklenburg"

	action_a = {
		name = "OK"
		command = { type = independence which = MEC }
	}
}

#Oldenburg
event = {
	id = 5010032
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = OLD }
		NOT = { core = { province = 335 data = -1 } } #Oldenburg
		NOT = {
			event = 159033 #DAN: Oldenburg is incorporated into Denmark
			event = 279010 #SHL: Holstein inherits Oldenburg
		}
	}
	random = yes
	province = 335 #Oldenburg
	name = "AI_EVENT"
	desc = "Oldenburg"

	action_a = {
		name = "OK"
		command = { type = independence which = OLD }
	}
}
event = {
	id = 5010013
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = OLD }
		NOT = { core = { province = 335 data = -1 } } #Oldenburg
		AND = {
			exists = SHL
			event = 279010 #SHL: Holstein inherits Oldenburg
			NOT = { owned = { province = 335 data = SHL } } #Oldenburg
		}
	}
	random = yes
	province = 335 #Oldenburg
	name = "AI_EVENT"
	desc = "Oldenburg"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = SHL value = 335 } #Oldenburg
		command = { type = relation which = SHL value = 10 }
	}
}

#Palatinate
event = {
	id = 5010033
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = PFA }
		NOT = { core = { province = 345 data = -1 } } #Pfalz
		NOT = {
			event = 125021 #BAY: The Palatinate is united with Bavaria
			event = 125033 #BAY: The Palatinate is united with Bavaria
		}
	}
	random = yes
	province = 345 #Pfalz
	name = "AI_EVENT"
	desc = "Palatinate"

	action_a = {
		name = "OK"
		command = { type = independence which = PFA }
	}
}
event = {
	id = 5010034
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		exists = PFA
		NOT = { core = { province = 345 data = -1 } } #Pfalz
	}
	random = yes
	province = 345 #Pfalz
	name = "AI_EVENT"
	desc = "Palatinate"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = PFA value = 345 } #Pfalz
		command = { type = relation which = PFA value = 10 }
	}
}
event = {
	id = 5010035
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = PFA }
		NOT = { core = { province = 345 data = -1 } } #Pfalz
		AND = {
			exists = BAY
			OR = {
				event = 125021 #BAY: The Palatinate is united with Bavaria
				event = 125033 #BAY: The Palatinate is united with Bavaria
			}
			NOT = { owned = { province = 345 data = BAY } } #Pfalz
		}
	}
	random = yes
	province = 345 #Pfalz
	name = "AI_EVENT"
	desc = "Palatinate"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = BAY value = 345 } #Pfalz
		command = { type = relation which = BAY value = 10 }
	}
}
event = {
	id = 5010036
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = PFA }
		NOT = { owned = { province = 345 data = -1 } } #Pfalz
		NOT = { core = { province = 347 data = -1 } } #Würzburg
		NOT = {
			event = 125021 #BAY: The Palatinate is united with Bavaria
			event = 125033 #BAY: The Palatinate is united with Bavaria
		}
	}
	random = yes
	province = 347 #Würzburg
	name = "AI_EVENT"
	desc = "Palatinate"

	action_a = {
		name = "OK"
		command = { type = independence which = PFA }
	}
}
event = {
	id = 5010037
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		exists = PFA
		NOT = { core = { province = 347 data = -1 } } #Würzburg
	}
	random = yes
	province = 347 #Würzburg
	name = "AI_EVENT"
	desc = "Palatinate"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = PFA value = 347 } #Würzburg
		command = { type = relation which = PFA value = 10 }
	}
}
event = {
	id = 5010038
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = PFA }
		NOT = { core = { province = 347 data = -1 } } #Würzburg
		AND = {
			exists = BAY
			OR = {
				event = 125021 #BAY: The Palatinate is united with Bavaria
				event = 125033 #BAY: The Palatinate is united with Bavaria
			}
			NOT = { owned = { province = 347 data = BAY } } #Würzburg
		}
	}
	random = yes
	province = 347 #Würzburg
	name = "AI_EVENT"
	desc = "Palatinate"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = BAY value = 347 } #Würzburg
		command = { type = relation which = BAY value = 10 }
	}
}

#Pomerania - Stettin
event = {
	id = 5010039
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = POM }
		NOT = { core = { province = 302 data = -1 } } #Hinterpommern
		NOT = {
			event = 291030 #SWE: The Acquisition of Pomerania
			event = 3896 #BRA: The Pommern Inheritance
			event = 132008 #BRA: The Pomeranian Inheritance
			event = 259016 #POM: The investiture of Brandenburg
			year = 1637
		}
	}
	random = yes
	province = 302 #Hinterpommern
	name = "AI_EVENT"
	desc = "Pomerania"

	action_a = {
		name = "OK"
		command = { type = independence which = POM }
	}
}
event = {
	id = 5010040
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = POM }
		NOT = { core = { province = 302 data = -1 } } #Hinterpommern
		AND = {
			exists = STT
			NOT = { owned = { province = 302 data = STT } } #Hinterpommern
		}
	}
	random = yes
	province = 302 #Hinterpommern
	name = "AI_EVENT"
	desc = "Pomerania"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = STT value = 302 } #Hinterpommern
		command = { type = relation which = STT value = 10 }
	}
}
event = {
	id = 5010041
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = POM }
		NOT = { core = { province = 302 data = -1 } } #Hinterpommern
		AND = {
			NOT = { exists = STT }
			exists = BRA
			OR = {
				event = 3896 #BRA: The Pommern Inheritance
				event = 132008 #BRA: The Pomeranian Inheritance
				event = 259016 #POM: The investiture of Brandenburg
			}
			NOT = { owned = { province = 302 data = BRA } } #Hinterpommern
		}
	}
	random = yes
	province = 302 #Hinterpommern
	name = "AI_EVENT"
	desc = "Pomerania"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = BRA value = 302 } #Hinterpommern
		command = { type = relation which = BRA value = 10 }
	}
}
event = {
	id = 5010042
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = POM }
		NOT = { core = { province = 302 data = -1 } } #Hinterpommern
		AND = {
			NOT = { exists = STT }
			NOT = { exists = BRA }
			AND = {
				exists = PRU
				event = 263014 #PRU: The Kingdom of Prussia
			}
			OR = {
				event = 3896 #BRA: The Pommern Inheritance
				event = 132008 #BRA: The Pomeranian Inheritance
				event = 259016 #POM: The investiture of Brandenburg
			}
			NOT = { owned = { province = 302 data = PRU } } #Hinterpommern
		}
	}
	random = yes
	province = 302 #Hinterpommern
	name = "AI_EVENT"
	desc = "Pomerania"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = PRU value = 302 } #Hinterpommern
		command = { type = relation which = PRU value = 10 }
	}
}
event = {
	id = 5010043
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = STT }
		NOT = { core = { province = 304 data = -1 } } #Vorpommern
		NOT = {
			event = 259000 #POM: Inheritance of Pomerania-Stettin
			AND = {
				event = 259001 #POM: Inheritance of Pomerania-Stettin
				NOT = {
					event = 132018 #BRA: Inheritance of Stettin
				}
			}
			event = 291029 #SWE: The Acquisition of Vorpommern
			event = 291030 #SWE: The Acquisition of Pomerania
			event = 3896 #BRA: The Pommern Inheritance
			event = 132008 #BRA: The Pomeranian Inheritance
			event = 259016 #POM: The investiture of Brandenburg
			year = 1570
		}
	}
	random = yes
	province = 304 #Vorpommern
	name = "AI_EVENT"
	desc = "Pomerania"

	action_a = {
		name = "OK"
		command = { type = independence which = STT }
	}
}
event = {
	id = 5010044
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = STT }
		NOT = { core = { province = 304 data = -1 } } #Vorpommern
		AND = {
			exists = POM
			OR = {
				event = 259000 #POM: Inheritance of Pomerania-Stettin
				AND = {
					event = 259001 #POM: Inheritance of Pomerania-Stettin
					NOT = {
						event = 132018 #BRA: Inheritance of Stettin
					}
				}
			}
			NOT = { owned = { province = 304 data = POM } } #Vorpommern
		}
	}
	random = yes
	province = 304 #Vorpommern
	name = "AI_EVENT"
	desc = "Pomerania"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = POM value = 304 } #Vorpommern
		command = { type = relation which = POM value = 10 }
	}
}
event = {
	id = 5010045
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = STT }
		NOT = { core = { province = 304 data = -1 } } #Vorpommern
		AND = {
			NOT = { exists = POM }
			AND = {
				exists = BRA
				OR = {
					event = 3896 #BRA: The Pommern Inheritance
					event = 132008 #BRA: The Pomeranian Inheritance
					event = 259016 #POM: The investiture of Brandenburg
				}
				NOT = { owned = { province = 304 data = BRA } } #Vorpommern
			}
		}
	}
	random = yes
	province = 304 #Vorpommern
	name = "AI_EVENT"
	desc = "Pomerania"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = BRA value = 304 } #Vorpommern
		command = { type = relation which = BRA value = 10 }
	}
}
event = {
	id = 5010046
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = POM }
		NOT = { core = { province = 304 data = -1 } } #Vorpommern
		AND = {
			NOT = { exists = POM }
			AND = {
				NOT = { exists = BRA }
				AND = {
					exists = PRU
					event = 263014 #PRU: The Kingdom of Prussia
				}
				OR = {
					event = 3896 #BRA: The Pommern Inheritance
					event = 132008 #BRA: The Pomeranian Inheritance
					event = 259016 #POM: The investiture of Brandenburg
				}
				NOT = { owned = { province = 304 data = PRU } } #Vorpommern
			}
		}
	}
	random = yes
	province = 304 #Vorpommern
	name = "AI_EVENT"
	desc = "Pomerania"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = PRU value = 304 } #Vorpommern
		command = { type = relation which = PRU value = 10 }
	}
}

#Saxony - Meissen
#simplified version
event = {
	id = 5010048
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = {
			exists = SAC
			exists = MEI
		}
		NOT = { core = { province = 332 data = -1 } } #Anhalt
	}
	random = yes
	province = 332 #Anhalt
	name = "AI_EVENT"
	desc = "Saxony"

	action_a = {
		name = "OK"
		command = { type = independence which = SAC }
	}
}
event = {
	id = 5010049
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		exists = SAC
		NOT = { core = { province = 332 data = -1 } } #Anhalt
		NOT = { owned = { province = 332 data = SAC } } #Anhalt
	}
	random = yes
	province = 332 #Anhalt
	name = "AI_EVENT"
	desc = "Saxony"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = SAC value = 332 } #Anhalt
		command = { type = relation which = SAC value = 10 }
	}
}
event = {
	id = 5010050
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = SAC }
		NOT = { core = { province = 332 data = -1 } } #Anhalt
		AND = {
			exists = MEI
			NOT = { year = 1600 }
			NOT = { owned = { province = 332 data = MEI } } #Anhalt
		}
	}
	random = yes
	province = 332 #Anhalt
	name = "AI_EVENT"
	desc = "Saxony"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = MEI value = 332 } #Anhalt
		command = { type = relation which = MEI value = 10 }
	}
}
event = {
	id = 5010051
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		exists = SAC
		NOT = { core = { province = 331 data = -1 } } #Sachsen
		NOT = { owned = { province = 331 data = SAC } } #Sachsen
	}
	random = yes
	province = 331 #Sachsen
	name = "AI_EVENT"
	desc = "Saxony"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = SAC value = 331 } #Sachsen
		command = { type = relation which = SAC value = 10 }
	}
}
event = {
	id = 5010052
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = SAC }
		NOT = { core = { province = 331 data = -1 } } #Sachsen
		AND = {
			exists = MEI
			NOT = { year = 1600 }
			NOT = { owned = { province = 331 data = MEI } } #Sachsen
		}
	}
	random = yes
	province = 331 #Sachsen
	name = "AI_EVENT"
	desc = "Saxony"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = MEI value = 331 } #Sachsen
		command = { type = relation which = MEI value = 10 }
	}
}

#Strassburg
event = {
	id = 5010053
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = STR }
		NOT = { core = { province = 374 data = -1 } } #Alsace
	}
	random = yes
	province = 374 #Alsace
	name = "AI_EVENT"
	desc = "Strassburg"

	action_a = {
		name = "OK"
		command = { type = independence which = STR }
	}
}

#Wirtemberg
event = {
	id = 5010054
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = WUR }
		NOT = { core = { province = 372 data = -1 } } #Württemberg
		NOT = {
			AND = {
				exists = HAB
				core = { province = 372 data = HAB } #covers HAB_179004 and HAB_179006
				NOT = { owned = { province = 372 data = HAB } } #Württemberg
			}
		}
	}
	random = yes
	province = 372 #Württemberg
	name = "AI_EVENT"
	desc = "Wirtemberg"

	action_a = {
		name = "OK"
		command = { type = independence which = WUR }
	}
}
event = {
	id = 5010055
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = WUR }
		NOT = { core = { province = 372 data = -1 } } #Württemberg
		AND = {
			exists = HAB
			core = { province = 372 data = HAB } #covers HAB_179004 and HAB_179006
		}
	}
	random = yes
	province = 372 #Württemberg
	name = "AI_EVENT"
	desc = "Wirtemberg"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = HAB value = 372 } #Württemberg
		command = { type = relation which = HAB value = 10 }
	}
}

#-----------------------------------------------------------------------------------------------

#-----------------------------------------------------------------------------------------------

#Baden
event = {
	id = 5011000
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = BAD }
		NOT = { core = { province = 373 data = -1 } } #Baden
	}
	random = yes
	province = 349 #Baden
	name = "AI_EVENT"
	desc = "Baden"

	action_a = {
		name = "OK"
		command = { type = independence which = BAD }
	}
}

#Bavaria
event = {
	id = 5011001
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = BAY }
		NOT = { core = { province = 349 data = -1 } } #Bayern
		NOT = {
			AND = {
				event = 255003 #PFA: The Palatinate inherits Bavaria
				NOT = {
					event = 125021 #BAY: The Palatinate is united with Bavaria
					event = 125033 #BAY: The Palatinate is united with Bavaria (Palatinate inherited Burgundy)
				}
			}
			event = 255008 #PFA: The Wittelsbach inheritance of Bavaria
		}
	}
	random = yes
	province = 349 #Bayern
	name = "AI_EVENT"
	desc = "Bavaria"

	action_a = {
		name = "OK"
		command = { type = independence which = BAY }
	}
}
event = {
	id = 5011002
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		exists = BAY
		NOT = { core = { province = 349 data = -1 } } #Bayern
		NOT = { owned = { province = 349 data = BAY } } #Bayern
	}
	random = yes
	province = 349 #Bayern
	name = "AI_EVENT"
	desc = "Bavaria"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = BAY value = 349 } #Bayern
		command = { type = relation which = BAY value = 10 }
	}
}
event = {
	id = 5011003
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = BAY }
		NOT = { core = { province = 349 data = -1 } } #Bayern
		AND = {
			exists = PFA
			OR = {
				AND = {
					event = 255003 #PFA: The Palatinate inherits Bavaria
					NOT = {
						event = 125021 #BAY: The Palatinate is united with Bavaria
						event = 125033 #BAY: The Palatinate is united with Bavaria (Palatinate inherited Burgundy)
					}
				}
				event = 255008 #PFA: The Wittelsbach inheritance of Bavaria
			}
			NOT = { owned = { province = 349 data = PFA } } #Bayern
		}
	}
	random = yes
	province = 349 #Bayern
	name = "AI_EVENT"
	desc = "Bavaria"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = PFA value = 349 } #Bayern
		command = { type = relation which = PFA value = 10 }
	}
}
event = {
	id = 5011004
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = BAY }
		NOT = { owned = { province = 349 data = -1 } } #Bayern
		NOT = { core = { province = 348 data = -1 } } #Ansbach
		year = 1430 #LUX and HAB before
		NOT = {
			AND = {
				event = 255003 #PFA: The Palatinate inherits Bavaria
				NOT = {
					event = 125021 #BAY: The Palatinate is united with Bavaria
					event = 125033 #BAY: The Palatinate is united with Bavaria (Palatinate inherited Burgundy)
				}
			}
			event = 255008 #PFA: The Wittelsbach inheritance of Bavaria
			event = 125035 #BAY: Straubing is ceded to Austria
			event = 255009 #PFA: Straubing is ceded to Austria
		}
	}
	random = yes
	province = 348 #Ansbach
	name = "AI_EVENT"
	desc = "Bavaria"

	action_a = {
		name = "OK"
		command = { type = independence which = BAY }
	}
}
event = {
	id = 5011005
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		exists = BAY
		NOT = { core = { province = 348 data = -1 } } #Ansbach
		year = 1430 #LUX and HAB before
		NOT = {
			AND = {
				exists = HAB
				OR = {
					event = 125035 #BAY: Straubing is ceded to Austria
					event = 255009 #PFA: Straubing is ceded to Austria
				}
			}
			NOT = { owned = { province = 348 data = BAY } } #Ansbach
		}
	}
	random = yes
	province = 348 #Ansbach
	name = "AI_EVENT"
	desc = "Bavaria"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = BAY value = 348 } #Ansbach
		command = { type = relation which = BAY value = 10 }
	}
}
event = {
	id = 5011006
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = BAY }
		NOT = { core = { province = 348 data = -1 } } #Ansbach
		year = 1430 #LUX and HAB before
		AND = {
			exists = PFA
			OR = {
				AND = {
					event = 255003 #PFA: The Palatinate inherits Bavaria
					NOT = {
						event = 125021 #BAY: The Palatinate is united with Bavaria
						event = 125033 #BAY: The Palatinate is united with Bavaria (Palatinate inherited Burgundy)
					}
				}
				event = 255008 #PFA: The Wittelsbach inheritance of Bavaria
			}
			NOT = {
				AND = {
					exists = HAB
					OR = {
						event = 125035 #BAY: Straubing is ceded to Austria
						event = 255009 #PFA: Straubing is ceded to Austria
					}
				}
			}
			NOT = { owned = { province = 348 data = PFA } } #Ansbach
		}
	}
	random = yes
	province = 348 #Ansbach
	name = "AI_EVENT"
	desc = "Bavaria"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = PFA value = 348 } #Ansbach
		command = { type = relation which = PFA value = 10 }
	}
}
event = {
	id = 5011007
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { core = { province = 348 data = -1 } } #Ansbach
		year = 1430 #LUX and HAB before
		AND = {
			exists = HAB
			OR = {
				event = 125035 #BAY: Straubing is ceded to Austria
				event = 255009 #PFA: Straubing is ceded to Austria
			}
			NOT = { owned = { province = 348 data = HAB } } #Ansbach
		}
	}
	random = yes
	province = 348 #Ansbach
	name = "AI_EVENT"
	desc = "Bavaria"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = HAB value = 348 } #Ansbach
		command = { type = relation which = HAB value = 10 }
	}
}

#Berg
#simplified version
event = {
	id = 5011008
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = BRG }
		NOT = { core = { province = 343 data = -1 } } #Kleves
		NOT = { year = 1609 }
	}
	random = yes
	province = 334 #Kleves
	name = "AI_EVENT"
	desc = "Berg"

	action_a = {
		name = "OK"
		command = { type = independence which = BRG }
	}
}

#Brandenburg - Prussia
event = {
	id = 5011009
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = BRA }
		NOT = { core = { province = 312 data = -1 } } #Brandenburg
		NOT = {
			AND = {
				exists = PRU
				event = 263014 #PRU: The Kingdom of Prussia
			}
		}
	}
	random = yes
	province = 312 #Brandenburg
	name = "AI_EVENT"
	desc = "Brandenburg"

	action_a = {
		name = "OK"
		command = { type = independence which = BRA }
	}
}
event = {
	id = 5011011
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = BRA }
		NOT = { core = { province = 312 data = -1 } } #Brandenburg
		AND = {
			exists = PRU
			event = 263014 #PRU: The Kingdom of Prussia
			NOT = { owned = { province = 312 data = PRU } } #Brandenburg
		}
	}
	random = yes
	province = 312 #Brandenburg
	name = "AI_EVENT"
	desc = "Brandenburg"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = PRU value = 312 } #Brandenburg
		command = { type = relation which = PRU value = 10 }
	}
}
event = {
	id = 5011012
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = BRA }
		NOT = { core = { province = 313 data = -1 } } #Küstrin
		NOT = { owned = { province = 312 data = -1 } } #Brandenburg
		NOT = {
			AND = {
				exists = PRU
				event = 263014 #PRU: The Kingdom of Prussia
			}
		}
	}
	random = yes
	province = 313 #Küstrin
	name = "AI_EVENT"
	desc = "Brandenburg"

	action_a = {
		name = "OK"
		command = { type = independence which = BRA }
	}
}
event = {
	id = 5011014
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		exists = BRA
		NOT = { core = { province = 313 data = -1 } } #Küstrin
		NOT = { owned = { province = 313 data = BRA } } #Küstrin
	}
	random = yes
	province = 313 #Küstrin
	name = "AI_EVENT"
	desc = "Brandenburg"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = BRA value = 313 } #Küstrin
		command = { type = relation which = BRA value = 10 }
	}
}
event = {
	id = 5011015
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = BRA }
		NOT = { core = { province = 313 data = -1 } } #Küstrin
		AND = {
			exists = PRU
			event = 263014 #PRU: The Kingdom of Prussia
			NOT = { owned = { province = 312 data = PRU } } #Brandenburg
		}
	}
	random = yes
	province = 313 #Küstrin
	name = "AI_EVENT"
	desc = "Brandenburg"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = PRU value = 313 } #Küstrin
		command = { type = relation which = PRU value = 10 }
	}
}
event = {
	id = 5011016
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		exists = BRA
		NOT = { core = { province = 311 data = -1 } } #Magdeburg
		NOT = { owned = { province = 311 data = BRA } } #Magdeburg
	}
	random = yes
	province = 311 #Magdeburg
	name = "AI_EVENT"
	desc = "Brandenburg"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = BRA value = 311 } #Magdeburg
		command = { type = relation which = BRA value = 10 }
	}
}
event = {
	id = 5011017
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = BRA }
		NOT = { core = { province = 311 data = -1 } } #Magdeburg
		AND = {
			exists = PRU
			event = 263014 #PRU: The Kingdom of Prussia
			NOT = { owned = { province = 311 data = PRU } } #Magdeburg
		}
	}
	random = yes
	province = 311 #Magdeburg
	name = "AI_EVENT"
	desc = "Brandenburg"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = PRU value = 311 } #Magdeburg
		command = { type = relation which = PRU value = 10 }
	}
}

#Bremen
event = {
	id = 5011018
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = BRE }
		NOT = { core = { province = 336 data = -1 } } #Bremen
	}
	random = yes
	province = 336 #Bremen
	name = "AI_EVENT"
	desc = "Bremen"

	action_a = {
		name = "OK"
		command = { type = independence which = BRE }
	}
}

#Cleves
#simplified version
event = {
	id = 5011019
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = KLE }
		NOT = { core = { province = 334 data = -1 } } #Münster
		NOT = {
			event = 235009 #BRG: Union with Kleve-Mark
			year = 1609
		}
	}
	random = yes
	province = 334 #Münster
	name = "AI_EVENT"
	desc = "Cleves"

	action_a = {
		name = "OK"
		command = { type = independence which = KLE }
	}
}
event = {
	id = 5011020
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = KLE }
		NOT = { core = { province = 334 data = -1 } } #Münster
		AND = {
			exists = BRG
			event = 235009 #BRG: Union with Kleve-Mark
			NOT = { owned = { province = 334 data = BRG } } #Münster
			NOT = { year = 1609 }
		}
	}
	random = yes
	province = 334 #Münster
	name = "AI_EVENT"
	desc = "Cleves"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = BRG value = 334 } #Münster
		command = { type = relation which = BRG value = 10 }
	}
}

#Cologne
event = {
	id = 5011021
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = KOL }
		NOT = { core = { province = 344 data = -1 } } #Köln
	}
	random = yes
	province = 344 #Köln
	name = "AI_EVENT"
	desc = "Cologne"

	action_a = {
		name = "OK"
		command = { type = independence which = KOL }
	}
}

#Hanover
event = {
	id = 5011022
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = HAN }
		NOT = { core = { province = 310 data = -1 } } #Hannover
	}
	random = yes
	province = 310 #Hannover
	name = "AI_EVENT"
	desc = "Hanover"

	action_a = {
		name = "OK"
		command = { type = independence which = HAN }
	}
}

#Hesse
event = {
	id = 5011023
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = HES }
		NOT = { core = { province = 333 data = -1 } } #Hessen
	}
	random = yes
	province = 333 #Hessen
	name = "AI_EVENT"
	desc = "Hesse"

	action_a = {
		name = "OK"
		command = { type = independence which = HES }
	}
}

#Holstein
event = {
	id = 5011024
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = SHL }
		NOT = { core = { province = 306 data = -1 } } #Holstein
		NOT = {
			AND = {
				event = 159034 #DAN: Denmark inherits Holstein
				NOT = { event = 159011 } #DAN: The fate of Holstein
			}
			event = 247002 #OLD: Oldenburg inherits Holstein
		}
	}
	random = yes
	province = 306 #Holstein
	name = "AI_EVENT"
	desc = "Holstein"

	action_a = {
		name = "OK"
		command = { type = independence which = SHL }
	}
}
event = {
	id = 5011010
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = SHL }
		NOT = { core = { province = 306 data = -1 } } #Holstein
		AND = {
			exists = OLD
			event = 247002 #OLD: Oldenburg inherits Holstein
			NOT = { owned = { province = 306 data = OLD } } #Holstein
		}
	}
	random = yes
	province = 306 #Holstein
	name = "AI_EVENT"
	desc = "Holstein"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = OLD value = 306 } #Holstein
		command = { type = relation which = OLD value = 10 }
	}
}

#Lorraine
event = {
	id = 5011026
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = LOR }
		NOT = { core = { province = 375 data = -1 } } #Lorraine
		NOT = {
			event = 3736 #FRA: French Inheritance of Lothringen
			year = 1766
		}
	}
	random = yes
	province = 375 #Lorraine
	name = "AI_EVENT"
	desc = "Lorraine"

	action_a = {
		name = "OK"
		command = { type = independence which = LOR }
	}
}

#Luxemburg
event = {
	id = 5011028
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = LUX }
		NOT = { core = { province = 377 data = -1 } } #Luxembourg
		NOT = {
			event = 137306 #BUR: Annexation of Luxemburg
			year = 1451 #Burgundian monarchs
		}
	}
	random = yes
	province = 377 #Luxembourg
	name = "AI_EVENT"
	desc = "Luxemburg"

	action_a = {
		name = "OK"
		command = { type = independence which = LUX }
	}
}
event = {
	id = 5011029
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = LUX }
		NOT = { core = { province = 377 data = -1 } } #Luxembourg
		AND = {
			exists = BUR
			event = 137306 #BUR: Annexation of Luxemburg
			NOT = { owned = { province = 377 data = BUR } } #Luxembourg
		}
	}
	random = yes
	province = 377 #Luxembourg
	name = "AI_EVENT"
	desc = "Luxemburg"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = BUR value = 377 } #Luxembourg
		command = { type = relation which = BUR value = 10 }
	}
}

#Mainz
event = {
	id = 5011030
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = MAI }
		NOT = { core = { province = 346 data = -1 } } #Mainz
	}
	random = yes
	province = 346 #Mainz
	name = "AI_EVENT"
	desc = "Mainz"

	action_a = {
		name = "OK"
		command = { type = independence which = MAI }
	}
}

#Mecklenburg
event = {
	id = 5011031
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = MEC }
		NOT = { core = { province = 305 data = -1 } } #Mecklenburg
	}
	random = yes
	province = 305 #Mecklenburg
	name = "AI_EVENT"
	desc = "Mecklenburg"

	action_a = {
		name = "OK"
		command = { type = independence which = MEC }
	}
}

#Oldenburg
event = {
	id = 5011032
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = OLD }
		NOT = { core = { province = 335 data = -1 } } #Oldenburg
		NOT = {
			event = 159033 #DAN: Oldenburg is incorporated into Denmark
			event = 279010 #SHL: Holstein inherits Oldenburg
		}
	}
	random = yes
	province = 335 #Oldenburg
	name = "AI_EVENT"
	desc = "Oldenburg"

	action_a = {
		name = "OK"
		command = { type = independence which = OLD }
	}
}
event = {
	id = 50110013
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = OLD }
		NOT = { core = { province = 335 data = -1 } } #Oldenburg
		AND = {
			exists = SHL
			event = 279010 #SHL: Holstein inherits Oldenburg
			NOT = { owned = { province = 335 data = SHL } } #Oldenburg
		}
	}
	random = yes
	province = 335 #Oldenburg
	name = "AI_EVENT"
	desc = "Oldenburg"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = SHL value = 335 } #Oldenburg
		command = { type = relation which = SHL value = 10 }
	}
}

#Palatinate
event = {
	id = 5011033
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = PFA }
		NOT = { core = { province = 345 data = -1 } } #Pfalz
		NOT = {
			event = 125021 #BAY: The Palatinate is united with Bavaria
			event = 125033 #BAY: The Palatinate is united with Bavaria
		}
	}
	random = yes
	province = 345 #Pfalz
	name = "AI_EVENT"
	desc = "Palatinate"

	action_a = {
		name = "OK"
		command = { type = independence which = PFA }
	}
}
event = {
	id = 5011034
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		exists = PFA
		NOT = { core = { province = 345 data = -1 } } #Pfalz
	}
	random = yes
	province = 345 #Pfalz
	name = "AI_EVENT"
	desc = "Palatinate"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = PFA value = 345 } #Pfalz
		command = { type = relation which = PFA value = 10 }
	}
}
event = {
	id = 5011035
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = PFA }
		NOT = { core = { province = 345 data = -1 } } #Pfalz
		AND = {
			exists = BAY
			OR = {
				event = 125021 #BAY: The Palatinate is united with Bavaria
				event = 125033 #BAY: The Palatinate is united with Bavaria
			}
			NOT = { owned = { province = 345 data = BAY } } #Pfalz
		}
	}
	random = yes
	province = 345 #Pfalz
	name = "AI_EVENT"
	desc = "Palatinate"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = BAY value = 345 } #Pfalz
		command = { type = relation which = BAY value = 10 }
	}
}
event = {
	id = 5011036
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = PFA }
		NOT = { owned = { province = 345 data = -1 } } #Pfalz
		NOT = { core = { province = 347 data = -1 } } #Würzburg
		NOT = {
			event = 125021 #BAY: The Palatinate is united with Bavaria
			event = 125033 #BAY: The Palatinate is united with Bavaria
		}
	}
	random = yes
	province = 347 #Würzburg
	name = "AI_EVENT"
	desc = "Palatinate"

	action_a = {
		name = "OK"
		command = { type = independence which = PFA }
	}
}
event = {
	id = 5011037
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		exists = PFA
		NOT = { core = { province = 347 data = -1 } } #Würzburg
	}
	random = yes
	province = 347 #Würzburg
	name = "AI_EVENT"
	desc = "Palatinate"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = PFA value = 347 } #Würzburg
		command = { type = relation which = PFA value = 10 }
	}
}
event = {
	id = 5011038
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = PFA }
		NOT = { core = { province = 347 data = -1 } } #Würzburg
		AND = {
			exists = BAY
			OR = {
				event = 125021 #BAY: The Palatinate is united with Bavaria
				event = 125033 #BAY: The Palatinate is united with Bavaria
			}
			NOT = { owned = { province = 347 data = BAY } } #Würzburg
		}
	}
	random = yes
	province = 347 #Würzburg
	name = "AI_EVENT"
	desc = "Palatinate"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = BAY value = 347 } #Würzburg
		command = { type = relation which = BAY value = 10 }
	}
}

#Pomerania - Stettin
event = {
	id = 5011039
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = POM }
		NOT = { core = { province = 302 data = -1 } } #Hinterpommern
		NOT = {
			event = 291030 #SWE: The Acquisition of Pomerania
			event = 3896 #BRA: The Pommern Inheritance
			event = 132008 #BRA: The Pomeranian Inheritance
			event = 259016 #POM: The investiture of Brandenburg
			year = 1637
		}
	}
	random = yes
	province = 302 #Hinterpommern
	name = "AI_EVENT"
	desc = "Pomerania"

	action_a = {
		name = "OK"
		command = { type = independence which = POM }
	}
}
event = {
	id = 5011040
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = POM }
		NOT = { core = { province = 302 data = -1 } } #Hinterpommern
		AND = {
			exists = STT
			NOT = { owned = { province = 302 data = STT } } #Hinterpommern
		}
	}
	random = yes
	province = 302 #Hinterpommern
	name = "AI_EVENT"
	desc = "Pomerania"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = STT value = 302 } #Hinterpommern
		command = { type = relation which = STT value = 10 }
	}
}
event = {
	id = 5011041
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = POM }
		NOT = { core = { province = 302 data = -1 } } #Hinterpommern
		AND = {
			NOT = { exists = STT }
			exists = BRA
			OR = {
				event = 3896 #BRA: The Pommern Inheritance
				event = 132008 #BRA: The Pomeranian Inheritance
				event = 259016 #POM: The investiture of Brandenburg
			}
			NOT = { owned = { province = 302 data = BRA } } #Hinterpommern
		}
	}
	random = yes
	province = 302 #Hinterpommern
	name = "AI_EVENT"
	desc = "Pomerania"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = BRA value = 302 } #Hinterpommern
		command = { type = relation which = BRA value = 10 }
	}
}
event = {
	id = 5011042
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = POM }
		NOT = { core = { province = 302 data = -1 } } #Hinterpommern
		AND = {
			NOT = { exists = STT }
			NOT = { exists = BRA }
			AND = {
				exists = PRU
				event = 263014 #PRU: The Kingdom of Prussia
			}
			OR = {
				event = 3896 #BRA: The Pommern Inheritance
				event = 132008 #BRA: The Pomeranian Inheritance
				event = 259016 #POM: The investiture of Brandenburg
			}
			NOT = { owned = { province = 302 data = PRU } } #Hinterpommern
		}
	}
	random = yes
	province = 302 #Hinterpommern
	name = "AI_EVENT"
	desc = "Pomerania"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = PRU value = 302 } #Hinterpommern
		command = { type = relation which = PRU value = 10 }
	}
}
event = {
	id = 5011043
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = STT }
		NOT = { core = { province = 304 data = -1 } } #Vorpommern
		NOT = {
			event = 259000 #POM: Inheritance of Pomerania-Stettin
			AND = {
				event = 259001 #POM: Inheritance of Pomerania-Stettin
				NOT = {
					event = 132018 #BRA: Inheritance of Stettin
				}
			}
			event = 291029 #SWE: The Acquisition of Vorpommern
			event = 291030 #SWE: The Acquisition of Pomerania
			event = 3896 #BRA: The Pommern Inheritance
			event = 132008 #BRA: The Pomeranian Inheritance
			event = 259016 #POM: The investiture of Brandenburg
			year = 1570
		}
	}
	random = yes
	province = 304 #Vorpommern
	name = "AI_EVENT"
	desc = "Pomerania"

	action_a = {
		name = "OK"
		command = { type = independence which = STT }
	}
}
event = {
	id = 5011044
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = STT }
		NOT = { core = { province = 304 data = -1 } } #Vorpommern
		AND = {
			exists = POM
			OR = {
				event = 259000 #POM: Inheritance of Pomerania-Stettin
				AND = {
					event = 259001 #POM: Inheritance of Pomerania-Stettin
					NOT = {
						event = 132018 #BRA: Inheritance of Stettin
					}
				}
			}
			NOT = { owned = { province = 304 data = POM } } #Vorpommern
		}
	}
	random = yes
	province = 304 #Vorpommern
	name = "AI_EVENT"
	desc = "Pomerania"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = POM value = 304 } #Vorpommern
		command = { type = relation which = POM value = 10 }
	}
}
event = {
	id = 5011045
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = STT }
		NOT = { core = { province = 304 data = -1 } } #Vorpommern
		AND = {
			NOT = { exists = POM }
			AND = {
				exists = BRA
				OR = {
					event = 3896 #BRA: The Pommern Inheritance
					event = 132008 #BRA: The Pomeranian Inheritance
					event = 259016 #POM: The investiture of Brandenburg
				}
				NOT = { owned = { province = 304 data = BRA } } #Vorpommern
			}
		}
	}
	random = yes
	province = 304 #Vorpommern
	name = "AI_EVENT"
	desc = "Pomerania"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = BRA value = 304 } #Vorpommern
		command = { type = relation which = BRA value = 10 }
	}
}
event = {
	id = 5011046
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = POM }
		NOT = { core = { province = 304 data = -1 } } #Vorpommern
		AND = {
			NOT = { exists = POM }
			AND = {
				NOT = { exists = BRA }
				AND = {
					exists = PRU
					event = 263014 #PRU: The Kingdom of Prussia
				}
				OR = {
					event = 3896 #BRA: The Pommern Inheritance
					event = 132008 #BRA: The Pomeranian Inheritance
					event = 259016 #POM: The investiture of Brandenburg
				}
				NOT = { owned = { province = 304 data = PRU } } #Vorpommern
			}
		}
	}
	random = yes
	province = 304 #Vorpommern
	name = "AI_EVENT"
	desc = "Pomerania"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = PRU value = 304 } #Vorpommern
		command = { type = relation which = PRU value = 10 }
	}
}

#Saxony - Meissen
#simplified version
event = {
	id = 5011048
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = {
			exists = SAC
			exists = MEI
		}
		NOT = { core = { province = 332 data = -1 } } #Anhalt
	}
	random = yes
	province = 332 #Anhalt
	name = "AI_EVENT"
	desc = "Saxony"

	action_a = {
		name = "OK"
		command = { type = independence which = SAC }
	}
}
event = {
	id = 5011049
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		exists = SAC
		NOT = { core = { province = 332 data = -1 } } #Anhalt
		NOT = { owned = { province = 332 data = SAC } } #Anhalt
	}
	random = yes
	province = 332 #Anhalt
	name = "AI_EVENT"
	desc = "Saxony"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = SAC value = 332 } #Anhalt
		command = { type = relation which = SAC value = 10 }
	}
}
event = {
	id = 5011050
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = SAC }
		NOT = { core = { province = 332 data = -1 } } #Anhalt
		AND = {
			exists = MEI
			NOT = { year = 1600 }
			NOT = { owned = { province = 332 data = MEI } } #Anhalt
		}
	}
	random = yes
	province = 332 #Anhalt
	name = "AI_EVENT"
	desc = "Saxony"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = MEI value = 332 } #Anhalt
		command = { type = relation which = MEI value = 10 }
	}
}
event = {
	id = 5011051
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		exists = SAC
		NOT = { core = { province = 331 data = -1 } } #Sachsen
		NOT = { owned = { province = 331 data = SAC } } #Sachsen
	}
	random = yes
	province = 331 #Sachsen
	name = "AI_EVENT"
	desc = "Saxony"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = SAC value = 331 } #Sachsen
		command = { type = relation which = SAC value = 10 }
	}
}
event = {
	id = 5011052
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = SAC }
		NOT = { core = { province = 331 data = -1 } } #Sachsen
		AND = {
			exists = MEI
			NOT = { year = 1600 }
			NOT = { owned = { province = 331 data = MEI } } #Sachsen
		}
	}
	random = yes
	province = 331 #Sachsen
	name = "AI_EVENT"
	desc = "Saxony"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = MEI value = 331 } #Sachsen
		command = { type = relation which = MEI value = 10 }
	}
}

#Strassburg
event = {
	id = 5011053
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = STR }
		NOT = { core = { province = 374 data = -1 } } #Alsace
	}
	random = yes
	province = 374 #Alsace
	name = "AI_EVENT"
	desc = "Strassburg"

	action_a = {
		name = "OK"
		command = { type = independence which = STR }
	}
}

#Wirtemberg
event = {
	id = 5011054
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = WUR }
		NOT = { core = { province = 372 data = -1 } } #Württemberg
		NOT = {
			AND = {
				exists = HAB
				core = { province = 372 data = HAB } #covers HAB_179004 and HAB_179006
				NOT = { owned = { province = 372 data = HAB } } #Württemberg
			}
		}
	}
	random = yes
	province = 372 #Württemberg
	name = "AI_EVENT"
	desc = "Wirtemberg"

	action_a = {
		name = "OK"
		command = { type = independence which = WUR }
	}
}
event = {
	id = 5011055
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = WUR }
		NOT = { core = { province = 372 data = -1 } } #Württemberg
		AND = {
			exists = HAB
			core = { province = 372 data = HAB } #covers HAB_179004 and HAB_179006
		}
	}
	random = yes
	province = 372 #Württemberg
	name = "AI_EVENT"
	desc = "Wirtemberg"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = HAB value = 372 } #Württemberg
		command = { type = relation which = HAB value = 10 }
	}
}

#-----------------------------------------------------------------------------------------------

#-----------------------------------------------------------------------------------------------

#Baden
event = {
	id = 5012000
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = BAD }
		NOT = { core = { province = 373 data = -1 } } #Baden
	}
	random = yes
	province = 349 #Baden
	name = "AI_EVENT"
	desc = "Baden"

	action_a = {
		name = "OK"
		command = { type = independence which = BAD }
	}
}

#Bavaria
event = {
	id = 5012001
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = BAY }
		NOT = { core = { province = 349 data = -1 } } #Bayern
		NOT = {
			AND = {
				event = 255003 #PFA: The Palatinate inherits Bavaria
				NOT = {
					event = 125021 #BAY: The Palatinate is united with Bavaria
					event = 125033 #BAY: The Palatinate is united with Bavaria (Palatinate inherited Burgundy)
				}
			}
			event = 255008 #PFA: The Wittelsbach inheritance of Bavaria
		}
	}
	random = yes
	province = 349 #Bayern
	name = "AI_EVENT"
	desc = "Bavaria"

	action_a = {
		name = "OK"
		command = { type = independence which = BAY }
	}
}
event = {
	id = 5012002
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		exists = BAY
		NOT = { core = { province = 349 data = -1 } } #Bayern
		NOT = { owned = { province = 349 data = BAY } } #Bayern
	}
	random = yes
	province = 349 #Bayern
	name = "AI_EVENT"
	desc = "Bavaria"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = BAY value = 349 } #Bayern
		command = { type = relation which = BAY value = 10 }
	}
}
event = {
	id = 5012003
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = BAY }
		NOT = { core = { province = 349 data = -1 } } #Bayern
		AND = {
			exists = PFA
			OR = {
				AND = {
					event = 255003 #PFA: The Palatinate inherits Bavaria
					NOT = {
						event = 125021 #BAY: The Palatinate is united with Bavaria
						event = 125033 #BAY: The Palatinate is united with Bavaria (Palatinate inherited Burgundy)
					}
				}
				event = 255008 #PFA: The Wittelsbach inheritance of Bavaria
			}
			NOT = { owned = { province = 349 data = PFA } } #Bayern
		}
	}
	random = yes
	province = 349 #Bayern
	name = "AI_EVENT"
	desc = "Bavaria"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = PFA value = 349 } #Bayern
		command = { type = relation which = PFA value = 10 }
	}
}
event = {
	id = 5012004
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = BAY }
		NOT = { owned = { province = 349 data = -1 } } #Bayern
		NOT = { core = { province = 348 data = -1 } } #Ansbach
		year = 1430 #LUX and HAB before
		NOT = {
			AND = {
				event = 255003 #PFA: The Palatinate inherits Bavaria
				NOT = {
					event = 125021 #BAY: The Palatinate is united with Bavaria
					event = 125033 #BAY: The Palatinate is united with Bavaria (Palatinate inherited Burgundy)
				}
			}
			event = 255008 #PFA: The Wittelsbach inheritance of Bavaria
			event = 125035 #BAY: Straubing is ceded to Austria
			event = 255009 #PFA: Straubing is ceded to Austria
		}
	}
	random = yes
	province = 348 #Ansbach
	name = "AI_EVENT"
	desc = "Bavaria"

	action_a = {
		name = "OK"
		command = { type = independence which = BAY }
	}
}
event = {
	id = 5012005
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		exists = BAY
		NOT = { core = { province = 348 data = -1 } } #Ansbach
		year = 1430 #LUX and HAB before
		NOT = {
			AND = {
				exists = HAB
				OR = {
					event = 125035 #BAY: Straubing is ceded to Austria
					event = 255009 #PFA: Straubing is ceded to Austria
				}
			}
			NOT = { owned = { province = 348 data = BAY } } #Ansbach
		}
	}
	random = yes
	province = 348 #Ansbach
	name = "AI_EVENT"
	desc = "Bavaria"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = BAY value = 348 } #Ansbach
		command = { type = relation which = BAY value = 10 }
	}
}
event = {
	id = 5012006
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = BAY }
		NOT = { core = { province = 348 data = -1 } } #Ansbach
		year = 1430 #LUX and HAB before
		AND = {
			exists = PFA
			OR = {
				AND = {
					event = 255003 #PFA: The Palatinate inherits Bavaria
					NOT = {
						event = 125021 #BAY: The Palatinate is united with Bavaria
						event = 125033 #BAY: The Palatinate is united with Bavaria (Palatinate inherited Burgundy)
					}
				}
				event = 255008 #PFA: The Wittelsbach inheritance of Bavaria
			}
			NOT = {
				AND = {
					exists = HAB
					OR = {
						event = 125035 #BAY: Straubing is ceded to Austria
						event = 255009 #PFA: Straubing is ceded to Austria
					}
				}
			}
			NOT = { owned = { province = 348 data = PFA } } #Ansbach
		}
	}
	random = yes
	province = 348 #Ansbach
	name = "AI_EVENT"
	desc = "Bavaria"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = PFA value = 348 } #Ansbach
		command = { type = relation which = PFA value = 10 }
	}
}
event = {
	id = 5012007
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { core = { province = 348 data = -1 } } #Ansbach
		year = 1430 #LUX and HAB before
		AND = {
			exists = HAB
			OR = {
				event = 125035 #BAY: Straubing is ceded to Austria
				event = 255009 #PFA: Straubing is ceded to Austria
			}
			NOT = { owned = { province = 348 data = HAB } } #Ansbach
		}
	}
	random = yes
	province = 348 #Ansbach
	name = "AI_EVENT"
	desc = "Bavaria"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = HAB value = 348 } #Ansbach
		command = { type = relation which = HAB value = 10 }
	}
}

#Berg
#simplified version
event = {
	id = 5012008
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = BRG }
		NOT = { core = { province = 343 data = -1 } } #Kleves
		NOT = { year = 1609 }
	}
	random = yes
	province = 334 #Kleves
	name = "AI_EVENT"
	desc = "Berg"

	action_a = {
		name = "OK"
		command = { type = independence which = BRG }
	}
}

#Brandenburg - Prussia
event = {
	id = 5012009
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = BRA }
		NOT = { core = { province = 312 data = -1 } } #Brandenburg
		NOT = {
			AND = {
				exists = PRU
				event = 263014 #PRU: The Kingdom of Prussia
			}
		}
	}
	random = yes
	province = 312 #Brandenburg
	name = "AI_EVENT"
	desc = "Brandenburg"

	action_a = {
		name = "OK"
		command = { type = independence which = BRA }
	}
}
event = {
	id = 5012011
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = BRA }
		NOT = { core = { province = 312 data = -1 } } #Brandenburg
		AND = {
			exists = PRU
			event = 263014 #PRU: The Kingdom of Prussia
			NOT = { owned = { province = 312 data = PRU } } #Brandenburg
		}
	}
	random = yes
	province = 312 #Brandenburg
	name = "AI_EVENT"
	desc = "Brandenburg"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = PRU value = 312 } #Brandenburg
		command = { type = relation which = PRU value = 10 }
	}
}
event = {
	id = 5012012
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = BRA }
		NOT = { core = { province = 313 data = -1 } } #Küstrin
		NOT = { owned = { province = 312 data = -1 } } #Brandenburg
		NOT = {
			AND = {
				exists = PRU
				event = 263014 #PRU: The Kingdom of Prussia
			}
		}
	}
	random = yes
	province = 313 #Küstrin
	name = "AI_EVENT"
	desc = "Brandenburg"

	action_a = {
		name = "OK"
		command = { type = independence which = BRA }
	}
}
event = {
	id = 5012014
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		exists = BRA
		NOT = { core = { province = 313 data = -1 } } #Küstrin
		NOT = { owned = { province = 313 data = BRA } } #Küstrin
	}
	random = yes
	province = 313 #Küstrin
	name = "AI_EVENT"
	desc = "Brandenburg"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = BRA value = 313 } #Küstrin
		command = { type = relation which = BRA value = 10 }
	}
}
event = {
	id = 5012015
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = BRA }
		NOT = { core = { province = 313 data = -1 } } #Küstrin
		AND = {
			exists = PRU
			event = 263014 #PRU: The Kingdom of Prussia
			NOT = { owned = { province = 312 data = PRU } } #Brandenburg
		}
	}
	random = yes
	province = 313 #Küstrin
	name = "AI_EVENT"
	desc = "Brandenburg"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = PRU value = 313 } #Küstrin
		command = { type = relation which = PRU value = 10 }
	}
}
event = {
	id = 5012016
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		exists = BRA
		NOT = { core = { province = 311 data = -1 } } #Magdeburg
		NOT = { owned = { province = 311 data = BRA } } #Magdeburg
	}
	random = yes
	province = 311 #Magdeburg
	name = "AI_EVENT"
	desc = "Brandenburg"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = BRA value = 311 } #Magdeburg
		command = { type = relation which = BRA value = 10 }
	}
}
event = {
	id = 5012017
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = BRA }
		NOT = { core = { province = 311 data = -1 } } #Magdeburg
		AND = {
			exists = PRU
			event = 263014 #PRU: The Kingdom of Prussia
			NOT = { owned = { province = 311 data = PRU } } #Magdeburg
		}
	}
	random = yes
	province = 311 #Magdeburg
	name = "AI_EVENT"
	desc = "Brandenburg"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = PRU value = 311 } #Magdeburg
		command = { type = relation which = PRU value = 10 }
	}
}

#Bremen
event = {
	id = 5012018
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = BRE }
		NOT = { core = { province = 336 data = -1 } } #Bremen
	}
	random = yes
	province = 336 #Bremen
	name = "AI_EVENT"
	desc = "Bremen"

	action_a = {
		name = "OK"
		command = { type = independence which = BRE }
	}
}

#Cleves
#simplified version
event = {
	id = 5012019
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = KLE }
		NOT = { core = { province = 334 data = -1 } } #Münster
		NOT = {
			event = 235009 #BRG: Union with Kleve-Mark
			year = 1609
		}
	}
	random = yes
	province = 334 #Münster
	name = "AI_EVENT"
	desc = "Cleves"

	action_a = {
		name = "OK"
		command = { type = independence which = KLE }
	}
}
event = {
	id = 5012020
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = KLE }
		NOT = { core = { province = 334 data = -1 } } #Münster
		AND = {
			exists = BRG
			event = 235009 #BRG: Union with Kleve-Mark
			NOT = { owned = { province = 334 data = BRG } } #Münster
			NOT = { year = 1609 }
		}
	}
	random = yes
	province = 334 #Münster
	name = "AI_EVENT"
	desc = "Cleves"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = BRG value = 334 } #Münster
		command = { type = relation which = BRG value = 10 }
	}
}

#Cologne
event = {
	id = 5012021
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = KOL }
		NOT = { core = { province = 344 data = -1 } } #Köln
	}
	random = yes
	province = 344 #Köln
	name = "AI_EVENT"
	desc = "Cologne"

	action_a = {
		name = "OK"
		command = { type = independence which = KOL }
	}
}

#Hanover
event = {
	id = 5012022
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = HAN }
		NOT = { core = { province = 310 data = -1 } } #Hannover
	}
	random = yes
	province = 310 #Hannover
	name = "AI_EVENT"
	desc = "Hanover"

	action_a = {
		name = "OK"
		command = { type = independence which = HAN }
	}
}

#Hesse
event = {
	id = 5012023
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = HES }
		NOT = { core = { province = 333 data = -1 } } #Hessen
	}
	random = yes
	province = 333 #Hessen
	name = "AI_EVENT"
	desc = "Hesse"

	action_a = {
		name = "OK"
		command = { type = independence which = HES }
	}
}

#Holstein
event = {
	id = 5012024
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = SHL }
		NOT = { core = { province = 306 data = -1 } } #Holstein
		NOT = {
			AND = {
				event = 159034 #DAN: Denmark inherits Holstein
				NOT = { event = 159011 } #DAN: The fate of Holstein
			}
			event = 247002 #OLD: Oldenburg inherits Holstein
		}
	}
	random = yes
	province = 306 #Holstein
	name = "AI_EVENT"
	desc = "Holstein"

	action_a = {
		name = "OK"
		command = { type = independence which = SHL }
	}
}
event = {
	id = 5012010
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = SHL }
		NOT = { core = { province = 306 data = -1 } } #Holstein
		AND = {
			exists = OLD
			event = 247002 #OLD: Oldenburg inherits Holstein
			NOT = { owned = { province = 306 data = OLD } } #Holstein
		}
	}
	random = yes
	province = 306 #Holstein
	name = "AI_EVENT"
	desc = "Holstein"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = OLD value = 306 } #Holstein
		command = { type = relation which = OLD value = 10 }
	}
}

#Lorraine
event = {
	id = 5012026
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = LOR }
		NOT = { core = { province = 375 data = -1 } } #Lorraine
		NOT = {
			event = 3736 #FRA: French Inheritance of Lothringen
			year = 1766
		}
	}
	random = yes
	province = 375 #Lorraine
	name = "AI_EVENT"
	desc = "Lorraine"

	action_a = {
		name = "OK"
		command = { type = independence which = LOR }
	}
}

#Luxemburg
event = {
	id = 5012028
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = LUX }
		NOT = { core = { province = 377 data = -1 } } #Luxembourg
		NOT = {
			event = 137306 #BUR: Annexation of Luxemburg
			year = 1451 #Burgundian monarchs
		}
	}
	random = yes
	province = 377 #Luxembourg
	name = "AI_EVENT"
	desc = "Luxemburg"

	action_a = {
		name = "OK"
		command = { type = independence which = LUX }
	}
}
event = {
	id = 5012029
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = LUX }
		NOT = { core = { province = 377 data = -1 } } #Luxembourg
		AND = {
			exists = BUR
			event = 137306 #BUR: Annexation of Luxemburg
			NOT = { owned = { province = 377 data = BUR } } #Luxembourg
		}
	}
	random = yes
	province = 377 #Luxembourg
	name = "AI_EVENT"
	desc = "Luxemburg"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = BUR value = 377 } #Luxembourg
		command = { type = relation which = BUR value = 10 }
	}
}

#Mainz
event = {
	id = 5012030
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = MAI }
		NOT = { core = { province = 346 data = -1 } } #Mainz
	}
	random = yes
	province = 346 #Mainz
	name = "AI_EVENT"
	desc = "Mainz"

	action_a = {
		name = "OK"
		command = { type = independence which = MAI }
	}
}

#Mecklenburg
event = {
	id = 5012031
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = MEC }
		NOT = { core = { province = 305 data = -1 } } #Mecklenburg
	}
	random = yes
	province = 305 #Mecklenburg
	name = "AI_EVENT"
	desc = "Mecklenburg"

	action_a = {
		name = "OK"
		command = { type = independence which = MEC }
	}
}

#Oldenburg
event = {
	id = 5012032
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = OLD }
		NOT = { core = { province = 335 data = -1 } } #Oldenburg
		NOT = {
			event = 159033 #DAN: Oldenburg is incorporated into Denmark
			event = 279010 #SHL: Holstein inherits Oldenburg
		}
	}
	random = yes
	province = 335 #Oldenburg
	name = "AI_EVENT"
	desc = "Oldenburg"

	action_a = {
		name = "OK"
		command = { type = independence which = OLD }
	}
}
event = {
	id = 5012013
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = OLD }
		NOT = { core = { province = 335 data = -1 } } #Oldenburg
		AND = {
			exists = SHL
			event = 279010 #SHL: Holstein inherits Oldenburg
			NOT = { owned = { province = 335 data = SHL } } #Oldenburg
		}
	}
	random = yes
	province = 335 #Oldenburg
	name = "AI_EVENT"
	desc = "Oldenburg"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = SHL value = 335 } #Oldenburg
		command = { type = relation which = SHL value = 10 }
	}
}

#Palatinate
event = {
	id = 5012033
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = PFA }
		NOT = { core = { province = 345 data = -1 } } #Pfalz
		NOT = {
			event = 125021 #BAY: The Palatinate is united with Bavaria
			event = 125033 #BAY: The Palatinate is united with Bavaria
		}
	}
	random = yes
	province = 345 #Pfalz
	name = "AI_EVENT"
	desc = "Palatinate"

	action_a = {
		name = "OK"
		command = { type = independence which = PFA }
	}
}
event = {
	id = 5012034
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		exists = PFA
		NOT = { core = { province = 345 data = -1 } } #Pfalz
	}
	random = yes
	province = 345 #Pfalz
	name = "AI_EVENT"
	desc = "Palatinate"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = PFA value = 345 } #Pfalz
		command = { type = relation which = PFA value = 10 }
	}
}
event = {
	id = 5012035
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = PFA }
		NOT = { core = { province = 345 data = -1 } } #Pfalz
		AND = {
			exists = BAY
			OR = {
				event = 125021 #BAY: The Palatinate is united with Bavaria
				event = 125033 #BAY: The Palatinate is united with Bavaria
			}
			NOT = { owned = { province = 345 data = BAY } } #Pfalz
		}
	}
	random = yes
	province = 345 #Pfalz
	name = "AI_EVENT"
	desc = "Palatinate"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = BAY value = 345 } #Pfalz
		command = { type = relation which = BAY value = 10 }
	}
}
event = {
	id = 5012036
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = PFA }
		NOT = { owned = { province = 345 data = -1 } } #Pfalz
		NOT = { core = { province = 347 data = -1 } } #Würzburg
		NOT = {
			event = 125021 #BAY: The Palatinate is united with Bavaria
			event = 125033 #BAY: The Palatinate is united with Bavaria
		}
	}
	random = yes
	province = 347 #Würzburg
	name = "AI_EVENT"
	desc = "Palatinate"

	action_a = {
		name = "OK"
		command = { type = independence which = PFA }
	}
}
event = {
	id = 5012037
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		exists = PFA
		NOT = { core = { province = 347 data = -1 } } #Würzburg
	}
	random = yes
	province = 347 #Würzburg
	name = "AI_EVENT"
	desc = "Palatinate"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = PFA value = 347 } #Würzburg
		command = { type = relation which = PFA value = 10 }
	}
}
event = {
	id = 5012038
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = PFA }
		NOT = { core = { province = 347 data = -1 } } #Würzburg
		AND = {
			exists = BAY
			OR = {
				event = 125021 #BAY: The Palatinate is united with Bavaria
				event = 125033 #BAY: The Palatinate is united with Bavaria
			}
			NOT = { owned = { province = 347 data = BAY } } #Würzburg
		}
	}
	random = yes
	province = 347 #Würzburg
	name = "AI_EVENT"
	desc = "Palatinate"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = BAY value = 347 } #Würzburg
		command = { type = relation which = BAY value = 10 }
	}
}

#Pomerania - Stettin
event = {
	id = 5012039
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = POM }
		NOT = { core = { province = 302 data = -1 } } #Hinterpommern
		NOT = {
			event = 291030 #SWE: The Acquisition of Pomerania
			event = 3896 #BRA: The Pommern Inheritance
			event = 132008 #BRA: The Pomeranian Inheritance
			event = 259016 #POM: The investiture of Brandenburg
			year = 1637
		}
	}
	random = yes
	province = 302 #Hinterpommern
	name = "AI_EVENT"
	desc = "Pomerania"

	action_a = {
		name = "OK"
		command = { type = independence which = POM }
	}
}
event = {
	id = 5012040
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = POM }
		NOT = { core = { province = 302 data = -1 } } #Hinterpommern
		AND = {
			exists = STT
			NOT = { owned = { province = 302 data = STT } } #Hinterpommern
		}
	}
	random = yes
	province = 302 #Hinterpommern
	name = "AI_EVENT"
	desc = "Pomerania"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = STT value = 302 } #Hinterpommern
		command = { type = relation which = STT value = 10 }
	}
}
event = {
	id = 5012041
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = POM }
		NOT = { core = { province = 302 data = -1 } } #Hinterpommern
		AND = {
			NOT = { exists = STT }
			exists = BRA
			OR = {
				event = 3896 #BRA: The Pommern Inheritance
				event = 132008 #BRA: The Pomeranian Inheritance
				event = 259016 #POM: The investiture of Brandenburg
			}
			NOT = { owned = { province = 302 data = BRA } } #Hinterpommern
		}
	}
	random = yes
	province = 302 #Hinterpommern
	name = "AI_EVENT"
	desc = "Pomerania"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = BRA value = 302 } #Hinterpommern
		command = { type = relation which = BRA value = 10 }
	}
}
event = {
	id = 5012042
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = POM }
		NOT = { core = { province = 302 data = -1 } } #Hinterpommern
		AND = {
			NOT = { exists = STT }
			NOT = { exists = BRA }
			AND = {
				exists = PRU
				event = 263014 #PRU: The Kingdom of Prussia
			}
			OR = {
				event = 3896 #BRA: The Pommern Inheritance
				event = 132008 #BRA: The Pomeranian Inheritance
				event = 259016 #POM: The investiture of Brandenburg
			}
			NOT = { owned = { province = 302 data = PRU } } #Hinterpommern
		}
	}
	random = yes
	province = 302 #Hinterpommern
	name = "AI_EVENT"
	desc = "Pomerania"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = PRU value = 302 } #Hinterpommern
		command = { type = relation which = PRU value = 10 }
	}
}
event = {
	id = 5012043
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = STT }
		NOT = { core = { province = 304 data = -1 } } #Vorpommern
		NOT = {
			event = 259000 #POM: Inheritance of Pomerania-Stettin
			AND = {
				event = 259001 #POM: Inheritance of Pomerania-Stettin
				NOT = {
					event = 132018 #BRA: Inheritance of Stettin
				}
			}
			event = 291029 #SWE: The Acquisition of Vorpommern
			event = 291030 #SWE: The Acquisition of Pomerania
			event = 3896 #BRA: The Pommern Inheritance
			event = 132008 #BRA: The Pomeranian Inheritance
			event = 259016 #POM: The investiture of Brandenburg
			year = 1570
		}
	}
	random = yes
	province = 304 #Vorpommern
	name = "AI_EVENT"
	desc = "Pomerania"

	action_a = {
		name = "OK"
		command = { type = independence which = STT }
	}
}
event = {
	id = 5012044
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = STT }
		NOT = { core = { province = 304 data = -1 } } #Vorpommern
		AND = {
			exists = POM
			OR = {
				event = 259000 #POM: Inheritance of Pomerania-Stettin
				AND = {
					event = 259001 #POM: Inheritance of Pomerania-Stettin
					NOT = {
						event = 132018 #BRA: Inheritance of Stettin
					}
				}
			}
			NOT = { owned = { province = 304 data = POM } } #Vorpommern
		}
	}
	random = yes
	province = 304 #Vorpommern
	name = "AI_EVENT"
	desc = "Pomerania"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = POM value = 304 } #Vorpommern
		command = { type = relation which = POM value = 10 }
	}
}
event = {
	id = 5012045
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = STT }
		NOT = { core = { province = 304 data = -1 } } #Vorpommern
		AND = {
			NOT = { exists = POM }
			AND = {
				exists = BRA
				OR = {
					event = 3896 #BRA: The Pommern Inheritance
					event = 132008 #BRA: The Pomeranian Inheritance
					event = 259016 #POM: The investiture of Brandenburg
				}
				NOT = { owned = { province = 304 data = BRA } } #Vorpommern
			}
		}
	}
	random = yes
	province = 304 #Vorpommern
	name = "AI_EVENT"
	desc = "Pomerania"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = BRA value = 304 } #Vorpommern
		command = { type = relation which = BRA value = 10 }
	}
}
event = {
	id = 5012046
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = POM }
		NOT = { core = { province = 304 data = -1 } } #Vorpommern
		AND = {
			NOT = { exists = POM }
			AND = {
				NOT = { exists = BRA }
				AND = {
					exists = PRU
					event = 263014 #PRU: The Kingdom of Prussia
				}
				OR = {
					event = 3896 #BRA: The Pommern Inheritance
					event = 132008 #BRA: The Pomeranian Inheritance
					event = 259016 #POM: The investiture of Brandenburg
				}
				NOT = { owned = { province = 304 data = PRU } } #Vorpommern
			}
		}
	}
	random = yes
	province = 304 #Vorpommern
	name = "AI_EVENT"
	desc = "Pomerania"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = PRU value = 304 } #Vorpommern
		command = { type = relation which = PRU value = 10 }
	}
}

#Saxony - Meissen
#simplified version
event = {
	id = 5012048
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = {
			exists = SAC
			exists = MEI
		}
		NOT = { core = { province = 332 data = -1 } } #Anhalt
	}
	random = yes
	province = 332 #Anhalt
	name = "AI_EVENT"
	desc = "Saxony"

	action_a = {
		name = "OK"
		command = { type = independence which = SAC }
	}
}
event = {
	id = 5012049
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		exists = SAC
		NOT = { core = { province = 332 data = -1 } } #Anhalt
		NOT = { owned = { province = 332 data = SAC } } #Anhalt
	}
	random = yes
	province = 332 #Anhalt
	name = "AI_EVENT"
	desc = "Saxony"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = SAC value = 332 } #Anhalt
		command = { type = relation which = SAC value = 10 }
	}
}
event = {
	id = 5012050
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = SAC }
		NOT = { core = { province = 332 data = -1 } } #Anhalt
		AND = {
			exists = MEI
			NOT = { year = 1600 }
			NOT = { owned = { province = 332 data = MEI } } #Anhalt
		}
	}
	random = yes
	province = 332 #Anhalt
	name = "AI_EVENT"
	desc = "Saxony"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = MEI value = 332 } #Anhalt
		command = { type = relation which = MEI value = 10 }
	}
}
event = {
	id = 5012051
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		exists = SAC
		NOT = { core = { province = 331 data = -1 } } #Sachsen
		NOT = { owned = { province = 331 data = SAC } } #Sachsen
	}
	random = yes
	province = 331 #Sachsen
	name = "AI_EVENT"
	desc = "Saxony"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = SAC value = 331 } #Sachsen
		command = { type = relation which = SAC value = 10 }
	}
}
event = {
	id = 5012052
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = SAC }
		NOT = { core = { province = 331 data = -1 } } #Sachsen
		AND = {
			exists = MEI
			NOT = { year = 1600 }
			NOT = { owned = { province = 331 data = MEI } } #Sachsen
		}
	}
	random = yes
	province = 331 #Sachsen
	name = "AI_EVENT"
	desc = "Saxony"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = MEI value = 331 } #Sachsen
		command = { type = relation which = MEI value = 10 }
	}
}

#Strassburg
event = {
	id = 5012053
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = STR }
		NOT = { core = { province = 374 data = -1 } } #Alsace
	}
	random = yes
	province = 374 #Alsace
	name = "AI_EVENT"
	desc = "Strassburg"

	action_a = {
		name = "OK"
		command = { type = independence which = STR }
	}
}

#Wirtemberg
event = {
	id = 5012054
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = WUR }
		NOT = { core = { province = 372 data = -1 } } #Württemberg
		NOT = {
			AND = {
				exists = HAB
				core = { province = 372 data = HAB } #covers HAB_179004 and HAB_179006
				NOT = { owned = { province = 372 data = HAB } } #Württemberg
			}
		}
	}
	random = yes
	province = 372 #Württemberg
	name = "AI_EVENT"
	desc = "Wirtemberg"

	action_a = {
		name = "OK"
		command = { type = independence which = WUR }
	}
}
event = {
	id = 5012055
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = WUR }
		NOT = { core = { province = 372 data = -1 } } #Württemberg
		AND = {
			exists = HAB
			core = { province = 372 data = HAB } #covers HAB_179004 and HAB_179006
		}
	}
	random = yes
	province = 372 #Württemberg
	name = "AI_EVENT"
	desc = "Wirtemberg"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = HAB value = 372 } #Württemberg
		command = { type = relation which = HAB value = 10 }
	}
}

#-----------------------------------------------------------------------------------------------

#-----------------------------------------------------------------------------------------------

#Baden
event = {
	id = 5013000
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = BAD }
		NOT = { core = { province = 373 data = -1 } } #Baden
	}
	random = yes
	province = 349 #Baden
	name = "AI_EVENT"
	desc = "Baden"

	action_a = {
		name = "OK"
		command = { type = independence which = BAD }
	}
}

#Bavaria
event = {
	id = 5013001
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = BAY }
		NOT = { core = { province = 349 data = -1 } } #Bayern
		NOT = {
			AND = {
				event = 255003 #PFA: The Palatinate inherits Bavaria
				NOT = {
					event = 125021 #BAY: The Palatinate is united with Bavaria
					event = 125033 #BAY: The Palatinate is united with Bavaria (Palatinate inherited Burgundy)
				}
			}
			event = 255008 #PFA: The Wittelsbach inheritance of Bavaria
		}
	}
	random = yes
	province = 349 #Bayern
	name = "AI_EVENT"
	desc = "Bavaria"

	action_a = {
		name = "OK"
		command = { type = independence which = BAY }
	}
}
event = {
	id = 5013002
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		exists = BAY
		NOT = { core = { province = 349 data = -1 } } #Bayern
		NOT = { owned = { province = 349 data = BAY } } #Bayern
	}
	random = yes
	province = 349 #Bayern
	name = "AI_EVENT"
	desc = "Bavaria"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = BAY value = 349 } #Bayern
		command = { type = relation which = BAY value = 10 }
	}
}
event = {
	id = 5013003
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = BAY }
		NOT = { core = { province = 349 data = -1 } } #Bayern
		AND = {
			exists = PFA
			OR = {
				AND = {
					event = 255003 #PFA: The Palatinate inherits Bavaria
					NOT = {
						event = 125021 #BAY: The Palatinate is united with Bavaria
						event = 125033 #BAY: The Palatinate is united with Bavaria (Palatinate inherited Burgundy)
					}
				}
				event = 255008 #PFA: The Wittelsbach inheritance of Bavaria
			}
			NOT = { owned = { province = 349 data = PFA } } #Bayern
		}
	}
	random = yes
	province = 349 #Bayern
	name = "AI_EVENT"
	desc = "Bavaria"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = PFA value = 349 } #Bayern
		command = { type = relation which = PFA value = 10 }
	}
}
event = {
	id = 5013004
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = BAY }
		NOT = { owned = { province = 349 data = -1 } } #Bayern
		NOT = { core = { province = 348 data = -1 } } #Ansbach
		year = 1430 #LUX and HAB before
		NOT = {
			AND = {
				event = 255003 #PFA: The Palatinate inherits Bavaria
				NOT = {
					event = 125021 #BAY: The Palatinate is united with Bavaria
					event = 125033 #BAY: The Palatinate is united with Bavaria (Palatinate inherited Burgundy)
				}
			}
			event = 255008 #PFA: The Wittelsbach inheritance of Bavaria
			event = 125035 #BAY: Straubing is ceded to Austria
			event = 255009 #PFA: Straubing is ceded to Austria
		}
	}
	random = yes
	province = 348 #Ansbach
	name = "AI_EVENT"
	desc = "Bavaria"

	action_a = {
		name = "OK"
		command = { type = independence which = BAY }
	}
}
event = {
	id = 5013005
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		exists = BAY
		NOT = { core = { province = 348 data = -1 } } #Ansbach
		year = 1430 #LUX and HAB before
		NOT = {
			AND = {
				exists = HAB
				OR = {
					event = 125035 #BAY: Straubing is ceded to Austria
					event = 255009 #PFA: Straubing is ceded to Austria
				}
			}
			NOT = { owned = { province = 348 data = BAY } } #Ansbach
		}
	}
	random = yes
	province = 348 #Ansbach
	name = "AI_EVENT"
	desc = "Bavaria"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = BAY value = 348 } #Ansbach
		command = { type = relation which = BAY value = 10 }
	}
}
event = {
	id = 5013006
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = BAY }
		NOT = { core = { province = 348 data = -1 } } #Ansbach
		year = 1430 #LUX and HAB before
		AND = {
			exists = PFA
			OR = {
				AND = {
					event = 255003 #PFA: The Palatinate inherits Bavaria
					NOT = {
						event = 125021 #BAY: The Palatinate is united with Bavaria
						event = 125033 #BAY: The Palatinate is united with Bavaria (Palatinate inherited Burgundy)
					}
				}
				event = 255008 #PFA: The Wittelsbach inheritance of Bavaria
			}
			NOT = {
				AND = {
					exists = HAB
					OR = {
						event = 125035 #BAY: Straubing is ceded to Austria
						event = 255009 #PFA: Straubing is ceded to Austria
					}
				}
			}
			NOT = { owned = { province = 348 data = PFA } } #Ansbach
		}
	}
	random = yes
	province = 348 #Ansbach
	name = "AI_EVENT"
	desc = "Bavaria"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = PFA value = 348 } #Ansbach
		command = { type = relation which = PFA value = 10 }
	}
}
event = {
	id = 5013007
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { core = { province = 348 data = -1 } } #Ansbach
		year = 1430 #LUX and HAB before
		AND = {
			exists = HAB
			OR = {
				event = 125035 #BAY: Straubing is ceded to Austria
				event = 255009 #PFA: Straubing is ceded to Austria
			}
			NOT = { owned = { province = 348 data = HAB } } #Ansbach
		}
	}
	random = yes
	province = 348 #Ansbach
	name = "AI_EVENT"
	desc = "Bavaria"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = HAB value = 348 } #Ansbach
		command = { type = relation which = HAB value = 10 }
	}
}

#Berg
#simplified version
event = {
	id = 5013008
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = BRG }
		NOT = { core = { province = 343 data = -1 } } #Kleves
		NOT = { year = 1609 }
	}
	random = yes
	province = 334 #Kleves
	name = "AI_EVENT"
	desc = "Berg"

	action_a = {
		name = "OK"
		command = { type = independence which = BRG }
	}
}

#Brandenburg - Prussia
event = {
	id = 5013009
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = BRA }
		NOT = { core = { province = 312 data = -1 } } #Brandenburg
		NOT = {
			AND = {
				exists = PRU
				event = 263014 #PRU: The Kingdom of Prussia
			}
		}
	}
	random = yes
	province = 312 #Brandenburg
	name = "AI_EVENT"
	desc = "Brandenburg"

	action_a = {
		name = "OK"
		command = { type = independence which = BRA }
	}
}
event = {
	id = 5013011
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = BRA }
		NOT = { core = { province = 312 data = -1 } } #Brandenburg
		AND = {
			exists = PRU
			event = 263014 #PRU: The Kingdom of Prussia
			NOT = { owned = { province = 312 data = PRU } } #Brandenburg
		}
	}
	random = yes
	province = 312 #Brandenburg
	name = "AI_EVENT"
	desc = "Brandenburg"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = PRU value = 312 } #Brandenburg
		command = { type = relation which = PRU value = 10 }
	}
}
event = {
	id = 5013012
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = BRA }
		NOT = { core = { province = 313 data = -1 } } #Küstrin
		NOT = { owned = { province = 312 data = -1 } } #Brandenburg
		NOT = {
			AND = {
				exists = PRU
				event = 263014 #PRU: The Kingdom of Prussia
			}
		}
	}
	random = yes
	province = 313 #Küstrin
	name = "AI_EVENT"
	desc = "Brandenburg"

	action_a = {
		name = "OK"
		command = { type = independence which = BRA }
	}
}
event = {
	id = 5013014
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		exists = BRA
		NOT = { core = { province = 313 data = -1 } } #Küstrin
		NOT = { owned = { province = 313 data = BRA } } #Küstrin
	}
	random = yes
	province = 313 #Küstrin
	name = "AI_EVENT"
	desc = "Brandenburg"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = BRA value = 313 } #Küstrin
		command = { type = relation which = BRA value = 10 }
	}
}
event = {
	id = 5013015
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = BRA }
		NOT = { core = { province = 313 data = -1 } } #Küstrin
		AND = {
			exists = PRU
			event = 263014 #PRU: The Kingdom of Prussia
			NOT = { owned = { province = 312 data = PRU } } #Brandenburg
		}
	}
	random = yes
	province = 313 #Küstrin
	name = "AI_EVENT"
	desc = "Brandenburg"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = PRU value = 313 } #Küstrin
		command = { type = relation which = PRU value = 10 }
	}
}
event = {
	id = 5013016
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		exists = BRA
		NOT = { core = { province = 311 data = -1 } } #Magdeburg
		NOT = { owned = { province = 311 data = BRA } } #Magdeburg
	}
	random = yes
	province = 311 #Magdeburg
	name = "AI_EVENT"
	desc = "Brandenburg"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = BRA value = 311 } #Magdeburg
		command = { type = relation which = BRA value = 10 }
	}
}
event = {
	id = 5013017
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = BRA }
		NOT = { core = { province = 311 data = -1 } } #Magdeburg
		AND = {
			exists = PRU
			event = 263014 #PRU: The Kingdom of Prussia
			NOT = { owned = { province = 311 data = PRU } } #Magdeburg
		}
	}
	random = yes
	province = 311 #Magdeburg
	name = "AI_EVENT"
	desc = "Brandenburg"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = PRU value = 311 } #Magdeburg
		command = { type = relation which = PRU value = 10 }
	}
}

#Bremen
event = {
	id = 5013018
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = BRE }
		NOT = { core = { province = 336 data = -1 } } #Bremen
	}
	random = yes
	province = 336 #Bremen
	name = "AI_EVENT"
	desc = "Bremen"

	action_a = {
		name = "OK"
		command = { type = independence which = BRE }
	}
}

#Cleves
#simplified version
event = {
	id = 5013019
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = KLE }
		NOT = { core = { province = 334 data = -1 } } #Münster
		NOT = {
			event = 235009 #BRG: Union with Kleve-Mark
			year = 1609
		}
	}
	random = yes
	province = 334 #Münster
	name = "AI_EVENT"
	desc = "Cleves"

	action_a = {
		name = "OK"
		command = { type = independence which = KLE }
	}
}
event = {
	id = 5013020
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = KLE }
		NOT = { core = { province = 334 data = -1 } } #Münster
		AND = {
			exists = BRG
			event = 235009 #BRG: Union with Kleve-Mark
			NOT = { owned = { province = 334 data = BRG } } #Münster
			NOT = { year = 1609 }
		}
	}
	random = yes
	province = 334 #Münster
	name = "AI_EVENT"
	desc = "Cleves"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = BRG value = 334 } #Münster
		command = { type = relation which = BRG value = 10 }
	}
}

#Cologne
event = {
	id = 5013021
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = KOL }
		NOT = { core = { province = 344 data = -1 } } #Köln
	}
	random = yes
	province = 344 #Köln
	name = "AI_EVENT"
	desc = "Cologne"

	action_a = {
		name = "OK"
		command = { type = independence which = KOL }
	}
}

#Hanover
event = {
	id = 5013022
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = HAN }
		NOT = { core = { province = 310 data = -1 } } #Hannover
	}
	random = yes
	province = 310 #Hannover
	name = "AI_EVENT"
	desc = "Hanover"

	action_a = {
		name = "OK"
		command = { type = independence which = HAN }
	}
}

#Hesse
event = {
	id = 5013023
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = HES }
		NOT = { core = { province = 333 data = -1 } } #Hessen
	}
	random = yes
	province = 333 #Hessen
	name = "AI_EVENT"
	desc = "Hesse"

	action_a = {
		name = "OK"
		command = { type = independence which = HES }
	}
}

#Holstein
event = {
	id = 5013024
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = SHL }
		NOT = { core = { province = 306 data = -1 } } #Holstein
		NOT = {
			AND = {
				event = 159034 #DAN: Denmark inherits Holstein
				NOT = { event = 159011 } #DAN: The fate of Holstein
			}
			event = 247002 #OLD: Oldenburg inherits Holstein
		}
	}
	random = yes
	province = 306 #Holstein
	name = "AI_EVENT"
	desc = "Holstein"

	action_a = {
		name = "OK"
		command = { type = independence which = SHL }
	}
}
event = {
	id = 5013010
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = SHL }
		NOT = { core = { province = 306 data = -1 } } #Holstein
		AND = {
			exists = OLD
			event = 247002 #OLD: Oldenburg inherits Holstein
			NOT = { owned = { province = 306 data = OLD } } #Holstein
		}
	}
	random = yes
	province = 306 #Holstein
	name = "AI_EVENT"
	desc = "Holstein"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = OLD value = 306 } #Holstein
		command = { type = relation which = OLD value = 10 }
	}
}

#Lorraine
event = {
	id = 5013026
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = LOR }
		NOT = { core = { province = 375 data = -1 } } #Lorraine
		NOT = {
			event = 3736 #FRA: French Inheritance of Lothringen
			year = 1766
		}
	}
	random = yes
	province = 375 #Lorraine
	name = "AI_EVENT"
	desc = "Lorraine"

	action_a = {
		name = "OK"
		command = { type = independence which = LOR }
	}
}

#Luxemburg
event = {
	id = 5013028
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = LUX }
		NOT = { core = { province = 377 data = -1 } } #Luxembourg
		NOT = {
			event = 137306 #BUR: Annexation of Luxemburg
			year = 1451 #Burgundian monarchs
		}
	}
	random = yes
	province = 377 #Luxembourg
	name = "AI_EVENT"
	desc = "Luxemburg"

	action_a = {
		name = "OK"
		command = { type = independence which = LUX }
	}
}
event = {
	id = 5013029
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = LUX }
		NOT = { core = { province = 377 data = -1 } } #Luxembourg
		AND = {
			exists = BUR
			event = 137306 #BUR: Annexation of Luxemburg
			NOT = { owned = { province = 377 data = BUR } } #Luxembourg
		}
	}
	random = yes
	province = 377 #Luxembourg
	name = "AI_EVENT"
	desc = "Luxemburg"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = BUR value = 377 } #Luxembourg
		command = { type = relation which = BUR value = 10 }
	}
}

#Mainz
event = {
	id = 5013030
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = MAI }
		NOT = { core = { province = 346 data = -1 } } #Mainz
	}
	random = yes
	province = 346 #Mainz
	name = "AI_EVENT"
	desc = "Mainz"

	action_a = {
		name = "OK"
		command = { type = independence which = MAI }
	}
}

#Mecklenburg
event = {
	id = 5013031
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = MEC }
		NOT = { core = { province = 305 data = -1 } } #Mecklenburg
	}
	random = yes
	province = 305 #Mecklenburg
	name = "AI_EVENT"
	desc = "Mecklenburg"

	action_a = {
		name = "OK"
		command = { type = independence which = MEC }
	}
}

#Oldenburg
event = {
	id = 5013032
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = OLD }
		NOT = { core = { province = 335 data = -1 } } #Oldenburg
		NOT = {
			event = 159033 #DAN: Oldenburg is incorporated into Denmark
			event = 279010 #SHL: Holstein inherits Oldenburg
		}
	}
	random = yes
	province = 335 #Oldenburg
	name = "AI_EVENT"
	desc = "Oldenburg"

	action_a = {
		name = "OK"
		command = { type = independence which = OLD }
	}
}
event = {
	id = 5013013
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = OLD }
		NOT = { core = { province = 335 data = -1 } } #Oldenburg
		AND = {
			exists = SHL
			event = 279010 #SHL: Holstein inherits Oldenburg
			NOT = { owned = { province = 335 data = SHL } } #Oldenburg
		}
	}
	random = yes
	province = 335 #Oldenburg
	name = "AI_EVENT"
	desc = "Oldenburg"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = SHL value = 335 } #Oldenburg
		command = { type = relation which = SHL value = 10 }
	}
}

#Palatinate
event = {
	id = 5013033
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = PFA }
		NOT = { core = { province = 345 data = -1 } } #Pfalz
		NOT = {
			event = 125021 #BAY: The Palatinate is united with Bavaria
			event = 125033 #BAY: The Palatinate is united with Bavaria
		}
	}
	random = yes
	province = 345 #Pfalz
	name = "AI_EVENT"
	desc = "Palatinate"

	action_a = {
		name = "OK"
		command = { type = independence which = PFA }
	}
}
event = {
	id = 5013034
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		exists = PFA
		NOT = { core = { province = 345 data = -1 } } #Pfalz
	}
	random = yes
	province = 345 #Pfalz
	name = "AI_EVENT"
	desc = "Palatinate"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = PFA value = 345 } #Pfalz
		command = { type = relation which = PFA value = 10 }
	}
}
event = {
	id = 5013035
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = PFA }
		NOT = { core = { province = 345 data = -1 } } #Pfalz
		AND = {
			exists = BAY
			OR = {
				event = 125021 #BAY: The Palatinate is united with Bavaria
				event = 125033 #BAY: The Palatinate is united with Bavaria
			}
			NOT = { owned = { province = 345 data = BAY } } #Pfalz
		}
	}
	random = yes
	province = 345 #Pfalz
	name = "AI_EVENT"
	desc = "Palatinate"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = BAY value = 345 } #Pfalz
		command = { type = relation which = BAY value = 10 }
	}
}
event = {
	id = 5013036
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = PFA }
		NOT = { owned = { province = 345 data = -1 } } #Pfalz
		NOT = { core = { province = 347 data = -1 } } #Würzburg
		NOT = {
			event = 125021 #BAY: The Palatinate is united with Bavaria
			event = 125033 #BAY: The Palatinate is united with Bavaria
		}
	}
	random = yes
	province = 347 #Würzburg
	name = "AI_EVENT"
	desc = "Palatinate"

	action_a = {
		name = "OK"
		command = { type = independence which = PFA }
	}
}
event = {
	id = 5013037
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		exists = PFA
		NOT = { core = { province = 347 data = -1 } } #Würzburg
	}
	random = yes
	province = 347 #Würzburg
	name = "AI_EVENT"
	desc = "Palatinate"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = PFA value = 347 } #Würzburg
		command = { type = relation which = PFA value = 10 }
	}
}
event = {
	id = 5013038
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = PFA }
		NOT = { core = { province = 347 data = -1 } } #Würzburg
		AND = {
			exists = BAY
			OR = {
				event = 125021 #BAY: The Palatinate is united with Bavaria
				event = 125033 #BAY: The Palatinate is united with Bavaria
			}
			NOT = { owned = { province = 347 data = BAY } } #Würzburg
		}
	}
	random = yes
	province = 347 #Würzburg
	name = "AI_EVENT"
	desc = "Palatinate"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = BAY value = 347 } #Würzburg
		command = { type = relation which = BAY value = 10 }
	}
}

#Pomerania - Stettin
event = {
	id = 5013039
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = POM }
		NOT = { core = { province = 302 data = -1 } } #Hinterpommern
		NOT = {
			event = 291030 #SWE: The Acquisition of Pomerania
			event = 3896 #BRA: The Pommern Inheritance
			event = 132008 #BRA: The Pomeranian Inheritance
			event = 259016 #POM: The investiture of Brandenburg
			year = 1637
		}
	}
	random = yes
	province = 302 #Hinterpommern
	name = "AI_EVENT"
	desc = "Pomerania"

	action_a = {
		name = "OK"
		command = { type = independence which = POM }
	}
}
event = {
	id = 5013040
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = POM }
		NOT = { core = { province = 302 data = -1 } } #Hinterpommern
		AND = {
			exists = STT
			NOT = { owned = { province = 302 data = STT } } #Hinterpommern
		}
	}
	random = yes
	province = 302 #Hinterpommern
	name = "AI_EVENT"
	desc = "Pomerania"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = STT value = 302 } #Hinterpommern
		command = { type = relation which = STT value = 10 }
	}
}
event = {
	id = 5013041
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = POM }
		NOT = { core = { province = 302 data = -1 } } #Hinterpommern
		AND = {
			NOT = { exists = STT }
			exists = BRA
			OR = {
				event = 3896 #BRA: The Pommern Inheritance
				event = 132008 #BRA: The Pomeranian Inheritance
				event = 259016 #POM: The investiture of Brandenburg
			}
			NOT = { owned = { province = 302 data = BRA } } #Hinterpommern
		}
	}
	random = yes
	province = 302 #Hinterpommern
	name = "AI_EVENT"
	desc = "Pomerania"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = BRA value = 302 } #Hinterpommern
		command = { type = relation which = BRA value = 10 }
	}
}
event = {
	id = 5013042
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = POM }
		NOT = { core = { province = 302 data = -1 } } #Hinterpommern
		AND = {
			NOT = { exists = STT }
			NOT = { exists = BRA }
			AND = {
				exists = PRU
				event = 263014 #PRU: The Kingdom of Prussia
			}
			OR = {
				event = 3896 #BRA: The Pommern Inheritance
				event = 132008 #BRA: The Pomeranian Inheritance
				event = 259016 #POM: The investiture of Brandenburg
			}
			NOT = { owned = { province = 302 data = PRU } } #Hinterpommern
		}
	}
	random = yes
	province = 302 #Hinterpommern
	name = "AI_EVENT"
	desc = "Pomerania"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = PRU value = 302 } #Hinterpommern
		command = { type = relation which = PRU value = 10 }
	}
}
event = {
	id = 5013043
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = STT }
		NOT = { core = { province = 304 data = -1 } } #Vorpommern
		NOT = {
			event = 259000 #POM: Inheritance of Pomerania-Stettin
			AND = {
				event = 259001 #POM: Inheritance of Pomerania-Stettin
				NOT = {
					event = 132018 #BRA: Inheritance of Stettin
				}
			}
			event = 291029 #SWE: The Acquisition of Vorpommern
			event = 291030 #SWE: The Acquisition of Pomerania
			event = 3896 #BRA: The Pommern Inheritance
			event = 132008 #BRA: The Pomeranian Inheritance
			event = 259016 #POM: The investiture of Brandenburg
			year = 1570
		}
	}
	random = yes
	province = 304 #Vorpommern
	name = "AI_EVENT"
	desc = "Pomerania"

	action_a = {
		name = "OK"
		command = { type = independence which = STT }
	}
}
event = {
	id = 5013044
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = STT }
		NOT = { core = { province = 304 data = -1 } } #Vorpommern
		AND = {
			exists = POM
			OR = {
				event = 259000 #POM: Inheritance of Pomerania-Stettin
				AND = {
					event = 259001 #POM: Inheritance of Pomerania-Stettin
					NOT = {
						event = 132018 #BRA: Inheritance of Stettin
					}
				}
			}
			NOT = { owned = { province = 304 data = POM } } #Vorpommern
		}
	}
	random = yes
	province = 304 #Vorpommern
	name = "AI_EVENT"
	desc = "Pomerania"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = POM value = 304 } #Vorpommern
		command = { type = relation which = POM value = 10 }
	}
}
event = {
	id = 5013045
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = STT }
		NOT = { core = { province = 304 data = -1 } } #Vorpommern
		AND = {
			NOT = { exists = POM }
			AND = {
				exists = BRA
				OR = {
					event = 3896 #BRA: The Pommern Inheritance
					event = 132008 #BRA: The Pomeranian Inheritance
					event = 259016 #POM: The investiture of Brandenburg
				}
				NOT = { owned = { province = 304 data = BRA } } #Vorpommern
			}
		}
	}
	random = yes
	province = 304 #Vorpommern
	name = "AI_EVENT"
	desc = "Pomerania"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = BRA value = 304 } #Vorpommern
		command = { type = relation which = BRA value = 10 }
	}
}
event = {
	id = 5013046
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = POM }
		NOT = { core = { province = 304 data = -1 } } #Vorpommern
		AND = {
			NOT = { exists = POM }
			AND = {
				NOT = { exists = BRA }
				AND = {
					exists = PRU
					event = 263014 #PRU: The Kingdom of Prussia
				}
				OR = {
					event = 3896 #BRA: The Pommern Inheritance
					event = 132008 #BRA: The Pomeranian Inheritance
					event = 259016 #POM: The investiture of Brandenburg
				}
				NOT = { owned = { province = 304 data = PRU } } #Vorpommern
			}
		}
	}
	random = yes
	province = 304 #Vorpommern
	name = "AI_EVENT"
	desc = "Pomerania"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = PRU value = 304 } #Vorpommern
		command = { type = relation which = PRU value = 10 }
	}
}

#Saxony - Meissen
#simplified version
event = {
	id = 5013048
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = {
			exists = SAC
			exists = MEI
		}
		NOT = { core = { province = 332 data = -1 } } #Anhalt
	}
	random = yes
	province = 332 #Anhalt
	name = "AI_EVENT"
	desc = "Saxony"

	action_a = {
		name = "OK"
		command = { type = independence which = SAC }
	}
}
event = {
	id = 5013049
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		exists = SAC
		NOT = { core = { province = 332 data = -1 } } #Anhalt
		NOT = { owned = { province = 332 data = SAC } } #Anhalt
	}
	random = yes
	province = 332 #Anhalt
	name = "AI_EVENT"
	desc = "Saxony"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = SAC value = 332 } #Anhalt
		command = { type = relation which = SAC value = 10 }
	}
}
event = {
	id = 5013050
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = SAC }
		NOT = { core = { province = 332 data = -1 } } #Anhalt
		AND = {
			exists = MEI
			NOT = { year = 1600 }
			NOT = { owned = { province = 332 data = MEI } } #Anhalt
		}
	}
	random = yes
	province = 332 #Anhalt
	name = "AI_EVENT"
	desc = "Saxony"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = MEI value = 332 } #Anhalt
		command = { type = relation which = MEI value = 10 }
	}
}
event = {
	id = 5013051
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		exists = SAC
		NOT = { core = { province = 331 data = -1 } } #Sachsen
		NOT = { owned = { province = 331 data = SAC } } #Sachsen
	}
	random = yes
	province = 331 #Sachsen
	name = "AI_EVENT"
	desc = "Saxony"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = SAC value = 331 } #Sachsen
		command = { type = relation which = SAC value = 10 }
	}
}
event = {
	id = 5013052
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = SAC }
		NOT = { core = { province = 331 data = -1 } } #Sachsen
		AND = {
			exists = MEI
			NOT = { year = 1600 }
			NOT = { owned = { province = 331 data = MEI } } #Sachsen
		}
	}
	random = yes
	province = 331 #Sachsen
	name = "AI_EVENT"
	desc = "Saxony"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = MEI value = 331 } #Sachsen
		command = { type = relation which = MEI value = 10 }
	}
}

#Strassburg
event = {
	id = 5013053
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = STR }
		NOT = { core = { province = 374 data = -1 } } #Alsace
	}
	random = yes
	province = 374 #Alsace
	name = "AI_EVENT"
	desc = "Strassburg"

	action_a = {
		name = "OK"
		command = { type = independence which = STR }
	}
}

#Wirtemberg
event = {
	id = 5013054
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = WUR }
		NOT = { core = { province = 372 data = -1 } } #Württemberg
		NOT = {
			AND = {
				exists = HAB
				core = { province = 372 data = HAB } #covers HAB_179004 and HAB_179006
				NOT = { owned = { province = 372 data = HAB } } #Württemberg
			}
		}
	}
	random = yes
	province = 372 #Württemberg
	name = "AI_EVENT"
	desc = "Wirtemberg"

	action_a = {
		name = "OK"
		command = { type = independence which = WUR }
	}
}
event = {
	id = 5013055
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = WUR }
		NOT = { core = { province = 372 data = -1 } } #Württemberg
		AND = {
			exists = HAB
			core = { province = 372 data = HAB } #covers HAB_179004 and HAB_179006
		}
	}
	random = yes
	province = 372 #Württemberg
	name = "AI_EVENT"
	desc = "Wirtemberg"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = HAB value = 372 } #Württemberg
		command = { type = relation which = HAB value = 10 }
	}
}

#-----------------------------------------------------------------------------------------------

#-----------------------------------------------------------------------------------------------

#Baden
event = {
	id = 5014000
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = BAD }
		NOT = { core = { province = 373 data = -1 } } #Baden
	}
	random = yes
	province = 349 #Baden
	name = "AI_EVENT"
	desc = "Baden"

	action_a = {
		name = "OK"
		command = { type = independence which = BAD }
	}
}

#Bavaria
event = {
	id = 5014001
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = BAY }
		NOT = { core = { province = 349 data = -1 } } #Bayern
		NOT = {
			AND = {
				event = 255003 #PFA: The Palatinate inherits Bavaria
				NOT = {
					event = 125021 #BAY: The Palatinate is united with Bavaria
					event = 125033 #BAY: The Palatinate is united with Bavaria (Palatinate inherited Burgundy)
				}
			}
			event = 255008 #PFA: The Wittelsbach inheritance of Bavaria
		}
	}
	random = yes
	province = 349 #Bayern
	name = "AI_EVENT"
	desc = "Bavaria"

	action_a = {
		name = "OK"
		command = { type = independence which = BAY }
	}
}
event = {
	id = 5014002
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		exists = BAY
		NOT = { core = { province = 349 data = -1 } } #Bayern
		NOT = { owned = { province = 349 data = BAY } } #Bayern
	}
	random = yes
	province = 349 #Bayern
	name = "AI_EVENT"
	desc = "Bavaria"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = BAY value = 349 } #Bayern
		command = { type = relation which = BAY value = 10 }
	}
}
event = {
	id = 5014003
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = BAY }
		NOT = { core = { province = 349 data = -1 } } #Bayern
		AND = {
			exists = PFA
			OR = {
				AND = {
					event = 255003 #PFA: The Palatinate inherits Bavaria
					NOT = {
						event = 125021 #BAY: The Palatinate is united with Bavaria
						event = 125033 #BAY: The Palatinate is united with Bavaria (Palatinate inherited Burgundy)
					}
				}
				event = 255008 #PFA: The Wittelsbach inheritance of Bavaria
			}
			NOT = { owned = { province = 349 data = PFA } } #Bayern
		}
	}
	random = yes
	province = 349 #Bayern
	name = "AI_EVENT"
	desc = "Bavaria"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = PFA value = 349 } #Bayern
		command = { type = relation which = PFA value = 10 }
	}
}
event = {
	id = 5014004
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = BAY }
		NOT = { owned = { province = 349 data = -1 } } #Bayern
		NOT = { core = { province = 348 data = -1 } } #Ansbach
		year = 1430 #LUX and HAB before
		NOT = {
			AND = {
				event = 255003 #PFA: The Palatinate inherits Bavaria
				NOT = {
					event = 125021 #BAY: The Palatinate is united with Bavaria
					event = 125033 #BAY: The Palatinate is united with Bavaria (Palatinate inherited Burgundy)
				}
			}
			event = 255008 #PFA: The Wittelsbach inheritance of Bavaria
			event = 125035 #BAY: Straubing is ceded to Austria
			event = 255009 #PFA: Straubing is ceded to Austria
		}
	}
	random = yes
	province = 348 #Ansbach
	name = "AI_EVENT"
	desc = "Bavaria"

	action_a = {
		name = "OK"
		command = { type = independence which = BAY }
	}
}
event = {
	id = 5014005
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		exists = BAY
		NOT = { core = { province = 348 data = -1 } } #Ansbach
		year = 1430 #LUX and HAB before
		NOT = {
			AND = {
				exists = HAB
				OR = {
					event = 125035 #BAY: Straubing is ceded to Austria
					event = 255009 #PFA: Straubing is ceded to Austria
				}
			}
			NOT = { owned = { province = 348 data = BAY } } #Ansbach
		}
	}
	random = yes
	province = 348 #Ansbach
	name = "AI_EVENT"
	desc = "Bavaria"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = BAY value = 348 } #Ansbach
		command = { type = relation which = BAY value = 10 }
	}
}
event = {
	id = 5014006
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = BAY }
		NOT = { core = { province = 348 data = -1 } } #Ansbach
		year = 1430 #LUX and HAB before
		AND = {
			exists = PFA
			OR = {
				AND = {
					event = 255003 #PFA: The Palatinate inherits Bavaria
					NOT = {
						event = 125021 #BAY: The Palatinate is united with Bavaria
						event = 125033 #BAY: The Palatinate is united with Bavaria (Palatinate inherited Burgundy)
					}
				}
				event = 255008 #PFA: The Wittelsbach inheritance of Bavaria
			}
			NOT = {
				AND = {
					exists = HAB
					OR = {
						event = 125035 #BAY: Straubing is ceded to Austria
						event = 255009 #PFA: Straubing is ceded to Austria
					}
				}
			}
			NOT = { owned = { province = 348 data = PFA } } #Ansbach
		}
	}
	random = yes
	province = 348 #Ansbach
	name = "AI_EVENT"
	desc = "Bavaria"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = PFA value = 348 } #Ansbach
		command = { type = relation which = PFA value = 10 }
	}
}
event = {
	id = 5014007
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { core = { province = 348 data = -1 } } #Ansbach
		year = 1430 #LUX and HAB before
		AND = {
			exists = HAB
			OR = {
				event = 125035 #BAY: Straubing is ceded to Austria
				event = 255009 #PFA: Straubing is ceded to Austria
			}
			NOT = { owned = { province = 348 data = HAB } } #Ansbach
		}
	}
	random = yes
	province = 348 #Ansbach
	name = "AI_EVENT"
	desc = "Bavaria"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = HAB value = 348 } #Ansbach
		command = { type = relation which = HAB value = 10 }
	}
}

#Berg
#simplified version
event = {
	id = 5014008
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = BRG }
		NOT = { core = { province = 343 data = -1 } } #Kleves
		NOT = { year = 1609 }
	}
	random = yes
	province = 334 #Kleves
	name = "AI_EVENT"
	desc = "Berg"

	action_a = {
		name = "OK"
		command = { type = independence which = BRG }
	}
}

#Brandenburg - Prussia
event = {
	id = 5014009
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = BRA }
		NOT = { core = { province = 312 data = -1 } } #Brandenburg
		NOT = {
			AND = {
				exists = PRU
				event = 263014 #PRU: The Kingdom of Prussia
			}
		}
	}
	random = yes
	province = 312 #Brandenburg
	name = "AI_EVENT"
	desc = "Brandenburg"

	action_a = {
		name = "OK"
		command = { type = independence which = BRA }
	}
}
event = {
	id = 5014011
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = BRA }
		NOT = { core = { province = 312 data = -1 } } #Brandenburg
		AND = {
			exists = PRU
			event = 263014 #PRU: The Kingdom of Prussia
			NOT = { owned = { province = 312 data = PRU } } #Brandenburg
		}
	}
	random = yes
	province = 312 #Brandenburg
	name = "AI_EVENT"
	desc = "Brandenburg"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = PRU value = 312 } #Brandenburg
		command = { type = relation which = PRU value = 10 }
	}
}
event = {
	id = 5014012
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = BRA }
		NOT = { core = { province = 313 data = -1 } } #Küstrin
		NOT = { owned = { province = 312 data = -1 } } #Brandenburg
		NOT = {
			AND = {
				exists = PRU
				event = 263014 #PRU: The Kingdom of Prussia
			}
		}
	}
	random = yes
	province = 313 #Küstrin
	name = "AI_EVENT"
	desc = "Brandenburg"

	action_a = {
		name = "OK"
		command = { type = independence which = BRA }
	}
}
event = {
	id = 5014014
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		exists = BRA
		NOT = { core = { province = 313 data = -1 } } #Küstrin
		NOT = { owned = { province = 313 data = BRA } } #Küstrin
	}
	random = yes
	province = 313 #Küstrin
	name = "AI_EVENT"
	desc = "Brandenburg"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = BRA value = 313 } #Küstrin
		command = { type = relation which = BRA value = 10 }
	}
}
event = {
	id = 5014015
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = BRA }
		NOT = { core = { province = 313 data = -1 } } #Küstrin
		AND = {
			exists = PRU
			event = 263014 #PRU: The Kingdom of Prussia
			NOT = { owned = { province = 312 data = PRU } } #Brandenburg
		}
	}
	random = yes
	province = 313 #Küstrin
	name = "AI_EVENT"
	desc = "Brandenburg"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = PRU value = 313 } #Küstrin
		command = { type = relation which = PRU value = 10 }
	}
}
event = {
	id = 5014016
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		exists = BRA
		NOT = { core = { province = 311 data = -1 } } #Magdeburg
		NOT = { owned = { province = 311 data = BRA } } #Magdeburg
	}
	random = yes
	province = 311 #Magdeburg
	name = "AI_EVENT"
	desc = "Brandenburg"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = BRA value = 311 } #Magdeburg
		command = { type = relation which = BRA value = 10 }
	}
}
event = {
	id = 5014017
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = BRA }
		NOT = { core = { province = 311 data = -1 } } #Magdeburg
		AND = {
			exists = PRU
			event = 263014 #PRU: The Kingdom of Prussia
			NOT = { owned = { province = 311 data = PRU } } #Magdeburg
		}
	}
	random = yes
	province = 311 #Magdeburg
	name = "AI_EVENT"
	desc = "Brandenburg"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = PRU value = 311 } #Magdeburg
		command = { type = relation which = PRU value = 10 }
	}
}

#Bremen
event = {
	id = 5014018
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = BRE }
		NOT = { core = { province = 336 data = -1 } } #Bremen
	}
	random = yes
	province = 336 #Bremen
	name = "AI_EVENT"
	desc = "Bremen"

	action_a = {
		name = "OK"
		command = { type = independence which = BRE }
	}
}

#Cleves
#simplified version
event = {
	id = 5014019
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = KLE }
		NOT = { core = { province = 334 data = -1 } } #Münster
		NOT = {
			event = 235009 #BRG: Union with Kleve-Mark
			year = 1609
		}
	}
	random = yes
	province = 334 #Münster
	name = "AI_EVENT"
	desc = "Cleves"

	action_a = {
		name = "OK"
		command = { type = independence which = KLE }
	}
}
event = {
	id = 5014020
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = KLE }
		NOT = { core = { province = 334 data = -1 } } #Münster
		AND = {
			exists = BRG
			event = 235009 #BRG: Union with Kleve-Mark
			NOT = { owned = { province = 334 data = BRG } } #Münster
			NOT = { year = 1609 }
		}
	}
	random = yes
	province = 334 #Münster
	name = "AI_EVENT"
	desc = "Cleves"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = BRG value = 334 } #Münster
		command = { type = relation which = BRG value = 10 }
	}
}

#Cologne
event = {
	id = 5014021
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = KOL }
		NOT = { core = { province = 344 data = -1 } } #Köln
	}
	random = yes
	province = 344 #Köln
	name = "AI_EVENT"
	desc = "Cologne"

	action_a = {
		name = "OK"
		command = { type = independence which = KOL }
	}
}

#Hanover
event = {
	id = 5014022
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = HAN }
		NOT = { core = { province = 310 data = -1 } } #Hannover
	}
	random = yes
	province = 310 #Hannover
	name = "AI_EVENT"
	desc = "Hanover"

	action_a = {
		name = "OK"
		command = { type = independence which = HAN }
	}
}

#Hesse
event = {
	id = 5014023
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = HES }
		NOT = { core = { province = 333 data = -1 } } #Hessen
	}
	random = yes
	province = 333 #Hessen
	name = "AI_EVENT"
	desc = "Hesse"

	action_a = {
		name = "OK"
		command = { type = independence which = HES }
	}
}

#Holstein
event = {
	id = 5014024
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = SHL }
		NOT = { core = { province = 306 data = -1 } } #Holstein
		NOT = {
			AND = {
				event = 159034 #DAN: Denmark inherits Holstein
				NOT = { event = 159011 } #DAN: The fate of Holstein
			}
			event = 247002 #OLD: Oldenburg inherits Holstein
		}
	}
	random = yes
	province = 306 #Holstein
	name = "AI_EVENT"
	desc = "Holstein"

	action_a = {
		name = "OK"
		command = { type = independence which = SHL }
	}
}
event = {
	id = 5014010
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = SHL }
		NOT = { core = { province = 306 data = -1 } } #Holstein
		AND = {
			exists = OLD
			event = 247002 #OLD: Oldenburg inherits Holstein
			NOT = { owned = { province = 306 data = OLD } } #Holstein
		}
	}
	random = yes
	province = 306 #Holstein
	name = "AI_EVENT"
	desc = "Holstein"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = OLD value = 306 } #Holstein
		command = { type = relation which = OLD value = 10 }
	}
}

#Lorraine
event = {
	id = 5014026
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = LOR }
		NOT = { core = { province = 375 data = -1 } } #Lorraine
		NOT = {
			event = 3736 #FRA: French Inheritance of Lothringen
			year = 1766
		}
	}
	random = yes
	province = 375 #Lorraine
	name = "AI_EVENT"
	desc = "Lorraine"

	action_a = {
		name = "OK"
		command = { type = independence which = LOR }
	}
}

#Luxemburg
event = {
	id = 5014028
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = LUX }
		NOT = { core = { province = 377 data = -1 } } #Luxembourg
		NOT = {
			event = 137306 #BUR: Annexation of Luxemburg
			year = 1451 #Burgundian monarchs
		}
	}
	random = yes
	province = 377 #Luxembourg
	name = "AI_EVENT"
	desc = "Luxemburg"

	action_a = {
		name = "OK"
		command = { type = independence which = LUX }
	}
}
event = {
	id = 5014029
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = LUX }
		NOT = { core = { province = 377 data = -1 } } #Luxembourg
		AND = {
			exists = BUR
			event = 137306 #BUR: Annexation of Luxemburg
			NOT = { owned = { province = 377 data = BUR } } #Luxembourg
		}
	}
	random = yes
	province = 377 #Luxembourg
	name = "AI_EVENT"
	desc = "Luxemburg"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = BUR value = 377 } #Luxembourg
		command = { type = relation which = BUR value = 10 }
	}
}

#Mainz
event = {
	id = 5014030
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = MAI }
		NOT = { core = { province = 346 data = -1 } } #Mainz
	}
	random = yes
	province = 346 #Mainz
	name = "AI_EVENT"
	desc = "Mainz"

	action_a = {
		name = "OK"
		command = { type = independence which = MAI }
	}
}

#Mecklenburg
event = {
	id = 5014031
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = MEC }
		NOT = { core = { province = 305 data = -1 } } #Mecklenburg
	}
	random = yes
	province = 305 #Mecklenburg
	name = "AI_EVENT"
	desc = "Mecklenburg"

	action_a = {
		name = "OK"
		command = { type = independence which = MEC }
	}
}

#Oldenburg
event = {
	id = 5014032
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = OLD }
		NOT = { core = { province = 335 data = -1 } } #Oldenburg
		NOT = {
			event = 159033 #DAN: Oldenburg is incorporated into Denmark
			event = 279010 #SHL: Holstein inherits Oldenburg
		}
	}
	random = yes
	province = 335 #Oldenburg
	name = "AI_EVENT"
	desc = "Oldenburg"

	action_a = {
		name = "OK"
		command = { type = independence which = OLD }
	}
}
event = {
	id = 5014013
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = OLD }
		NOT = { core = { province = 335 data = -1 } } #Oldenburg
		AND = {
			exists = SHL
			event = 279010 #SHL: Holstein inherits Oldenburg
			NOT = { owned = { province = 335 data = SHL } } #Oldenburg
		}
	}
	random = yes
	province = 335 #Oldenburg
	name = "AI_EVENT"
	desc = "Oldenburg"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = SHL value = 335 } #Oldenburg
		command = { type = relation which = SHL value = 10 }
	}
}

#Palatinate
event = {
	id = 5014033
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = PFA }
		NOT = { core = { province = 345 data = -1 } } #Pfalz
		NOT = {
			event = 125021 #BAY: The Palatinate is united with Bavaria
			event = 125033 #BAY: The Palatinate is united with Bavaria
		}
	}
	random = yes
	province = 345 #Pfalz
	name = "AI_EVENT"
	desc = "Palatinate"

	action_a = {
		name = "OK"
		command = { type = independence which = PFA }
	}
}
event = {
	id = 5014034
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		exists = PFA
		NOT = { core = { province = 345 data = -1 } } #Pfalz
	}
	random = yes
	province = 345 #Pfalz
	name = "AI_EVENT"
	desc = "Palatinate"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = PFA value = 345 } #Pfalz
		command = { type = relation which = PFA value = 10 }
	}
}
event = {
	id = 5014035
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = PFA }
		NOT = { core = { province = 345 data = -1 } } #Pfalz
		AND = {
			exists = BAY
			OR = {
				event = 125021 #BAY: The Palatinate is united with Bavaria
				event = 125033 #BAY: The Palatinate is united with Bavaria
			}
			NOT = { owned = { province = 345 data = BAY } } #Pfalz
		}
	}
	random = yes
	province = 345 #Pfalz
	name = "AI_EVENT"
	desc = "Palatinate"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = BAY value = 345 } #Pfalz
		command = { type = relation which = BAY value = 10 }
	}
}
event = {
	id = 5014036
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = PFA }
		NOT = { owned = { province = 345 data = -1 } } #Pfalz
		NOT = { core = { province = 347 data = -1 } } #Würzburg
		NOT = {
			event = 125021 #BAY: The Palatinate is united with Bavaria
			event = 125033 #BAY: The Palatinate is united with Bavaria
		}
	}
	random = yes
	province = 347 #Würzburg
	name = "AI_EVENT"
	desc = "Palatinate"

	action_a = {
		name = "OK"
		command = { type = independence which = PFA }
	}
}
event = {
	id = 5014037
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		exists = PFA
		NOT = { core = { province = 347 data = -1 } } #Würzburg
	}
	random = yes
	province = 347 #Würzburg
	name = "AI_EVENT"
	desc = "Palatinate"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = PFA value = 347 } #Würzburg
		command = { type = relation which = PFA value = 10 }
	}
}
event = {
	id = 5014038
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = PFA }
		NOT = { core = { province = 347 data = -1 } } #Würzburg
		AND = {
			exists = BAY
			OR = {
				event = 125021 #BAY: The Palatinate is united with Bavaria
				event = 125033 #BAY: The Palatinate is united with Bavaria
			}
			NOT = { owned = { province = 347 data = BAY } } #Würzburg
		}
	}
	random = yes
	province = 347 #Würzburg
	name = "AI_EVENT"
	desc = "Palatinate"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = BAY value = 347 } #Würzburg
		command = { type = relation which = BAY value = 10 }
	}
}

#Pomerania - Stettin
event = {
	id = 5014039
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = POM }
		NOT = { core = { province = 302 data = -1 } } #Hinterpommern
		NOT = {
			event = 291030 #SWE: The Acquisition of Pomerania
			event = 3896 #BRA: The Pommern Inheritance
			event = 132008 #BRA: The Pomeranian Inheritance
			event = 259016 #POM: The investiture of Brandenburg
			year = 1637
		}
	}
	random = yes
	province = 302 #Hinterpommern
	name = "AI_EVENT"
	desc = "Pomerania"

	action_a = {
		name = "OK"
		command = { type = independence which = POM }
	}
}
event = {
	id = 5014040
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = POM }
		NOT = { core = { province = 302 data = -1 } } #Hinterpommern
		AND = {
			exists = STT
			NOT = { owned = { province = 302 data = STT } } #Hinterpommern
		}
	}
	random = yes
	province = 302 #Hinterpommern
	name = "AI_EVENT"
	desc = "Pomerania"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = STT value = 302 } #Hinterpommern
		command = { type = relation which = STT value = 10 }
	}
}
event = {
	id = 5014041
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = POM }
		NOT = { core = { province = 302 data = -1 } } #Hinterpommern
		AND = {
			NOT = { exists = STT }
			exists = BRA
			OR = {
				event = 3896 #BRA: The Pommern Inheritance
				event = 132008 #BRA: The Pomeranian Inheritance
				event = 259016 #POM: The investiture of Brandenburg
			}
			NOT = { owned = { province = 302 data = BRA } } #Hinterpommern
		}
	}
	random = yes
	province = 302 #Hinterpommern
	name = "AI_EVENT"
	desc = "Pomerania"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = BRA value = 302 } #Hinterpommern
		command = { type = relation which = BRA value = 10 }
	}
}
event = {
	id = 5014042
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = POM }
		NOT = { core = { province = 302 data = -1 } } #Hinterpommern
		AND = {
			NOT = { exists = STT }
			NOT = { exists = BRA }
			AND = {
				exists = PRU
				event = 263014 #PRU: The Kingdom of Prussia
			}
			OR = {
				event = 3896 #BRA: The Pommern Inheritance
				event = 132008 #BRA: The Pomeranian Inheritance
				event = 259016 #POM: The investiture of Brandenburg
			}
			NOT = { owned = { province = 302 data = PRU } } #Hinterpommern
		}
	}
	random = yes
	province = 302 #Hinterpommern
	name = "AI_EVENT"
	desc = "Pomerania"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = PRU value = 302 } #Hinterpommern
		command = { type = relation which = PRU value = 10 }
	}
}
event = {
	id = 5014043
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = STT }
		NOT = { core = { province = 304 data = -1 } } #Vorpommern
		NOT = {
			event = 259000 #POM: Inheritance of Pomerania-Stettin
			AND = {
				event = 259001 #POM: Inheritance of Pomerania-Stettin
				NOT = {
					event = 132018 #BRA: Inheritance of Stettin
				}
			}
			event = 291029 #SWE: The Acquisition of Vorpommern
			event = 291030 #SWE: The Acquisition of Pomerania
			event = 3896 #BRA: The Pommern Inheritance
			event = 132008 #BRA: The Pomeranian Inheritance
			event = 259016 #POM: The investiture of Brandenburg
			year = 1570
		}
	}
	random = yes
	province = 304 #Vorpommern
	name = "AI_EVENT"
	desc = "Pomerania"

	action_a = {
		name = "OK"
		command = { type = independence which = STT }
	}
}
event = {
	id = 5014044
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = STT }
		NOT = { core = { province = 304 data = -1 } } #Vorpommern
		AND = {
			exists = POM
			OR = {
				event = 259000 #POM: Inheritance of Pomerania-Stettin
				AND = {
					event = 259001 #POM: Inheritance of Pomerania-Stettin
					NOT = {
						event = 132018 #BRA: Inheritance of Stettin
					}
				}
			}
			NOT = { owned = { province = 304 data = POM } } #Vorpommern
		}
	}
	random = yes
	province = 304 #Vorpommern
	name = "AI_EVENT"
	desc = "Pomerania"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = POM value = 304 } #Vorpommern
		command = { type = relation which = POM value = 10 }
	}
}
event = {
	id = 5014045
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = STT }
		NOT = { core = { province = 304 data = -1 } } #Vorpommern
		AND = {
			NOT = { exists = POM }
			AND = {
				exists = BRA
				OR = {
					event = 3896 #BRA: The Pommern Inheritance
					event = 132008 #BRA: The Pomeranian Inheritance
					event = 259016 #POM: The investiture of Brandenburg
				}
				NOT = { owned = { province = 304 data = BRA } } #Vorpommern
			}
		}
	}
	random = yes
	province = 304 #Vorpommern
	name = "AI_EVENT"
	desc = "Pomerania"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = BRA value = 304 } #Vorpommern
		command = { type = relation which = BRA value = 10 }
	}
}
event = {
	id = 5014046
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = POM }
		NOT = { core = { province = 304 data = -1 } } #Vorpommern
		AND = {
			NOT = { exists = POM }
			AND = {
				NOT = { exists = BRA }
				AND = {
					exists = PRU
					event = 263014 #PRU: The Kingdom of Prussia
				}
				OR = {
					event = 3896 #BRA: The Pommern Inheritance
					event = 132008 #BRA: The Pomeranian Inheritance
					event = 259016 #POM: The investiture of Brandenburg
				}
				NOT = { owned = { province = 304 data = PRU } } #Vorpommern
			}
		}
	}
	random = yes
	province = 304 #Vorpommern
	name = "AI_EVENT"
	desc = "Pomerania"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = PRU value = 304 } #Vorpommern
		command = { type = relation which = PRU value = 10 }
	}
}

#Saxony - Meissen
#simplified version
event = {
	id = 5014048
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = {
			exists = SAC
			exists = MEI
		}
		NOT = { core = { province = 332 data = -1 } } #Anhalt
	}
	random = yes
	province = 332 #Anhalt
	name = "AI_EVENT"
	desc = "Saxony"

	action_a = {
		name = "OK"
		command = { type = independence which = SAC }
	}
}
event = {
	id = 5014049
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		exists = SAC
		NOT = { core = { province = 332 data = -1 } } #Anhalt
		NOT = { owned = { province = 332 data = SAC } } #Anhalt
	}
	random = yes
	province = 332 #Anhalt
	name = "AI_EVENT"
	desc = "Saxony"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = SAC value = 332 } #Anhalt
		command = { type = relation which = SAC value = 10 }
	}
}
event = {
	id = 5014050
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = SAC }
		NOT = { core = { province = 332 data = -1 } } #Anhalt
		AND = {
			exists = MEI
			NOT = { year = 1600 }
			NOT = { owned = { province = 332 data = MEI } } #Anhalt
		}
	}
	random = yes
	province = 332 #Anhalt
	name = "AI_EVENT"
	desc = "Saxony"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = MEI value = 332 } #Anhalt
		command = { type = relation which = MEI value = 10 }
	}
}
event = {
	id = 5014051
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		exists = SAC
		NOT = { core = { province = 331 data = -1 } } #Sachsen
		NOT = { owned = { province = 331 data = SAC } } #Sachsen
	}
	random = yes
	province = 331 #Sachsen
	name = "AI_EVENT"
	desc = "Saxony"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = SAC value = 331 } #Sachsen
		command = { type = relation which = SAC value = 10 }
	}
}
event = {
	id = 5014052
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = SAC }
		NOT = { core = { province = 331 data = -1 } } #Sachsen
		AND = {
			exists = MEI
			NOT = { year = 1600 }
			NOT = { owned = { province = 331 data = MEI } } #Sachsen
		}
	}
	random = yes
	province = 331 #Sachsen
	name = "AI_EVENT"
	desc = "Saxony"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = MEI value = 331 } #Sachsen
		command = { type = relation which = MEI value = 10 }
	}
}

#Strassburg
event = {
	id = 5014053
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = STR }
		NOT = { core = { province = 374 data = -1 } } #Alsace
	}
	random = yes
	province = 374 #Alsace
	name = "AI_EVENT"
	desc = "Strassburg"

	action_a = {
		name = "OK"
		command = { type = independence which = STR }
	}
}

#Wirtemberg
event = {
	id = 5014054
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = WUR }
		NOT = { core = { province = 372 data = -1 } } #Württemberg
		NOT = {
			AND = {
				exists = HAB
				core = { province = 372 data = HAB } #covers HAB_179004 and HAB_179006
				NOT = { owned = { province = 372 data = HAB } } #Württemberg
			}
		}
	}
	random = yes
	province = 372 #Württemberg
	name = "AI_EVENT"
	desc = "Wirtemberg"

	action_a = {
		name = "OK"
		command = { type = independence which = WUR }
	}
}
event = {
	id = 5014055
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = WUR }
		NOT = { core = { province = 372 data = -1 } } #Württemberg
		AND = {
			exists = HAB
			core = { province = 372 data = HAB } #covers HAB_179004 and HAB_179006
		}
	}
	random = yes
	province = 372 #Württemberg
	name = "AI_EVENT"
	desc = "Wirtemberg"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = HAB value = 372 } #Württemberg
		command = { type = relation which = HAB value = 10 }
	}
}

#-----------------------------------------------------------------------------------------------

#-----------------------------------------------------------------------------------------------

#Baden
event = {
	id = 5015000
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = BAD }
		NOT = { core = { province = 373 data = -1 } } #Baden
	}
	random = yes
	province = 349 #Baden
	name = "AI_EVENT"
	desc = "Baden"

	action_a = {
		name = "OK"
		command = { type = independence which = BAD }
	}
}

#Bavaria
event = {
	id = 5015001
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = BAY }
		NOT = { core = { province = 349 data = -1 } } #Bayern
		NOT = {
			AND = {
				event = 255003 #PFA: The Palatinate inherits Bavaria
				NOT = {
					event = 125021 #BAY: The Palatinate is united with Bavaria
					event = 125033 #BAY: The Palatinate is united with Bavaria (Palatinate inherited Burgundy)
				}
			}
			event = 255008 #PFA: The Wittelsbach inheritance of Bavaria
		}
	}
	random = yes
	province = 349 #Bayern
	name = "AI_EVENT"
	desc = "Bavaria"

	action_a = {
		name = "OK"
		command = { type = independence which = BAY }
	}
}
event = {
	id = 5015002
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		exists = BAY
		NOT = { core = { province = 349 data = -1 } } #Bayern
		NOT = { owned = { province = 349 data = BAY } } #Bayern
	}
	random = yes
	province = 349 #Bayern
	name = "AI_EVENT"
	desc = "Bavaria"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = BAY value = 349 } #Bayern
		command = { type = relation which = BAY value = 10 }
	}
}
event = {
	id = 5015003
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = BAY }
		NOT = { core = { province = 349 data = -1 } } #Bayern
		AND = {
			exists = PFA
			OR = {
				AND = {
					event = 255003 #PFA: The Palatinate inherits Bavaria
					NOT = {
						event = 125021 #BAY: The Palatinate is united with Bavaria
						event = 125033 #BAY: The Palatinate is united with Bavaria (Palatinate inherited Burgundy)
					}
				}
				event = 255008 #PFA: The Wittelsbach inheritance of Bavaria
			}
			NOT = { owned = { province = 349 data = PFA } } #Bayern
		}
	}
	random = yes
	province = 349 #Bayern
	name = "AI_EVENT"
	desc = "Bavaria"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = PFA value = 349 } #Bayern
		command = { type = relation which = PFA value = 10 }
	}
}
event = {
	id = 5015004
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = BAY }
		NOT = { owned = { province = 349 data = -1 } } #Bayern
		NOT = { core = { province = 348 data = -1 } } #Ansbach
		year = 1430 #LUX and HAB before
		NOT = {
			AND = {
				event = 255003 #PFA: The Palatinate inherits Bavaria
				NOT = {
					event = 125021 #BAY: The Palatinate is united with Bavaria
					event = 125033 #BAY: The Palatinate is united with Bavaria (Palatinate inherited Burgundy)
				}
			}
			event = 255008 #PFA: The Wittelsbach inheritance of Bavaria
			event = 125035 #BAY: Straubing is ceded to Austria
			event = 255009 #PFA: Straubing is ceded to Austria
		}
	}
	random = yes
	province = 348 #Ansbach
	name = "AI_EVENT"
	desc = "Bavaria"

	action_a = {
		name = "OK"
		command = { type = independence which = BAY }
	}
}
event = {
	id = 5015005
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		exists = BAY
		NOT = { core = { province = 348 data = -1 } } #Ansbach
		year = 1430 #LUX and HAB before
		NOT = {
			AND = {
				exists = HAB
				OR = {
					event = 125035 #BAY: Straubing is ceded to Austria
					event = 255009 #PFA: Straubing is ceded to Austria
				}
			}
			NOT = { owned = { province = 348 data = BAY } } #Ansbach
		}
	}
	random = yes
	province = 348 #Ansbach
	name = "AI_EVENT"
	desc = "Bavaria"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = BAY value = 348 } #Ansbach
		command = { type = relation which = BAY value = 10 }
	}
}
event = {
	id = 5015006
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = BAY }
		NOT = { core = { province = 348 data = -1 } } #Ansbach
		year = 1430 #LUX and HAB before
		AND = {
			exists = PFA
			OR = {
				AND = {
					event = 255003 #PFA: The Palatinate inherits Bavaria
					NOT = {
						event = 125021 #BAY: The Palatinate is united with Bavaria
						event = 125033 #BAY: The Palatinate is united with Bavaria (Palatinate inherited Burgundy)
					}
				}
				event = 255008 #PFA: The Wittelsbach inheritance of Bavaria
			}
			NOT = {
				AND = {
					exists = HAB
					OR = {
						event = 125035 #BAY: Straubing is ceded to Austria
						event = 255009 #PFA: Straubing is ceded to Austria
					}
				}
			}
			NOT = { owned = { province = 348 data = PFA } } #Ansbach
		}
	}
	random = yes
	province = 348 #Ansbach
	name = "AI_EVENT"
	desc = "Bavaria"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = PFA value = 348 } #Ansbach
		command = { type = relation which = PFA value = 10 }
	}
}
event = {
	id = 5015007
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { core = { province = 348 data = -1 } } #Ansbach
		year = 1430 #LUX and HAB before
		AND = {
			exists = HAB
			OR = {
				event = 125035 #BAY: Straubing is ceded to Austria
				event = 255009 #PFA: Straubing is ceded to Austria
			}
			NOT = { owned = { province = 348 data = HAB } } #Ansbach
		}
	}
	random = yes
	province = 348 #Ansbach
	name = "AI_EVENT"
	desc = "Bavaria"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = HAB value = 348 } #Ansbach
		command = { type = relation which = HAB value = 10 }
	}
}

#Berg
#simplified version
event = {
	id = 5015008
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = BRG }
		NOT = { core = { province = 343 data = -1 } } #Kleves
		NOT = { year = 1609 }
	}
	random = yes
	province = 334 #Kleves
	name = "AI_EVENT"
	desc = "Berg"

	action_a = {
		name = "OK"
		command = { type = independence which = BRG }
	}
}

#Brandenburg - Prussia
event = {
	id = 5015009
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = BRA }
		NOT = { core = { province = 312 data = -1 } } #Brandenburg
		NOT = {
			AND = {
				exists = PRU
				event = 263014 #PRU: The Kingdom of Prussia
			}
		}
	}
	random = yes
	province = 312 #Brandenburg
	name = "AI_EVENT"
	desc = "Brandenburg"

	action_a = {
		name = "OK"
		command = { type = independence which = BRA }
	}
}
event = {
	id = 5015011
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = BRA }
		NOT = { core = { province = 312 data = -1 } } #Brandenburg
		AND = {
			exists = PRU
			event = 263014 #PRU: The Kingdom of Prussia
			NOT = { owned = { province = 312 data = PRU } } #Brandenburg
		}
	}
	random = yes
	province = 312 #Brandenburg
	name = "AI_EVENT"
	desc = "Brandenburg"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = PRU value = 312 } #Brandenburg
		command = { type = relation which = PRU value = 10 }
	}
}
event = {
	id = 5015012
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = BRA }
		NOT = { core = { province = 313 data = -1 } } #Küstrin
		NOT = { owned = { province = 312 data = -1 } } #Brandenburg
		NOT = {
			AND = {
				exists = PRU
				event = 263014 #PRU: The Kingdom of Prussia
			}
		}
	}
	random = yes
	province = 313 #Küstrin
	name = "AI_EVENT"
	desc = "Brandenburg"

	action_a = {
		name = "OK"
		command = { type = independence which = BRA }
	}
}
event = {
	id = 5015014
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		exists = BRA
		NOT = { core = { province = 313 data = -1 } } #Küstrin
		NOT = { owned = { province = 313 data = BRA } } #Küstrin
	}
	random = yes
	province = 313 #Küstrin
	name = "AI_EVENT"
	desc = "Brandenburg"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = BRA value = 313 } #Küstrin
		command = { type = relation which = BRA value = 10 }
	}
}
event = {
	id = 5015015
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = BRA }
		NOT = { core = { province = 313 data = -1 } } #Küstrin
		AND = {
			exists = PRU
			event = 263014 #PRU: The Kingdom of Prussia
			NOT = { owned = { province = 312 data = PRU } } #Brandenburg
		}
	}
	random = yes
	province = 313 #Küstrin
	name = "AI_EVENT"
	desc = "Brandenburg"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = PRU value = 313 } #Küstrin
		command = { type = relation which = PRU value = 10 }
	}
}
event = {
	id = 5015016
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		exists = BRA
		NOT = { core = { province = 311 data = -1 } } #Magdeburg
		NOT = { owned = { province = 311 data = BRA } } #Magdeburg
	}
	random = yes
	province = 311 #Magdeburg
	name = "AI_EVENT"
	desc = "Brandenburg"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = BRA value = 311 } #Magdeburg
		command = { type = relation which = BRA value = 10 }
	}
}
event = {
	id = 5015017
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = BRA }
		NOT = { core = { province = 311 data = -1 } } #Magdeburg
		AND = {
			exists = PRU
			event = 263014 #PRU: The Kingdom of Prussia
			NOT = { owned = { province = 311 data = PRU } } #Magdeburg
		}
	}
	random = yes
	province = 311 #Magdeburg
	name = "AI_EVENT"
	desc = "Brandenburg"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = PRU value = 311 } #Magdeburg
		command = { type = relation which = PRU value = 10 }
	}
}

#Bremen
event = {
	id = 5015018
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = BRE }
		NOT = { core = { province = 336 data = -1 } } #Bremen
	}
	random = yes
	province = 336 #Bremen
	name = "AI_EVENT"
	desc = "Bremen"

	action_a = {
		name = "OK"
		command = { type = independence which = BRE }
	}
}

#Cleves
#simplified version
event = {
	id = 5015019
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = KLE }
		NOT = { core = { province = 334 data = -1 } } #Münster
		NOT = {
			event = 235009 #BRG: Union with Kleve-Mark
			year = 1609
		}
	}
	random = yes
	province = 334 #Münster
	name = "AI_EVENT"
	desc = "Cleves"

	action_a = {
		name = "OK"
		command = { type = independence which = KLE }
	}
}
event = {
	id = 5015020
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = KLE }
		NOT = { core = { province = 334 data = -1 } } #Münster
		AND = {
			exists = BRG
			event = 235009 #BRG: Union with Kleve-Mark
			NOT = { owned = { province = 334 data = BRG } } #Münster
			NOT = { year = 1609 }
		}
	}
	random = yes
	province = 334 #Münster
	name = "AI_EVENT"
	desc = "Cleves"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = BRG value = 334 } #Münster
		command = { type = relation which = BRG value = 10 }
	}
}

#Cologne
event = {
	id = 5015021
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = KOL }
		NOT = { core = { province = 344 data = -1 } } #Köln
	}
	random = yes
	province = 344 #Köln
	name = "AI_EVENT"
	desc = "Cologne"

	action_a = {
		name = "OK"
		command = { type = independence which = KOL }
	}
}

#Hanover
event = {
	id = 5015022
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = HAN }
		NOT = { core = { province = 310 data = -1 } } #Hannover
	}
	random = yes
	province = 310 #Hannover
	name = "AI_EVENT"
	desc = "Hanover"

	action_a = {
		name = "OK"
		command = { type = independence which = HAN }
	}
}

#Hesse
event = {
	id = 5015023
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = HES }
		NOT = { core = { province = 333 data = -1 } } #Hessen
	}
	random = yes
	province = 333 #Hessen
	name = "AI_EVENT"
	desc = "Hesse"

	action_a = {
		name = "OK"
		command = { type = independence which = HES }
	}
}

#Holstein
event = {
	id = 5015024
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = SHL }
		NOT = { core = { province = 306 data = -1 } } #Holstein
		NOT = {
			AND = {
				event = 159034 #DAN: Denmark inherits Holstein
				NOT = { event = 159011 } #DAN: The fate of Holstein
			}
			event = 247002 #OLD: Oldenburg inherits Holstein
		}
	}
	random = yes
	province = 306 #Holstein
	name = "AI_EVENT"
	desc = "Holstein"

	action_a = {
		name = "OK"
		command = { type = independence which = SHL }
	}
}
event = {
	id = 5015010
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = SHL }
		NOT = { core = { province = 306 data = -1 } } #Holstein
		AND = {
			exists = OLD
			event = 247002 #OLD: Oldenburg inherits Holstein
			NOT = { owned = { province = 306 data = OLD } } #Holstein
		}
	}
	random = yes
	province = 306 #Holstein
	name = "AI_EVENT"
	desc = "Holstein"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = OLD value = 306 } #Holstein
		command = { type = relation which = OLD value = 10 }
	}
}

#Lorraine
event = {
	id = 5015026
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = LOR }
		NOT = { core = { province = 375 data = -1 } } #Lorraine
		NOT = {
			event = 3736 #FRA: French Inheritance of Lothringen
			year = 1766
		}
	}
	random = yes
	province = 375 #Lorraine
	name = "AI_EVENT"
	desc = "Lorraine"

	action_a = {
		name = "OK"
		command = { type = independence which = LOR }
	}
}

#Luxemburg
event = {
	id = 5015028
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = LUX }
		NOT = { core = { province = 377 data = -1 } } #Luxembourg
		NOT = {
			event = 137306 #BUR: Annexation of Luxemburg
			year = 1451 #Burgundian monarchs
		}
	}
	random = yes
	province = 377 #Luxembourg
	name = "AI_EVENT"
	desc = "Luxemburg"

	action_a = {
		name = "OK"
		command = { type = independence which = LUX }
	}
}
event = {
	id = 5015029
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = LUX }
		NOT = { core = { province = 377 data = -1 } } #Luxembourg
		AND = {
			exists = BUR
			event = 137306 #BUR: Annexation of Luxemburg
			NOT = { owned = { province = 377 data = BUR } } #Luxembourg
		}
	}
	random = yes
	province = 377 #Luxembourg
	name = "AI_EVENT"
	desc = "Luxemburg"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = BUR value = 377 } #Luxembourg
		command = { type = relation which = BUR value = 10 }
	}
}

#Mainz
event = {
	id = 5015030
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = MAI }
		NOT = { core = { province = 346 data = -1 } } #Mainz
	}
	random = yes
	province = 346 #Mainz
	name = "AI_EVENT"
	desc = "Mainz"

	action_a = {
		name = "OK"
		command = { type = independence which = MAI }
	}
}

#Mecklenburg
event = {
	id = 5015031
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = MEC }
		NOT = { core = { province = 305 data = -1 } } #Mecklenburg
	}
	random = yes
	province = 305 #Mecklenburg
	name = "AI_EVENT"
	desc = "Mecklenburg"

	action_a = {
		name = "OK"
		command = { type = independence which = MEC }
	}
}

#Oldenburg
event = {
	id = 5015032
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = OLD }
		NOT = { core = { province = 335 data = -1 } } #Oldenburg
		NOT = {
			event = 159033 #DAN: Oldenburg is incorporated into Denmark
			event = 279010 #SHL: Holstein inherits Oldenburg
		}
	}
	random = yes
	province = 335 #Oldenburg
	name = "AI_EVENT"
	desc = "Oldenburg"

	action_a = {
		name = "OK"
		command = { type = independence which = OLD }
	}
}
event = {
	id = 5015013
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = OLD }
		NOT = { core = { province = 335 data = -1 } } #Oldenburg
		AND = {
			exists = SHL
			event = 279010 #SHL: Holstein inherits Oldenburg
			NOT = { owned = { province = 335 data = SHL } } #Oldenburg
		}
	}
	random = yes
	province = 335 #Oldenburg
	name = "AI_EVENT"
	desc = "Oldenburg"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = SHL value = 335 } #Oldenburg
		command = { type = relation which = SHL value = 10 }
	}
}

#Palatinate
event = {
	id = 5015033
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = PFA }
		NOT = { core = { province = 345 data = -1 } } #Pfalz
		NOT = {
			event = 125021 #BAY: The Palatinate is united with Bavaria
			event = 125033 #BAY: The Palatinate is united with Bavaria
		}
	}
	random = yes
	province = 345 #Pfalz
	name = "AI_EVENT"
	desc = "Palatinate"

	action_a = {
		name = "OK"
		command = { type = independence which = PFA }
	}
}
event = {
	id = 5015034
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		exists = PFA
		NOT = { core = { province = 345 data = -1 } } #Pfalz
	}
	random = yes
	province = 345 #Pfalz
	name = "AI_EVENT"
	desc = "Palatinate"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = PFA value = 345 } #Pfalz
		command = { type = relation which = PFA value = 10 }
	}
}
event = {
	id = 5015035
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = PFA }
		NOT = { core = { province = 345 data = -1 } } #Pfalz
		AND = {
			exists = BAY
			OR = {
				event = 125021 #BAY: The Palatinate is united with Bavaria
				event = 125033 #BAY: The Palatinate is united with Bavaria
			}
			NOT = { owned = { province = 345 data = BAY } } #Pfalz
		}
	}
	random = yes
	province = 345 #Pfalz
	name = "AI_EVENT"
	desc = "Palatinate"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = BAY value = 345 } #Pfalz
		command = { type = relation which = BAY value = 10 }
	}
}
event = {
	id = 5015036
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = PFA }
		NOT = { owned = { province = 345 data = -1 } } #Pfalz
		NOT = { core = { province = 347 data = -1 } } #Würzburg
		NOT = {
			event = 125021 #BAY: The Palatinate is united with Bavaria
			event = 125033 #BAY: The Palatinate is united with Bavaria
		}
	}
	random = yes
	province = 347 #Würzburg
	name = "AI_EVENT"
	desc = "Palatinate"

	action_a = {
		name = "OK"
		command = { type = independence which = PFA }
	}
}
event = {
	id = 5015037
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		exists = PFA
		NOT = { core = { province = 347 data = -1 } } #Würzburg
	}
	random = yes
	province = 347 #Würzburg
	name = "AI_EVENT"
	desc = "Palatinate"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = PFA value = 347 } #Würzburg
		command = { type = relation which = PFA value = 10 }
	}
}
event = {
	id = 5015038
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = PFA }
		NOT = { core = { province = 347 data = -1 } } #Würzburg
		AND = {
			exists = BAY
			OR = {
				event = 125021 #BAY: The Palatinate is united with Bavaria
				event = 125033 #BAY: The Palatinate is united with Bavaria
			}
			NOT = { owned = { province = 347 data = BAY } } #Würzburg
		}
	}
	random = yes
	province = 347 #Würzburg
	name = "AI_EVENT"
	desc = "Palatinate"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = BAY value = 347 } #Würzburg
		command = { type = relation which = BAY value = 10 }
	}
}

#Pomerania - Stettin
event = {
	id = 5015039
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = POM }
		NOT = { core = { province = 302 data = -1 } } #Hinterpommern
		NOT = {
			event = 291030 #SWE: The Acquisition of Pomerania
			event = 3896 #BRA: The Pommern Inheritance
			event = 132008 #BRA: The Pomeranian Inheritance
			event = 259016 #POM: The investiture of Brandenburg
			year = 1637
		}
	}
	random = yes
	province = 302 #Hinterpommern
	name = "AI_EVENT"
	desc = "Pomerania"

	action_a = {
		name = "OK"
		command = { type = independence which = POM }
	}
}
event = {
	id = 5015040
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = POM }
		NOT = { core = { province = 302 data = -1 } } #Hinterpommern
		AND = {
			exists = STT
			NOT = { owned = { province = 302 data = STT } } #Hinterpommern
		}
	}
	random = yes
	province = 302 #Hinterpommern
	name = "AI_EVENT"
	desc = "Pomerania"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = STT value = 302 } #Hinterpommern
		command = { type = relation which = STT value = 10 }
	}
}
event = {
	id = 5015041
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = POM }
		NOT = { core = { province = 302 data = -1 } } #Hinterpommern
		AND = {
			NOT = { exists = STT }
			exists = BRA
			OR = {
				event = 3896 #BRA: The Pommern Inheritance
				event = 132008 #BRA: The Pomeranian Inheritance
				event = 259016 #POM: The investiture of Brandenburg
			}
			NOT = { owned = { province = 302 data = BRA } } #Hinterpommern
		}
	}
	random = yes
	province = 302 #Hinterpommern
	name = "AI_EVENT"
	desc = "Pomerania"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = BRA value = 302 } #Hinterpommern
		command = { type = relation which = BRA value = 10 }
	}
}
event = {
	id = 5015042
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = POM }
		NOT = { core = { province = 302 data = -1 } } #Hinterpommern
		AND = {
			NOT = { exists = STT }
			NOT = { exists = BRA }
			AND = {
				exists = PRU
				event = 263014 #PRU: The Kingdom of Prussia
			}
			OR = {
				event = 3896 #BRA: The Pommern Inheritance
				event = 132008 #BRA: The Pomeranian Inheritance
				event = 259016 #POM: The investiture of Brandenburg
			}
			NOT = { owned = { province = 302 data = PRU } } #Hinterpommern
		}
	}
	random = yes
	province = 302 #Hinterpommern
	name = "AI_EVENT"
	desc = "Pomerania"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = PRU value = 302 } #Hinterpommern
		command = { type = relation which = PRU value = 10 }
	}
}
event = {
	id = 5015043
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = STT }
		NOT = { core = { province = 304 data = -1 } } #Vorpommern
		NOT = {
			event = 259000 #POM: Inheritance of Pomerania-Stettin
			AND = {
				event = 259001 #POM: Inheritance of Pomerania-Stettin
				NOT = {
					event = 132018 #BRA: Inheritance of Stettin
				}
			}
			event = 291029 #SWE: The Acquisition of Vorpommern
			event = 291030 #SWE: The Acquisition of Pomerania
			event = 3896 #BRA: The Pommern Inheritance
			event = 132008 #BRA: The Pomeranian Inheritance
			event = 259016 #POM: The investiture of Brandenburg
			year = 1570
		}
	}
	random = yes
	province = 304 #Vorpommern
	name = "AI_EVENT"
	desc = "Pomerania"

	action_a = {
		name = "OK"
		command = { type = independence which = STT }
	}
}
event = {
	id = 5015044
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = STT }
		NOT = { core = { province = 304 data = -1 } } #Vorpommern
		AND = {
			exists = POM
			OR = {
				event = 259000 #POM: Inheritance of Pomerania-Stettin
				AND = {
					event = 259001 #POM: Inheritance of Pomerania-Stettin
					NOT = {
						event = 132018 #BRA: Inheritance of Stettin
					}
				}
			}
			NOT = { owned = { province = 304 data = POM } } #Vorpommern
		}
	}
	random = yes
	province = 304 #Vorpommern
	name = "AI_EVENT"
	desc = "Pomerania"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = POM value = 304 } #Vorpommern
		command = { type = relation which = POM value = 10 }
	}
}
event = {
	id = 5015045
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = STT }
		NOT = { core = { province = 304 data = -1 } } #Vorpommern
		AND = {
			NOT = { exists = POM }
			AND = {
				exists = BRA
				OR = {
					event = 3896 #BRA: The Pommern Inheritance
					event = 132008 #BRA: The Pomeranian Inheritance
					event = 259016 #POM: The investiture of Brandenburg
				}
				NOT = { owned = { province = 304 data = BRA } } #Vorpommern
			}
		}
	}
	random = yes
	province = 304 #Vorpommern
	name = "AI_EVENT"
	desc = "Pomerania"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = BRA value = 304 } #Vorpommern
		command = { type = relation which = BRA value = 10 }
	}
}
event = {
	id = 5015046
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = POM }
		NOT = { core = { province = 304 data = -1 } } #Vorpommern
		AND = {
			NOT = { exists = POM }
			AND = {
				NOT = { exists = BRA }
				AND = {
					exists = PRU
					event = 263014 #PRU: The Kingdom of Prussia
				}
				OR = {
					event = 3896 #BRA: The Pommern Inheritance
					event = 132008 #BRA: The Pomeranian Inheritance
					event = 259016 #POM: The investiture of Brandenburg
				}
				NOT = { owned = { province = 304 data = PRU } } #Vorpommern
			}
		}
	}
	random = yes
	province = 304 #Vorpommern
	name = "AI_EVENT"
	desc = "Pomerania"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = PRU value = 304 } #Vorpommern
		command = { type = relation which = PRU value = 10 }
	}
}

#Saxony - Meissen
#simplified version
event = {
	id = 5015048
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = {
			exists = SAC
			exists = MEI
		}
		NOT = { core = { province = 332 data = -1 } } #Anhalt
	}
	random = yes
	province = 332 #Anhalt
	name = "AI_EVENT"
	desc = "Saxony"

	action_a = {
		name = "OK"
		command = { type = independence which = SAC }
	}
}
event = {
	id = 5015049
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		exists = SAC
		NOT = { core = { province = 332 data = -1 } } #Anhalt
		NOT = { owned = { province = 332 data = SAC } } #Anhalt
	}
	random = yes
	province = 332 #Anhalt
	name = "AI_EVENT"
	desc = "Saxony"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = SAC value = 332 } #Anhalt
		command = { type = relation which = SAC value = 10 }
	}
}
event = {
	id = 5015050
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = SAC }
		NOT = { core = { province = 332 data = -1 } } #Anhalt
		AND = {
			exists = MEI
			NOT = { year = 1600 }
			NOT = { owned = { province = 332 data = MEI } } #Anhalt
		}
	}
	random = yes
	province = 332 #Anhalt
	name = "AI_EVENT"
	desc = "Saxony"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = MEI value = 332 } #Anhalt
		command = { type = relation which = MEI value = 10 }
	}
}
event = {
	id = 5015051
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		exists = SAC
		NOT = { core = { province = 331 data = -1 } } #Sachsen
		NOT = { owned = { province = 331 data = SAC } } #Sachsen
	}
	random = yes
	province = 331 #Sachsen
	name = "AI_EVENT"
	desc = "Saxony"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = SAC value = 331 } #Sachsen
		command = { type = relation which = SAC value = 10 }
	}
}
event = {
	id = 5015052
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = SAC }
		NOT = { core = { province = 331 data = -1 } } #Sachsen
		AND = {
			exists = MEI
			NOT = { year = 1600 }
			NOT = { owned = { province = 331 data = MEI } } #Sachsen
		}
	}
	random = yes
	province = 331 #Sachsen
	name = "AI_EVENT"
	desc = "Saxony"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = MEI value = 331 } #Sachsen
		command = { type = relation which = MEI value = 10 }
	}
}

#Strassburg
event = {
	id = 5015053
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = STR }
		NOT = { core = { province = 374 data = -1 } } #Alsace
	}
	random = yes
	province = 374 #Alsace
	name = "AI_EVENT"
	desc = "Strassburg"

	action_a = {
		name = "OK"
		command = { type = independence which = STR }
	}
}

#Wirtemberg
event = {
	id = 5015054
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = WUR }
		NOT = { core = { province = 372 data = -1 } } #Württemberg
		NOT = {
			AND = {
				exists = HAB
				core = { province = 372 data = HAB } #covers HAB_179004 and HAB_179006
				NOT = { owned = { province = 372 data = HAB } } #Württemberg
			}
		}
	}
	random = yes
	province = 372 #Württemberg
	name = "AI_EVENT"
	desc = "Wirtemberg"

	action_a = {
		name = "OK"
		command = { type = independence which = WUR }
	}
}
event = {
	id = 5015055
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = WUR }
		NOT = { core = { province = 372 data = -1 } } #Württemberg
		AND = {
			exists = HAB
			core = { province = 372 data = HAB } #covers HAB_179004 and HAB_179006
		}
	}
	random = yes
	province = 372 #Württemberg
	name = "AI_EVENT"
	desc = "Wirtemberg"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = HAB value = 372 } #Württemberg
		command = { type = relation which = HAB value = 10 }
	}
}

#-----------------------------------------------------------------------------------------------

#-----------------------------------------------------------------------------------------------

#Baden
event = {
	id = 5016000
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = BAD }
		NOT = { core = { province = 373 data = -1 } } #Baden
	}
	random = yes
	province = 349 #Baden
	name = "AI_EVENT"
	desc = "Baden"

	action_a = {
		name = "OK"
		command = { type = independence which = BAD }
	}
}

#Bavaria
event = {
	id = 5016001
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = BAY }
		NOT = { core = { province = 349 data = -1 } } #Bayern
		NOT = {
			AND = {
				event = 255003 #PFA: The Palatinate inherits Bavaria
				NOT = {
					event = 125021 #BAY: The Palatinate is united with Bavaria
					event = 125033 #BAY: The Palatinate is united with Bavaria (Palatinate inherited Burgundy)
				}
			}
			event = 255008 #PFA: The Wittelsbach inheritance of Bavaria
		}
	}
	random = yes
	province = 349 #Bayern
	name = "AI_EVENT"
	desc = "Bavaria"

	action_a = {
		name = "OK"
		command = { type = independence which = BAY }
	}
}
event = {
	id = 5016002
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		exists = BAY
		NOT = { core = { province = 349 data = -1 } } #Bayern
		NOT = { owned = { province = 349 data = BAY } } #Bayern
	}
	random = yes
	province = 349 #Bayern
	name = "AI_EVENT"
	desc = "Bavaria"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = BAY value = 349 } #Bayern
		command = { type = relation which = BAY value = 10 }
	}
}
event = {
	id = 5016003
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = BAY }
		NOT = { core = { province = 349 data = -1 } } #Bayern
		AND = {
			exists = PFA
			OR = {
				AND = {
					event = 255003 #PFA: The Palatinate inherits Bavaria
					NOT = {
						event = 125021 #BAY: The Palatinate is united with Bavaria
						event = 125033 #BAY: The Palatinate is united with Bavaria (Palatinate inherited Burgundy)
					}
				}
				event = 255008 #PFA: The Wittelsbach inheritance of Bavaria
			}
			NOT = { owned = { province = 349 data = PFA } } #Bayern
		}
	}
	random = yes
	province = 349 #Bayern
	name = "AI_EVENT"
	desc = "Bavaria"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = PFA value = 349 } #Bayern
		command = { type = relation which = PFA value = 10 }
	}
}
event = {
	id = 5016004
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = BAY }
		NOT = { owned = { province = 349 data = -1 } } #Bayern
		NOT = { core = { province = 348 data = -1 } } #Ansbach
		year = 1430 #LUX and HAB before
		NOT = {
			AND = {
				event = 255003 #PFA: The Palatinate inherits Bavaria
				NOT = {
					event = 125021 #BAY: The Palatinate is united with Bavaria
					event = 125033 #BAY: The Palatinate is united with Bavaria (Palatinate inherited Burgundy)
				}
			}
			event = 255008 #PFA: The Wittelsbach inheritance of Bavaria
			event = 125035 #BAY: Straubing is ceded to Austria
			event = 255009 #PFA: Straubing is ceded to Austria
		}
	}
	random = yes
	province = 348 #Ansbach
	name = "AI_EVENT"
	desc = "Bavaria"

	action_a = {
		name = "OK"
		command = { type = independence which = BAY }
	}
}
event = {
	id = 5016005
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		exists = BAY
		NOT = { core = { province = 348 data = -1 } } #Ansbach
		year = 1430 #LUX and HAB before
		NOT = {
			AND = {
				exists = HAB
				OR = {
					event = 125035 #BAY: Straubing is ceded to Austria
					event = 255009 #PFA: Straubing is ceded to Austria
				}
			}
			NOT = { owned = { province = 348 data = BAY } } #Ansbach
		}
	}
	random = yes
	province = 348 #Ansbach
	name = "AI_EVENT"
	desc = "Bavaria"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = BAY value = 348 } #Ansbach
		command = { type = relation which = BAY value = 10 }
	}
}
event = {
	id = 5016006
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = BAY }
		NOT = { core = { province = 348 data = -1 } } #Ansbach
		year = 1430 #LUX and HAB before
		AND = {
			exists = PFA
			OR = {
				AND = {
					event = 255003 #PFA: The Palatinate inherits Bavaria
					NOT = {
						event = 125021 #BAY: The Palatinate is united with Bavaria
						event = 125033 #BAY: The Palatinate is united with Bavaria (Palatinate inherited Burgundy)
					}
				}
				event = 255008 #PFA: The Wittelsbach inheritance of Bavaria
			}
			NOT = {
				AND = {
					exists = HAB
					OR = {
						event = 125035 #BAY: Straubing is ceded to Austria
						event = 255009 #PFA: Straubing is ceded to Austria
					}
				}
			}
			NOT = { owned = { province = 348 data = PFA } } #Ansbach
		}
	}
	random = yes
	province = 348 #Ansbach
	name = "AI_EVENT"
	desc = "Bavaria"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = PFA value = 348 } #Ansbach
		command = { type = relation which = PFA value = 10 }
	}
}
event = {
	id = 5016007
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { core = { province = 348 data = -1 } } #Ansbach
		year = 1430 #LUX and HAB before
		AND = {
			exists = HAB
			OR = {
				event = 125035 #BAY: Straubing is ceded to Austria
				event = 255009 #PFA: Straubing is ceded to Austria
			}
			NOT = { owned = { province = 348 data = HAB } } #Ansbach
		}
	}
	random = yes
	province = 348 #Ansbach
	name = "AI_EVENT"
	desc = "Bavaria"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = HAB value = 348 } #Ansbach
		command = { type = relation which = HAB value = 10 }
	}
}

#Berg
#simplified version
event = {
	id = 5016008
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = BRG }
		NOT = { core = { province = 343 data = -1 } } #Kleves
		NOT = { year = 1609 }
	}
	random = yes
	province = 334 #Kleves
	name = "AI_EVENT"
	desc = "Berg"

	action_a = {
		name = "OK"
		command = { type = independence which = BRG }
	}
}

#Brandenburg - Prussia
event = {
	id = 5016009
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = BRA }
		NOT = { core = { province = 312 data = -1 } } #Brandenburg
		NOT = {
			AND = {
				exists = PRU
				event = 263014 #PRU: The Kingdom of Prussia
			}
		}
	}
	random = yes
	province = 312 #Brandenburg
	name = "AI_EVENT"
	desc = "Brandenburg"

	action_a = {
		name = "OK"
		command = { type = independence which = BRA }
	}
}
event = {
	id = 5016011
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = BRA }
		NOT = { core = { province = 312 data = -1 } } #Brandenburg
		AND = {
			exists = PRU
			event = 263014 #PRU: The Kingdom of Prussia
			NOT = { owned = { province = 312 data = PRU } } #Brandenburg
		}
	}
	random = yes
	province = 312 #Brandenburg
	name = "AI_EVENT"
	desc = "Brandenburg"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = PRU value = 312 } #Brandenburg
		command = { type = relation which = PRU value = 10 }
	}
}
event = {
	id = 5016012
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = BRA }
		NOT = { core = { province = 313 data = -1 } } #Küstrin
		NOT = { owned = { province = 312 data = -1 } } #Brandenburg
		NOT = {
			AND = {
				exists = PRU
				event = 263014 #PRU: The Kingdom of Prussia
			}
		}
	}
	random = yes
	province = 313 #Küstrin
	name = "AI_EVENT"
	desc = "Brandenburg"

	action_a = {
		name = "OK"
		command = { type = independence which = BRA }
	}
}
event = {
	id = 5016014
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		exists = BRA
		NOT = { core = { province = 313 data = -1 } } #Küstrin
		NOT = { owned = { province = 313 data = BRA } } #Küstrin
	}
	random = yes
	province = 313 #Küstrin
	name = "AI_EVENT"
	desc = "Brandenburg"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = BRA value = 313 } #Küstrin
		command = { type = relation which = BRA value = 10 }
	}
}
event = {
	id = 5016015
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = BRA }
		NOT = { core = { province = 313 data = -1 } } #Küstrin
		AND = {
			exists = PRU
			event = 263014 #PRU: The Kingdom of Prussia
			NOT = { owned = { province = 312 data = PRU } } #Brandenburg
		}
	}
	random = yes
	province = 313 #Küstrin
	name = "AI_EVENT"
	desc = "Brandenburg"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = PRU value = 313 } #Küstrin
		command = { type = relation which = PRU value = 10 }
	}
}
event = {
	id = 5016016
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		exists = BRA
		NOT = { core = { province = 311 data = -1 } } #Magdeburg
		NOT = { owned = { province = 311 data = BRA } } #Magdeburg
	}
	random = yes
	province = 311 #Magdeburg
	name = "AI_EVENT"
	desc = "Brandenburg"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = BRA value = 311 } #Magdeburg
		command = { type = relation which = BRA value = 10 }
	}
}
event = {
	id = 5016017
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = BRA }
		NOT = { core = { province = 311 data = -1 } } #Magdeburg
		AND = {
			exists = PRU
			event = 263014 #PRU: The Kingdom of Prussia
			NOT = { owned = { province = 311 data = PRU } } #Magdeburg
		}
	}
	random = yes
	province = 311 #Magdeburg
	name = "AI_EVENT"
	desc = "Brandenburg"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = PRU value = 311 } #Magdeburg
		command = { type = relation which = PRU value = 10 }
	}
}

#Bremen
event = {
	id = 5016018
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = BRE }
		NOT = { core = { province = 336 data = -1 } } #Bremen
	}
	random = yes
	province = 336 #Bremen
	name = "AI_EVENT"
	desc = "Bremen"

	action_a = {
		name = "OK"
		command = { type = independence which = BRE }
	}
}

#Cleves
#simplified version
event = {
	id = 5016019
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = KLE }
		NOT = { core = { province = 334 data = -1 } } #Münster
		NOT = {
			event = 235009 #BRG: Union with Kleve-Mark
			year = 1609
		}
	}
	random = yes
	province = 334 #Münster
	name = "AI_EVENT"
	desc = "Cleves"

	action_a = {
		name = "OK"
		command = { type = independence which = KLE }
	}
}
event = {
	id = 5016020
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = KLE }
		NOT = { core = { province = 334 data = -1 } } #Münster
		AND = {
			exists = BRG
			event = 235009 #BRG: Union with Kleve-Mark
			NOT = { owned = { province = 334 data = BRG } } #Münster
			NOT = { year = 1609 }
		}
	}
	random = yes
	province = 334 #Münster
	name = "AI_EVENT"
	desc = "Cleves"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = BRG value = 334 } #Münster
		command = { type = relation which = BRG value = 10 }
	}
}

#Cologne
event = {
	id = 5016021
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = KOL }
		NOT = { core = { province = 344 data = -1 } } #Köln
	}
	random = yes
	province = 344 #Köln
	name = "AI_EVENT"
	desc = "Cologne"

	action_a = {
		name = "OK"
		command = { type = independence which = KOL }
	}
}

#Hanover
event = {
	id = 5016022
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = HAN }
		NOT = { core = { province = 310 data = -1 } } #Hannover
	}
	random = yes
	province = 310 #Hannover
	name = "AI_EVENT"
	desc = "Hanover"

	action_a = {
		name = "OK"
		command = { type = independence which = HAN }
	}
}

#Hesse
event = {
	id = 5016023
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = HES }
		NOT = { core = { province = 333 data = -1 } } #Hessen
	}
	random = yes
	province = 333 #Hessen
	name = "AI_EVENT"
	desc = "Hesse"

	action_a = {
		name = "OK"
		command = { type = independence which = HES }
	}
}

#Holstein
event = {
	id = 5016024
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = SHL }
		NOT = { core = { province = 306 data = -1 } } #Holstein
		NOT = {
			AND = {
				event = 159034 #DAN: Denmark inherits Holstein
				NOT = { event = 159011 } #DAN: The fate of Holstein
			}
			event = 247002 #OLD: Oldenburg inherits Holstein
		}
	}
	random = yes
	province = 306 #Holstein
	name = "AI_EVENT"
	desc = "Holstein"

	action_a = {
		name = "OK"
		command = { type = independence which = SHL }
	}
}
event = {
	id = 5016010
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = SHL }
		NOT = { core = { province = 306 data = -1 } } #Holstein
		AND = {
			exists = OLD
			event = 247002 #OLD: Oldenburg inherits Holstein
			NOT = { owned = { province = 306 data = OLD } } #Holstein
		}
	}
	random = yes
	province = 306 #Holstein
	name = "AI_EVENT"
	desc = "Holstein"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = OLD value = 306 } #Holstein
		command = { type = relation which = OLD value = 10 }
	}
}

#Lorraine
event = {
	id = 5016026
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = LOR }
		NOT = { core = { province = 375 data = -1 } } #Lorraine
		NOT = {
			event = 3736 #FRA: French Inheritance of Lothringen
			year = 1766
		}
	}
	random = yes
	province = 375 #Lorraine
	name = "AI_EVENT"
	desc = "Lorraine"

	action_a = {
		name = "OK"
		command = { type = independence which = LOR }
	}
}

#Luxemburg
event = {
	id = 5016028
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = LUX }
		NOT = { core = { province = 377 data = -1 } } #Luxembourg
		NOT = {
			event = 137306 #BUR: Annexation of Luxemburg
			year = 1451 #Burgundian monarchs
		}
	}
	random = yes
	province = 377 #Luxembourg
	name = "AI_EVENT"
	desc = "Luxemburg"

	action_a = {
		name = "OK"
		command = { type = independence which = LUX }
	}
}
event = {
	id = 5016029
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = LUX }
		NOT = { core = { province = 377 data = -1 } } #Luxembourg
		AND = {
			exists = BUR
			event = 137306 #BUR: Annexation of Luxemburg
			NOT = { owned = { province = 377 data = BUR } } #Luxembourg
		}
	}
	random = yes
	province = 377 #Luxembourg
	name = "AI_EVENT"
	desc = "Luxemburg"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = BUR value = 377 } #Luxembourg
		command = { type = relation which = BUR value = 10 }
	}
}

#Mainz
event = {
	id = 5016030
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = MAI }
		NOT = { core = { province = 346 data = -1 } } #Mainz
	}
	random = yes
	province = 346 #Mainz
	name = "AI_EVENT"
	desc = "Mainz"

	action_a = {
		name = "OK"
		command = { type = independence which = MAI }
	}
}

#Mecklenburg
event = {
	id = 5016031
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = MEC }
		NOT = { core = { province = 305 data = -1 } } #Mecklenburg
	}
	random = yes
	province = 305 #Mecklenburg
	name = "AI_EVENT"
	desc = "Mecklenburg"

	action_a = {
		name = "OK"
		command = { type = independence which = MEC }
	}
}

#Oldenburg
event = {
	id = 5016032
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = OLD }
		NOT = { core = { province = 335 data = -1 } } #Oldenburg
		NOT = {
			event = 159033 #DAN: Oldenburg is incorporated into Denmark
			event = 279010 #SHL: Holstein inherits Oldenburg
		}
	}
	random = yes
	province = 335 #Oldenburg
	name = "AI_EVENT"
	desc = "Oldenburg"

	action_a = {
		name = "OK"
		command = { type = independence which = OLD }
	}
}
event = {
	id = 5016013
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = OLD }
		NOT = { core = { province = 335 data = -1 } } #Oldenburg
		AND = {
			exists = SHL
			event = 279010 #SHL: Holstein inherits Oldenburg
			NOT = { owned = { province = 335 data = SHL } } #Oldenburg
		}
	}
	random = yes
	province = 335 #Oldenburg
	name = "AI_EVENT"
	desc = "Oldenburg"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = SHL value = 335 } #Oldenburg
		command = { type = relation which = SHL value = 10 }
	}
}

#Palatinate
event = {
	id = 5016033
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = PFA }
		NOT = { core = { province = 345 data = -1 } } #Pfalz
		NOT = {
			event = 125021 #BAY: The Palatinate is united with Bavaria
			event = 125033 #BAY: The Palatinate is united with Bavaria
		}
	}
	random = yes
	province = 345 #Pfalz
	name = "AI_EVENT"
	desc = "Palatinate"

	action_a = {
		name = "OK"
		command = { type = independence which = PFA }
	}
}
event = {
	id = 5016034
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		exists = PFA
		NOT = { core = { province = 345 data = -1 } } #Pfalz
	}
	random = yes
	province = 345 #Pfalz
	name = "AI_EVENT"
	desc = "Palatinate"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = PFA value = 345 } #Pfalz
		command = { type = relation which = PFA value = 10 }
	}
}
event = {
	id = 5016035
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = PFA }
		NOT = { core = { province = 345 data = -1 } } #Pfalz
		AND = {
			exists = BAY
			OR = {
				event = 125021 #BAY: The Palatinate is united with Bavaria
				event = 125033 #BAY: The Palatinate is united with Bavaria
			}
			NOT = { owned = { province = 345 data = BAY } } #Pfalz
		}
	}
	random = yes
	province = 345 #Pfalz
	name = "AI_EVENT"
	desc = "Palatinate"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = BAY value = 345 } #Pfalz
		command = { type = relation which = BAY value = 10 }
	}
}
event = {
	id = 5016036
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = PFA }
		NOT = { owned = { province = 345 data = -1 } } #Pfalz
		NOT = { core = { province = 347 data = -1 } } #Würzburg
		NOT = {
			event = 125021 #BAY: The Palatinate is united with Bavaria
			event = 125033 #BAY: The Palatinate is united with Bavaria
		}
	}
	random = yes
	province = 347 #Würzburg
	name = "AI_EVENT"
	desc = "Palatinate"

	action_a = {
		name = "OK"
		command = { type = independence which = PFA }
	}
}
event = {
	id = 5016037
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		exists = PFA
		NOT = { core = { province = 347 data = -1 } } #Würzburg
	}
	random = yes
	province = 347 #Würzburg
	name = "AI_EVENT"
	desc = "Palatinate"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = PFA value = 347 } #Würzburg
		command = { type = relation which = PFA value = 10 }
	}
}
event = {
	id = 5016038
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = PFA }
		NOT = { core = { province = 347 data = -1 } } #Würzburg
		AND = {
			exists = BAY
			OR = {
				event = 125021 #BAY: The Palatinate is united with Bavaria
				event = 125033 #BAY: The Palatinate is united with Bavaria
			}
			NOT = { owned = { province = 347 data = BAY } } #Würzburg
		}
	}
	random = yes
	province = 347 #Würzburg
	name = "AI_EVENT"
	desc = "Palatinate"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = BAY value = 347 } #Würzburg
		command = { type = relation which = BAY value = 10 }
	}
}

#Pomerania - Stettin
event = {
	id = 5016039
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = POM }
		NOT = { core = { province = 302 data = -1 } } #Hinterpommern
		NOT = {
			event = 291030 #SWE: The Acquisition of Pomerania
			event = 3896 #BRA: The Pommern Inheritance
			event = 132008 #BRA: The Pomeranian Inheritance
			event = 259016 #POM: The investiture of Brandenburg
			year = 1637
		}
	}
	random = yes
	province = 302 #Hinterpommern
	name = "AI_EVENT"
	desc = "Pomerania"

	action_a = {
		name = "OK"
		command = { type = independence which = POM }
	}
}
event = {
	id = 5016040
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = POM }
		NOT = { core = { province = 302 data = -1 } } #Hinterpommern
		AND = {
			exists = STT
			NOT = { owned = { province = 302 data = STT } } #Hinterpommern
		}
	}
	random = yes
	province = 302 #Hinterpommern
	name = "AI_EVENT"
	desc = "Pomerania"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = STT value = 302 } #Hinterpommern
		command = { type = relation which = STT value = 10 }
	}
}
event = {
	id = 5016041
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = POM }
		NOT = { core = { province = 302 data = -1 } } #Hinterpommern
		AND = {
			NOT = { exists = STT }
			exists = BRA
			OR = {
				event = 3896 #BRA: The Pommern Inheritance
				event = 132008 #BRA: The Pomeranian Inheritance
				event = 259016 #POM: The investiture of Brandenburg
			}
			NOT = { owned = { province = 302 data = BRA } } #Hinterpommern
		}
	}
	random = yes
	province = 302 #Hinterpommern
	name = "AI_EVENT"
	desc = "Pomerania"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = BRA value = 302 } #Hinterpommern
		command = { type = relation which = BRA value = 10 }
	}
}
event = {
	id = 5016042
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = POM }
		NOT = { core = { province = 302 data = -1 } } #Hinterpommern
		AND = {
			NOT = { exists = STT }
			NOT = { exists = BRA }
			AND = {
				exists = PRU
				event = 263014 #PRU: The Kingdom of Prussia
			}
			OR = {
				event = 3896 #BRA: The Pommern Inheritance
				event = 132008 #BRA: The Pomeranian Inheritance
				event = 259016 #POM: The investiture of Brandenburg
			}
			NOT = { owned = { province = 302 data = PRU } } #Hinterpommern
		}
	}
	random = yes
	province = 302 #Hinterpommern
	name = "AI_EVENT"
	desc = "Pomerania"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = PRU value = 302 } #Hinterpommern
		command = { type = relation which = PRU value = 10 }
	}
}
event = {
	id = 5016043
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = STT }
		NOT = { core = { province = 304 data = -1 } } #Vorpommern
		NOT = {
			event = 259000 #POM: Inheritance of Pomerania-Stettin
			AND = {
				event = 259001 #POM: Inheritance of Pomerania-Stettin
				NOT = {
					event = 132018 #BRA: Inheritance of Stettin
				}
			}
			event = 291029 #SWE: The Acquisition of Vorpommern
			event = 291030 #SWE: The Acquisition of Pomerania
			event = 3896 #BRA: The Pommern Inheritance
			event = 132008 #BRA: The Pomeranian Inheritance
			event = 259016 #POM: The investiture of Brandenburg
			year = 1570
		}
	}
	random = yes
	province = 304 #Vorpommern
	name = "AI_EVENT"
	desc = "Pomerania"

	action_a = {
		name = "OK"
		command = { type = independence which = STT }
	}
}
event = {
	id = 5016044
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = STT }
		NOT = { core = { province = 304 data = -1 } } #Vorpommern
		AND = {
			exists = POM
			OR = {
				event = 259000 #POM: Inheritance of Pomerania-Stettin
				AND = {
					event = 259001 #POM: Inheritance of Pomerania-Stettin
					NOT = {
						event = 132018 #BRA: Inheritance of Stettin
					}
				}
			}
			NOT = { owned = { province = 304 data = POM } } #Vorpommern
		}
	}
	random = yes
	province = 304 #Vorpommern
	name = "AI_EVENT"
	desc = "Pomerania"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = POM value = 304 } #Vorpommern
		command = { type = relation which = POM value = 10 }
	}
}
event = {
	id = 5016045
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = STT }
		NOT = { core = { province = 304 data = -1 } } #Vorpommern
		AND = {
			NOT = { exists = POM }
			AND = {
				exists = BRA
				OR = {
					event = 3896 #BRA: The Pommern Inheritance
					event = 132008 #BRA: The Pomeranian Inheritance
					event = 259016 #POM: The investiture of Brandenburg
				}
				NOT = { owned = { province = 304 data = BRA } } #Vorpommern
			}
		}
	}
	random = yes
	province = 304 #Vorpommern
	name = "AI_EVENT"
	desc = "Pomerania"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = BRA value = 304 } #Vorpommern
		command = { type = relation which = BRA value = 10 }
	}
}
event = {
	id = 5016046
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = POM }
		NOT = { core = { province = 304 data = -1 } } #Vorpommern
		AND = {
			NOT = { exists = POM }
			AND = {
				NOT = { exists = BRA }
				AND = {
					exists = PRU
					event = 263014 #PRU: The Kingdom of Prussia
				}
				OR = {
					event = 3896 #BRA: The Pommern Inheritance
					event = 132008 #BRA: The Pomeranian Inheritance
					event = 259016 #POM: The investiture of Brandenburg
				}
				NOT = { owned = { province = 304 data = PRU } } #Vorpommern
			}
		}
	}
	random = yes
	province = 304 #Vorpommern
	name = "AI_EVENT"
	desc = "Pomerania"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = PRU value = 304 } #Vorpommern
		command = { type = relation which = PRU value = 10 }
	}
}

#Saxony - Meissen
#simplified version
event = {
	id = 5016048
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = {
			exists = SAC
			exists = MEI
		}
		NOT = { core = { province = 332 data = -1 } } #Anhalt
	}
	random = yes
	province = 332 #Anhalt
	name = "AI_EVENT"
	desc = "Saxony"

	action_a = {
		name = "OK"
		command = { type = independence which = SAC }
	}
}
event = {
	id = 5016049
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		exists = SAC
		NOT = { core = { province = 332 data = -1 } } #Anhalt
		NOT = { owned = { province = 332 data = SAC } } #Anhalt
	}
	random = yes
	province = 332 #Anhalt
	name = "AI_EVENT"
	desc = "Saxony"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = SAC value = 332 } #Anhalt
		command = { type = relation which = SAC value = 10 }
	}
}
event = {
	id = 5016050
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = SAC }
		NOT = { core = { province = 332 data = -1 } } #Anhalt
		AND = {
			exists = MEI
			NOT = { year = 1600 }
			NOT = { owned = { province = 332 data = MEI } } #Anhalt
		}
	}
	random = yes
	province = 332 #Anhalt
	name = "AI_EVENT"
	desc = "Saxony"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = MEI value = 332 } #Anhalt
		command = { type = relation which = MEI value = 10 }
	}
}
event = {
	id = 5016051
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		exists = SAC
		NOT = { core = { province = 331 data = -1 } } #Sachsen
		NOT = { owned = { province = 331 data = SAC } } #Sachsen
	}
	random = yes
	province = 331 #Sachsen
	name = "AI_EVENT"
	desc = "Saxony"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = SAC value = 331 } #Sachsen
		command = { type = relation which = SAC value = 10 }
	}
}
event = {
	id = 5016052
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = SAC }
		NOT = { core = { province = 331 data = -1 } } #Sachsen
		AND = {
			exists = MEI
			NOT = { year = 1600 }
			NOT = { owned = { province = 331 data = MEI } } #Sachsen
		}
	}
	random = yes
	province = 331 #Sachsen
	name = "AI_EVENT"
	desc = "Saxony"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = MEI value = 331 } #Sachsen
		command = { type = relation which = MEI value = 10 }
	}
}

#Strassburg
event = {
	id = 5016053
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = STR }
		NOT = { core = { province = 374 data = -1 } } #Alsace
	}
	random = yes
	province = 374 #Alsace
	name = "AI_EVENT"
	desc = "Strassburg"

	action_a = {
		name = "OK"
		command = { type = independence which = STR }
	}
}

#Wirtemberg
event = {
	id = 5016054
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = WUR }
		NOT = { core = { province = 372 data = -1 } } #Württemberg
		NOT = {
			AND = {
				exists = HAB
				core = { province = 372 data = HAB } #covers HAB_179004 and HAB_179006
				NOT = { owned = { province = 372 data = HAB } } #Württemberg
			}
		}
	}
	random = yes
	province = 372 #Württemberg
	name = "AI_EVENT"
	desc = "Wirtemberg"

	action_a = {
		name = "OK"
		command = { type = independence which = WUR }
	}
}
event = {
	id = 5016055
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = WUR }
		NOT = { core = { province = 372 data = -1 } } #Württemberg
		AND = {
			exists = HAB
			core = { province = 372 data = HAB } #covers HAB_179004 and HAB_179006
		}
	}
	random = yes
	province = 372 #Württemberg
	name = "AI_EVENT"
	desc = "Wirtemberg"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = HAB value = 372 } #Württemberg
		command = { type = relation which = HAB value = 10 }
	}
}

#-----------------------------------------------------------------------------------------------

#-----------------------------------------------------------------------------------------------

#Baden
event = {
	id = 5017000
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = BAD }
		NOT = { core = { province = 373 data = -1 } } #Baden
	}
	random = yes
	province = 349 #Baden
	name = "AI_EVENT"
	desc = "Baden"

	action_a = {
		name = "OK"
		command = { type = independence which = BAD }
	}
}

#Bavaria
event = {
	id = 5017001
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = BAY }
		NOT = { core = { province = 349 data = -1 } } #Bayern
		NOT = {
			AND = {
				event = 255003 #PFA: The Palatinate inherits Bavaria
				NOT = {
					event = 125021 #BAY: The Palatinate is united with Bavaria
					event = 125033 #BAY: The Palatinate is united with Bavaria (Palatinate inherited Burgundy)
				}
			}
			event = 255008 #PFA: The Wittelsbach inheritance of Bavaria
		}
	}
	random = yes
	province = 349 #Bayern
	name = "AI_EVENT"
	desc = "Bavaria"

	action_a = {
		name = "OK"
		command = { type = independence which = BAY }
	}
}
event = {
	id = 5017002
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		exists = BAY
		NOT = { core = { province = 349 data = -1 } } #Bayern
		NOT = { owned = { province = 349 data = BAY } } #Bayern
	}
	random = yes
	province = 349 #Bayern
	name = "AI_EVENT"
	desc = "Bavaria"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = BAY value = 349 } #Bayern
		command = { type = relation which = BAY value = 10 }
	}
}
event = {
	id = 5017003
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = BAY }
		NOT = { core = { province = 349 data = -1 } } #Bayern
		AND = {
			exists = PFA
			OR = {
				AND = {
					event = 255003 #PFA: The Palatinate inherits Bavaria
					NOT = {
						event = 125021 #BAY: The Palatinate is united with Bavaria
						event = 125033 #BAY: The Palatinate is united with Bavaria (Palatinate inherited Burgundy)
					}
				}
				event = 255008 #PFA: The Wittelsbach inheritance of Bavaria
			}
			NOT = { owned = { province = 349 data = PFA } } #Bayern
		}
	}
	random = yes
	province = 349 #Bayern
	name = "AI_EVENT"
	desc = "Bavaria"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = PFA value = 349 } #Bayern
		command = { type = relation which = PFA value = 10 }
	}
}
event = {
	id = 5017004
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = BAY }
		NOT = { owned = { province = 349 data = -1 } } #Bayern
		NOT = { core = { province = 348 data = -1 } } #Ansbach
		year = 1430 #LUX and HAB before
		NOT = {
			AND = {
				event = 255003 #PFA: The Palatinate inherits Bavaria
				NOT = {
					event = 125021 #BAY: The Palatinate is united with Bavaria
					event = 125033 #BAY: The Palatinate is united with Bavaria (Palatinate inherited Burgundy)
				}
			}
			event = 255008 #PFA: The Wittelsbach inheritance of Bavaria
			event = 125035 #BAY: Straubing is ceded to Austria
			event = 255009 #PFA: Straubing is ceded to Austria
		}
	}
	random = yes
	province = 348 #Ansbach
	name = "AI_EVENT"
	desc = "Bavaria"

	action_a = {
		name = "OK"
		command = { type = independence which = BAY }
	}
}
event = {
	id = 5017005
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		exists = BAY
		NOT = { core = { province = 348 data = -1 } } #Ansbach
		year = 1430 #LUX and HAB before
		NOT = {
			AND = {
				exists = HAB
				OR = {
					event = 125035 #BAY: Straubing is ceded to Austria
					event = 255009 #PFA: Straubing is ceded to Austria
				}
			}
			NOT = { owned = { province = 348 data = BAY } } #Ansbach
		}
	}
	random = yes
	province = 348 #Ansbach
	name = "AI_EVENT"
	desc = "Bavaria"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = BAY value = 348 } #Ansbach
		command = { type = relation which = BAY value = 10 }
	}
}
event = {
	id = 5017006
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = BAY }
		NOT = { core = { province = 348 data = -1 } } #Ansbach
		year = 1430 #LUX and HAB before
		AND = {
			exists = PFA
			OR = {
				AND = {
					event = 255003 #PFA: The Palatinate inherits Bavaria
					NOT = {
						event = 125021 #BAY: The Palatinate is united with Bavaria
						event = 125033 #BAY: The Palatinate is united with Bavaria (Palatinate inherited Burgundy)
					}
				}
				event = 255008 #PFA: The Wittelsbach inheritance of Bavaria
			}
			NOT = {
				AND = {
					exists = HAB
					OR = {
						event = 125035 #BAY: Straubing is ceded to Austria
						event = 255009 #PFA: Straubing is ceded to Austria
					}
				}
			}
			NOT = { owned = { province = 348 data = PFA } } #Ansbach
		}
	}
	random = yes
	province = 348 #Ansbach
	name = "AI_EVENT"
	desc = "Bavaria"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = PFA value = 348 } #Ansbach
		command = { type = relation which = PFA value = 10 }
	}
}
event = {
	id = 5017007
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { core = { province = 348 data = -1 } } #Ansbach
		year = 1430 #LUX and HAB before
		AND = {
			exists = HAB
			OR = {
				event = 125035 #BAY: Straubing is ceded to Austria
				event = 255009 #PFA: Straubing is ceded to Austria
			}
			NOT = { owned = { province = 348 data = HAB } } #Ansbach
		}
	}
	random = yes
	province = 348 #Ansbach
	name = "AI_EVENT"
	desc = "Bavaria"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = HAB value = 348 } #Ansbach
		command = { type = relation which = HAB value = 10 }
	}
}

#Berg
#simplified version
event = {
	id = 5017008
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = BRG }
		NOT = { core = { province = 343 data = -1 } } #Kleves
		NOT = { year = 1609 }
	}
	random = yes
	province = 334 #Kleves
	name = "AI_EVENT"
	desc = "Berg"

	action_a = {
		name = "OK"
		command = { type = independence which = BRG }
	}
}

#Brandenburg - Prussia
event = {
	id = 5017009
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = BRA }
		NOT = { core = { province = 312 data = -1 } } #Brandenburg
		NOT = {
			AND = {
				exists = PRU
				event = 263014 #PRU: The Kingdom of Prussia
			}
		}
	}
	random = yes
	province = 312 #Brandenburg
	name = "AI_EVENT"
	desc = "Brandenburg"

	action_a = {
		name = "OK"
		command = { type = independence which = BRA }
	}
}
event = {
	id = 5017011
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = BRA }
		NOT = { core = { province = 312 data = -1 } } #Brandenburg
		AND = {
			exists = PRU
			event = 263014 #PRU: The Kingdom of Prussia
			NOT = { owned = { province = 312 data = PRU } } #Brandenburg
		}
	}
	random = yes
	province = 312 #Brandenburg
	name = "AI_EVENT"
	desc = "Brandenburg"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = PRU value = 312 } #Brandenburg
		command = { type = relation which = PRU value = 10 }
	}
}
event = {
	id = 5017012
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = BRA }
		NOT = { core = { province = 313 data = -1 } } #Küstrin
		NOT = { owned = { province = 312 data = -1 } } #Brandenburg
		NOT = {
			AND = {
				exists = PRU
				event = 263014 #PRU: The Kingdom of Prussia
			}
		}
	}
	random = yes
	province = 313 #Küstrin
	name = "AI_EVENT"
	desc = "Brandenburg"

	action_a = {
		name = "OK"
		command = { type = independence which = BRA }
	}
}
event = {
	id = 5017014
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		exists = BRA
		NOT = { core = { province = 313 data = -1 } } #Küstrin
		NOT = { owned = { province = 313 data = BRA } } #Küstrin
	}
	random = yes
	province = 313 #Küstrin
	name = "AI_EVENT"
	desc = "Brandenburg"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = BRA value = 313 } #Küstrin
		command = { type = relation which = BRA value = 10 }
	}
}
event = {
	id = 5017015
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = BRA }
		NOT = { core = { province = 313 data = -1 } } #Küstrin
		AND = {
			exists = PRU
			event = 263014 #PRU: The Kingdom of Prussia
			NOT = { owned = { province = 312 data = PRU } } #Brandenburg
		}
	}
	random = yes
	province = 313 #Küstrin
	name = "AI_EVENT"
	desc = "Brandenburg"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = PRU value = 313 } #Küstrin
		command = { type = relation which = PRU value = 10 }
	}
}
event = {
	id = 5017016
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		exists = BRA
		NOT = { core = { province = 311 data = -1 } } #Magdeburg
		NOT = { owned = { province = 311 data = BRA } } #Magdeburg
	}
	random = yes
	province = 311 #Magdeburg
	name = "AI_EVENT"
	desc = "Brandenburg"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = BRA value = 311 } #Magdeburg
		command = { type = relation which = BRA value = 10 }
	}
}
event = {
	id = 5017017
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = BRA }
		NOT = { core = { province = 311 data = -1 } } #Magdeburg
		AND = {
			exists = PRU
			event = 263014 #PRU: The Kingdom of Prussia
			NOT = { owned = { province = 311 data = PRU } } #Magdeburg
		}
	}
	random = yes
	province = 311 #Magdeburg
	name = "AI_EVENT"
	desc = "Brandenburg"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = PRU value = 311 } #Magdeburg
		command = { type = relation which = PRU value = 10 }
	}
}

#Bremen
event = {
	id = 5017018
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = BRE }
		NOT = { core = { province = 336 data = -1 } } #Bremen
	}
	random = yes
	province = 336 #Bremen
	name = "AI_EVENT"
	desc = "Bremen"

	action_a = {
		name = "OK"
		command = { type = independence which = BRE }
	}
}

#Cleves
#simplified version
event = {
	id = 5017019
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = KLE }
		NOT = { core = { province = 334 data = -1 } } #Münster
		NOT = {
			event = 235009 #BRG: Union with Kleve-Mark
			year = 1609
		}
	}
	random = yes
	province = 334 #Münster
	name = "AI_EVENT"
	desc = "Cleves"

	action_a = {
		name = "OK"
		command = { type = independence which = KLE }
	}
}
event = {
	id = 5017020
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = KLE }
		NOT = { core = { province = 334 data = -1 } } #Münster
		AND = {
			exists = BRG
			event = 235009 #BRG: Union with Kleve-Mark
			NOT = { owned = { province = 334 data = BRG } } #Münster
			NOT = { year = 1609 }
		}
	}
	random = yes
	province = 334 #Münster
	name = "AI_EVENT"
	desc = "Cleves"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = BRG value = 334 } #Münster
		command = { type = relation which = BRG value = 10 }
	}
}

#Cologne
event = {
	id = 5017021
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = KOL }
		NOT = { core = { province = 344 data = -1 } } #Köln
	}
	random = yes
	province = 344 #Köln
	name = "AI_EVENT"
	desc = "Cologne"

	action_a = {
		name = "OK"
		command = { type = independence which = KOL }
	}
}

#Hanover
event = {
	id = 5017022
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = HAN }
		NOT = { core = { province = 310 data = -1 } } #Hannover
	}
	random = yes
	province = 310 #Hannover
	name = "AI_EVENT"
	desc = "Hanover"

	action_a = {
		name = "OK"
		command = { type = independence which = HAN }
	}
}

#Hesse
event = {
	id = 5017023
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = HES }
		NOT = { core = { province = 333 data = -1 } } #Hessen
	}
	random = yes
	province = 333 #Hessen
	name = "AI_EVENT"
	desc = "Hesse"

	action_a = {
		name = "OK"
		command = { type = independence which = HES }
	}
}

#Holstein
event = {
	id = 5017024
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = SHL }
		NOT = { core = { province = 306 data = -1 } } #Holstein
		NOT = {
			AND = {
				event = 159034 #DAN: Denmark inherits Holstein
				NOT = { event = 159011 } #DAN: The fate of Holstein
			}
			event = 247002 #OLD: Oldenburg inherits Holstein
		}
	}
	random = yes
	province = 306 #Holstein
	name = "AI_EVENT"
	desc = "Holstein"

	action_a = {
		name = "OK"
		command = { type = independence which = SHL }
	}
}
event = {
	id = 5017010
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = SHL }
		NOT = { core = { province = 306 data = -1 } } #Holstein
		AND = {
			exists = OLD
			event = 247002 #OLD: Oldenburg inherits Holstein
			NOT = { owned = { province = 306 data = OLD } } #Holstein
		}
	}
	random = yes
	province = 306 #Holstein
	name = "AI_EVENT"
	desc = "Holstein"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = OLD value = 306 } #Holstein
		command = { type = relation which = OLD value = 10 }
	}
}

#Lorraine
event = {
	id = 5017026
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = LOR }
		NOT = { core = { province = 375 data = -1 } } #Lorraine
		NOT = {
			event = 3736 #FRA: French Inheritance of Lothringen
			year = 1766
		}
	}
	random = yes
	province = 375 #Lorraine
	name = "AI_EVENT"
	desc = "Lorraine"

	action_a = {
		name = "OK"
		command = { type = independence which = LOR }
	}
}

#Luxemburg
event = {
	id = 5017028
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = LUX }
		NOT = { core = { province = 377 data = -1 } } #Luxembourg
		NOT = {
			event = 137306 #BUR: Annexation of Luxemburg
			year = 1451 #Burgundian monarchs
		}
	}
	random = yes
	province = 377 #Luxembourg
	name = "AI_EVENT"
	desc = "Luxemburg"

	action_a = {
		name = "OK"
		command = { type = independence which = LUX }
	}
}
event = {
	id = 5017029
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = LUX }
		NOT = { core = { province = 377 data = -1 } } #Luxembourg
		AND = {
			exists = BUR
			event = 137306 #BUR: Annexation of Luxemburg
			NOT = { owned = { province = 377 data = BUR } } #Luxembourg
		}
	}
	random = yes
	province = 377 #Luxembourg
	name = "AI_EVENT"
	desc = "Luxemburg"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = BUR value = 377 } #Luxembourg
		command = { type = relation which = BUR value = 10 }
	}
}

#Mainz
event = {
	id = 5017030
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = MAI }
		NOT = { core = { province = 346 data = -1 } } #Mainz
	}
	random = yes
	province = 346 #Mainz
	name = "AI_EVENT"
	desc = "Mainz"

	action_a = {
		name = "OK"
		command = { type = independence which = MAI }
	}
}

#Mecklenburg
event = {
	id = 5017031
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = MEC }
		NOT = { core = { province = 305 data = -1 } } #Mecklenburg
	}
	random = yes
	province = 305 #Mecklenburg
	name = "AI_EVENT"
	desc = "Mecklenburg"

	action_a = {
		name = "OK"
		command = { type = independence which = MEC }
	}
}

#Oldenburg
event = {
	id = 5017032
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = OLD }
		NOT = { core = { province = 335 data = -1 } } #Oldenburg
		NOT = {
			event = 159033 #DAN: Oldenburg is incorporated into Denmark
			event = 279010 #SHL: Holstein inherits Oldenburg
		}
	}
	random = yes
	province = 335 #Oldenburg
	name = "AI_EVENT"
	desc = "Oldenburg"

	action_a = {
		name = "OK"
		command = { type = independence which = OLD }
	}
}
event = {
	id = 5017013
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = OLD }
		NOT = { core = { province = 335 data = -1 } } #Oldenburg
		AND = {
			exists = SHL
			event = 279010 #SHL: Holstein inherits Oldenburg
			NOT = { owned = { province = 335 data = SHL } } #Oldenburg
		}
	}
	random = yes
	province = 335 #Oldenburg
	name = "AI_EVENT"
	desc = "Oldenburg"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = SHL value = 335 } #Oldenburg
		command = { type = relation which = SHL value = 10 }
	}
}

#Palatinate
event = {
	id = 5017033
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = PFA }
		NOT = { core = { province = 345 data = -1 } } #Pfalz
		NOT = {
			event = 125021 #BAY: The Palatinate is united with Bavaria
			event = 125033 #BAY: The Palatinate is united with Bavaria
		}
	}
	random = yes
	province = 345 #Pfalz
	name = "AI_EVENT"
	desc = "Palatinate"

	action_a = {
		name = "OK"
		command = { type = independence which = PFA }
	}
}
event = {
	id = 5017034
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		exists = PFA
		NOT = { core = { province = 345 data = -1 } } #Pfalz
	}
	random = yes
	province = 345 #Pfalz
	name = "AI_EVENT"
	desc = "Palatinate"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = PFA value = 345 } #Pfalz
		command = { type = relation which = PFA value = 10 }
	}
}
event = {
	id = 5017035
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = PFA }
		NOT = { core = { province = 345 data = -1 } } #Pfalz
		AND = {
			exists = BAY
			OR = {
				event = 125021 #BAY: The Palatinate is united with Bavaria
				event = 125033 #BAY: The Palatinate is united with Bavaria
			}
			NOT = { owned = { province = 345 data = BAY } } #Pfalz
		}
	}
	random = yes
	province = 345 #Pfalz
	name = "AI_EVENT"
	desc = "Palatinate"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = BAY value = 345 } #Pfalz
		command = { type = relation which = BAY value = 10 }
	}
}
event = {
	id = 5017036
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = PFA }
		NOT = { owned = { province = 345 data = -1 } } #Pfalz
		NOT = { core = { province = 347 data = -1 } } #Würzburg
		NOT = {
			event = 125021 #BAY: The Palatinate is united with Bavaria
			event = 125033 #BAY: The Palatinate is united with Bavaria
		}
	}
	random = yes
	province = 347 #Würzburg
	name = "AI_EVENT"
	desc = "Palatinate"

	action_a = {
		name = "OK"
		command = { type = independence which = PFA }
	}
}
event = {
	id = 5017037
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		exists = PFA
		NOT = { core = { province = 347 data = -1 } } #Würzburg
	}
	random = yes
	province = 347 #Würzburg
	name = "AI_EVENT"
	desc = "Palatinate"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = PFA value = 347 } #Würzburg
		command = { type = relation which = PFA value = 10 }
	}
}
event = {
	id = 5017038
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = PFA }
		NOT = { core = { province = 347 data = -1 } } #Würzburg
		AND = {
			exists = BAY
			OR = {
				event = 125021 #BAY: The Palatinate is united with Bavaria
				event = 125033 #BAY: The Palatinate is united with Bavaria
			}
			NOT = { owned = { province = 347 data = BAY } } #Würzburg
		}
	}
	random = yes
	province = 347 #Würzburg
	name = "AI_EVENT"
	desc = "Palatinate"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = BAY value = 347 } #Würzburg
		command = { type = relation which = BAY value = 10 }
	}
}

#Pomerania - Stettin
event = {
	id = 5017039
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = POM }
		NOT = { core = { province = 302 data = -1 } } #Hinterpommern
		NOT = {
			event = 291030 #SWE: The Acquisition of Pomerania
			event = 3896 #BRA: The Pommern Inheritance
			event = 132008 #BRA: The Pomeranian Inheritance
			event = 259016 #POM: The investiture of Brandenburg
			year = 1637
		}
	}
	random = yes
	province = 302 #Hinterpommern
	name = "AI_EVENT"
	desc = "Pomerania"

	action_a = {
		name = "OK"
		command = { type = independence which = POM }
	}
}
event = {
	id = 5017040
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = POM }
		NOT = { core = { province = 302 data = -1 } } #Hinterpommern
		AND = {
			exists = STT
			NOT = { owned = { province = 302 data = STT } } #Hinterpommern
		}
	}
	random = yes
	province = 302 #Hinterpommern
	name = "AI_EVENT"
	desc = "Pomerania"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = STT value = 302 } #Hinterpommern
		command = { type = relation which = STT value = 10 }
	}
}
event = {
	id = 5017041
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = POM }
		NOT = { core = { province = 302 data = -1 } } #Hinterpommern
		AND = {
			NOT = { exists = STT }
			exists = BRA
			OR = {
				event = 3896 #BRA: The Pommern Inheritance
				event = 132008 #BRA: The Pomeranian Inheritance
				event = 259016 #POM: The investiture of Brandenburg
			}
			NOT = { owned = { province = 302 data = BRA } } #Hinterpommern
		}
	}
	random = yes
	province = 302 #Hinterpommern
	name = "AI_EVENT"
	desc = "Pomerania"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = BRA value = 302 } #Hinterpommern
		command = { type = relation which = BRA value = 10 }
	}
}
event = {
	id = 5017042
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = POM }
		NOT = { core = { province = 302 data = -1 } } #Hinterpommern
		AND = {
			NOT = { exists = STT }
			NOT = { exists = BRA }
			AND = {
				exists = PRU
				event = 263014 #PRU: The Kingdom of Prussia
			}
			OR = {
				event = 3896 #BRA: The Pommern Inheritance
				event = 132008 #BRA: The Pomeranian Inheritance
				event = 259016 #POM: The investiture of Brandenburg
			}
			NOT = { owned = { province = 302 data = PRU } } #Hinterpommern
		}
	}
	random = yes
	province = 302 #Hinterpommern
	name = "AI_EVENT"
	desc = "Pomerania"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = PRU value = 302 } #Hinterpommern
		command = { type = relation which = PRU value = 10 }
	}
}
event = {
	id = 5017043
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = STT }
		NOT = { core = { province = 304 data = -1 } } #Vorpommern
		NOT = {
			event = 259000 #POM: Inheritance of Pomerania-Stettin
			AND = {
				event = 259001 #POM: Inheritance of Pomerania-Stettin
				NOT = {
					event = 132018 #BRA: Inheritance of Stettin
				}
			}
			event = 291029 #SWE: The Acquisition of Vorpommern
			event = 291030 #SWE: The Acquisition of Pomerania
			event = 3896 #BRA: The Pommern Inheritance
			event = 132008 #BRA: The Pomeranian Inheritance
			event = 259016 #POM: The investiture of Brandenburg
			year = 1570
		}
	}
	random = yes
	province = 304 #Vorpommern
	name = "AI_EVENT"
	desc = "Pomerania"

	action_a = {
		name = "OK"
		command = { type = independence which = STT }
	}
}
event = {
	id = 5017044
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = STT }
		NOT = { core = { province = 304 data = -1 } } #Vorpommern
		AND = {
			exists = POM
			OR = {
				event = 259000 #POM: Inheritance of Pomerania-Stettin
				AND = {
					event = 259001 #POM: Inheritance of Pomerania-Stettin
					NOT = {
						event = 132018 #BRA: Inheritance of Stettin
					}
				}
			}
			NOT = { owned = { province = 304 data = POM } } #Vorpommern
		}
	}
	random = yes
	province = 304 #Vorpommern
	name = "AI_EVENT"
	desc = "Pomerania"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = POM value = 304 } #Vorpommern
		command = { type = relation which = POM value = 10 }
	}
}
event = {
	id = 5017045
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = STT }
		NOT = { core = { province = 304 data = -1 } } #Vorpommern
		AND = {
			NOT = { exists = POM }
			AND = {
				exists = BRA
				OR = {
					event = 3896 #BRA: The Pommern Inheritance
					event = 132008 #BRA: The Pomeranian Inheritance
					event = 259016 #POM: The investiture of Brandenburg
				}
				NOT = { owned = { province = 304 data = BRA } } #Vorpommern
			}
		}
	}
	random = yes
	province = 304 #Vorpommern
	name = "AI_EVENT"
	desc = "Pomerania"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = BRA value = 304 } #Vorpommern
		command = { type = relation which = BRA value = 10 }
	}
}
event = {
	id = 5017046
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = POM }
		NOT = { core = { province = 304 data = -1 } } #Vorpommern
		AND = {
			NOT = { exists = POM }
			AND = {
				NOT = { exists = BRA }
				AND = {
					exists = PRU
					event = 263014 #PRU: The Kingdom of Prussia
				}
				OR = {
					event = 3896 #BRA: The Pommern Inheritance
					event = 132008 #BRA: The Pomeranian Inheritance
					event = 259016 #POM: The investiture of Brandenburg
				}
				NOT = { owned = { province = 304 data = PRU } } #Vorpommern
			}
		}
	}
	random = yes
	province = 304 #Vorpommern
	name = "AI_EVENT"
	desc = "Pomerania"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = PRU value = 304 } #Vorpommern
		command = { type = relation which = PRU value = 10 }
	}
}

#Saxony - Meissen
#simplified version
event = {
	id = 5017048
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = {
			exists = SAC
			exists = MEI
		}
		NOT = { core = { province = 332 data = -1 } } #Anhalt
	}
	random = yes
	province = 332 #Anhalt
	name = "AI_EVENT"
	desc = "Saxony"

	action_a = {
		name = "OK"
		command = { type = independence which = SAC }
	}
}
event = {
	id = 5017049
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		exists = SAC
		NOT = { core = { province = 332 data = -1 } } #Anhalt
		NOT = { owned = { province = 332 data = SAC } } #Anhalt
	}
	random = yes
	province = 332 #Anhalt
	name = "AI_EVENT"
	desc = "Saxony"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = SAC value = 332 } #Anhalt
		command = { type = relation which = SAC value = 10 }
	}
}
event = {
	id = 5017050
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = SAC }
		NOT = { core = { province = 332 data = -1 } } #Anhalt
		AND = {
			exists = MEI
			NOT = { year = 1600 }
			NOT = { owned = { province = 332 data = MEI } } #Anhalt
		}
	}
	random = yes
	province = 332 #Anhalt
	name = "AI_EVENT"
	desc = "Saxony"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = MEI value = 332 } #Anhalt
		command = { type = relation which = MEI value = 10 }
	}
}
event = {
	id = 5017051
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		exists = SAC
		NOT = { core = { province = 331 data = -1 } } #Sachsen
		NOT = { owned = { province = 331 data = SAC } } #Sachsen
	}
	random = yes
	province = 331 #Sachsen
	name = "AI_EVENT"
	desc = "Saxony"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = SAC value = 331 } #Sachsen
		command = { type = relation which = SAC value = 10 }
	}
}
event = {
	id = 5017052
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = SAC }
		NOT = { core = { province = 331 data = -1 } } #Sachsen
		AND = {
			exists = MEI
			NOT = { year = 1600 }
			NOT = { owned = { province = 331 data = MEI } } #Sachsen
		}
	}
	random = yes
	province = 331 #Sachsen
	name = "AI_EVENT"
	desc = "Saxony"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = MEI value = 331 } #Sachsen
		command = { type = relation which = MEI value = 10 }
	}
}

#Strassburg
event = {
	id = 5017053
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = STR }
		NOT = { core = { province = 374 data = -1 } } #Alsace
	}
	random = yes
	province = 374 #Alsace
	name = "AI_EVENT"
	desc = "Strassburg"

	action_a = {
		name = "OK"
		command = { type = independence which = STR }
	}
}

#Wirtemberg
event = {
	id = 5017054
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = WUR }
		NOT = { core = { province = 372 data = -1 } } #Württemberg
		NOT = {
			AND = {
				exists = HAB
				core = { province = 372 data = HAB } #covers HAB_179004 and HAB_179006
				NOT = { owned = { province = 372 data = HAB } } #Württemberg
			}
		}
	}
	random = yes
	province = 372 #Württemberg
	name = "AI_EVENT"
	desc = "Wirtemberg"

	action_a = {
		name = "OK"
		command = { type = independence which = WUR }
	}
}
event = {
	id = 5017055
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = WUR }
		NOT = { core = { province = 372 data = -1 } } #Württemberg
		AND = {
			exists = HAB
			core = { province = 372 data = HAB } #covers HAB_179004 and HAB_179006
		}
	}
	random = yes
	province = 372 #Württemberg
	name = "AI_EVENT"
	desc = "Wirtemberg"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = HAB value = 372 } #Württemberg
		command = { type = relation which = HAB value = 10 }
	}
}

#-----------------------------------------------------------------------------------------------

#-----------------------------------------------------------------------------------------------

#Baden
event = {
	id = 5018000
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = BAD }
		NOT = { core = { province = 373 data = -1 } } #Baden
	}
	random = yes
	province = 349 #Baden
	name = "AI_EVENT"
	desc = "Baden"

	action_a = {
		name = "OK"
		command = { type = independence which = BAD }
	}
}

#Bavaria
event = {
	id = 5018001
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = BAY }
		NOT = { core = { province = 349 data = -1 } } #Bayern
		NOT = {
			AND = {
				event = 255003 #PFA: The Palatinate inherits Bavaria
				NOT = {
					event = 125021 #BAY: The Palatinate is united with Bavaria
					event = 125033 #BAY: The Palatinate is united with Bavaria (Palatinate inherited Burgundy)
				}
			}
			event = 255008 #PFA: The Wittelsbach inheritance of Bavaria
		}
	}
	random = yes
	province = 349 #Bayern
	name = "AI_EVENT"
	desc = "Bavaria"

	action_a = {
		name = "OK"
		command = { type = independence which = BAY }
	}
}
event = {
	id = 5018002
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		exists = BAY
		NOT = { core = { province = 349 data = -1 } } #Bayern
		NOT = { owned = { province = 349 data = BAY } } #Bayern
	}
	random = yes
	province = 349 #Bayern
	name = "AI_EVENT"
	desc = "Bavaria"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = BAY value = 349 } #Bayern
		command = { type = relation which = BAY value = 10 }
	}
}
event = {
	id = 5018003
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = BAY }
		NOT = { core = { province = 349 data = -1 } } #Bayern
		AND = {
			exists = PFA
			OR = {
				AND = {
					event = 255003 #PFA: The Palatinate inherits Bavaria
					NOT = {
						event = 125021 #BAY: The Palatinate is united with Bavaria
						event = 125033 #BAY: The Palatinate is united with Bavaria (Palatinate inherited Burgundy)
					}
				}
				event = 255008 #PFA: The Wittelsbach inheritance of Bavaria
			}
			NOT = { owned = { province = 349 data = PFA } } #Bayern
		}
	}
	random = yes
	province = 349 #Bayern
	name = "AI_EVENT"
	desc = "Bavaria"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = PFA value = 349 } #Bayern
		command = { type = relation which = PFA value = 10 }
	}
}
event = {
	id = 5018004
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = BAY }
		NOT = { owned = { province = 349 data = -1 } } #Bayern
		NOT = { core = { province = 348 data = -1 } } #Ansbach
		year = 1430 #LUX and HAB before
		NOT = {
			AND = {
				event = 255003 #PFA: The Palatinate inherits Bavaria
				NOT = {
					event = 125021 #BAY: The Palatinate is united with Bavaria
					event = 125033 #BAY: The Palatinate is united with Bavaria (Palatinate inherited Burgundy)
				}
			}
			event = 255008 #PFA: The Wittelsbach inheritance of Bavaria
			event = 125035 #BAY: Straubing is ceded to Austria
			event = 255009 #PFA: Straubing is ceded to Austria
		}
	}
	random = yes
	province = 348 #Ansbach
	name = "AI_EVENT"
	desc = "Bavaria"

	action_a = {
		name = "OK"
		command = { type = independence which = BAY }
	}
}
event = {
	id = 5018005
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		exists = BAY
		NOT = { core = { province = 348 data = -1 } } #Ansbach
		year = 1430 #LUX and HAB before
		NOT = {
			AND = {
				exists = HAB
				OR = {
					event = 125035 #BAY: Straubing is ceded to Austria
					event = 255009 #PFA: Straubing is ceded to Austria
				}
			}
			NOT = { owned = { province = 348 data = BAY } } #Ansbach
		}
	}
	random = yes
	province = 348 #Ansbach
	name = "AI_EVENT"
	desc = "Bavaria"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = BAY value = 348 } #Ansbach
		command = { type = relation which = BAY value = 10 }
	}
}
event = {
	id = 5018006
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = BAY }
		NOT = { core = { province = 348 data = -1 } } #Ansbach
		year = 1430 #LUX and HAB before
		AND = {
			exists = PFA
			OR = {
				AND = {
					event = 255003 #PFA: The Palatinate inherits Bavaria
					NOT = {
						event = 125021 #BAY: The Palatinate is united with Bavaria
						event = 125033 #BAY: The Palatinate is united with Bavaria (Palatinate inherited Burgundy)
					}
				}
				event = 255008 #PFA: The Wittelsbach inheritance of Bavaria
			}
			NOT = {
				AND = {
					exists = HAB
					OR = {
						event = 125035 #BAY: Straubing is ceded to Austria
						event = 255009 #PFA: Straubing is ceded to Austria
					}
				}
			}
			NOT = { owned = { province = 348 data = PFA } } #Ansbach
		}
	}
	random = yes
	province = 348 #Ansbach
	name = "AI_EVENT"
	desc = "Bavaria"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = PFA value = 348 } #Ansbach
		command = { type = relation which = PFA value = 10 }
	}
}
event = {
	id = 5018007
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { core = { province = 348 data = -1 } } #Ansbach
		year = 1430 #LUX and HAB before
		AND = {
			exists = HAB
			OR = {
				event = 125035 #BAY: Straubing is ceded to Austria
				event = 255009 #PFA: Straubing is ceded to Austria
			}
			NOT = { owned = { province = 348 data = HAB } } #Ansbach
		}
	}
	random = yes
	province = 348 #Ansbach
	name = "AI_EVENT"
	desc = "Bavaria"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = HAB value = 348 } #Ansbach
		command = { type = relation which = HAB value = 10 }
	}
}

#Berg
#simplified version
event = {
	id = 5018008
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = BRG }
		NOT = { core = { province = 343 data = -1 } } #Kleves
		NOT = { year = 1609 }
	}
	random = yes
	province = 334 #Kleves
	name = "AI_EVENT"
	desc = "Berg"

	action_a = {
		name = "OK"
		command = { type = independence which = BRG }
	}
}

#Brandenburg - Prussia
event = {
	id = 5018009
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = BRA }
		NOT = { core = { province = 312 data = -1 } } #Brandenburg
		NOT = {
			AND = {
				exists = PRU
				event = 263014 #PRU: The Kingdom of Prussia
			}
		}
	}
	random = yes
	province = 312 #Brandenburg
	name = "AI_EVENT"
	desc = "Brandenburg"

	action_a = {
		name = "OK"
		command = { type = independence which = BRA }
	}
}
event = {
	id = 5018011
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = BRA }
		NOT = { core = { province = 312 data = -1 } } #Brandenburg
		AND = {
			exists = PRU
			event = 263014 #PRU: The Kingdom of Prussia
			NOT = { owned = { province = 312 data = PRU } } #Brandenburg
		}
	}
	random = yes
	province = 312 #Brandenburg
	name = "AI_EVENT"
	desc = "Brandenburg"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = PRU value = 312 } #Brandenburg
		command = { type = relation which = PRU value = 10 }
	}
}
event = {
	id = 5018012
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = BRA }
		NOT = { core = { province = 313 data = -1 } } #Küstrin
		NOT = { owned = { province = 312 data = -1 } } #Brandenburg
		NOT = {
			AND = {
				exists = PRU
				event = 263014 #PRU: The Kingdom of Prussia
			}
		}
	}
	random = yes
	province = 313 #Küstrin
	name = "AI_EVENT"
	desc = "Brandenburg"

	action_a = {
		name = "OK"
		command = { type = independence which = BRA }
	}
}
event = {
	id = 5018014
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		exists = BRA
		NOT = { core = { province = 313 data = -1 } } #Küstrin
		NOT = { owned = { province = 313 data = BRA } } #Küstrin
	}
	random = yes
	province = 313 #Küstrin
	name = "AI_EVENT"
	desc = "Brandenburg"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = BRA value = 313 } #Küstrin
		command = { type = relation which = BRA value = 10 }
	}
}
event = {
	id = 5018015
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = BRA }
		NOT = { core = { province = 313 data = -1 } } #Küstrin
		AND = {
			exists = PRU
			event = 263014 #PRU: The Kingdom of Prussia
			NOT = { owned = { province = 312 data = PRU } } #Brandenburg
		}
	}
	random = yes
	province = 313 #Küstrin
	name = "AI_EVENT"
	desc = "Brandenburg"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = PRU value = 313 } #Küstrin
		command = { type = relation which = PRU value = 10 }
	}
}
event = {
	id = 5018016
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		exists = BRA
		NOT = { core = { province = 311 data = -1 } } #Magdeburg
		NOT = { owned = { province = 311 data = BRA } } #Magdeburg
	}
	random = yes
	province = 311 #Magdeburg
	name = "AI_EVENT"
	desc = "Brandenburg"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = BRA value = 311 } #Magdeburg
		command = { type = relation which = BRA value = 10 }
	}
}
event = {
	id = 5018017
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = BRA }
		NOT = { core = { province = 311 data = -1 } } #Magdeburg
		AND = {
			exists = PRU
			event = 263014 #PRU: The Kingdom of Prussia
			NOT = { owned = { province = 311 data = PRU } } #Magdeburg
		}
	}
	random = yes
	province = 311 #Magdeburg
	name = "AI_EVENT"
	desc = "Brandenburg"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = PRU value = 311 } #Magdeburg
		command = { type = relation which = PRU value = 10 }
	}
}

#Bremen
event = {
	id = 5018018
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = BRE }
		NOT = { core = { province = 336 data = -1 } } #Bremen
	}
	random = yes
	province = 336 #Bremen
	name = "AI_EVENT"
	desc = "Bremen"

	action_a = {
		name = "OK"
		command = { type = independence which = BRE }
	}
}

#Cleves
#simplified version
event = {
	id = 5018019
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = KLE }
		NOT = { core = { province = 334 data = -1 } } #Münster
		NOT = {
			event = 235009 #BRG: Union with Kleve-Mark
			year = 1609
		}
	}
	random = yes
	province = 334 #Münster
	name = "AI_EVENT"
	desc = "Cleves"

	action_a = {
		name = "OK"
		command = { type = independence which = KLE }
	}
}
event = {
	id = 5018020
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = KLE }
		NOT = { core = { province = 334 data = -1 } } #Münster
		AND = {
			exists = BRG
			event = 235009 #BRG: Union with Kleve-Mark
			NOT = { owned = { province = 334 data = BRG } } #Münster
			NOT = { year = 1609 }
		}
	}
	random = yes
	province = 334 #Münster
	name = "AI_EVENT"
	desc = "Cleves"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = BRG value = 334 } #Münster
		command = { type = relation which = BRG value = 10 }
	}
}

#Cologne
event = {
	id = 5018021
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = KOL }
		NOT = { core = { province = 344 data = -1 } } #Köln
	}
	random = yes
	province = 344 #Köln
	name = "AI_EVENT"
	desc = "Cologne"

	action_a = {
		name = "OK"
		command = { type = independence which = KOL }
	}
}

#Hanover
event = {
	id = 5018022
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = HAN }
		NOT = { core = { province = 310 data = -1 } } #Hannover
	}
	random = yes
	province = 310 #Hannover
	name = "AI_EVENT"
	desc = "Hanover"

	action_a = {
		name = "OK"
		command = { type = independence which = HAN }
	}
}

#Hesse
event = {
	id = 5018023
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = HES }
		NOT = { core = { province = 333 data = -1 } } #Hessen
	}
	random = yes
	province = 333 #Hessen
	name = "AI_EVENT"
	desc = "Hesse"

	action_a = {
		name = "OK"
		command = { type = independence which = HES }
	}
}

#Holstein
event = {
	id = 5018024
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = SHL }
		NOT = { core = { province = 306 data = -1 } } #Holstein
		NOT = {
			AND = {
				event = 159034 #DAN: Denmark inherits Holstein
				NOT = { event = 159011 } #DAN: The fate of Holstein
			}
			event = 247002 #OLD: Oldenburg inherits Holstein
		}
	}
	random = yes
	province = 306 #Holstein
	name = "AI_EVENT"
	desc = "Holstein"

	action_a = {
		name = "OK"
		command = { type = independence which = SHL }
	}
}
event = {
	id = 5018010
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = SHL }
		NOT = { core = { province = 306 data = -1 } } #Holstein
		AND = {
			exists = OLD
			event = 247002 #OLD: Oldenburg inherits Holstein
			NOT = { owned = { province = 306 data = OLD } } #Holstein
		}
	}
	random = yes
	province = 306 #Holstein
	name = "AI_EVENT"
	desc = "Holstein"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = OLD value = 306 } #Holstein
		command = { type = relation which = OLD value = 10 }
	}
}

#Lorraine
event = {
	id = 5018026
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = LOR }
		NOT = { core = { province = 375 data = -1 } } #Lorraine
		NOT = {
			event = 3736 #FRA: French Inheritance of Lothringen
			year = 1766
		}
	}
	random = yes
	province = 375 #Lorraine
	name = "AI_EVENT"
	desc = "Lorraine"

	action_a = {
		name = "OK"
		command = { type = independence which = LOR }
	}
}

#Luxemburg
event = {
	id = 5018028
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = LUX }
		NOT = { core = { province = 377 data = -1 } } #Luxembourg
		NOT = {
			event = 137306 #BUR: Annexation of Luxemburg
			year = 1451 #Burgundian monarchs
		}
	}
	random = yes
	province = 377 #Luxembourg
	name = "AI_EVENT"
	desc = "Luxemburg"

	action_a = {
		name = "OK"
		command = { type = independence which = LUX }
	}
}
event = {
	id = 5018029
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = LUX }
		NOT = { core = { province = 377 data = -1 } } #Luxembourg
		AND = {
			exists = BUR
			event = 137306 #BUR: Annexation of Luxemburg
			NOT = { owned = { province = 377 data = BUR } } #Luxembourg
		}
	}
	random = yes
	province = 377 #Luxembourg
	name = "AI_EVENT"
	desc = "Luxemburg"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = BUR value = 377 } #Luxembourg
		command = { type = relation which = BUR value = 10 }
	}
}

#Mainz
event = {
	id = 5018030
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = MAI }
		NOT = { core = { province = 346 data = -1 } } #Mainz
	}
	random = yes
	province = 346 #Mainz
	name = "AI_EVENT"
	desc = "Mainz"

	action_a = {
		name = "OK"
		command = { type = independence which = MAI }
	}
}

#Mecklenburg
event = {
	id = 5018031
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = MEC }
		NOT = { core = { province = 305 data = -1 } } #Mecklenburg
	}
	random = yes
	province = 305 #Mecklenburg
	name = "AI_EVENT"
	desc = "Mecklenburg"

	action_a = {
		name = "OK"
		command = { type = independence which = MEC }
	}
}

#Oldenburg
event = {
	id = 5018032
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = OLD }
		NOT = { core = { province = 335 data = -1 } } #Oldenburg
		NOT = {
			event = 159033 #DAN: Oldenburg is incorporated into Denmark
			event = 279010 #SHL: Holstein inherits Oldenburg
		}
	}
	random = yes
	province = 335 #Oldenburg
	name = "AI_EVENT"
	desc = "Oldenburg"

	action_a = {
		name = "OK"
		command = { type = independence which = OLD }
	}
}
event = {
	id = 5018013
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = OLD }
		NOT = { core = { province = 335 data = -1 } } #Oldenburg
		AND = {
			exists = SHL
			event = 279010 #SHL: Holstein inherits Oldenburg
			NOT = { owned = { province = 335 data = SHL } } #Oldenburg
		}
	}
	random = yes
	province = 335 #Oldenburg
	name = "AI_EVENT"
	desc = "Oldenburg"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = SHL value = 335 } #Oldenburg
		command = { type = relation which = SHL value = 10 }
	}
}

#Palatinate
event = {
	id = 5018033
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = PFA }
		NOT = { core = { province = 345 data = -1 } } #Pfalz
		NOT = {
			event = 125021 #BAY: The Palatinate is united with Bavaria
			event = 125033 #BAY: The Palatinate is united with Bavaria
		}
	}
	random = yes
	province = 345 #Pfalz
	name = "AI_EVENT"
	desc = "Palatinate"

	action_a = {
		name = "OK"
		command = { type = independence which = PFA }
	}
}
event = {
	id = 5018034
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		exists = PFA
		NOT = { core = { province = 345 data = -1 } } #Pfalz
	}
	random = yes
	province = 345 #Pfalz
	name = "AI_EVENT"
	desc = "Palatinate"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = PFA value = 345 } #Pfalz
		command = { type = relation which = PFA value = 10 }
	}
}
event = {
	id = 5018035
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = PFA }
		NOT = { core = { province = 345 data = -1 } } #Pfalz
		AND = {
			exists = BAY
			OR = {
				event = 125021 #BAY: The Palatinate is united with Bavaria
				event = 125033 #BAY: The Palatinate is united with Bavaria
			}
			NOT = { owned = { province = 345 data = BAY } } #Pfalz
		}
	}
	random = yes
	province = 345 #Pfalz
	name = "AI_EVENT"
	desc = "Palatinate"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = BAY value = 345 } #Pfalz
		command = { type = relation which = BAY value = 10 }
	}
}
event = {
	id = 5018036
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = PFA }
		NOT = { owned = { province = 345 data = -1 } } #Pfalz
		NOT = { core = { province = 347 data = -1 } } #Würzburg
		NOT = {
			event = 125021 #BAY: The Palatinate is united with Bavaria
			event = 125033 #BAY: The Palatinate is united with Bavaria
		}
	}
	random = yes
	province = 347 #Würzburg
	name = "AI_EVENT"
	desc = "Palatinate"

	action_a = {
		name = "OK"
		command = { type = independence which = PFA }
	}
}
event = {
	id = 5018037
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		exists = PFA
		NOT = { core = { province = 347 data = -1 } } #Würzburg
	}
	random = yes
	province = 347 #Würzburg
	name = "AI_EVENT"
	desc = "Palatinate"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = PFA value = 347 } #Würzburg
		command = { type = relation which = PFA value = 10 }
	}
}
event = {
	id = 5018038
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = PFA }
		NOT = { core = { province = 347 data = -1 } } #Würzburg
		AND = {
			exists = BAY
			OR = {
				event = 125021 #BAY: The Palatinate is united with Bavaria
				event = 125033 #BAY: The Palatinate is united with Bavaria
			}
			NOT = { owned = { province = 347 data = BAY } } #Würzburg
		}
	}
	random = yes
	province = 347 #Würzburg
	name = "AI_EVENT"
	desc = "Palatinate"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = BAY value = 347 } #Würzburg
		command = { type = relation which = BAY value = 10 }
	}
}

#Pomerania - Stettin
event = {
	id = 5018039
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = POM }
		NOT = { core = { province = 302 data = -1 } } #Hinterpommern
		NOT = {
			event = 291030 #SWE: The Acquisition of Pomerania
			event = 3896 #BRA: The Pommern Inheritance
			event = 132008 #BRA: The Pomeranian Inheritance
			event = 259016 #POM: The investiture of Brandenburg
			year = 1637
		}
	}
	random = yes
	province = 302 #Hinterpommern
	name = "AI_EVENT"
	desc = "Pomerania"

	action_a = {
		name = "OK"
		command = { type = independence which = POM }
	}
}
event = {
	id = 5018040
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = POM }
		NOT = { core = { province = 302 data = -1 } } #Hinterpommern
		AND = {
			exists = STT
			NOT = { owned = { province = 302 data = STT } } #Hinterpommern
		}
	}
	random = yes
	province = 302 #Hinterpommern
	name = "AI_EVENT"
	desc = "Pomerania"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = STT value = 302 } #Hinterpommern
		command = { type = relation which = STT value = 10 }
	}
}
event = {
	id = 5018041
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = POM }
		NOT = { core = { province = 302 data = -1 } } #Hinterpommern
		AND = {
			NOT = { exists = STT }
			exists = BRA
			OR = {
				event = 3896 #BRA: The Pommern Inheritance
				event = 132008 #BRA: The Pomeranian Inheritance
				event = 259016 #POM: The investiture of Brandenburg
			}
			NOT = { owned = { province = 302 data = BRA } } #Hinterpommern
		}
	}
	random = yes
	province = 302 #Hinterpommern
	name = "AI_EVENT"
	desc = "Pomerania"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = BRA value = 302 } #Hinterpommern
		command = { type = relation which = BRA value = 10 }
	}
}
event = {
	id = 5018042
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = POM }
		NOT = { core = { province = 302 data = -1 } } #Hinterpommern
		AND = {
			NOT = { exists = STT }
			NOT = { exists = BRA }
			AND = {
				exists = PRU
				event = 263014 #PRU: The Kingdom of Prussia
			}
			OR = {
				event = 3896 #BRA: The Pommern Inheritance
				event = 132008 #BRA: The Pomeranian Inheritance
				event = 259016 #POM: The investiture of Brandenburg
			}
			NOT = { owned = { province = 302 data = PRU } } #Hinterpommern
		}
	}
	random = yes
	province = 302 #Hinterpommern
	name = "AI_EVENT"
	desc = "Pomerania"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = PRU value = 302 } #Hinterpommern
		command = { type = relation which = PRU value = 10 }
	}
}
event = {
	id = 5018043
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = STT }
		NOT = { core = { province = 304 data = -1 } } #Vorpommern
		NOT = {
			event = 259000 #POM: Inheritance of Pomerania-Stettin
			AND = {
				event = 259001 #POM: Inheritance of Pomerania-Stettin
				NOT = {
					event = 132018 #BRA: Inheritance of Stettin
				}
			}
			event = 291029 #SWE: The Acquisition of Vorpommern
			event = 291030 #SWE: The Acquisition of Pomerania
			event = 3896 #BRA: The Pommern Inheritance
			event = 132008 #BRA: The Pomeranian Inheritance
			event = 259016 #POM: The investiture of Brandenburg
			year = 1570
		}
	}
	random = yes
	province = 304 #Vorpommern
	name = "AI_EVENT"
	desc = "Pomerania"

	action_a = {
		name = "OK"
		command = { type = independence which = STT }
	}
}
event = {
	id = 5018044
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = STT }
		NOT = { core = { province = 304 data = -1 } } #Vorpommern
		AND = {
			exists = POM
			OR = {
				event = 259000 #POM: Inheritance of Pomerania-Stettin
				AND = {
					event = 259001 #POM: Inheritance of Pomerania-Stettin
					NOT = {
						event = 132018 #BRA: Inheritance of Stettin
					}
				}
			}
			NOT = { owned = { province = 304 data = POM } } #Vorpommern
		}
	}
	random = yes
	province = 304 #Vorpommern
	name = "AI_EVENT"
	desc = "Pomerania"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = POM value = 304 } #Vorpommern
		command = { type = relation which = POM value = 10 }
	}
}
event = {
	id = 5018045
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = STT }
		NOT = { core = { province = 304 data = -1 } } #Vorpommern
		AND = {
			NOT = { exists = POM }
			AND = {
				exists = BRA
				OR = {
					event = 3896 #BRA: The Pommern Inheritance
					event = 132008 #BRA: The Pomeranian Inheritance
					event = 259016 #POM: The investiture of Brandenburg
				}
				NOT = { owned = { province = 304 data = BRA } } #Vorpommern
			}
		}
	}
	random = yes
	province = 304 #Vorpommern
	name = "AI_EVENT"
	desc = "Pomerania"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = BRA value = 304 } #Vorpommern
		command = { type = relation which = BRA value = 10 }
	}
}
event = {
	id = 5018046
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = POM }
		NOT = { core = { province = 304 data = -1 } } #Vorpommern
		AND = {
			NOT = { exists = POM }
			AND = {
				NOT = { exists = BRA }
				AND = {
					exists = PRU
					event = 263014 #PRU: The Kingdom of Prussia
				}
				OR = {
					event = 3896 #BRA: The Pommern Inheritance
					event = 132008 #BRA: The Pomeranian Inheritance
					event = 259016 #POM: The investiture of Brandenburg
				}
				NOT = { owned = { province = 304 data = PRU } } #Vorpommern
			}
		}
	}
	random = yes
	province = 304 #Vorpommern
	name = "AI_EVENT"
	desc = "Pomerania"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = PRU value = 304 } #Vorpommern
		command = { type = relation which = PRU value = 10 }
	}
}

#Saxony - Meissen
#simplified version
event = {
	id = 5018048
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = {
			exists = SAC
			exists = MEI
		}
		NOT = { core = { province = 332 data = -1 } } #Anhalt
	}
	random = yes
	province = 332 #Anhalt
	name = "AI_EVENT"
	desc = "Saxony"

	action_a = {
		name = "OK"
		command = { type = independence which = SAC }
	}
}
event = {
	id = 5018049
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		exists = SAC
		NOT = { core = { province = 332 data = -1 } } #Anhalt
		NOT = { owned = { province = 332 data = SAC } } #Anhalt
	}
	random = yes
	province = 332 #Anhalt
	name = "AI_EVENT"
	desc = "Saxony"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = SAC value = 332 } #Anhalt
		command = { type = relation which = SAC value = 10 }
	}
}
event = {
	id = 5018050
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = SAC }
		NOT = { core = { province = 332 data = -1 } } #Anhalt
		AND = {
			exists = MEI
			NOT = { year = 1600 }
			NOT = { owned = { province = 332 data = MEI } } #Anhalt
		}
	}
	random = yes
	province = 332 #Anhalt
	name = "AI_EVENT"
	desc = "Saxony"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = MEI value = 332 } #Anhalt
		command = { type = relation which = MEI value = 10 }
	}
}
event = {
	id = 5018051
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		exists = SAC
		NOT = { core = { province = 331 data = -1 } } #Sachsen
		NOT = { owned = { province = 331 data = SAC } } #Sachsen
	}
	random = yes
	province = 331 #Sachsen
	name = "AI_EVENT"
	desc = "Saxony"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = SAC value = 331 } #Sachsen
		command = { type = relation which = SAC value = 10 }
	}
}
event = {
	id = 5018052
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = SAC }
		NOT = { core = { province = 331 data = -1 } } #Sachsen
		AND = {
			exists = MEI
			NOT = { year = 1600 }
			NOT = { owned = { province = 331 data = MEI } } #Sachsen
		}
	}
	random = yes
	province = 331 #Sachsen
	name = "AI_EVENT"
	desc = "Saxony"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = MEI value = 331 } #Sachsen
		command = { type = relation which = MEI value = 10 }
	}
}

#Strassburg
event = {
	id = 5018053
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = STR }
		NOT = { core = { province = 374 data = -1 } } #Alsace
	}
	random = yes
	province = 374 #Alsace
	name = "AI_EVENT"
	desc = "Strassburg"

	action_a = {
		name = "OK"
		command = { type = independence which = STR }
	}
}

#Wirtemberg
event = {
	id = 5018054
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = WUR }
		NOT = { core = { province = 372 data = -1 } } #Württemberg
		NOT = {
			AND = {
				exists = HAB
				core = { province = 372 data = HAB } #covers HAB_179004 and HAB_179006
				NOT = { owned = { province = 372 data = HAB } } #Württemberg
			}
		}
	}
	random = yes
	province = 372 #Württemberg
	name = "AI_EVENT"
	desc = "Wirtemberg"

	action_a = {
		name = "OK"
		command = { type = independence which = WUR }
	}
}
event = {
	id = 5018055
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = WUR }
		NOT = { core = { province = 372 data = -1 } } #Württemberg
		AND = {
			exists = HAB
			core = { province = 372 data = HAB } #covers HAB_179004 and HAB_179006
		}
	}
	random = yes
	province = 372 #Württemberg
	name = "AI_EVENT"
	desc = "Wirtemberg"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = HAB value = 372 } #Württemberg
		command = { type = relation which = HAB value = 10 }
	}
}

#-----------------------------------------------------------------------------------------------

#-----------------------------------------------------------------------------------------------

#Baden
event = {
	id = 5019000
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = BAD }
		NOT = { core = { province = 373 data = -1 } } #Baden
	}
	random = yes
	province = 349 #Baden
	name = "AI_EVENT"
	desc = "Baden"

	action_a = {
		name = "OK"
		command = { type = independence which = BAD }
	}
}

#Bavaria
event = {
	id = 5019001
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = BAY }
		NOT = { core = { province = 349 data = -1 } } #Bayern
		NOT = {
			AND = {
				event = 255003 #PFA: The Palatinate inherits Bavaria
				NOT = {
					event = 125021 #BAY: The Palatinate is united with Bavaria
					event = 125033 #BAY: The Palatinate is united with Bavaria (Palatinate inherited Burgundy)
				}
			}
			event = 255008 #PFA: The Wittelsbach inheritance of Bavaria
		}
	}
	random = yes
	province = 349 #Bayern
	name = "AI_EVENT"
	desc = "Bavaria"

	action_a = {
		name = "OK"
		command = { type = independence which = BAY }
	}
}
event = {
	id = 5019002
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		exists = BAY
		NOT = { core = { province = 349 data = -1 } } #Bayern
		NOT = { owned = { province = 349 data = BAY } } #Bayern
	}
	random = yes
	province = 349 #Bayern
	name = "AI_EVENT"
	desc = "Bavaria"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = BAY value = 349 } #Bayern
		command = { type = relation which = BAY value = 10 }
	}
}
event = {
	id = 5019003
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = BAY }
		NOT = { core = { province = 349 data = -1 } } #Bayern
		AND = {
			exists = PFA
			OR = {
				AND = {
					event = 255003 #PFA: The Palatinate inherits Bavaria
					NOT = {
						event = 125021 #BAY: The Palatinate is united with Bavaria
						event = 125033 #BAY: The Palatinate is united with Bavaria (Palatinate inherited Burgundy)
					}
				}
				event = 255008 #PFA: The Wittelsbach inheritance of Bavaria
			}
			NOT = { owned = { province = 349 data = PFA } } #Bayern
		}
	}
	random = yes
	province = 349 #Bayern
	name = "AI_EVENT"
	desc = "Bavaria"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = PFA value = 349 } #Bayern
		command = { type = relation which = PFA value = 10 }
	}
}
event = {
	id = 5019004
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = BAY }
		NOT = { owned = { province = 349 data = -1 } } #Bayern
		NOT = { core = { province = 348 data = -1 } } #Ansbach
		year = 1430 #LUX and HAB before
		NOT = {
			AND = {
				event = 255003 #PFA: The Palatinate inherits Bavaria
				NOT = {
					event = 125021 #BAY: The Palatinate is united with Bavaria
					event = 125033 #BAY: The Palatinate is united with Bavaria (Palatinate inherited Burgundy)
				}
			}
			event = 255008 #PFA: The Wittelsbach inheritance of Bavaria
			event = 125035 #BAY: Straubing is ceded to Austria
			event = 255009 #PFA: Straubing is ceded to Austria
		}
	}
	random = yes
	province = 348 #Ansbach
	name = "AI_EVENT"
	desc = "Bavaria"

	action_a = {
		name = "OK"
		command = { type = independence which = BAY }
	}
}
event = {
	id = 5019005
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		exists = BAY
		NOT = { core = { province = 348 data = -1 } } #Ansbach
		year = 1430 #LUX and HAB before
		NOT = {
			AND = {
				exists = HAB
				OR = {
					event = 125035 #BAY: Straubing is ceded to Austria
					event = 255009 #PFA: Straubing is ceded to Austria
				}
			}
			NOT = { owned = { province = 348 data = BAY } } #Ansbach
		}
	}
	random = yes
	province = 348 #Ansbach
	name = "AI_EVENT"
	desc = "Bavaria"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = BAY value = 348 } #Ansbach
		command = { type = relation which = BAY value = 10 }
	}
}
event = {
	id = 5019006
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = BAY }
		NOT = { core = { province = 348 data = -1 } } #Ansbach
		year = 1430 #LUX and HAB before
		AND = {
			exists = PFA
			OR = {
				AND = {
					event = 255003 #PFA: The Palatinate inherits Bavaria
					NOT = {
						event = 125021 #BAY: The Palatinate is united with Bavaria
						event = 125033 #BAY: The Palatinate is united with Bavaria (Palatinate inherited Burgundy)
					}
				}
				event = 255008 #PFA: The Wittelsbach inheritance of Bavaria
			}
			NOT = {
				AND = {
					exists = HAB
					OR = {
						event = 125035 #BAY: Straubing is ceded to Austria
						event = 255009 #PFA: Straubing is ceded to Austria
					}
				}
			}
			NOT = { owned = { province = 348 data = PFA } } #Ansbach
		}
	}
	random = yes
	province = 348 #Ansbach
	name = "AI_EVENT"
	desc = "Bavaria"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = PFA value = 348 } #Ansbach
		command = { type = relation which = PFA value = 10 }
	}
}
event = {
	id = 5019007
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { core = { province = 348 data = -1 } } #Ansbach
		year = 1430 #LUX and HAB before
		AND = {
			exists = HAB
			OR = {
				event = 125035 #BAY: Straubing is ceded to Austria
				event = 255009 #PFA: Straubing is ceded to Austria
			}
			NOT = { owned = { province = 348 data = HAB } } #Ansbach
		}
	}
	random = yes
	province = 348 #Ansbach
	name = "AI_EVENT"
	desc = "Bavaria"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = HAB value = 348 } #Ansbach
		command = { type = relation which = HAB value = 10 }
	}
}

#Berg
#simplified version
event = {
	id = 5019008
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = BRG }
		NOT = { core = { province = 343 data = -1 } } #Kleves
		NOT = { year = 1609 }
	}
	random = yes
	province = 334 #Kleves
	name = "AI_EVENT"
	desc = "Berg"

	action_a = {
		name = "OK"
		command = { type = independence which = BRG }
	}
}

#Brandenburg - Prussia
event = {
	id = 5019009
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = BRA }
		NOT = { core = { province = 312 data = -1 } } #Brandenburg
		NOT = {
			AND = {
				exists = PRU
				event = 263014 #PRU: The Kingdom of Prussia
			}
		}
	}
	random = yes
	province = 312 #Brandenburg
	name = "AI_EVENT"
	desc = "Brandenburg"

	action_a = {
		name = "OK"
		command = { type = independence which = BRA }
	}
}
event = {
	id = 5019011
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = BRA }
		NOT = { core = { province = 312 data = -1 } } #Brandenburg
		AND = {
			exists = PRU
			event = 263014 #PRU: The Kingdom of Prussia
			NOT = { owned = { province = 312 data = PRU } } #Brandenburg
		}
	}
	random = yes
	province = 312 #Brandenburg
	name = "AI_EVENT"
	desc = "Brandenburg"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = PRU value = 312 } #Brandenburg
		command = { type = relation which = PRU value = 10 }
	}
}
event = {
	id = 5019012
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = BRA }
		NOT = { core = { province = 313 data = -1 } } #Küstrin
		NOT = { owned = { province = 312 data = -1 } } #Brandenburg
		NOT = {
			AND = {
				exists = PRU
				event = 263014 #PRU: The Kingdom of Prussia
			}
		}
	}
	random = yes
	province = 313 #Küstrin
	name = "AI_EVENT"
	desc = "Brandenburg"

	action_a = {
		name = "OK"
		command = { type = independence which = BRA }
	}
}
event = {
	id = 5019014
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		exists = BRA
		NOT = { core = { province = 313 data = -1 } } #Küstrin
		NOT = { owned = { province = 313 data = BRA } } #Küstrin
	}
	random = yes
	province = 313 #Küstrin
	name = "AI_EVENT"
	desc = "Brandenburg"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = BRA value = 313 } #Küstrin
		command = { type = relation which = BRA value = 10 }
	}
}
event = {
	id = 5019015
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = BRA }
		NOT = { core = { province = 313 data = -1 } } #Küstrin
		AND = {
			exists = PRU
			event = 263014 #PRU: The Kingdom of Prussia
			NOT = { owned = { province = 312 data = PRU } } #Brandenburg
		}
	}
	random = yes
	province = 313 #Küstrin
	name = "AI_EVENT"
	desc = "Brandenburg"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = PRU value = 313 } #Küstrin
		command = { type = relation which = PRU value = 10 }
	}
}
event = {
	id = 5019016
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		exists = BRA
		NOT = { core = { province = 311 data = -1 } } #Magdeburg
		NOT = { owned = { province = 311 data = BRA } } #Magdeburg
	}
	random = yes
	province = 311 #Magdeburg
	name = "AI_EVENT"
	desc = "Brandenburg"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = BRA value = 311 } #Magdeburg
		command = { type = relation which = BRA value = 10 }
	}
}
event = {
	id = 5019017
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = BRA }
		NOT = { core = { province = 311 data = -1 } } #Magdeburg
		AND = {
			exists = PRU
			event = 263014 #PRU: The Kingdom of Prussia
			NOT = { owned = { province = 311 data = PRU } } #Magdeburg
		}
	}
	random = yes
	province = 311 #Magdeburg
	name = "AI_EVENT"
	desc = "Brandenburg"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = PRU value = 311 } #Magdeburg
		command = { type = relation which = PRU value = 10 }
	}
}

#Bremen
event = {
	id = 5019018
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = BRE }
		NOT = { core = { province = 336 data = -1 } } #Bremen
	}
	random = yes
	province = 336 #Bremen
	name = "AI_EVENT"
	desc = "Bremen"

	action_a = {
		name = "OK"
		command = { type = independence which = BRE }
	}
}

#Cleves
#simplified version
event = {
	id = 5019019
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = KLE }
		NOT = { core = { province = 334 data = -1 } } #Münster
		NOT = {
			event = 235009 #BRG: Union with Kleve-Mark
			year = 1609
		}
	}
	random = yes
	province = 334 #Münster
	name = "AI_EVENT"
	desc = "Cleves"

	action_a = {
		name = "OK"
		command = { type = independence which = KLE }
	}
}
event = {
	id = 5019020
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = KLE }
		NOT = { core = { province = 334 data = -1 } } #Münster
		AND = {
			exists = BRG
			event = 235009 #BRG: Union with Kleve-Mark
			NOT = { owned = { province = 334 data = BRG } } #Münster
			NOT = { year = 1609 }
		}
	}
	random = yes
	province = 334 #Münster
	name = "AI_EVENT"
	desc = "Cleves"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = BRG value = 334 } #Münster
		command = { type = relation which = BRG value = 10 }
	}
}

#Cologne
event = {
	id = 5019021
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = KOL }
		NOT = { core = { province = 344 data = -1 } } #Köln
	}
	random = yes
	province = 344 #Köln
	name = "AI_EVENT"
	desc = "Cologne"

	action_a = {
		name = "OK"
		command = { type = independence which = KOL }
	}
}

#Hanover
event = {
	id = 5019022
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = HAN }
		NOT = { core = { province = 310 data = -1 } } #Hannover
	}
	random = yes
	province = 310 #Hannover
	name = "AI_EVENT"
	desc = "Hanover"

	action_a = {
		name = "OK"
		command = { type = independence which = HAN }
	}
}

#Hesse
event = {
	id = 5019023
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = HES }
		NOT = { core = { province = 333 data = -1 } } #Hessen
	}
	random = yes
	province = 333 #Hessen
	name = "AI_EVENT"
	desc = "Hesse"

	action_a = {
		name = "OK"
		command = { type = independence which = HES }
	}
}

#Holstein
event = {
	id = 5019024
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = SHL }
		NOT = { core = { province = 306 data = -1 } } #Holstein
		NOT = {
			AND = {
				event = 159034 #DAN: Denmark inherits Holstein
				NOT = { event = 159011 } #DAN: The fate of Holstein
			}
			event = 247002 #OLD: Oldenburg inherits Holstein
		}
	}
	random = yes
	province = 306 #Holstein
	name = "AI_EVENT"
	desc = "Holstein"

	action_a = {
		name = "OK"
		command = { type = independence which = SHL }
	}
}
event = {
	id = 5019010
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = SHL }
		NOT = { core = { province = 306 data = -1 } } #Holstein
		AND = {
			exists = OLD
			event = 247002 #OLD: Oldenburg inherits Holstein
			NOT = { owned = { province = 306 data = OLD } } #Holstein
		}
	}
	random = yes
	province = 306 #Holstein
	name = "AI_EVENT"
	desc = "Holstein"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = OLD value = 306 } #Holstein
		command = { type = relation which = OLD value = 10 }
	}
}

#Lorraine
event = {
	id = 5019026
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = LOR }
		NOT = { core = { province = 375 data = -1 } } #Lorraine
		NOT = {
			event = 3736 #FRA: French Inheritance of Lothringen
			year = 1766
		}
	}
	random = yes
	province = 375 #Lorraine
	name = "AI_EVENT"
	desc = "Lorraine"

	action_a = {
		name = "OK"
		command = { type = independence which = LOR }
	}
}

#Luxemburg
event = {
	id = 5019028
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = LUX }
		NOT = { core = { province = 377 data = -1 } } #Luxembourg
		NOT = {
			event = 137306 #BUR: Annexation of Luxemburg
			year = 1451 #Burgundian monarchs
		}
	}
	random = yes
	province = 377 #Luxembourg
	name = "AI_EVENT"
	desc = "Luxemburg"

	action_a = {
		name = "OK"
		command = { type = independence which = LUX }
	}
}
event = {
	id = 5019029
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = LUX }
		NOT = { core = { province = 377 data = -1 } } #Luxembourg
		AND = {
			exists = BUR
			event = 137306 #BUR: Annexation of Luxemburg
			NOT = { owned = { province = 377 data = BUR } } #Luxembourg
		}
	}
	random = yes
	province = 377 #Luxembourg
	name = "AI_EVENT"
	desc = "Luxemburg"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = BUR value = 377 } #Luxembourg
		command = { type = relation which = BUR value = 10 }
	}
}

#Mainz
event = {
	id = 5019030
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = MAI }
		NOT = { core = { province = 346 data = -1 } } #Mainz
	}
	random = yes
	province = 346 #Mainz
	name = "AI_EVENT"
	desc = "Mainz"

	action_a = {
		name = "OK"
		command = { type = independence which = MAI }
	}
}

#Mecklenburg
event = {
	id = 5019031
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = MEC }
		NOT = { core = { province = 305 data = -1 } } #Mecklenburg
	}
	random = yes
	province = 305 #Mecklenburg
	name = "AI_EVENT"
	desc = "Mecklenburg"

	action_a = {
		name = "OK"
		command = { type = independence which = MEC }
	}
}

#Oldenburg
event = {
	id = 5019032
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = OLD }
		NOT = { core = { province = 335 data = -1 } } #Oldenburg
		NOT = {
			event = 159033 #DAN: Oldenburg is incorporated into Denmark
			event = 279010 #SHL: Holstein inherits Oldenburg
		}
	}
	random = yes
	province = 335 #Oldenburg
	name = "AI_EVENT"
	desc = "Oldenburg"

	action_a = {
		name = "OK"
		command = { type = independence which = OLD }
	}
}
event = {
	id = 5019013
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = OLD }
		NOT = { core = { province = 335 data = -1 } } #Oldenburg
		AND = {
			exists = SHL
			event = 279010 #SHL: Holstein inherits Oldenburg
			NOT = { owned = { province = 335 data = SHL } } #Oldenburg
		}
	}
	random = yes
	province = 335 #Oldenburg
	name = "AI_EVENT"
	desc = "Oldenburg"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = SHL value = 335 } #Oldenburg
		command = { type = relation which = SHL value = 10 }
	}
}

#Palatinate
event = {
	id = 5019033
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = PFA }
		NOT = { core = { province = 345 data = -1 } } #Pfalz
		NOT = {
			event = 125021 #BAY: The Palatinate is united with Bavaria
			event = 125033 #BAY: The Palatinate is united with Bavaria
		}
	}
	random = yes
	province = 345 #Pfalz
	name = "AI_EVENT"
	desc = "Palatinate"

	action_a = {
		name = "OK"
		command = { type = independence which = PFA }
	}
}
event = {
	id = 5019034
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		exists = PFA
		NOT = { core = { province = 345 data = -1 } } #Pfalz
	}
	random = yes
	province = 345 #Pfalz
	name = "AI_EVENT"
	desc = "Palatinate"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = PFA value = 345 } #Pfalz
		command = { type = relation which = PFA value = 10 }
	}
}
event = {
	id = 5019035
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = PFA }
		NOT = { core = { province = 345 data = -1 } } #Pfalz
		AND = {
			exists = BAY
			OR = {
				event = 125021 #BAY: The Palatinate is united with Bavaria
				event = 125033 #BAY: The Palatinate is united with Bavaria
			}
			NOT = { owned = { province = 345 data = BAY } } #Pfalz
		}
	}
	random = yes
	province = 345 #Pfalz
	name = "AI_EVENT"
	desc = "Palatinate"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = BAY value = 345 } #Pfalz
		command = { type = relation which = BAY value = 10 }
	}
}
event = {
	id = 5019036
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = PFA }
		NOT = { owned = { province = 345 data = -1 } } #Pfalz
		NOT = { core = { province = 347 data = -1 } } #Würzburg
		NOT = {
			event = 125021 #BAY: The Palatinate is united with Bavaria
			event = 125033 #BAY: The Palatinate is united with Bavaria
		}
	}
	random = yes
	province = 347 #Würzburg
	name = "AI_EVENT"
	desc = "Palatinate"

	action_a = {
		name = "OK"
		command = { type = independence which = PFA }
	}
}
event = {
	id = 5019037
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		exists = PFA
		NOT = { core = { province = 347 data = -1 } } #Würzburg
	}
	random = yes
	province = 347 #Würzburg
	name = "AI_EVENT"
	desc = "Palatinate"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = PFA value = 347 } #Würzburg
		command = { type = relation which = PFA value = 10 }
	}
}
event = {
	id = 5019038
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = PFA }
		NOT = { core = { province = 347 data = -1 } } #Würzburg
		AND = {
			exists = BAY
			OR = {
				event = 125021 #BAY: The Palatinate is united with Bavaria
				event = 125033 #BAY: The Palatinate is united with Bavaria
			}
			NOT = { owned = { province = 347 data = BAY } } #Würzburg
		}
	}
	random = yes
	province = 347 #Würzburg
	name = "AI_EVENT"
	desc = "Palatinate"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = BAY value = 347 } #Würzburg
		command = { type = relation which = BAY value = 10 }
	}
}

#Pomerania - Stettin
event = {
	id = 5019039
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = POM }
		NOT = { core = { province = 302 data = -1 } } #Hinterpommern
		NOT = {
			event = 291030 #SWE: The Acquisition of Pomerania
			event = 3896 #BRA: The Pommern Inheritance
			event = 132008 #BRA: The Pomeranian Inheritance
			event = 259016 #POM: The investiture of Brandenburg
			year = 1637
		}
	}
	random = yes
	province = 302 #Hinterpommern
	name = "AI_EVENT"
	desc = "Pomerania"

	action_a = {
		name = "OK"
		command = { type = independence which = POM }
	}
}
event = {
	id = 5019040
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = POM }
		NOT = { core = { province = 302 data = -1 } } #Hinterpommern
		AND = {
			exists = STT
			NOT = { owned = { province = 302 data = STT } } #Hinterpommern
		}
	}
	random = yes
	province = 302 #Hinterpommern
	name = "AI_EVENT"
	desc = "Pomerania"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = STT value = 302 } #Hinterpommern
		command = { type = relation which = STT value = 10 }
	}
}
event = {
	id = 5019041
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = POM }
		NOT = { core = { province = 302 data = -1 } } #Hinterpommern
		AND = {
			NOT = { exists = STT }
			exists = BRA
			OR = {
				event = 3896 #BRA: The Pommern Inheritance
				event = 132008 #BRA: The Pomeranian Inheritance
				event = 259016 #POM: The investiture of Brandenburg
			}
			NOT = { owned = { province = 302 data = BRA } } #Hinterpommern
		}
	}
	random = yes
	province = 302 #Hinterpommern
	name = "AI_EVENT"
	desc = "Pomerania"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = BRA value = 302 } #Hinterpommern
		command = { type = relation which = BRA value = 10 }
	}
}
event = {
	id = 5019042
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = POM }
		NOT = { core = { province = 302 data = -1 } } #Hinterpommern
		AND = {
			NOT = { exists = STT }
			NOT = { exists = BRA }
			AND = {
				exists = PRU
				event = 263014 #PRU: The Kingdom of Prussia
			}
			OR = {
				event = 3896 #BRA: The Pommern Inheritance
				event = 132008 #BRA: The Pomeranian Inheritance
				event = 259016 #POM: The investiture of Brandenburg
			}
			NOT = { owned = { province = 302 data = PRU } } #Hinterpommern
		}
	}
	random = yes
	province = 302 #Hinterpommern
	name = "AI_EVENT"
	desc = "Pomerania"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = PRU value = 302 } #Hinterpommern
		command = { type = relation which = PRU value = 10 }
	}
}
event = {
	id = 5019043
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = STT }
		NOT = { core = { province = 304 data = -1 } } #Vorpommern
		NOT = {
			event = 259000 #POM: Inheritance of Pomerania-Stettin
			AND = {
				event = 259001 #POM: Inheritance of Pomerania-Stettin
				NOT = {
					event = 132018 #BRA: Inheritance of Stettin
				}
			}
			event = 291029 #SWE: The Acquisition of Vorpommern
			event = 291030 #SWE: The Acquisition of Pomerania
			event = 3896 #BRA: The Pommern Inheritance
			event = 132008 #BRA: The Pomeranian Inheritance
			event = 259016 #POM: The investiture of Brandenburg
			year = 1570
		}
	}
	random = yes
	province = 304 #Vorpommern
	name = "AI_EVENT"
	desc = "Pomerania"

	action_a = {
		name = "OK"
		command = { type = independence which = STT }
	}
}
event = {
	id = 5019044
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = STT }
		NOT = { core = { province = 304 data = -1 } } #Vorpommern
		AND = {
			exists = POM
			OR = {
				event = 259000 #POM: Inheritance of Pomerania-Stettin
				AND = {
					event = 259001 #POM: Inheritance of Pomerania-Stettin
					NOT = {
						event = 132018 #BRA: Inheritance of Stettin
					}
				}
			}
			NOT = { owned = { province = 304 data = POM } } #Vorpommern
		}
	}
	random = yes
	province = 304 #Vorpommern
	name = "AI_EVENT"
	desc = "Pomerania"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = POM value = 304 } #Vorpommern
		command = { type = relation which = POM value = 10 }
	}
}
event = {
	id = 5019045
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = STT }
		NOT = { core = { province = 304 data = -1 } } #Vorpommern
		AND = {
			NOT = { exists = POM }
			AND = {
				exists = BRA
				OR = {
					event = 3896 #BRA: The Pommern Inheritance
					event = 132008 #BRA: The Pomeranian Inheritance
					event = 259016 #POM: The investiture of Brandenburg
				}
				NOT = { owned = { province = 304 data = BRA } } #Vorpommern
			}
		}
	}
	random = yes
	province = 304 #Vorpommern
	name = "AI_EVENT"
	desc = "Pomerania"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = BRA value = 304 } #Vorpommern
		command = { type = relation which = BRA value = 10 }
	}
}
event = {
	id = 5019046
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = POM }
		NOT = { core = { province = 304 data = -1 } } #Vorpommern
		AND = {
			NOT = { exists = POM }
			AND = {
				NOT = { exists = BRA }
				AND = {
					exists = PRU
					event = 263014 #PRU: The Kingdom of Prussia
				}
				OR = {
					event = 3896 #BRA: The Pommern Inheritance
					event = 132008 #BRA: The Pomeranian Inheritance
					event = 259016 #POM: The investiture of Brandenburg
				}
				NOT = { owned = { province = 304 data = PRU } } #Vorpommern
			}
		}
	}
	random = yes
	province = 304 #Vorpommern
	name = "AI_EVENT"
	desc = "Pomerania"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = PRU value = 304 } #Vorpommern
		command = { type = relation which = PRU value = 10 }
	}
}

#Saxony - Meissen
#simplified version
event = {
	id = 5019048
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = {
			exists = SAC
			exists = MEI
		}
		NOT = { core = { province = 332 data = -1 } } #Anhalt
	}
	random = yes
	province = 332 #Anhalt
	name = "AI_EVENT"
	desc = "Saxony"

	action_a = {
		name = "OK"
		command = { type = independence which = SAC }
	}
}
event = {
	id = 5019049
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		exists = SAC
		NOT = { core = { province = 332 data = -1 } } #Anhalt
		NOT = { owned = { province = 332 data = SAC } } #Anhalt
	}
	random = yes
	province = 332 #Anhalt
	name = "AI_EVENT"
	desc = "Saxony"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = SAC value = 332 } #Anhalt
		command = { type = relation which = SAC value = 10 }
	}
}
event = {
	id = 5019050
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = SAC }
		NOT = { core = { province = 332 data = -1 } } #Anhalt
		AND = {
			exists = MEI
			NOT = { year = 1600 }
			NOT = { owned = { province = 332 data = MEI } } #Anhalt
		}
	}
	random = yes
	province = 332 #Anhalt
	name = "AI_EVENT"
	desc = "Saxony"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = MEI value = 332 } #Anhalt
		command = { type = relation which = MEI value = 10 }
	}
}
event = {
	id = 5019051
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		exists = SAC
		NOT = { core = { province = 331 data = -1 } } #Sachsen
		NOT = { owned = { province = 331 data = SAC } } #Sachsen
	}
	random = yes
	province = 331 #Sachsen
	name = "AI_EVENT"
	desc = "Saxony"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = SAC value = 331 } #Sachsen
		command = { type = relation which = SAC value = 10 }
	}
}
event = {
	id = 5019052
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = SAC }
		NOT = { core = { province = 331 data = -1 } } #Sachsen
		AND = {
			exists = MEI
			NOT = { year = 1600 }
			NOT = { owned = { province = 331 data = MEI } } #Sachsen
		}
	}
	random = yes
	province = 331 #Sachsen
	name = "AI_EVENT"
	desc = "Saxony"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = MEI value = 331 } #Sachsen
		command = { type = relation which = MEI value = 10 }
	}
}

#Strassburg
event = {
	id = 5019053
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = STR }
		NOT = { core = { province = 374 data = -1 } } #Alsace
	}
	random = yes
	province = 374 #Alsace
	name = "AI_EVENT"
	desc = "Strassburg"

	action_a = {
		name = "OK"
		command = { type = independence which = STR }
	}
}

#Wirtemberg
event = {
	id = 5019054
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = WUR }
		NOT = { core = { province = 372 data = -1 } } #Württemberg
		NOT = {
			AND = {
				exists = HAB
				core = { province = 372 data = HAB } #covers HAB_179004 and HAB_179006
				NOT = { owned = { province = 372 data = HAB } } #Württemberg
			}
		}
	}
	random = yes
	province = 372 #Württemberg
	name = "AI_EVENT"
	desc = "Wirtemberg"

	action_a = {
		name = "OK"
		command = { type = independence which = WUR }
	}
}
event = {
	id = 5019055
	trigger = {
		ai = yes
		OR = {
			AND = {
				emperor = yes
				NOT = { #French Revolution/Empire
					monarch = 049521 #La Commune de Paris
					monarch = 049522 #La Convention Nationale
					monarch = 049523 #Le Directoire
					monarch = 049524 #Le Consulat
					monarch = 049525 #Napoléon Bonaparte
					monarch = 049539 #Napoléon Ier
					monarch = 049538 #Napoléon Ier
					#French satellites: ITA
					monarch = 064624 #Il Direttorio
					monarch = 064625 #La Consulta
					monarch = 064626 #Napoleone Bonaparte
					monarch = 064627 #Napoleone I
					monarch = 064628 #Eugenio de Beauharnais
					#French satellites: NAP
					monarch = 096019 #Giuseppe Bonaparte
					monarch = 096020 #Gioacchino Napoleone
					#French satellites: KLE
					monarch = 069012 #Joachim Murat
					monarch = 069013 #Comte de Beugnot
					monarch = 069014 #Louis-Napoléon
					#French satellites: BRG
					monarch = 093512 #Joachim Murat
					monarch = 093513 #Comte de Beugnot
					monarch = 093514 #Louis-Napoléon
				}
			}
			elector = yes
			monarch = 0127501 #Carlos I - for Spain
			monarch = 027006 #Charles II - for Burgundy
			flag = [PrussiaHRE]
		}
		NOT = { event = 179056 } #HAB: The Restoration in the Holy Roman Empire
		atwar = no
		NOT = { exists = WUR }
		NOT = { core = { province = 372 data = -1 } } #Württemberg
		AND = {
			exists = HAB
			core = { province = 372 data = HAB } #covers HAB_179004 and HAB_179006
		}
	}
	random = yes
	province = 372 #Württemberg
	name = "AI_EVENT"
	desc = "Wirtemberg"

	action_a = {
		name = "OK"
		command = { type = cedeprovince which = HAB value = 372 } #Württemberg
		command = { type = relation which = HAB value = 10 }
	}
}

#-----------------------------------------------------------------------------------------------

#First free id: 5000025 - 5000027 - 5000047 - next: 5000056
