#####Bayern Major Events########
#By Joakim 'Greven' Bergqwist  #
#   Hvard Moe                 #
#   Tom 'Demetrios' Rinschler  #
#   Henrik 'Doomdark' Fhraeus #
################################

#The League of Schmalkalden#
event = {

	id = 3613
	trigger = {
		 exists = HAB
		 	AND = {
				OR = {
					religion = protestant
					religion = reformed
						}
			}
	}
	random = no
	country = BAY
	name = "EVENTNAME3613"
	desc = "EVENTHIST3613"
	style = 2

	date = { day = 1 month = january year = 1527 }
	offset = 30
	deathdate = { day = 1 month = january year = 1529 }

	action_a ={					#Give it your support#
		name = "ACTIONNAME3613A"
		command = { type = relation which = BRA value = 50 }
		command = { type = relation which = HAN value = 50 }
		command = { type = relation which = HES value = 50 }
		command = { type = relation which = PFA value = 50 }
		command = { type = relation which = SAC value = 50 }
		command = { type = relation which = THU value = 50 }
		command = { type = relation which = BAD value = 50 }
		command = { type = relation which = PAP value = -50 }
		command = { type = relation which = SPA value = -50 }
		command = { type = relation which = HAB value = -100 }
	}

	action_b ={					#Ignore it#
		name = "ACTIONNAME3613B"
		command = { type = relation which = BRA value = -150 }
		command = { type = relation which = HAN value = -150 }
		command = { type = relation which = HES value = -150 }
		command = { type = relation which = PFA value = -150 }
		command = { type = relation which = SAC value = -150 }
		command = { type = relation which = THU value = -150 }
		command = { type = relation which = BAD value = -150 }
		command = { type = relation which = HAB value = 50 }
		command = { type = relation which = KOL value = 50 }
	}
}

#The Evangelic Union#
event = {

	id = 3614
	trigger = {
		 OR = {
			religion = protestant
			religion = reformed
				}
			}
	random = no
	country = BAY
	name = "EVENTNAME3614"
	desc = "EVENTHIST3614"
	style = 3

	date = { day = 1 month = january year = 1605 }
	offset = 30
	deathdate = { day = 1 month = january year = 1609 }

	action_a ={					#Prepare to Join#
		name = "ACTIONNAME3614A"
		command = { type = relation which = BRA value = 50 }
		command = { type = relation which = HAN value = 50 }
		command = { type = relation which = HES value = 50 }
		command = { type = relation which = PFA value = 50 }
		command = { type = relation which = SAC value = 50 }
		command = { type = relation which = THU value = 50 }
		command = { type = relation which = BAD value = 50 }
		command = { type = relation which = PAP value = -50 }
		command = { type = relation which = SPA value = -50 }
		command = { type = relation which = HAB value = -100 }
	}

	action_b ={					#Stay Neutral#
		name = "ACTIONNAME3614B"
		command = { type = relation which = BRA value = -150 }
		command = { type = relation which = HAN value = -150 }
		command = { type = relation which = HES value = -150 }
		command = { type = relation which = PFA value = -150 }
		command = { type = relation which = SAC value = -150 }
		command = { type = relation which = THU value = -150 }
		command = { type = relation which = BAD value = -150 }
		command = { type = relation which = HAB value = 50 }
		command = { type = relation which = KOL value = 50 }
	}
}

#The Catholic League#
event = {

	id = 3615
	trigger = {
		 OR = {
			religion = catholic
			religion = counterreform
				}
			}
	random = no
	country = BAY
	name = "EVENTNAME3615"
	desc = "EVENTHIST3615"
	style = 3

	date = { day = 1 month = january year = 1607 }
	offset = 30
	deathdate = { day = 1 month = january year = 1609 }

	action_a ={					#Prepare to Join#
		name = "ACTIONNAME3615A"
		command = { type = relation which = BRA value = -100 }
		command = { type = relation which = HAN value = -100 }
		command = { type = relation which = HES value = -100 }
		command = { type = relation which = PFA value = -100 }
		command = { type = relation which = SAC value = -100 }
		command = { type = relation which = THU value = -100 }
		command = { type = relation which = BAD value = -100 }
		command = { type = relation which = KOL value = 100 }
		command = { type = relation which = KLE value = 100 }
		command = { type = relation which = PAP value = 150 }
		command = { type = relation which = SPA value = 150 }
		command = { type = relation which = HAB value = 150 }
	}

	action_b ={					#Stay Neutral#
		name = "ACTIONNAME3615B"
		command = { type = relation which = BRA value = 50 }
		command = { type = relation which = HAN value = 50 }
		command = { type = relation which = HES value = 50 }
		command = { type = relation which = PFA value = 50 }
		command = { type = relation which = SAC value = 50 }
		command = { type = relation which = THU value = 50 }
		command = { type = relation which = BAD value = 50 }
		command = { type = relation which = PAP value = -50 }
		command = { type = relation which = SPA value = -50 }
		command = { type = relation which = HAB value = -100 }
	}
}

