
###########################
#####Livonian Events#######
#########EEP RUS###########
#	By Dmitriy	  #
#   Corrected by Crook    #
###########################

#The Fate of the Livonian Order#
event = {

	id = 3620
	trigger = {
		AND = {
		 	exists = POL
			exists = SWE
			exists = DAN
			exists = RUS 
			}
			atwar = no
		NOT = {
			exists = KUR
			}
		}
	random = no
	country = LIV
	name = "EVENTNAME3620"
	desc = "EVENTHIST3620"
	style = 2

	date = { day = 1 month = january year = 1560 }
	offset = 30
	deathdate = { day = 1 month = january year = 1570 }

	action_a ={
		name = "ACTIONNAME3620A"	#Polish-Swedish Agreement#
		command = { type = trigger which = 3470 }
		command = { type = trigger which = 3220 }
		command = { type = trigger which = 3290 }
		command = { type = trigger which = 3407 }
		command = { type = removecore which = 276 }
		command = { type = removecore which = 282 }
		command = { type = removecore which = 275 }
                command = { type = removecore which = 289 }
		command = { type = removecore which = 1429 }
		command = { type = removecore which = 1009 }
command = { type = removecore which = 1326 }
                command = { type = secedeprovince which = DAN value = 1963 }
		command = { type = secedeprovince which = SWE value = 276 }
		command = { type = secedeprovince which = SWE value = 275 }
		command = { type = secedeprovince which = SWE value = 276 }
		command = { type = secedeprovince which = SWE value = 265 }
                command = { type = secedeprovince which = SWE value = 1326 }
command = { type = independence which = POL }
		command = { type = secedeprovince which = POL value = 1914 }
		command = { type = secedeprovince which = POL value = 1009 }
		command = { type = secedeprovince which = POL value = 281 }
		command = { type = secedeprovince which = POL value = 289 }
		command = { type = secedeprovince which = POL value = 284 }
		command = { type = secedeprovince which = POL value = 1361 }
		command = { type = secedeprovince which = POL value = 288 }
		command = { type = secedeprovince which = POL value = 287 }
		command = { type = secedeprovince which = POL value = 1423 }
		command = { type = secedeprovince which = POL value = 285 }
		command = { type = secedeprovince which = POL value = 1425 }
                command = { type = independence which = U15 }
command = { type = independence which = RUS }
		command = { type = secedeprovince which = RUS value = 277 }
command = { type = secedeprovince which = RUS value = 274 }
command = { type = secedeprovince which = RUS value = 1455 }
command = { type = secedeprovince which = RUS value = 280 }
command = { type = secedeprovince which = RUS value = 1458 }
command = { type = secedeprovince which = RUS value = 450 }
command = { type = secedeprovince which = RUS value = 287 }
command = { type = secedeprovince which = RUS value = 278 }
command = { type = secedeprovince which = RUS value = 282 }
command = { type = secedeprovince which = RUS value = 269 }
command = { type = secedeprovince which = RUS value = 262 }
command = { type = secedeprovince which = RUS value = 268 }
command = { type = secedeprovince which = RUS value = 1577 }

		command = { type = secedeprovince which = POL value = 278 }
		command = { type = secedeprovince which = POL value = 286 }
		command = { type = secedeprovince which = POL value = 1423 }
		command = { type = secedeprovince which = POL value = 291 }
		command = { type = secedeprovince which = POL value = 290 }
		command = { type = secedeprovince which = POL value = 1944 }
		command = { type = secedeprovince which = POL value = 301 }
		command = { type = secedeprovince which = POL value = 1946 }
		command = { type = secedeprovince which = POL value = 1429 }
		command = { type = country which = KUR }
		command = { type = treasury value = 500 }
		command = { type = stability value = 6 }

	}

	action_b ={
		name = "ACTIONNAME3620B"	#Russo-Danish Agreement#
		command = { type = trigger which = 3471 }
		command = { type = trigger which = 3221 }
		command = { type = trigger which = 3291 }
		command = { type = trigger which = 3408 }
		command = { type = removecore which = 276 }
		command = { type = removecore which = 282 }
		command = { type = removecore which = 275 }
                command = { type = removecore which = 289 }
		command = { type = removecore which = 1429 }
		command = { type = removecore which = 1009 }
command = { type = removecore which = 1326 }
		command = { type = secedeprovince which = RUS value = 276 }
		command = { type = secedeprovince which = RUS value = 275 }
		command = { type = secedeprovince which = RUs value = 1009 }
		command = { type = secedeprovince which = DAN value = 1963 }
		command = { type = secedeprovince which = DAN value = 1429 }
		command = { type = secedeprovince which = DAN value = 282 }
		command = { type = secedeprovince which = DAN value = 308 }
		command = { type = secedeprovince which = DAN value = 342 }
		command = { type = secedeprovince which = DAN value = 263 }
		command = { type = secedeprovince which = DAN value = 264 }
		command = { type = secedeprovince which = DAN value = 273 }
		command = { type = secedeprovince which = RUS value = 262 }
		command = { type = secedeprovince which = RUS value = 269 }
		command = { type = secedeprovince which = RUS value = 1470 }
		command = { type = secedeprovince which = RUS value = 265 }
		command = { type = secedeprovince which = RUS value = 274 }
		command = { type = secedeprovince which = RUS value = 277 }
		command = { type = secedeprovince which = RUS value = 280 }
		command = { type = secedeprovince which = RUS value = 281 }
		command = { type = secedeprovince which = RUS value = 1361 }
		command = { type = secedeprovince which = RUS value = 882 }
		command = { type = secedeprovince which = RUS value = 268 }
		command = { type = secedeprovince which = RUS value = 1326 }
		command = { type = secedeprovince which = RUS value = 278 }
		
		command = { type = country which = KUR }
		command = { type = treasury value = 500 }
		command = { type = stability value = 6 }
	}

	action_c ={
		name = "ACTIONNAME3620C"	#Die-Hard Independence#
		command = { type = trigger which = 3472 }
		command = { type = trigger which = 3222 }
		command = { type = trigger which = 3292 }
		command = { type = trigger which = 3409 }
		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 }
	}
}


