#####Bayern Major Events########
#By Joakim 'Greven' Bergqwist  #
#   Hеvard Moe                 #
#   Tom 'Demetrios' Rinschler  #
#   Henrik 'Doomdark' Fеhraeus #
################################

#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 }
command = { type = domestic which = centralization value = -1 }
	}

	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 }
command = { type = domestic which = centralization value = 1 }
	}
}

#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 }
command = { type = domestic which = innovative value = 1 }
	}

	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 }
command = { type = domestic which = innovative value = -1 }
	}

	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 = -2 }
		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 }
command = { type = addcore which = 350 }
command = { type = addcore which = 371 }

	}

	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 }
command = { type = treasury value = 100 }
	}
}

#The Bavarian Succession of 1777#
event = {

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

	 action_a = {
                 name = "Acknowledge the Austrian claims"
                 command = { type = alliance which = HAB }
                 command = { type = relation which = HAB value = 50 }
                 command = { type = sleepevent which = 666224 }
                   }
        action_b = { 
                 name = "Defend Straubing against Habsburg"
                 command = { type = alliance which = PRU }
                 command = { type = relation which = PRU value = 150 }
                 command = { type = casusbelli which = HAB value = 24 }
                   } 
}

event = {
	id = 3853

	# Triggered by COL 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 }
	}
}

#
#
# agceep events
#

