#Berg (MUN)

#See AGCEEP_Alt_Germany.eue for KoG Alternative events

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

#(1423) Inheritance of Jülich
event = {
	id = 235000 #triggered by GEL_75000 A
	random = no
	country = MUN
	name = "Ļīćėīłåķčå Žėčõą-Įåšćą" #Inheritance of Jülich
	desc = "EVENTHIST235000"
	#-#In 1423 Reinald, the last Duke of Jülich-Gelre, died. The estates elected Arnold, the Count of Egmont as new Duke, defying the claims of Adolf of Berg who was recognized as successor to Jülich by Emperor Sigismund in 1423 and to Geldre in 1425. In turn, Arnold of Egmont claimed the inheritance of Jülich as well. A succession war followed in which the cities and nobles of Gelderland supported Arnold. It ended in Arnold retaining Gelderland and Zutphen, and Gerard, the son of Adolf, being acknowledged as Duke of Jülich. Although Berg failed to conquer Geldre, its power increased significantly by the acquisition of the wealthy Duchy of Jülich.

	action_a = {
		name = "Claim Geldre as well" #
		command = { type = addcore which = 338 } #Geldre
		command = { type = provincetax which = -2 value = 2 }
		command = { type = provincemanpower which = -2 value = 1 }
		command = { type = relation which = GEL value = -100 }
		command = { type = casusbelli which = GEL value = 120 }
	}
	action_b = {
		name = "Renounce our claim on Geldre" #
		command = { type = relation which = GEL value = 100 }
		command = { type = stability value = 1 }
	}
}
#(1423) Inheritance of Jülich and Geldre
event = {
	id = 235001 #triggered by GEL_75000 B
	random = no
	country = MUN
	name = "Inheritance of Jülich and Geldre" #
	desc = "EVENTHIST75001"
	#-#In 1423 Reinald, the last Duke of Jülich-Gelre, died. The duke of Berg who had already annexed Jülich, inherited the Duchy, too.

	action_a = {
		name = "Īņėč÷ķī!" 
		command = { type = addcore which = 338 } #Geldre
		command = { type = inherit which = GEL }
	}
}

