#Friesland events by TheF, modified by Twoflower

event = { 
	id = 22005 
	random = no 
	country = MLL
	name = "EVENTNAME22005" 
	desc = "EVENTHIST22005"
	style = 1 
	trigger = { exists = FRI } 
	date = { day = 1 month = january year = 1498 } 
	offset = 350 
	deathdate = { day = 30 month = december year = 1498 } 

	action_a = { 
		name = "ACTIONNAME3855A" 
		command = { type = vassal which = FRI } 
		command = { type = trigger which = 22006 } 
		command = { type = relation which = OLD value = -50 } 
		command = { type = relation which = GEL value = -50 } 
		command = { type = relation which = HAB value = -50 } 
		command = { type = INF which = 1915 value = 2000 } #Albrecht sent between 2000 and 3000 men to Friesland# 
		command = { type = CAV which = 1915 value = 1000 } 
		} 

	action_b = { 
		name = "ACTIONNAME22005A" 
		command = { type = treasury value = 25 } 
		command = { type = relation which = HAB value = -100 } 
		} 
} 

#The sale of Friesland# 
event = { 
	id = 22007 
	random = no 
	country = MLL
	name = "EVENTNAME22007" 
	desc = "EVENTHIST22007"
	style = 1 
	trigger = {
		OR = {
			owned = { province = 339 data = HAB } #Holland 
			AND = {
				owned = { province = 339 data = BUR } #Holland 
				vassal = { country = HAB country = BUR }
			}
		}
		OR = {
			vassal = { country = MLL country = FRI }
			owned = { province = 337 data = -1 }
		}
	}

	date = { day = 1 month = january year = 1515 } 
	offset = 25 
	deathdate = { day = 2 month = february year = 1515 } 

	action_a = { 
		name = "ACTIONNAME22007A" 
		command = { type = relation which = BUR value = 50 } 
		command = { type = trigger which = 22008 } 
	} 
	action_b = { 
		name = "ACTIONNAME22007B" 
		command = { type = relation which = BUR value = -50 } 
	} 
}
event = { 
	id = 22009 
	random = no 
	country = MLL
	name = "EVENTNAME22009" 
	desc = "EVENTHIST22009" 
	style = 1 

	action_a = { 
		name = "ACTIONNAME3855A" 
		command = { type = secedeprovince which = BUR value = 337 }
		command = { type = treasury value = 200 } 
		command = { type = breakvassal which = FRI } 
		} 
} 

#Wettins inherit the Electorate (1422)
event = {
      id = 319000
      random = no
      country = MLL
      name = "Мейсен присоединяет Саксонию-Виттенберг"
      desc = "EVENTHIST273000"
      style = 1
      
      action_a = {
               name = "Отлично!"
               command = { type = addcore which = 332 }
 command = { type = addcore which = 1942 }
command = { type = addcore which = 1940 }
               command = { type = inherit which = SAC }
               command = { type = relation which = BRA value = -50 }
                 }
}
event = {
      id = 319001
      trigger = { event = 319000
                  owned = { province = 1942 data = -1 }
		control = { province = 1942 data = -1 }
                }
      random = no
      country = MLL
      name = "The Wettin Electorate of Saxony"
      desc = "On August 1st 1425 the Electorate of Saxony was officially bestowed upon Friedrich of MeiЯen in a ceremony in Ofen, along with the office of Imperial Archmarshall and the introduction to the electoral college."
      style = 1
      
      date = { day = 1 month = august year = 1425 }
      offset = 100
      
      action_a = {
               name = "Thank you"
               command = { type = vp value = 50 }
               command = { type = country which = SAC }
               command = { type = diplomats value = 6 }
               command = { type = relation which = HUN value = 50 }
               command = { type = relation which = MAI value = 50 }
               command = { type = relation which = KOL value = 50 }
               command = { type = relation which = PFA value = 50 }
                 }
}