#Victory in Livonian War#
event = {
	id = 95491 
	trigger = {
		owned = { province = 282 data = -2 }
		owned = { province = 283 data = -1 }
		owned = { province = 276 data = -1 }
		owned = { province = 1009 data = -1 }
                owned = { province = 1429 data = -1 }
                owned = { province = 289 data = -1 }
                owned = { province = 275 data = -1 }
                owned = { province = 1326 data = -1 }
		atwar = no
		religion = catholic
		NOT = {
			exists = KUR
			}
		}
	random = no
	country = LIV
	name = "EVENTNAME95491"
	desc = "EVENTHIST95491"
	style = 2

	date = { day = 1 month = january year = 1560 }
	offset = 100
	deathdate = { day = 30 month = december year = 1565 }

	action_a = {
                command = { type = country which = KUR }
		command = { type = infra value = 1000 }
		command = { type = trade value = 1000 }
		command = { type = domestic which = mercantilism value = -1 }
		command = { type = treasury value = -300 } #Modernization expenditures#
		command = { type = provinceculture which = 275 value = baltic }
		command = { type = ADM which = 3 value = 60 }
		command = { type = relation which = POL value = 25 }
		command = { type = relation which = LIT value = 50 }
		command = { type = relation which = SWE value = 25 }
		command = { type = relation which = RUS value = 100 }
		command = { type = population which = -2 value = 2000 }
		command = { type = provincetax which = -2 value = 1 }
		command = { type = provincetax which = -1 value = 1 }
		command = { type = gainmanufactory which = -2 value = luxury }
		command = { type = vp value = 200 }		
		}
	action_b = {
		name = "ACTIONNAME95491B"
                command = { type = country which = KUR }
		command = { type = land value = 1000 }
		command = { type = naval value = 250 }
		command = { type = treasury value = -1000 } 
		command = { type = stability value = -2 } 
		
                command = { type = addcore which = 284 } 
		command = { type = addcore which = 277 } #Pskov#
                command = { type = addcore which = 275 } 
		command = { type = addcore which = 290 } 
                command = { type = addcore which = 1944 } 
		command = { type = add_countryculture which = baltic }
		command = { type = MIL which = 3 value = 60 }
		command = { type = domestic which = offensive value = 2 }
		command = { type = domestic which = land value = 1 }
		command = { type = relation which = LIT value = -150 }
		command = { type = relation which = POL value = -50 }
		command = { type = relation which = PSK value = -200 }
		command = { type = relation which = RUS value = -50 }
		command = { type = relation which = SWE value = -50 }
		command = { type = relation which = POM value = -200 }
		command = { type = casusbelli which = LIT value = 60 }
		command = { type = casusbelli which = POL value = 60 }
		command = { type = casusbelli which = PSK value = 60 }
		command = { type = casusbelli which = RUS value = 60 }
		command = { type = casusbelli which = SWE value = 60 }
		command = { type = casusbelli which = POM value = 60 }
		command = { type = CAV which = -2 value = 10000 }
		command = { type = provincemanpower which = -2 value = 1 }
		command = { type = gainbuilding which = -2 value = barrack }
		command = { type = vp value = 200 }
	}
}



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