#-----------------------------------------------------------------------------------------------
#(1511) The succession in Jülich-Berg
event = {
	id = 235002
	trigger = {
		ai = yes
		exists = KLE
		exists = GEL
		exists = SAC
	}
	random = no
	country = MUN
	name = "The succession in Jülich-Berg" #
	desc = "EVENTHIST235002"
	#-#Wilhelm IV of Jülich-Berg died in 1511, lacking a male heir. His only daughter had been betrothed to Johann, the son of Duke Johann of Kleve-Mark, and by a hereditary union in 1496 Kleve-Mark and Jülich-Berg had guaranteed each other right of succession in case of one of them lacking a direct heir. Nevertheless, Karel of Geldre and the elector also made claims to Jülich-Berg. Having secured the approval and support of Emperor Maximilian, Johann of Kleve-Mark and his wife Maria succeeded to the Duchies of Jülich and Berg, securing the way for the eventual unification with Kleve-Mark.

	date = { day = 6 month = september year = 1511 }

	action_a = {
		name = "Johann of Kleve-Mark succeeds" #
		command = { type = relation which = KLE value = 200 }
		command = { type = dynastic which = KLE }
		command = { type = relation which = GEL value = -50 }
		command = { type = relation which = SAC value = -50 }
		command = { type = relation which = HAB value = 50 }
		command = { type = stability value = -1 }
	}
	action_b = {
		name = "Karel of Geldre succeeds (End Game)" #
		command = { type = trigger which = 173001 } #GEL: Inheritance of Jülich-Berg
	}
	action_c = {
		name = "Ernst of Saxony succeeds (End Game)" #
		command = { type = trigger which = 273030 } #SAC: Inheritance of Jülich-Berg
	}
}
event = {
	id = 235003
	trigger = {
		ai = yes
		NOT = { exists = GEL }
		exists = SAC
		exists = KLE
	}
	random = no
	country = MUN
	name = "EVENTNAME235003" #The succession in Jülich-Berg
	desc = "EVENTHIST235003"
	date = { day = 6 month = september year = 1511 }

	action_a = {
		name = "Johann of Kleve-Mark succeeds" #
		command = { type = relation which = KLE value = 200 }
		command = { type = dynastic which = KLE }
		command = { type = relation which = GEL value = -50 }
		command = { type = relation which = SAC value = -50 }
		command = { type = relation which = HAB value = 50 }
		command = { type = stability value = -1 }
	}
	action_b = {
		name = "#Ernst of Saxony succeeds (End Game)" 
		command = { type = trigger which = 273030 } #SAC: Inheritance of Jülich-Berg
	}
}
event = {
	id = 235004
	trigger = {
		ai = yes
		exists = KLE
		exists = GEL
		NOT = { exists = SAC }
	}
	random = no
	country = MUN
	name = "The succession in Jülich-Berg" 
	desc = "EVENTHIST235004"
	#-#Wilhelm IV of Jülich-Berg died in 1511, lacking a male heir. His only daughter had been betrothed to Johann, the son of Duke Johann of Kleve-Mark, and by a hereditary union in 1496 Kleve-Mark and Jülich-Berg had guaranteed each other right of succession in case of one of them lacking a direct heir. Nevertheless, Karel of Geldre and the elector also made claims to Jülich-Berg. Having secured the approval and support of Emperor Maximilian, Johann of Kleve-Mark and his wife Maria succeeded to the Duchies of Jülich and Berg, securing the way for the eventual unification with Kleve-Mark.

	date = { day = 6 month = september year = 1511 }

	action_a = {
		name = "Johann of Kleve-Mark succeeds" #Johann of Kleve-Mark succeeds
		command = { type = relation which = KLE value = 200 }
		command = { type = dynastic which = KLE }
		command = { type = relation which = GEL value = -50 }
		command = { type = relation which = SAC value = -50 }
		command = { type = relation which = HAB value = 50 }
		command = { type = stability value = -1 }
	}
	action_b = {
		name = "Karel of Geldre succeeds (End Game)" #Karel of Geldre succeeds (End Game)
		command = { type = trigger which = 173001 } #GEL: Inheritance of Jülich-Berg
	}
	action_c = {
		name = "#Ernst of Saxony succeeds (End Game)" 
		command = { type = trigger which = 273030 } #SAC: Inheritance of Jülich-Berg
	}
}
event = {
	id = 235005
	trigger = {
		ai = yes
		NOT = { exists = KLE }
		exists = GEL
		exists = SAC
	}
	random = no
	country = MUN
name = "The succession in Jülich-Berg" 
desc = "EVENTHIST235004"
	date = { day = 6 month = september year = 1511 }

	action_a = {
		name = "Karel of Geldre succeeds (End Game)" #
		command = { type = trigger which = 173001 } #GEL: Inheritance of Jülich-Berg
	}
	action_b = {
		name = "#Ernst of Saxony succeeds (End Game)" 
		command = { type = trigger which = 273030 } #SAC: Inheritance of Jülich-Berg
	}
}
event = {
	id = 235006
	trigger = {
		ai = yes
		NOT = { exists = KLE }
		exists = GEL
		NOT = { exists = SAC }
	}
	random = no
	country = MUN
name = "The succession in Jülich-Berg" 
desc = "EVENTHIST235004"
	date = { day = 6 month = september year = 1511 }

	action_a = {
		name = "Karel of Geldre succeeds (End Game)" 
		command = { type = trigger which = 173001 } #GEL: Inheritance of Jülich-Berg
	}
}
event = {
	id = 235007
	trigger = {
		ai = yes
		NOT = { exists = KLE }
		NOT = { exists = GEL }
		exists = SAC
	}
	random = no
	country = MUN
	name = "The succession in Jülich-Berg" 
desc = "EVENTHIST235004"
	#-#Wilhelm IV of Jülich-Berg died in 1511, lacking a male heir. His only daughter had been betrothed to Johann, the son of Duke Johann of Kleve-Mark, and by a hereditary union in 1496 Kleve-Mark and Jülich-Berg had guaranteed each other right of succession in case of one of them lacking a direct heir. Nevertheless, Karel of Geldre and the elector also made claims to Jülich-Berg. Having secured the approval and support of Emperor Maximilian, Johann of Kleve-Mark and his wife Maria succeeded to the Duchies of Jülich and Berg, securing the way for the eventual unification with Kleve-Mark.

	date = { day = 6 month = september year = 1511 }

	action_a = {
		name = "ACTIONNAME235007A" #Ernst of Saxony succeeds (End Game)
		command = { type = trigger which = 273030 } #SAC: Inheritance of Jülich-Berg
	}
}
event = {
	id = 235008
	trigger = {
		ai = no
		exists = KLE
	}
	random = no
	country = MUN
	name = "The succession in Jülich-Berg" 
desc = "EVENTHIST235004"
	
	date = { day = 6 month = september year = 1511 }

	action_a = {
		name = "Johann of Kleve-Mark succeeds" #
		command = { type = relation which = KLE value = 200 }
		command = { type = vassal which = KLE }
		command = { type = alliance which = KLE }
		command = { type = relation which = GEL value = -50 }
		command = { type = relation which = SAC value = -50 }
		command = { type = relation which = HAB value = 50 }
		command = { type = stability value = -1 }
	}
}
#-----------------------------------------------------------------------------------------------