#Inheritance of Straubing
event = {
      id = 125000
      random = no
      country = BAY
      name = "Наследование Штробинга"
      desc = "в 1425 году умер герцог Иоанн II Бесстрашный род Вительсбахов пресекся. Удивительно, император Сигизмунд сначала не предоставил земли Штробинга одной из династии Вительсбахов, но подарил их Альбрехту Австрийскому. Это решение было принято в штыки Вительсбахами и было пересмотрено в 1429 году, когда Сигизмунд решил разделить ее между династиями баварских Вительсбахов, Бавария (Мюнхен) получила большинство."
      style = 1
     
      action_a = {
               name = "Отлично"
               command = { type = relation which = HUN value = 100 }
               command = { type = relation which = HAB value = 50 }
               command = { type = addcore which = 348 }
               command = { type = addcore which = 1931 }
               command = { type = breakvassal which = HUN }
                 }       
}
#Straubing granted to Hapsburg
event = { 
      id = 125001
      random = no
      country = BAY 
      name = "Наследование Штробинга"
      desc = "В 1425 году умер герцог Иоанн II Бесстрашный род Вительсбахов пресекся. Удивительно, император Сигизмунд сначала не предоставил земли Штробинга одной из династии Вительсбахов, но подарил их Альбрехту Австрийскому. Это решение было принято в штыки Вительсбахами и было пересмотрено в 1429 году, когда Сигизмунд решил разделить ее между династиями баварских Вительсбахов, Бавария (Мюнхен) получила большинство."
      style = 1
      
      action_a = {
              name = "Выступить против Габсбургов и Сигизмунда"
              command = { type = relation which = HAB value = -50 }
              command = { type = relation which = HUN value = -50 }
              command = { type = addcore which = 348 }
               command = { type = addcore which = 1931 }
               command = { type = addcore which = 1929 }
                 }
      action_b = {
              name = "Принять мудрое решение императора"
              command = { type = sleepevent which = 188001 }
              command = { type = relation which = HAB value = 30 }
              command = { type = relation which = HUN value = 30 }
                 }
}
#Struggle within the Wittelsbach family (random events)
event = {
       id = 125002
       trigger = { NOT = { event = 125006 } } #Bavaria-Munich inherits Bavaria-Landshut
       random = yes
       country = BAY
       name = "Конфликт с Ландсхутем"
       desc = "Несмотря на то, что они были братьями или двоюродными братьями, династии баварских Вительсбахов в Мюнхене, Ландсхуте, Штробинге и Ингольштадте были враждебны друг к другу и были в состоянии гражданской войны, приведшая к временному затмению силы Баварии в имперской политике. Соседние государства захватили территорию Баварии, и дворянство и города проигнорировали власть герцогов."
       style = 1
       
       action_a = {
                name = "Боротся против наших родственников из Ландсхута"
                command = { type = revolt which = -2 }
                command = { type = revoltrisk which = 24 value = 10 }
                command = { type = domestic which = aristocracy value = 1 }
                command = { type = domestic which = centralization value = -1 }
                 }
       action_b = {
                name = "Попытатся решить конфликт мирно"
                command = { type = stability value = -3 }
                command = { type = revoltrisk which = 24 value = 5 }
                  }
}
event = {
       id = 125003
       trigger = { NOT = { year = 1425 } } #Bayern-Straubing dies out
       random = yes
       country = BAY
       name = "Конфликт со Штробингом"
       desc = "Несмотря на то, что они были братьями или двоюродными братьями, династии баварских Вительсбахов в Мюнхене, Ландсхуте, Штробинге и Ингольштадте были враждебны друг к другу и были в состоянии гражданской войны, приведшая к временному затмению силы Баварии в имперской политике. Соседние государства захватили территорию Баварии, и дворянство и города проигнорировали власть герцогов."
       style = 1
       
       action_a = {
                name = "Боротся против наши родственников из Штробинга"
                command = { type = revolt which = -2 }
                command = { type = revoltrisk which = 24 value = 8 }
                command = { type = domestic which = aristocracy value = 1 }
                command = { type = domestic which = centralization value = -1 }
                 }
       action_b = {
                name = "Попытатся конфлит мирно"
                command = { type = stability value = -3 }
                command = { type = revoltrisk which = 24 value = 4 }
                  }
}
event = {
       id = 125004
       trigger = { NOT = { year = 1447 } } #Bavaria-Ingolstadt is inherited by Landshut
       random = yes
       country = BAY
       name = "Конфликт с Ингольштадтом"
       desc = "Несмотря на то, что они были братьями или двоюродными братьями, династии баварских Вительсбахов в Мюнхене, Ландсхуте, Штробинге и Ингольштадте были враждебны друг к другу и были в состоянии гражданской войны, приведшая к временному затмению силы Баварии в имперской политике. Соседние государства захватили территорию Баварии, и дворянство и города проигнорировали власть герцогов."
       style = 1
       
       action_a = {
                name = "Боротся с нашими родственниками из Ингольштадта"
                command = { type = revolt which = -2 }
                command = { type = revoltrisk which = 24 value = 8 }
                command = { type = domestic which = aristocracy value = 1 }
                command = { type = domestic which = centralization value = -1 }
                 }
       action_b = {
                name = "Попытатся решить конфликт мирно"
                command = { type = stability value = -3 }
                command = { type = revoltrisk which = 24 value = 4 }
                  }
}
#Agnes Bernauer
event = {
       id = 125005
       random = no
       country = BAY
       name = "Агнесс Бернар"
       desc = " Агнесс Бернар, дочь пекаря из Аугсбурга, была тайно отдана в жены Альберта,который влюбился в нее, был сыном герцога Эрнста Баварии (Мюнхен). Незнающий факты, что этот союз был заключен по закону, Эрнст заставил своего сына жениться и порвать отношения с Агнесс. Альберт заявил, что она его законная жена, во время своего отсутствия ее арестовали по приказу герцога Эрнста, по обвинению в колдовстве сына герцога и осуждена к смерти. 12 октября 1435 года  ее утопили в Дунае около Штробинга, в котором Альберт похоронит ее останки. Эта печальная история жила долго в памяти людей, и являлась вдохновением многих немецких писателей. "
       style = 1
       
       date = { day = 12 month = october year = 1435 }
       
       action_a = {
                name = "Казнить эту ведьму"
                command = { type = stability value = -1 }
                command = { type = domestic which = serfdom value = 1 }
                command = { type = relation which = PAP value = 50 }
                  }
       action_b = { 
                name = "Оставить её живой, но расторгнуть брак"
                command = { type = stability value = -1 }
                  }
       action_c = {
                name = "Согласится на брак Агнесс и Эрнста"
                command = { type = stability value = -3 }
                command = { type = domestic which = serfdom value = -1 }
                command = { type = domestic which = innovative value = 1 }
                command = { type = relation which = PFA value = -50 }
                command = { type = relation which = HAB value = -50 }
                command = { type = relation which = HUN value = -50 }
                command = { type = relation which = PAP value = -50 }
                  }
} 
#Inheritance of Bavaria-Landshut
event = {
      id = 125006
      trigger = { exists = PFA }
      random = no 
      country = BAY 
      name = "Война в Ландсхуте"
      desc = "1 декабря 1503 года умер герцог Георг Баварии (Ландсхут) без единого наследника. Несмотря на несколько заключенные соглашения в 15 веке, которые должны защитить право на наследование в Баварии (Мюнхен), он объявил свою дочь  Элизабет и ее мужа, пфальцграфа курфюрста Рупрехта, наследниками его герцогства. Это послужило поводом для войны за право наследования между пфальцграфом и династией баварских Виттельсбахов."
      style = 2
      
      date = { day = 1 month = december year = 1503 }
      
      action_a = {
               name = "Настоять на своём"
               command = { type = casusbelli which = PFA value = 36 }
               command = { type = relation which = PFA value = -100 }
               command = { type = trigger which = 255001 } #PFA: War of Succession in Landshut
                 }
      action_b = {
               name = "Принять последние желание Георга"
               command = { type = relation which = PFA value = 100 } 
               command = { type = trigger which = 255002 } #PFA: Inheritance of Landshut
               command = { type = sleepevent which = 179001 } #HAB: Rewards of Mediation
                 }
}