#The Effects of the Pragmatic Sanction#
event = {

	id = 3616
	random = no
	country = BAY
	name = "EVENTNAME3616"
	desc = "EVENTHIST3616"
	style = 4

	date = { day = 1 month = january year = 1741 }
	offset = 10
	deathdate = { day = 1 month = june year = 1741 }

	action_a ={				#Anti-Habsburg#
		name = "ACTIONNAME3616A"
		command = { type = casusbelli which = HAB value = 36 }
		command = { type = stability value = -1 }
		command = { type = relation which = PRU value = 150 }
		command = { type = relation which = SAC value = 150 }
		command = { type = relation which = GEN value = 50 }
		command = { type = relation which = FRA value = 150 }
		command = { type = relation which = ENG value = -100 }
		command = { type = relation which = HOL value = -100 }
		command = { type = relation which = RUS value = -100 }
		command = { type = relation which = HES value = -50 }
		command = { type = relation which = HAN value = -50 }
		command = { type = relation which = HAB value = -150 }
	}

	action_b ={				#Neutral#
		name = "ACTIONNAME3616B"
		command = { type = relation which = PRU value = -50 }
		command = { type = relation which = SAC value = -50 }
		command = { type = relation which = FRA value = -50 }
		command = { type = relation which = ENG value = 100 }
		command = { type = relation which = HOL value = 100 }
		command = { type = relation which = RUS value = 50 }
		command = { type = relation which = HES value = 100 }
		command = { type = relation which = HAN value = 100 }
		command = { type = relation which = HAB value = 100 }
		command = { type = stability value = 1 }
	}
	action_c ={				#Pro-Habsburg#
		name = "ACTIONNAME3616C"
		command = { type = relation which = PRU value = -150 }
		command = { type = relation which = SAC value = -150 }
		command = { type = relation which = FRA value = -150 }
		command = { type = relation which = ENG value = 150 }
		command = { type = relation which = HOL value = 100 }
		command = { type = relation which = RUS value = 50 }
		command = { type = relation which = HES value = 150 }
		command = { type = relation which = HAN value = 150 }
		command = { type = relation which = HAB value = 150 }
		command = { type = stability value = -2 }
		command = { type = casusbelli which = PRU value = 12 }
	}
}

#The Bavarian Succession of 1777#
event = {

	id = 3617				#Triggered by HAB3207#
	random = no
	country = BAY
	name = "EVENTNAME3617"
	desc = "EVENTHIST3617"
	style = 4

	action_a ={				#Defend you Throne#
		name = "ACTIONNAME3617A"
		command = { type = casusbelli which = HAB value = 24 }
		command = { type = casusbelli which = PFA value = 24 }
		command = { type = relation which = HAB value = -150 }
		command = { type = relation which = PFA value = -150 }
		command = { type = relation which = PRU value = 200 }
		command = { type = dynastic which = PRU }
		command = { type = stability value = 1 }
		command = { type = inflation value = -5 }
		command = { type = treasury value = 300 }
		command = { type = INF which = -1 value = 25000 }
		command = { type = CAV which = -3 value = 12000 }
		command = { type = ART which = -3 value = 35 }
	}
}

event = {
	id = 3853

	# Triggered by KOL 3852

	random = no
	country = BAY
	name = "EVENTNAME3853"
	desc = "EVENTHIST3853"
	style = 2

	action_a = {		#Bavarian influence in Cologne#
		name = "ACTIONNAME3853A"
		command = { type = vassal which = KOL }
		command = { type = dynastic which = KOL }
	}
}

#Events from AoN modified by Hive

#The Cultural Capital of Mnchen#
event = {
	id = 15103
	trigger = { monarch = 06095 }
	random = no
	country = BAY
	name = "The Cultural Capital of Mnchen"
	desc = "During the reign of Ludwig I, Mnchen quickly became the cultural centre of Germany. Poets, painters, architects and scientists gathered in the Bavarian capital, because of promotional efforts by Ludwig I."
	style = 5
	date = { year = 1825 }
	offset = 100
	deathdate = { year = 1845 }
	action_a ={
		name = "Promote Mnchen"
		command = { type = provincetax which = -2 value = 5 }
                command = { type = domestic which = innovative value = 1 }
                command = { type = infra value = 1000 }
                command = { type = trade value = 1000 }
                command = { type = gainmanufactory which = -2 value = luxury }
		command = { type = treasury value = -400 }
                command = { type = stability value = 1 }        
	}
	action_b ={
		name = "It has no interest"
		command = { }
	}

}

#Reactionary Rule#
event = {
	id = 15104
	random = no
	trigger = { monarch = 06095 }
	country = BAY
	name = "Reactionary Rule"
	desc = "In the beginning of his reign, Ludwig I was very liberal and promoted free trade and industry. As time passed by, however, he became more and more reactionary, which began to turn his popularity into the opposite in large portions of the population."
	style = 5
	date = { month = april year = 1830 }
	offset = 1000
	deathdate = { month = april year = 1838 }
	action_a ={
		name = "Reactionary policies!"
		command = { type = domestic which = INNOVATIVE value = -1 } 
		command = { type = domestic which = CENTRALIZATION value = 1 } 
		command = { type = domestic which = SERFDOM value = 1 }
		command = { type = domestic which = MERCANTILISM value = 1 }          
		command = { type = stability value = -2 }     
		command = { type = ADM which = -1 value = 100 } 
		command = { type = MIL which = 1 value = 100 }              
	}
	action_b ={
		name = "Remain liberal"   
		command = { type = stability value = 1 } 
	}

}