## Livonan Order reacts to Poland owning Prussia
# Covers both Ducal Prussia and Teutonic Order
event = {
	id = 381000
	trigger = {
		owned = { province = 290 data = POL } # Prussia
		NOT = { exists = LAT }
		NOT = { exists = U15 }
	}
	random = no
	country = LIV
	name = "Польша признаёт Пруссию"
	desc = "Тевтонский Орден был всегда главным врагом Польши. В 1410 году при Таненберге, Владислав Ягило одержал крупную победу над рыцарями, но был не в состоянии полностью изгнать их из Пруссии. Однако, его приемники сумели достичь этого и Пруссия находится теперь в руках поляков, что мы будем белать?"
	style = 2
	
	date = { day = 1 month = january year = 1419 }
	offset = 60
	deathdate = { day = 1 month = january year = 1660 } # Extendend to claiming of Ducal Prussia
	action_a = {
		name = "Мы должны восстановить эту страны!"
		command = { type = relation which = POL value = -200 }
		command = { type = relation which = BRA value = 100 }
		command = { type = relation which = HAB value = 100 }
		command = { type = addcore which = 1978 } # Memel
		command = { type = addcore which = 290 } # Prussia
                command = { type = addcore which = 1944 } # Prussia
                command = { type = addcore which = 289 } # Prussia
		command = { type = casusbelli which = POL value = 60 }
		command = { type = INF which = -2 value = 5000 } # Help from Germany
		command = { type = CAV which = -2 value = 5000 } # Help from Germany
		command = { type = treasury value = 200 } # Help from Germany
	}
	action_b = {
		name = "У нас нет тут не каких интересов"
		command = { type = relation which = POL value = 300 }
		command = { type = relation which = BRA value = -50 }
		command = { type = relation which = HAB value = -50 }
		command = { type = casusbelli which = POL value = 60 }
		command = { type = treasury value = 100 } # Help from Germany
	}	
}

## Albert Hohenzollern Secularizes Prussia
event = {
	id = 381001
	trigger = {
		owned = { province = 290 data = -1 } # Prussia
		exists = POL
	}
	random = no
	country = LIV
	name = "Отделение церкви от государства в Пруссии"
	desc = "После захвата области поляками, гроссмейстер Альберт бранденбургский стал главным наследником герцогства под сюзереном Польши."
	style = 2
	
	date = { day = 1 month = january year = 1524 }
	offset = 60
	deathdate = { day = 1 month = january year = 1540 }
	
	action_a = {
		name = "Мы не можем остановить его"
		command = { type = provincereligion which = 290 value = protestant } # Prussia 
                command = { type = provincereligion which = 1978 value = protestant }
		command = { type = independence  which = U15 }
		command = { type = relation which = U15 value = -200 }
		command = { type = removecore which = 1978 } # Memel
		command = { type = removecore which = 290 } # Prussia
                command = { type = removecore which = 1944 } # Prussia
		command = { type = casusbelli which = U15 value = 60 }
		command = { type = secedeprovince which = U15 value = 1978 }
                command = { type = secedeprovince which = U15 value = 1944 }
	}
}