#Partition of Leipzig
event = {
      id = 319002
      trigger = {
		   event = 273001
                   owned = { province = 1942 data = -1 }
                }
      random = no
      country = MLL
      name = "The electorate and Thuringia are given to Ernst"
      desc = "While Albrecht remained in Dresden and got the richest part of the Wettin possessions, his brother Ernst moved to the old capital of the electorate, Wittenberg, and was formally in a superior rank. Nevertheless, after less than a century, the Albertine branch proved to be more powerful and achieved hegemony over the Ernestines."
      style = 1
      
      action_a = {
               name = "Ok"
               command = { type = independence which = SAC }
               command = { type = trigger which = 273002 }
                 }
} 
event = {
      id = 319003
      random = no
      country = MLL
      name = "Elector Ernst moves to Wittenberg"
      desc = "While Albrecht remained in Dresden and got the richest part of the Wettin possessions, his brother Ernst moved to the old capital of the electorate, Wittenberg, and was formally in a superior rank. Nevertheless, after less than a century, the Albertine branch proved to be more powerful and achieved hegemony over the Ernestines."
      style = 1
      
      action_a = {
               name = "Ok"
               command = { type = breakvassal which = SAC }
               command = { type = alliance which = SAC }
               command = { type = relation which = SAC value = 200 }
                }
}       
#Trade Fair in Leipzig
event = {
      id = 319004
      trigger = { event = 273010
                  owned = { province = 1915 data = -1 }
	 	  NOT = { event = 273011 } #same event for Saxony
                }
      random = no
      country = MLL
      name = "Имперские привилегии для лейпцигской ярмарки"
      desc = "В 1497 году император Максимилиан жаловал Лейпцигу право на проведение третьей ежегодной ярмарки. Таким образом, превратив его в самый крупный не ганзейский торговый город империи. Почти вся торговля, ведущаяся на востоке, проходила прямо через Лейпциг, который продолжал процветать и быстро развиваться. Папа Римский одобрил это право только в 1514 году."
      style = 1
      
      date = { day = 1 month = january year = 1497 }
      offset = 250 
      
      action_a = {
               name = "Great"
               command = { type = trade value = 350 }
               command = { type = merchants value = 3 }
               command = { type = relation which = HAB value = 100 }
                 }
}
#The League of Schmalkalden#
event = {

	id = 319005
	trigger = {
		 exists = HAB  
		 	AND = { 
				OR = {
					religion = protestant
					religion = reformed
						}
			}
	}
	random = no
	country = MLL
	name = "EVENTNAME3622"
	desc = "EVENTHIST3622"
	style = 2

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

        action_a ={					#Ignore it#
		name = "ACTIONNAME3622B"
		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 = HAB value = 50 }
	}
	action_b ={					#Give it your support#
		name = "ACTIONNAME3622A"
		command = { type = relation which = FRA value = 100 }
		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 = PAP value = -100 }
		command = { type = relation which = SPA value = -100 }
		command = { type = relation which = HAB value = -150 }
                command = { type = sleepevent which = 319006 } #Recovery of the Electorate
	}
}
#Recovery of the Electorate
event = {
      id = 319006
      trigger = { owned = { province = 1942 data = -1 } #Anhalt
                  event = 273001 #Partition of Leipzig 
                  event = 3622 #SAC: League of Schmalkalden
                }
      random = no 
      country = MLL
      name = "Recovery of the Electorate"
      desc = "EVENT_319006"
      style = 2
      
      date = { day = 1 month = january year = 1520 }
      offset = 100
      deathdate = { day = 31 month = december year = 1590 }
      
      action_a = {
               name = "Reclaim the Saxon Electorate"
               command = { type = country which = SAC }
               command = { type = vp value = 30 } 
               command = { type = relation which = HAB value = 100 }
               command = { type = relation which = BAY value = 100 }
               command = { type = relation which = HES value = -100 }
               command = { type = relation which = BRA value = -100 }
               command = { type = relation which = PFA value = -100 }
                 }
}
#Switch to SAC tag after 1600 
event = {
      id = 319007
      trigger = { NOT = { exists = SAC }
                }
      random = no 
      country = MLL
      name = "Recovery of the Electorate"
      desc = "Since the Ernestine branch of the Wettin family that has owned the electorate is extinct, the Albertine branch in MeiЯen has the opportunity to lead the Wettin dynasty and assume the Saxon electorate."
      style = 2
      
      date = { day = 1 month = january year = 1600 }
      offset = 100
      deathdate = { day = 31 month = december year = 1803 }
      
      action_a = {
               name = "Reclaim the Saxon Electorate"
               command = { type = country which = SAC }
               command = { type = vp value = 15 } 
                 }
      action_b = { 
               name = "Stay Margraves of MeiЯen"
               command = { type = vp value = -5 }
                 }
}

#The Hussite Wars
event = {
         id = 319600
         trigger = { event = 129001 } #BOH: Death of Vaclav IV
         random = no
         country = MLL
         name = "The Hussite Wars" 
         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 = 319601
      trigger = { 
              OR = { religion = reformed
                     religion = protestant }
                  NOT = { exists = SIL }
                }
      random = no
      country = MLL
      name = "Гусситская ересь остановлена"
      desc = "Наконец то королевство Богемия обратно вернулось в лоно католической церкви. Как следствие, немецкие принцы, которые были вынуждены отвернутся от церкви во время гусситских войн, теперь могут благополучно вернутся к римской церкви, Папа Римский обещает быть снисходительным и простит неверующих."
      style = 1
      
      date = { day = 17 month = august year = 1419 }
      offset = 600
      deathdate = { day = 31 month = december year = 1490 }

      action_a = {
               name = "Restore Catholicism"
               command = { type = religion which = catholic }
               command = { type = stability value = 3 }
                 }
}