event = {
      id = 125007
      trigger = { NOT = { exists = PFA }}
      random = no
      country = BAY
      name = "Наследование Ландсхута"
      desc = "1 декабря 1503 года умер герцог Георг Баварии (Ландсхут) без единого наследника. Несмотря на несколько заключенные соглашения в 15 веке, которые должны защитить право на наследование в Баварии (Мюнхен), он объявил свою дочь  Элизабет и ее мужа, пфальцграфа курфюрста Рупрехта, наследниками его герцогства. Это послужило поводом для войны за право наследования между пфальцграфом и династией баварских Виттельсбахов. В конце концов, Бавария одержала победу благодаря поддержке императора и Швабскому Союзу, и удалось обеспечить безопасность Ландсхуту.."
      style = 2

      date = { day = 1 month = december year = 1503 }      
      
      action_a = {
               name = "Прекрасно"
               command = { type = provincetax which = -2 value = 2 }
               command = { type = provincemanpower which = -2 value = 1 }
               command = { type = population which = -2 value = 3000 }
                 }
}
#Introduction of primogeniture (1506)
event = {
      id = 125008
      trigger = { event = 125007 }
      random = no
      country = BAY
      name = "Введение закона об наследовании"
      desc = "После наследования Баварии-Ландсхут, таким образом объединив владения баварских Вительсбахов, герцог Альбрехт IV  укрепил будущее единство, силу и процветание его страны, вводя закон первородства в 1506 году. Очевидная необходимость рассматривалась как неизбежные последствия разделения в 15 веке. Бавария была готова к возвращению своего статуса как главной силой в имперской политике."
      style = 2
      
      date = { day = 1 month = january year = 1506 }
      offset = 200
       
      action_a = {
               name = "Ввести"
               command = { type = stability value = 1 }
               command = { type = domestic which = centralization value = 2 }
               command = { type = domestic which = aristocracy value = -1 }
                 }
}
event = {
      id = 125009
      random = no
      country = BAY 
      name = "Вильгельм IV приглашает иезуитов Баварию "
      desc = "Кроме того император из династии Габсбургов, Вильгельм Баварии самым сильным и жестоким врагом Реформации в германии, и не допустил распространиться новой религии в Баварию. Он даже отказался от традиционного соперничества между Габсбургами, когда он подписал договор с Фердинандом Австрии, Богемии и Венгрии в Линце для того, чтобы подавить новую религию. Более того он объединился с папой римским, духовенством и инквизицией, и изгнал многих реформаторов из герцогства. Самая эффективная и последовательной мерой было приглашение в Баварию иезуитов в 1541 году. Этот закон был основан для выступления против протестантизма, и возродить церковь духовно и интеллектуально, учредив немецкий штаб в баварском городе Ингольштадт."
      style = 2
      
      date = { day = 1 month = january year = 1550 }
      offset = 300
      
      action_a = {
               name = "Боротся против протестантов"
               command = { type = religion which = catholic }
               command = { type = domestic which = innovative value = -2 }
               command = { type = relation which = PAP value = 100 }
               command = { type = relation which = HAB value = 100 }
               command = { type = relation which = SLZ value = 100 }
               command = { type = relation which = KOL value = 100 }
               command = { type = relation which = MAI value = 100 }
               command = { type = relation which = WUR value = 100 }
               command = { type = relation which = SPA value = 100 }
                 }
      action_b = {
               name = "Стать более терпимым к новой вере"
               command = { type = provincereligion which = -2 value = reformed }
               command = { type = domestic which = innovative value = 1 }
               command = { type = relation which = PAP value = -50 }
               command = { type = relation which = HAB value = -50 }
               command = { type = relation which = SLZ value = -50 }
               command = { type = relation which = KOL value = -50 }
               command = { type = relation which = MAI value = -50 }
               command = { type = relation which = WUR value = -50 }
               command = { type = relation which = SPA value = -50 }
                 }
      action_c = {
               name = "Принять протестанство"
               command = { type = religion which = reformed }
               command = { type = stability value = -2 }
               command = { type = provincereligion which = -2 value = reformed }
command = { type = provincereligion which = -1 value = reformed }
               command = { type = domestic which = innovative value = 1 }
               command = { type = relation which = PAP value = -100 }
               command = { type = relation which = HAB value = -100 }
               command = { type = relation which = SLZ value = -100 }
               command = { type = relation which = KOL value = -100 }
               command = { type = relation which = MAI value = -100 }
               command = { type = relation which = WUR value = -100 }
               command = { type = relation which = SPA value = -100 }
                 }
}
#The Reinheitsgebot of 1516
event = {
      id = 125010
      random = no
      country = BAY
      name = "Закон о пиве"
      desc = "EVENTHIST125010"
      style = 2
           
      date = { day = 23 month = april year = 1516 }
           
      action_a = {
               name = "ввести"
               command = { type = domestic which = mercantilism value = 1 }
               command = { type = infra value = 50 }
                     }
      action_b = { 
               name = "нам это не надо"
               command = { type = relation which = -1 value = -10 }
                           }
} 
#Aventinus
event = {
      id = 125011
      random = no
      country = BAY
      name = "Авентинус-отец баварской историографии"
      desc = "EVENTHIST125011"
      style = 2 
      
      date = { day = 1 month = february year = 1517 }
      offset = 30
      
      action_a = {
               name = "Назначить Авентинуса историком герцогства"
               command = { type = infra value = 20 }
               command = { type = vp value = 10 } #Aventinus tells the people about the accomplishments of former Dukes
               command = { type = cash value = -10 }
                 }
      action_b = {
               name = "Мы знаем о Баварии больше"
               command = { type = vp value = -5 }
                 }
}
#Ernst of Bavaria, Archbishop of Salzburg
event = {
      id = 125012
      random = no
      country = BAY
      name = "Эрнст Баварии избран архиепископом Зальцбурга"
      desc = "В 1540 году герцог Эрнст Баварии, младший брат Вильгельма Баварского, был выбран наследником архиепископства Зальцбург, которое с этого времени была 14 лет под влиянием Вительсбахов при правлении Эрнста."
      style = 2
      
      action_a = {
               name = "Великолепно"
               command = { type = vassal which = SLZ }
               command = { type = relation which = SLZ value = 50 }
               command = { type = alliance which = SLZ }
                 }
}
#The extravagance of Albrecht V
event = {
      id = 125013
      random = no 
      country = BAY
      name = "Расточительство Альберта V"
      desc = "Альберт V был покровителем искусства, несмотря на свою нетерпимую религиозную политику. Его двор в Мюнхене был прибежищем художников, город был полон роскошных зданий и художественными работами, которые были коллекцией из Италии. Когда Альбрехт умер в октябре 1579 году, расходы на содержание роскошного двор привели к постоянным ссорам с княжествами, к притеснению вассалов и огромному бремени долгов, многократно приводили к банкротству."
      style = 2
      
      date = { day = 1 month = january year = 1550 }
      offset = 6000 
      
      action_a = {
               name = "Вложиться в искусство и культуру"
               command = { type = domestic which = innovative value = 1 }
               command = { type = domestic which = serfdom value = 1 }
               command = { type = infra value = 500 }
               command = { type = treasury value = -300 }
               command = { type = inflation value = 10 }
                 }
      action_b = {
               name = "Не тратить в пустую наши деньги" 
               command = { type = stability value = -1 }
               command = { type = vp value = -10 }
                 }
}
#Administrative reforms of Maximilian I (1598)
event = { 
      id = 125015
      random = no
      country = BAY
      name = "Административная реформа Максимилиана I"
      desc = "Максимилиан I был одним из самых талантливых и умелых Вительсбахов с правления императора Людвига в 14 веке. Обнаружив свое герцогство в жалком состоянии, близкое к краху и беспорядку, он начал честолюбивые реформы: он возвратил правоохранительный орган, преобразовал финансовую систему и налогообложение, создал класс государственных служащих и приобрел некоторые небольшие территории."
      style =  3
      date = { day = 15 month = october year = 1597 }
      offset = 900 
      
      action_a = {
               name = "Реформировать всё" 
               command = { type = domestic which = centralization value = 2 }
               command = { type = domestic which = aristocracy value = -1 }
               command = { type = domestic which = serfdom value = -1 }
               command = { type = provincetax which = -2 value = 1 }
 command = { type = provincetax which = 1929 value = 1 }
 command = { type = provincetax which = 1931 value = 1 }
               command = { type = infra value = 300 }
               command = { type = population which = -2 value = 1000 }
               command = { type = inflation value = -5 }
               command = { type = gainbuilding which = -2 value = cityrights } 
                 }
      action_b = {
               name = "Реформировать только финансы"
               command = { type = provincetax which = -2 value = 1 }
               command = { type = infra value = 200 } 
               command = { type = population which = -2 value = 1000 }
               command = { type = inflation value = -10 }
               command = { type = gainbuilding which = -2 value = cityrights } 
                 }
      action_c = {
               name = "У нас и так всё хорошо "
               command = { type = domestic which = innovative value = -1 }
               command = { type = stability value = 1 }
                 }
}
#Military reforms of Maximilian I
event = {
      id = 125016
      trigger = { event = 125015 }
      random = no
      country = BAY
      name = "Военная реформа Максимилиана I"
      desc = "После реформирования управления, Максимилиан I усовершенствовал военную мощь Баварии, создав национальную милицию и наняв иностранных военных руководителей. Очень скоро Бавария стала значительной военной силой, способная принимать важное участие в тридцатилетней войне."
      style = 3
      
      date = { day = 1 month = january year = 1600 }
      offset = 900
     
      action_a = {
               name = "Реформировать армию"
               command = { type = domestic which = quality value = -2 }
               command = { type = domestic which = land value = 2 }
               command = { type = domestic which = offensive value = 1 }
               command = { type = INF which = -2 value = 10000 }
               command = { type = CAV which = -2 value = 5000 }
               command = { type = ART which = -2 value = 20 }
               command = { type = treasury value = -50 }
               command = { type = manpower value = 15 }
               command = { type = provincemanpower which = -2 value = 1 }
  command = { type = provincemanpower which = 1929 value = 1 }
  command = { type = provincemanpower which = 1931 value = 1 }
                 }
      action_b = {
               name = "Реформировать частично"
               command = { type = domestic which = quality value = 1 }
               command = { type = domestic which = land value = 1}
               command = { type = INF which = -2 value = 5000 }
               command = { type = CAV which = -2 value = 2000 }
               command = { type = ART which = -2 value = 5 }
               command = { type = treasury value = -20 }
               command = { type = manpower value = 8 }
               command = { type = provincemanpower which = -2 value = 1 }

                 }
      action_c = {
               name = "Положится на старую армию "
               command = { type = domestic which = land value = 2 }
                 }
}
#Bavaria seizes Donauwцrth (1607)
event = {
      id =  125017
      trigger = { OR = { religion = counterreform 
                         religion = catholic
                        }
                }
      random = no
      country = BAY
      name = "События в Донавице"
      desc = "EVENTHIST125017"
      style = 3
      action_a = {
               name = "Захватить Донавиц и навести там порядок"
               command = { type = religion which = counterreform }
               command = { type = domestic which = innovative value = -1 }
               command = { type = relation which = HAB value = 50 }
               command = { type = relation which = TYR value = 50 }
               command = { type = relation which = PRM value = 50 } 
               command = { type = relation which = SLZ value = 50 }
               command = { type = relation which = MAI value = 50 }
               command = { type = relation which = THU value = 50 }
               command = { type = relation which = KOL value = 50 }
               command = { type = relation which = PFA value = -80 }
               command = { type = relation which = BRA value = -80 }
               command = { type = relation which = WUR value = -80 }
               command = { type = relation which = HES value = -80 }
               command = { type = provincetax which = -1 value = 1 }
               command = { type = population which = -1 value = 1500 }
                 }
      action_b = {
               name = "Захватить Донавиц, но стать более терпимым к протестантам"
               command = { type = domestic which = innovative value = 1 }
               command = { type = relation which = PFA value = -50 }
               command = { type = relation which = BRA value = -50 }
               command = { type = relation which = WUR value = -50 }
               command = { type = relation which = HES value = -50 }
               command = { type = provincetax which = -1 value = 1 }
               command = { type = population which = -1 value = 1500 }
                 }
      action_c = {
               name = "Оставить город в покое"
               command = { type = domestic which = innovative value = 1 }
               command = { type = relation which = PFA value = 50 }
               command = { type = relation which = BRA value = 50 }
               command = { type = relation which = WUR value = 50 }
               command = { type = relation which = HES value = 50 }
               command = { type = relation which = HAB value = -50 }
               command = { type = relation which = TYR value = -50 }
               command = { type = relation which = PRM value = -50 } 
               command = { type = relation which = SLZ value = -50 }
               command = { type = relation which = MAI value = -50 }
               command = { type = relation which = THU value = -50 }
               command = { type = relation which = KOL value = -50 }
               command = { type = sleepevent which = 3668 }
                 }
      }