#(1521) Union with Kleve-Mark
event = {
	id = 235009 #triggered by KLE_200022
	random = no
	country = MUN
	name = "EVENTNAME235009" #Union with Kleve-Mark
	desc = "EVENTHIST235009"
	#-#

	action_a = {
		name = "Unite the low rhine duchies" #
		command = { type = addcore which = 343 } 
		command = { type = inherit which = KLE }
	}
}

#(1648) The Peace Treaty of Münster (in the Northern Low Countries) - Ahistorical
event = {
	id = 235010
	trigger = {
		event = 3900 #Dutch Independence - HOL existed at some point
		flag = DutGenEst #MUN had one of the revolt events
		core = { province = 339 data = MUN } #No cores then no event
		NOT = {
			owned = { province = 337 data = -1 } #Friesen
			owned = { province = 338 data = -1 } #Geldre
			owned = { province = 339 data = -1 } #Holland
			owned = { province = 340 data = -1 } #Zeeland
			owned = { province = 1925 data = -1 } 
			owned = { province = 1927 data = -1 } 
owned = { province = 1997 data = -1 } 
			owned = { province = 1947 data = -1 }
		} 	#If Berg holds no provinces in the Northern Netherlands by 1648, she loses all claims
		OR = {
			core = { province = 337 data = -1 } #Friesen
			core = { province = 338 data = -1 } #Geldre
			core = { province = 339 data = -1 } #Holland
			core = { province = 340 data = -1 } #Zeeland
			core = { province = 1925 data = -1 } 
			core = { province = 1927 data = -1 } 
		}	#if they don't have the cores they don't need the event
	}
	random = no
	country = MUN
	name = "The peace treaty of Münster" #
	desc = "EVENTHIST235010"
	#-#

	date = { day = 15 month = may year = 1648 }
	offset = 23
	deathdate = { day = 1 month = march year = 1649 }

	action_a = {
		name = "We acknowledge the Dutch Republic" #We acknowledge the Dutch Republic
		command = { type = removecore which = 337 } #Friesen
		command = { type = removecore which = 338 } #Geldre
		command = { type = removecore which = 339 } #Holland
		command = { type = removecore which = 340 } #Zeeland
		command = { type = removecore which = 1925 }
		command = { type = removecore which = 1927 }
command = { type = removecore which = 1997 }
		command = { type = removecore which = 1947 }
		command = { type = remove_countryculture which = dutch }
		command = { type = relation which = HOL value = 50 }
	}
}


#(1806-1810) Grand Duchy of Berg
event = {
	id = 235101 #triggered by FRA_170001 A
	random = no
	country = MUN
	name = "The creation of the Grand Duchy of Berg" #The creation of the Grand Duchy of Berg
	desc = "EVENTHIST235101"


	action_a = {
		name = "Vive l'empereur!"
		command = { type = sleepmonarch which = 093511 } #Maximilian Josef
		command = { type = wakemonarch which = 093512 } #Joachim Murat
		command = { type = wakemonarch which = 093513 } #Comte de Beugnot
		command = { type = wakemonarch which = 093514 } #Louis-Napoléon
		command = { type = remove_countryculture which = german }
		command = { type = add_countryculture which = french }
		command = { type = relation which = FRA value = 300 }
		command = { type = relation which = HOL value = 100 }
		command = { type = relation which = SPA value = 100 }
		command = { type = relation which = TOS value = 100 }
		command = { type = relation which = NAP value = 100 }
		command = { type = relation which = ITA value = 100 }
		command = { type = addcore which = 343 }
		command = { type = addcore which = 334 } #Münster
		command = { type = addcore which = 1934 }
		command = { type = addcore which = 1937 }
command = { type = addcore which = 1404 }
	}
}

#(1806) Joachim Murat's administration
event = {
	id = 235102
	trigger = { monarch = 093512 } #Joachim Murat
	random = no
	country = MUN
	name = "Joachim Murat's administration"
	desc = "EVENTHIST235102"
	date = { day = 24 month = april year = 1806 }
	offset = 1
	deathdate = { day = 29 month = december year = 1806 }

	action_a = {
		name = "Reform the administration" #
		command = { type = domestic which = centralization value = 3 }
		command = { type = domestic which = mercantilism value = 3 }
	}
}

#(1810-1813) Introduction of the Code Napoléon
event = {
	id = 235103
	trigger = { monarch = 093514 } #Louis-Napoléon
	random = no
	country = MUN
	name = "Introduction of the Code Napoléon" #
	desc = "EVENTHIST235103"
	date = { day = 1 month = january year = 1810 }
	offset = 1
	deathdate = { day = 29 month = december year = 1813 }

	action_a = {
		name = "Enact the Code civil" 
		command = { type = domestic which = serfdom value = -3 }
		command = { type = domestic which = aristocracy value = -4 }
		command = { type = domestic which = innovative value = 3 }
	}
}

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

#First free id: 235012
