#####Teutonic Order Major Events#####
####By Joakim 'Greven' Bergqwist#####
#####################################
######Teutonic & Livonian Events#####
#	By Raudex & Chimera	    #	     
#####################################
# 	Revised by Twoflower	    #
#####################################

#Hohenzollern Prussia become Polish Duchy#
event = {

	id = 3619				#Triggered by PRU3516#
	random = no
	country = LIV
	name = "EVENTNAME3619"
	desc = "EVENTHIST3619"
	style = 2

	action_a ={				#Accept the act#
		name = "ACTIONNAME3619A"
		command = { type = relation which = POL value = -150 }
		command = { type = relation which = PRU value = 50 }
		command = { type = treasury value = 250 }
	}

	action_b ={				#Defy this act of treason#
		name = "ACTIONNAME3619B"
		command = { type = casusbelli which = PRU value = 240 }
		command = { type = casusbelli which = POL value = 60 }
		command = { type = relation which = PRU value = -150 }
		command = { type = relation which = POL value = -150 }
		command = { type = treasury value = -250 }
	}
}



#The Fate of the Teutonic Order#
event = {

	id = 95492
	trigger = {
		AND = {
		 	exists = POL
			exists = SWE
			exists = DAN
			exists = RUS 
			}
		NOT = {
			exists = PRU
			exists = U15
			}
		}
	random = no
	country = LAT
	name = "EVENTNAME95492"
	desc = "EVENTHIST95492"
	style = 2

	date = { day = 1 month = january year = 1525 }

	action_a ={
		name = "ACTIONNAME95492A"
		command = { type = religion which = protestant }
		command = { type = country which = U15 }
		command = { type = treasury value = 500 }
		command = { type = stability value = 6 }
command = { type = independence which = POD } # Masovia
command = { type = independence which = LIV } # Livonian Order
command = { type = secedeprovince which = POL value = 301 }
command = { type = secedeprovince which = POL value = 291 }
command = { type = secedeprovince which = POL value = 303 }
command = { type = secedeprovince which = POL value = 1945 }
command = { type = secedeprovince which = POL value = 1946 }
command = { type = secedeprovince which = POL value = 292 }
command = { type = secedeprovince which = POL value = 299 }
command = { type = secedeprovince which = POL value = 300 }
command = { type = secedeprovince which = POL value = 298 }
command = { type = secedeprovince which = POL value = 293 }
command = { type = secedeprovince which = POL value = 1949 }
command = { type = secedeprovince which = POL value = 289 }
command = { type = secedeprovince which = POL value = 288 }
command = { type = secedeprovince which = POL value = 284 }
command = { type = secedeprovince which = POL value = 1426 }
command = { type = secedeprovince which = POL value = 287 }
command = { type = secedeprovince which = POL value = 1979 }
command = { type = secedeprovince which = POL value = 1397 }
command = { type = secedeprovince which = POL value = 1914 }
command = { type = independence which = BRA }
command = { type = independence which = POM }
command = { type = independence which = LIV }
command = { type = independence which = MEC }
command = { type = breakvassal  which = DAN }
command = { type = breakvassal  which = SWE }
command = { type = breakvassal  which = LIT }
command = { type = breakvassal  which = MIN }
command = { type = breakvassal  which = LIV }
command = { type = breakvassal  which = BRA }

	}
	action_b ={
		name = "ACTIONNAME95492B"
		command = { type = stability value = -3 }
		command = { type = treasury value = -500 }
		command = { type = religion which = catholic }
		command = { type = domestic which = ARISTOCRACY value = 3 }
		command = { type = domestic which = INNOVATIVE value = -3 }
		command = { type = domestic which = SERFDOM value = 3 }
                command = { type = domestic which = LAND value = 3 }
	}
}

event = {

	id = 200323
	random = no
	country = LAT
	name = "Орден становиться Пруссией"
	desc = "EVENT_LAT_PRU"
	style = 2

	date = { day = 1 month = january year = 1550 }

	action_a ={
		name = "Мы - Пруссия!"
		command = { type = treasury value = 200 }
		command = { type = stability value = 3 }
		command = { type = domestic which = ARISTOCRACY value = 1 }
		command = { type = domestic which = INNOVATIVE value = 1 }
		command = { type = domestic which = SERFDOM value = 1 }
                command = { type = domestic which = centralization value = 1 }
                command = { type = country which = PRU }
                command = { type = provinceculture which = 290 value = german }
                command = { type = addcore which =  1945 }
                command = { type = addcore which =  291 }
                command = { type = addcore which =  288 }
                command = { type = addcore which =  284 }
                command = { type = addcore which =  289 }
                command = { type = addcore which =  283 }
                command = { type = addcore which =  1009 }
                command = { type = addcore which =  1429 }
                command = { type = addcore which =  282  }
    command = { type = addcore which =  1979  }
	}
}