#The Electorate of Bavaria
event = {
      id = 125018
      trigger = { owned = { province = 348 data = -1 }
                  event = 3665 #PFA: The Winterking of Prague
                }
      random = no
      country = BAY
      name = "Бавария принемает Палтинат" 
      desc = "Первый этап тридцатилетней войны, война против мятежников-богемцев и династии Винтеркингов, имел полный успех для правителя и  католического союза. Белая Гора в Богемии была вновь захвачена, и протестантское дворянство было строго наказано, которое осмелилось свергнуть короля Богемии Фердинанда Австрийского, их земля была отдана католикам, из-за чего началось последующее преследование протестантов. Для того чтобы наказать Фридриха V Палатината и воздать должное Максимилиану Баварскому, Фердинанд лишил Фридриха его курфюршества и верхнего Палатината и подарил Баварии, которые являлись нарушением императорского закона, но с тех пор немецкий принц имел возможность противостоять Фердинанду и Максимилиану. Это было сделано, и Максимилиан добился признания соразмерно с его властью."
      style = 3
      
      date = { day = 1 month = january year = 1622 }
      offset = 200 
      deathdate = { day = 31 month = december year = 1650 }
      
      action_a = {
               name = "Проигнорировать эти смешные возражения и присоединить"
   
               command = { type = addcore which = 1933 }  
command = { type = addcore which = 348 }  
               command = { type = vp value = 50 } 
               command = { type = relation which = PFA value = -200 }
               command = { type = relation which = BRA value = -150 }
               command = { type = relation which = SAC value = -150 }
               command = { type = relation which = WUR value = -150 }
               command = { type = relation which = HAN value = -150 }
               command = { type = relation which = OLD value = -150 }
               command = { type = relation which = SHL value = -150 }
               command = { type = relation which = SWE value = -150 }
               command = { type = relation which = MAI value = -100 }
               command = { type = relation which = FRA value = -100 }
               command = { type = relation which = HAB value = 100 }
               command = { type = relation which = ENG value = -150 }
               command = { type = relation which = SCO value = -150 }
                 }
      action_b = {
               name = "Признать верховенство имперского закона"
               command = { type = stability value = 1 }
               command = { type = relation which = PFA value = 200 }
               command = { type = relation which = BRA value = 100 }
               command = { type = relation which = SAC value = 100 }
               command = { type = relation which = WUR value = 100 }
               command = { type = relation which = HAN value = 100 }
               command = { type = relation which = OLD value = 100 }
               command = { type = relation which = SHL value = 100 }
               command = { type = relation which = SWE value = 100 }
               command = { type = relation which = MAI value = 100 }
               command = { type = relation which = FRA value = 50 }
               command = { type = relation which = ENG value = 50 }
               command = { type = relation which = SCO value = 50 }
                 }
}
#Kreittmayr codifies the Bavarian law
event = {
      id = 125019
      random = no
      country = BAY
      name = "Кодифицировать баварский закон"
      desc = "Вдохновленный попытками Пруссии усовершенствовать закон, Максимилиан III Иосиф Баварский и его советник Виглуй Ксавьер Алойс фон Крейтмайер предприняли кодификацию баварского закона. Их целью не было объединить идеи просвещения, а укрепить Баварию после опустошительного поражения в войне за право владением Австрией. Тем не менее, Крейтмайеру удалось основать некоторые идеи просвещения, такие как внутренняя логика законов, желание использовать их без различий среди социальных групп и использование немецкого языка вместо латинского. После прохождения в 1753 году, кодекс уголовного права, самая значительная часть нового законодательства, уголовное право, которое  заботилось о гражданском праве, было установлено 2 января 1756 года. Оно имело силу в Баварии до 1899 года, когда оно было замещено гражданским кодексом при Германской империи."
      style = 4
      
      date = { day = 2 month = january year = 1756 }
      
      action_a = {
               name = "Позволить Крейтмайеру подредактировать закон"
               command = { type = domestic which = centralization value = 1 }
               command = { type = domestic which = innovative value = 1 }
               command = { type = gainbuilding   which = -1 value = cityrights } 
               command = { type = gainbuilding   which = -1 value = cityrights } 
               command = { type = inflation value = -5 }
               command = { type = stability value = 2 }
                }
      action_b = {
               name = "Включить идею относительно просвещения"
               command = { type = domestic which = innovative value = 2 }
               command = { type = domestic which = serfdom value = -2 }
               command = { type = domestic which = aristocracy value = -2 }
               command = { type = gainbuilding   which = -1 value = cityrights } 
               command = { type = gainbuilding   which = -1 value = cityrights } 
               command = { type = stability value = -3 }
                 }
      action_c = {
               name = "Оставить без изменения"
               command = { type = domestic which = innovative value = -2 }
                 }
}
#The Palatinate inherits Bavaria
event = {
      id = 125020
      trigger = { exists = PFA }
      random = no
      country = BAY 
      name = "Смерть последнего баварского герцога из рода Вительсбахов"
      desc = "30 декабря 177 года герцог скончался Максимилиан III Иосиф, последний из династии Вительсбахов. На основании соглашения, подписанное в 1724 году в случае если одна из династий Вительсбахов прекратится, пфальцграф курфюрст Карл Теодор был законным наследником, с условием если тот переместит свой двор в Мюнхен, с тем, чтобы Бавария могла остаться главной страной Вительсбахов."
      style = 4
      
      date = { day = 30 month = december year = 1777 }
      
      action_a = {
               name = "Все владения Вительсбахов должны быть объединены (конец игры)"
               command = { type = trigger which = 255003 }
               command = { type = stability value = 1 }
                 }
      action_b = {
               name = "Позволить баварии присоединится к Пфальцу-Биркенфельду-Гельнхаузену"
               command = { type = relation which = PFA value = -200 }
               command = { type = relation which = KOL value = -200 }
               command = { type = relation which = HAB value = -100 }
               command = { type = stability value = -2 }
               command = { type = sleepmonarch which = 06093 }
               command = { type = sleepmonarch which = 06094 } 
               command = { type = wakemonarch which = 06095 }
               command = { type = wakemonarch which = 06096 }
               command = { type = sleepevent which = 666222 }
                 }
}
event = {
       id = 125021
       random = no
       country = BAY
       name = "Палатинат объединился с Баварией"
       desc = "Карл Теодор признал условия соглашения, превратив пфальцграфство в незначительную страну, хотя он любил жить в Мангейм и чувствовал себя чужестранцем среди других чужестранцев в Мюнихе. Спустя более чем 400 лет разделение владений Вительсбахов будут вновь объединены."
       style = 4
       
       action_a = {
                name = "Отлично"
                command = { type = inherit which = PFA }
                command = { type = addcore which = 345 } 
                command = { type = addcore which = 1926 } 
                command = { type = domestic which = centralization value = -1 }
                  } 
        }
