#The Purge of the Archbishop of Salzburg#
event = {

	id = 3755
	trigger = {
			NOT = {
				event = 3203
				}
		}
	random = no
	country = SLZ
	name = "EVENTNAME3755"
	desc = "EVENTHIST3755"
	style = 4

	date = { day = 1 month = january year = 1731 }
	offset = 10
	deathdate = { day = 1 month = january year = 1732 }

	action_a ={			#Purge the Protestants#
		name = "ACTIONNAME3755A"
		command = { type = domestic which = INNOVATIVE value = -3 }
		command = { type = population which = 350 value = -7000 }
		command = { type = stability value = -1 }
		command = { type = trigger which = 3543 }
	}

	action_b ={			#Leave the Protestants alone#
		name = "ACTIONNAME3755B"
		command = { type = domestic which = INNOVATIVE value = 1 }
		command = { type = provincereligion which = 350 value = protestant }
		command = { type = stability value = 1 }
	}
}

#Ernst of Bavaria elected Archbishop
event = {
      id = 283010
      trigger = { exists = BAY
                  NOT = { war = { country = SLZ country = BAY }}
                }
      random = no
      country = SLZ
      name = "Герцога Эрнста Баварского выбрали архиепископом Зальцбурга"
      desc = "В 1540 году герцога Эрнста Баварского, младшего брата Вильгельма Баварского, выбрали наследником Зальцбургского архиепископства, которое в течение 14 лет правления Эрнста находилось под влиянием  династии Виттельсбахов."
      style = 2
      
      date = { day = 30 month = march year = 1540 }
      
      action_a =  {
               name = "Ok"
               command = { type = breakvassal which = HAB }
               command = { type = dynastic which = BAY }
               command = { type = relation which = BAY value = 50 }
               command = { type = trigger which = 125012 }
                  }
}

event = {
          id = 283011
          trigger = {
		event = 125012
		NOT = { alliance = { country = SLZ country = BAY } }
		}
          random = no
          country = SLZ
          name = "Эрнст Баварский создаёт союз"
          desc = "Пользуясь своим новым положением, Эрнст создал союз Баварии и Зальцбурга."
          style = 2
          date = { day = 1 month = april year = 1540 }

          action_a = {
                      name = "OK"
	    	      command = { type = alliance which = BAY }
                      }
  }  
#End of Vassalage
event = {
      id = 283012
      trigger = { event = 125012
                  vassal = { country = BAY country = SLZ }
                }
      random = no
      country = SLZ
      name = "Смерть архиепископа Эрста Баварского"
      desc = "После смерти архиепископа Эрнста Баварского, кафедральный собор Зальцбурга выбрал местного дворянина - графа Михаэля Куэнбургского. Таким образом, влияние Баварии на Зальцбург было ограничено."
      style = 2
      date = { day = 16 month = july year = 1554 }
      
      action_a = {
               name = "Выбрать Михаэля Каунта Куэнбургского"
               command = { type = breakdynastic which = BAY }
               command = { type = relation which = BAY value = -50 }
               command = { type = breakvassal which = BAY }
                 }
}