################################
## Prussia and TO event chain
## by Neuromancer
################################

# Teutonic Order restoration events (1419-1510)
event = {
	id = 209010
	name = "земли Тевтонского Ордена"
	desc = "Создание Тевтонского Ордена в прибалтийском регионе датируется 1225 годом, когда герцог Конрад Мазовский попросил помощи у тевтонских рицарей в борьбе против прусских язычников. Имея поддержку со стороны Папы Римского, Священной Римской Империи и ряда других немецких государств, Тевтонский Орден в скором времени стал гланой силой в этом регионе. Теперь их земли наши, мы отдадим их ордену или оставим для себя?"
	random = no
	date = { day = 1 month = january year = 1419 }
	offset = 30
	deathdate = { day = 1 month = january year = 1510 }
	province = 290 # Prussia
	trigger = {
		NOT = {
			core = { province = 302 data = -1 }
			exists = PRU
			exists = LAT
			OR = {
				 owned = { province = 290 data = POL } # Prussia
				 owned = { province = 290 data = LIV } # Prussia
			}
		}	
		OR = {
			religion = catholic
			religion = counterreform
		}	
	}
	style = 1
	action_a = {
		name = "Давайте восстанавливать их"
		command = { type = independence which = LAT }
command = { type = secedeprovince which = LAT value = 1978 }
		command = { type = badboy value = -5 }
		command = { type = relation which = HAB value = 100 } #All other Catholics nations.
		command = { type = relation which = BRA value = 100 } #All other Catholics nations.
		command = { type = relation which = POL value = -50 } #All other Catholics nations.
		command = { type = relation which = LIT value = -50 } #All other Catholics nations.
		command = { type = relation which = STT value = 100 } #All other Catholics nations
		command = { type = relation which = POM value = -50 } 
		command = {type = VP value = 50 } 
	}

	action_b = {
		name = "Мы будем управлять Пруссией!"
		command = { type = badboy value = 2 } 
		command = { type = stability value = -1 }		
	}
}

# Teutonic Order restoration events (1510-1523)
event = {
	id = 209011
	name = "Земли Тевтонского Ордена"
	desc = "Создание Тевтонского Ордена в прибалтийском регионе началось в 1225 году, когда герцог Конрад Мазовский попросил помощи у тевтонских рицарей в борьбе против прусских язычников. Имея поддержку со стороны Папы Римского, Священной Римской Империи и ряда других немецких государств, Тевтонский Орден в скором времени стал гланой силой в этом регионе. Теперь их земли наши, мы отдадим их ордену или оставим для себя?"
	random = no
	date = { day = 1 month = january year = 1510 }
	offset = 30
	deathdate = { day = 30 month = december year = 1523 }
	province = 290 # Prussia
	trigger = {
		NOT = {
			core = { province = 290 data = -1 }
			exists = PRU
			exists = LAT
			OR = {
				 owned = { province = 290 data = POL } # Prussia
				 owned = { province = 290 data = LIV } # Prussia
			}
		}	
		OR = {
			religion = catholic
			religion = counterreform
		}	
	}
	style = 1
	action_a = {
		name = "Давайте восстанавливать их"
		command = { type = independence which = LAT }
command = { type = secedeprovince which = LAT value = 1978 }
		command = { type = badboy value = -5 }
		command = { type = relation which = HAB value = 100 } #All other Catholics nations.
		command = { type = relation which = BRA value = 100 } #All other Catholics nations.
		command = { type = relation which = POL value = -50 } #All other Catholics nations.
		command = { type = relation which = LIT value = -50 } #All other Catholics nations.
		command = { type = relation which = STT value = 100 } #All other Catholics nations.
		command = { type = relation which = POM value = -50 }
		command = {type = VP value = 50 } 
	}

	action_b = {
		name = "Мы будем управлять Пруссией!"
		command = { type = badboy value = 2 } 
		command = { type = stability value = -1 }
		
	}
}