#Austria is defeated
event = {
       id = 125022
       trigger = { event = 3617 #BAY: Bavarian Succession of 1777; Austria has claimed Straubing
                   OR = { 
                          AND = { control = { province = 329 data = -1 } #Sudeten, Erz and Silesia
                                  control = { province = 330 data = -1 } 
                                  control = { province = 314 data = -1 } 
                                }
                          AND = { owned = { province = 328 data = HAB } #Bohemia
                                  control = { province = 328 data = -1 } 
                                }
                          AND = { owned = { province = 351 data = HAB } #Austria
                                  control = { province = 351 data = -1 } 
                                }
                          AND = { owned = { province = 378 data = HAB } #Brabant
                                  control = { province = 378 data = -1 } 
                                }
                          }
                   control = { province = 349 data = -1 } #Austria has not occupied Bavaria
                 }
       random = no
       country = BAY
       name = "Австрия побеждена"
       desc = " Война за право владением Баварией вызванная попытками Австрии включить в состав Штробинг, была недолгим конфликтом без продолжительных военных действий, которые начались с вторжения Пруссии в Богемию и выводом их в мае 1779 году, когда императрица Мария Тереза заставила своего сына Иосифа II капитулировать. 16 мая 1779 года, в Тешене было заключено мирно соглашение, и Австрия согласилась на небольшой Инский (приток Дуная) район."         
       style = 4
       
       date = { day = 1 month = january year = 1778 }
       offset = 0
       deathdate = { day = 31 month = december year = 1783 }
       
       action_a = {
                 name = "Мы победители!" 
                 command = { type = vp value = 250 }
                 command = { type = relation which = PRU value = 100 }               
                  }
}
#Straubing ceded to Austria
event = {
       id = 125023
       random = no
       country = BAY 
       name = "Агрессия Австрии в отношении Штробинга"
       desc = "Несмотря на сопротивление Пруссии, Австрии удалось оккупировать и включить в состав Штробинг, при этом совершая экспансию в южную Германию."
       style = 4
       
       action_a = {
                name = "Ok"
                command = { type = treasury value = 30 }
                command = { type = provincetax which = 349 value = -2 }
                command = { type = provincemanpower which = 349 value = -1 }
                command = { type = population which = 349 value = -3000 }     
                command = { type = relation which = HAB value = 50 }
                  }
}   
#Montgelas and Napoleonic era events
event = { 
      id = 125024
      random = no
      country = BAY
      name = "Монгель"
      desc = "EVENTHIST125024"
      style = 4
      
      date = { day = 17 month = february year = 1799 }

      action_a = {
               name = "Сделать Монгеля нашим Министром "
               command = { type = DIP which = 3 value = 230 }
               command = { type = ADM which = 3 value = 230 }
               command = { type = MIL which = 2 value = 230 }
               command = { type = domestic which = innovative value = 1 }
               command = { type = relation which = FRA value = 100 }
               command = { type = relation which = HAB value = -100 }
               command = { type = setflag which = [Montgelas] }               
                 }
      action_b = {
               name = "Назначить менее известного человека"
               command = { type = stability value = 1 }
               command = { type = relation which = HAB value = 50 }
                 }
}
#Reichsdeputationshauptschluss; Bavaria incorporates Wьrzburg (1803)
event = {
      id = 125025
      trigger = { 
                  flag = [Montgelas]
                  owned = { province = 348 data = -1 } #Ansbach needed as connection to Wьrzburg
                  owned = { province = 344 data = FRA } #France owns the whole German left bank of the Rhine (Kцln, Pfalz and Alsace)
                  owned = { province = 345 data = FRA }
                  owned = { province = 374 data = FRA }
                }
      random = no
      country = BAY
      name = "Депутация империи"
      desc = "EVENTHIST125025"
      style = 5

      date = { day = 25 month = february year = 1803 }
      deathdate = { day = 31 month = december year = 1806 }
      
      action_a = { 
               name = "Отлично"
               command = { type = addcore which = 347 }
               command = { type = inherit which = THU } #A competent Wьrzburg player would not let Bavaria survive that long, hence the 'inevitable' inheritance is not that bad; I actually don't see how the Bishoprics would have had any choice
               command = { type = provincetax which = -2 value = 5 }
               command = { type = provincemanpower which = -2 value = 4 }
               command = { type = population which = -2 value = 10000 }
               command = { type = provincetax which = 348 value = 1 }
               command = { type = provincemanpower which = 348 value = 1 }
 command = { type = provincetax which = 1929 value = 1 }
               command = { type = provincemanpower which = 1929 value = 1 }
               command = { type = population which = 348 value = 3000 }
command = { type = population which = 1929 value = 3000 }
                 }
}
#Centralization reforms of Montgelas (1803)
event = {
      id = 125026
      trigger = { flag = [Montgelas] }
      random = no
      country = BAY
      name = "Реформы просвещения Максимилиана Монгеля"
      desc = "Министр Максимилиан Джозеф Монгель, свободный от предрассудков и суеверий, и верил в необходимость радикальных реформ, желая превратить Баварию во внутренне сильную и передовую страну. После недолгих, трудных переговоров с все еще сильными княжествами, он решили пренебречь княжествами, и постепенно снизить их привилегии, поэтому распространяя влияние курфюрста и главную бюрократию. Монтгель преобразовал также систему образования, улучшив меры, и начал систематическое лишение собственности церковнослужителей, а также секуляризацию управления государством и законом. Эти шаги не были одобрены достаточно консервативным населением, в особенности церковью, возникла оппозиция против него."
      style = 5
      
      date = { day = 1 month = january year = 1803 }
      offset = 300
      
      action_a = {
               name = "Провести реформу"
               command = { type = stability value = -3 }
               command = { type = domestic which = innovative value = 1 }
               command = { type = infra value = 300 }
               command = { type = domestic which = centralization value = 2 }
               command = { type = relation which = PAP value = -200 }
               command = { type = domestic which = aristocracy value = -1 }
                }
      action_b = {
               name = "Нам не нужны реформы"
               command = { type = stability value = 1 }
                 }
}
#The Kingdom of Bavaria (1806)
event = {
      id = 125027
      trigger = { 
                  flag = [Montgelas]
                  countrysize = 3 
                }
      random = no
      country = BAY
      name = "Королевство Бавария"
      desc = "EVENTHIST125027"
      style = 5
      
      date = { day = 1 month = january year = 1806 }
      offset = 0
      deathdate = { day = 31 month = december year = 1813 }
      
      action_a = {
               name = "Корону королю!"
               command = { type = addcore which = 371 }
               command = { type = addcore which = 350 }
               command = { type = vp value = 50 }
               command = { type = diplomats value = 3 }
               command = { type = DIP which = 1 value = 180 } 
               command = { type = relation which = HAB value = -100 }
               command = { type = relation which = FRA value = 50 }
               command = { type = dynastic which = FRA }
                 }
}
#The Constitution of 1808
event = {
      id = 125028
      trigger = { event = 125027 }
      random = no
      country = BAY
      name = "Конституция от 1808 года"
      desc = "По настоянию наполеоновской Франции и по своим собственным убеждениям Монгелю удалось продолжить проведение своих реформ после провозглашения Баварии королевством. Революционная конституция от 1 мая 1808 года, устанавливающая равенство перед законом, общую налоговую повинность, отмену крепостного права, свободу совести и некоторые другие индивидуальные конституционные гарантии во всей Баварии, могла считаться его самым большим политическим достижением. По этой конституции Монгель распространил законы Баварии и управление на все новые территории, включая также Тироль, который всегда пользовался правом автономии при австрийском правлении."
      style = 5
      
      date = { day = 1 month = may year = 1808 }
      
      action_a = {
               name = "Ввести конституцию во всей Баварии"
               command = { type = domestic which = innovative value = 2 }
               command = { type = domestic which = serfdom value = -3 }
               command = { type = domestic which = centralization value = 2 }
               command = { type = domestic which = aristocracy value = -2 }
               command = { type = stability value = -3 }
               command = { type = province_revoltrisk which = 371 value = 5 }
               command = { type = province_revoltrisk which = 350 value = 4 }
               command = { type = province_revoltrisk which = 347 value = 3 }
                 }
      action_b = {
               name = "Ввести конституцию илишь на новых территориях"
               command = { type = domestic which = innovative value = 2 }
               command = { type = domestic which = serfdom value = -3 }
               command = { type = domestic which = centralization value = -1 }
               command = { type = domestic which = aristocracy value = -2 }
               command = { type = stability value = -5 }
               command = { type = province_revoltrisk which = 371 value = 3 }
               command = { type = province_revoltrisk which = 350 value = 3 }
                 }
      action_c = {
               name = "Остановить реформы"
               command = { type = domestic which = innovative value = -1 }
               command = { type = stability value = 2 }
                 }
}