#Revolution of 1848#
event = {
	id = 15428
	trigger = { 
		event = 15104
		event = 15253
	}
	random = no
	country = BAY
	name = "Revolution of 1848"
	desc = "The revolt year of 1848 did not go unnoticed in Germany, and Bavaria was no exception. Liberal sentiment swept through the lands, and the monarchs had at least temporarily no other choice but to agree to the demands. In Bavaria, the revolutionary year resulted in the abdication of Ludwig I. Moreover, the abolishment of the guild restriction opened the way for industrialization."
	style = 5
	date = { month = january year = 1848 }
	action_a ={
		name = "Remove Ludwig"
		command = { type = provincetax which = -2 value = 1 } 
		command = { type = provincetax which = -1 value = 1 }   
		command = { type = domestic which = INNOVATIVE value = 2 } 
		command = { type = domestic which = CENTRALIZATION value = -1 } 
		command = { type = domestic which = SERFDOM value = -1 } 
		command = { type = stability value = -2 }    
	}
	action_b ={
		name = "Ignore the revolters" 
		command = { type = revolt which = -2 }   
		command = { type = revolt which = -2 }   
		command = { type = revolt which = -2 }
		command = { type = revolt which = -2 }   
	}

}

#Events by Hive

#Franco-Prussian War#
event = {
	id = 15380
	country = BAY
	random = no
	name = "Franco-Prussian War"
	desc = "After Bismarck provoked France to declare war in 1870, the southern German states, viewing France as the aggressor, joined the North German Confederation."
	
	action_a = {
		name = "A clear French aggression! Join our German brothers!"
		command = { type = trigger which = 15384 }
	}

	action_b = {
		name = "Stay out"
		command = { type = relation which = PRU value = -100 }
		command = { type = relation which = HAB value = 100 }
		command = { type = relation which = FRA value = 100 }
		command = { type = stability value = -2 }
	}
}

event = {
	id = 12345622
	trigger = {
       event = 12345623
	}
	random = no
	country = BAY
	name = "The imperial edict"
	desc = "After Count Tilly had devestated the Palatinate, an imperial edict was signed, giving Maximilian I of Bavaria the Prince Electorship."
	style = 3

	date = { day = 25 month = february year = 1623 }

	action_a ={
		name = "Sign it"
                command = { type = inherit   which = PFA }
                command = { type = stability value = 1 }
  		command = { type = addcore which = 345 }
 		command = { type = addcore which = 348 }
 		command = { type = flagname which = _RhinePalatinate }

	}
	action_b ={
		name = "It has no interest"
		command = { }
	}

}  

event = {
	id = 12345624
	random = no
	country = BAY
	name = "The imperial edict"
	desc = "After Count Tilly had devestated the Palatinate, an imperial edict was signed, giving Maximilian I of Bavaria the Prince Electorship."
	style = 3

	date = { day = 24 month = october year = 1648 }

	action_a ={
		name = "Sign it"
                command = { type = independence  which = PFA }
                command = { type = stability value = 1 }
 		command = { type = removecore which = 345 }
	}
	action_b ={
		name = "How dare they!?!"
                command = { type = independence  which = PFA }
	}

}

#The Kingdom of Bavaria#
event = {
	id = 123456240
	trigger = { 
        monarch = 06094
        countrysize = 4
        }
	random = no
	country = BAY
	name = "The Kingdom of Bavaria"
	desc = "In foreign politics Maximilian Joseph's attitude was from the German point of view less commendable. With the growing sentiment of German nationality he had from first to last no sympathy, and his attitude throughout was dictated by wholly dynastic, or at least Bavarian, considerations. Until 1813 he was the most faithful of Napoleon's German allies, the relation being cemented by the marriage of his eldest daughter to Eugne de Beauharnais. His reward came with the Treaty of Pressburg (December 26, 1805), by the terms of which he was to receive the royal title and important territorial acquisitions in Swabia and Franconia to round off his kingdom. The style of king he actually assumed on January 1, 1806."
	style = 5
	date = { year = 1806 }
	offset = 30
	deathdate = { year = 1825 }
	action_a ={
		name = "Take the title"
                command = { type = flagname which = _Kingdom }
		command = { type = domestic which = CENTRALIZATION value = 1 }
		command = { type = domestic which = ARISTOCRACY value = 1 }
		command = { type = vp value = 50 }
                command = { type = stability value = 1 }        
	}
	action_b ={
		name = "It has no interest"
		command = { }
	}
	action_c ={
		name = "Take the old Bavarian Arms"
		command = { type = flagname which = "" }
                command = { type = stability value = 1 }
	}

}