#Danzig has a chance to become a trade center#
#Vilkouak-AGC
event = {
	id = 20124
province = 301
	trigger = { 
		owned = { province = 301 data = -1 }
		atwar = no
	}
	random = no
	name = "Данцинг имеет шанс стать торговым центром"
	desc = "В XV веке в Западной Европе была острая нехватка зерна. И единственный путь получить зерно был купить его. Польша производила зерна больше чем достаточно. 'Человек разумный' ('Homo Oeconomicus') воспользовался возможностью, и ему это удалось. Данциг, город, который существовал только благодаря торговле, превратился в самый важный торговый центр Балтийского региона, за исключением, пожалуй, Любека. В связи с этим в нём обосновалось значительное число немецких поселенцев." 
	style = 1
	date = { day = 1 month = january year = 1435 }
	offset = 600
	deathdate = { day = 1 month = january year = 1655 }

	action_a = {  
		name = "Да, мы должны сделать деньги на этом"
		command = { type = population which = 301 value = 1000 }
		command = { type = provincetax which = 301 value = 3 }
		command = { type = cot which = 301 }
		command = { type = stability value = 1 }
		command = { type = treasury value = -50 } 

	}

	action_b = {
		name = "Нам это не нужно"
                command = { type = provinceculture which = 301 value = polish }
                command = { type = trade value = -500 } 
		command = { type = treasury value = 200 } 
		command = { type = stability value = -1 }
		command = { type = revolt which = 301 }
                command = { type = revolt which = 301 }
                command = { type = revolt which = 301 }
                command = { type = revolt which = 301 }
	}
}

 


#Sale of Neumark
event = { 
      id = 209000
      trigger = { 
          owned = { province = 313 data = LAT } #Kьstrin
          NOT = { 
                war = { country = BRA country = LAT }
                    }
          war = { country = POL country = LAT }
                OR = { 
                     NOT = { control = { province = 1944 data = LAT } } 
                     NOT = { control = { province = 1978 data = LAT } }
                     NOT = { control = { province = 290 data = LAT } } #Prussia
                     NOT = { control = { province = 301 data = LAT } } #Danzig
                     NOT = { control = { province = 313 data = LAT } } #Kьstrin
                       }
                   NOT = { countrysize = 8 } #Should obviously not happen to a very powerful Order
                 }

      random = no
      country = LAT
      name = "Продажа Неймарка" 
      desc = "Неймарк, первоначально был частью Бранденбурга на востоке реки Одра, но в 1402 году город был отдан императором Сигизмундом под залог Тевтонскому Ордену. В тяжелом финансовом, политическом и военном положении, вызванном восстанием Прусской лигой ящериц и вмешательством Казимира, Орден принял решение, что будет лучше продать Неймарк курфюрсту Бранденбурга, тем самымполучить прибыль и поддержку, вместо того, чтобы отдать территорию польскому королю, которого, безусловно, интересовала возможность перенести обратно границу с Германией на реку Одер. Таким образом, 22 февраля эмиссары Ордена предложили эту территорию Фридриху II за 40000 гульденов. Курфюрст с радостью принял предложение и 5 апреля, в Ной-Ландсберге, принес клятву верности Неймарку."
      style = 1
        
      date = { day = 1 month = january year = 1419 }
      offset = 0
      deathdate = { day = 31 month = december year = 1500 }
      
      action_a = {
               name = "Предложить Неймарк Бранденбургу"
               command = { type = trigger which = 132101 } #BRA: Acquisition of Neumark
                 }
      action_b = {
                name = "Держать Неймар"
                command = { type = revolt which = 313 }
                command = { type = relation which = BRA value = -50 }
                  }
}
event = {
      id = 209001
      random = no
      country = LAT
      name = "Бранденбург согласен"
      desc = "Курфюрст Бранденбурга принял решение купить Неймарк. Теперь нам не придется беспокоиться об этом бедном изолированном кусочке земли, и мы получили так нам необходимые средства на войну с Польшей."
      style = 1
      
      action_a = {
               name = "Хорошо"
               command = { type = removecore which = 313 }
               command = { type = secedeprovince which = BRA value = 313 }
               command = { type = treasury value = 100 }
                 }
}

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

event = { 
        id = 292085
        trigger = { 

                    atwar = yes 
                   NOT = { control = { province = 301 data = LAT } }
                   NOT = { control = { province = 1944 data = LAT } }
                   NOT = {  owned = { province = 1978 data = LAT } }

                  
	           owned = { province = 871 data = -1 }
                   owned = { province = 290 data = -1 }
                  
        } 
        random = NO 
        country = LAT
        name = "Перенесём столицу в Кенигсберг" 
        desc = "Великий Магистр, наша нынешняя столица Мариенбург находится в опасной близости от польских владений. Не лучше ли будет перенести столицу в Кенигсберг - более отдалённый и лучше приспособленный для обороны город с хорошим портом и гаванью?" 
        date = { day = 1 month = june year = 1419 }
	offset = 100
	deathdate = { day = 1 month = january year = 1540 }
        style = 1 

        action_a = { 
                   name = "Переносим столицу в Кенигсберг" 
                   command = { type = capital which = 290 } 
                   command = { type = fortress which = 290 value = 1 }
                   command = { type = stability value = 1 } 
                   } 
        action_b = { 
                   name = "Остаёмся в Мариенбурге" 
                   command = { type = INF which = 871 value = 6000 } 
                   command = { type = CAV which = 871 value = 3000 } 
                   command = { type = stability value = -1 } 
        } 
} 