#
#  AGCEEP_(Hussites)_BAY
#

#The Bohemian throne
event = {
      id = 125040
      random = no
      country = BAY
      name = "Богемский трон"
      desc = "В 1440 году поместья Богемии предложили Альбрехту Баварскому-Мюнхенскому трон в Богемии. Занимаясь борьбой со своими родственниками, не желая конфликтовать с Габсбургами и с воинственными еретиками-богемцами, Альбрехт Баварский отказался от предложенного ему трона Богемии. Это не оставило дворянству никакого выбора, кроме того, чтобы признать наследником, еще не родившегося ребенка Альбрехта Габсбурга."
      style = 1
       
      action_a = {
               name = "Отклонить предложение"
               command = { type = relation which = BOH value = -100 }        
               command = { type = relation which = HAB value = 100 }
               command = { type = stability value = 1 } 
               command = { type = trigger which = 129007} #BOH: Bavaria refuses
                 }
      action_b = {
               name = "Принять предложение и стать королём"
               command = { type = relation which = BOH value = 300 }        
               command = { type = relation which = HAB value = -100 }
               command = { type = vp value = 40 }
               command = { type = vassal which = BOH }
               command = { type = alliance which = BOH }
               command = { type = dynastic which = BOH }
               command = { type = stability value = -2 }
               command = { type = trigger which = 129005 } #BOH: Albrecht accepts
                  }
}
#Coronation of Albrecht
event = {
      id = 125041
      trigger = { event = 129005 #BOH: Bavaria accepts
                  NOT = { vassal = { country = BAY country = BOH }}
                }
      random = no
      country = BAY
      name = "Корона святого Вацлава"
      desc = "Наш герцог Альбрехт получил корону святого Ванцлава в Праге и сейчас является королем Богемии."
      style = 1
      
      date = { day = 2 month = january year = 1440 }
      offset = 0
      deathdate = { day = 31 month = december year = 1440 }
 
      action_a = {
               name = "Отлично"
               command = { type = vassal which = BOH } 
               command = { type = alliance which = BOH }
               command = { type = dynastic which = BOH }
               command = { type = relation which = BOH value = 200 }
                }
}
#Wittelsbachs become hereditary Kings of Bohemia
event = {
      id = 125042
      random = no
      country = BAY
      name = "Виттельсбахи-короли Богемии"
      desc = "Богемия признала Вительсбахов из Баварии королями-наследниками. Корона святого Ванцлава станет нашей надолго."
      style = 1
      
      action_a = {
               name = "Отлично"
               command = { type = addcore which = 314 }
	       command = { type = addcore which = 315 }
	       command = { type = addcore which = 328 }
	       command = { type = addcore which = 329 }
	       command = { type = addcore which = 330 }
	       command = { type = addcore which = 1940 }
	       command = { type = addcore which = 1943 }
               command = { type = addcore which = 1987 }
               command = { type = inherit which = BOH }
               command = { type = add_countryculture which = czech }
                 }
}

#The Hussite Wars
event = {
         id = 125600
         trigger = { event = 129001 } #BOH: Death of Vaclav IV
         random = no
         country = BAY
         name = "Гуситские войны" 
         desc = "Уничтожим проклятых еретиков." 
         style = 1
         
         date = { day = 17 month = august year = 1419 }        
         offset = 1
         
         action_a = {
                      name = "Ok"
                      command = { type = casusbelli which = SIL value = 120 }
                        }
}

#Catholicism restored in Bohemia
event = {
      id = 125601
      trigger = { 
              OR = { religion = reformed
                     religion = protestant }
                  NOT = { exists = SIL }
                }
      random = no
      country = BAY
      name = "Гуситская ересь подавлена"
      desc = "Королевство Богемии наконец приняло католицизм. В последствии, немецкие принцы под влиянием гуситов были вынуждены принять неправильное решение, которое возвратило страну к католической церкви. Снисхождение папы римского обеспечит им прощение, что они вынужденно обратились к ереси."
      style = 1
      
      date = { day = 17 month = august year = 1419 }
      offset = 0
      deathdate = { day = 31 month = december year = 1499 }

      action_a = {
               name = "Ввести католицизм"
               command = { type = religion which = catholic }
               command = { type = stability value = 3 }
                 }
}