####EEP for Milan####
#####################

#Milan decides whether to accept Genoa's submission, by Isaac Brock
event = {
	id = 228000 # triggered by GEN 174005 Genoa Encircled
	random = no
	country = MLO
	name = "Генуя подчиняется Милану"
	desc = "В 1421 году, столкнувшись с вторжением на Корсику миланского и арагонского войска, Генуя подчинилась Милану, для того чтобы спасти Корсику."
	style = 1

	action_a = {
		name = "Принять их"
		command = { type = alliance which = GEN }
		command = { type = vassal which = GEN }
		command = { type = stability value = 1 }
		command = { type = trigger which = 111000 } #ARG Genoa submits
	}
	action_b = {
		name = "Отказаться от их предложения" #an out for a player#
		command = { type = vp value = -1 }
		command = { type = trigger which = 174024 } #-> GEN Milan refuses Genovese offer
	}
}
 
#Milan if Genoa defies Milan, by Isaac Brock
event = {
	id = 228001 # triggered by GEN 174005
	random = no
	country = MLO
	name = "Генуя бросает вызов Милану"
	desc = "В 1421 году Милан и Арагон объединились против Генуи. Арагон отстаивал свои давние притязания на Корсику, тогда как Милан, с помощью генуэзских ссыльных, добивался контроля над Лигурией и генуэзским флотом."
	style = 1

	action_a ={
		name = "Генуя окружена, но у нас имеются средства для борьбы с интервентами!"
		command = { type = casusbelli   which = GEN value = 24 }
		command = { type = relation   which = ARG value = 50 }
		command = { type = alliance   which = ARG }
		command = { type = INF   which = -2 value = 5000 }#Carmagnola's army
		command = { type = CAV   which = -2 value = 5000 }#Carmagnola's army
	}
}

#The Ambrosian Republic by ejs5 - choice B by Isaac Brock
event = {

	id = 228003
	random = no
	country = MLO
	name = "Республика Святого Амвросия"
	desc = "В ночь на 13 августа 1447 года, когда умирал герцог Миланский Филиппо Мария Висконти, не имевший наследника, особенно остро встал вопрос о его преемнике. … Собрание миланской знати, длившееся всю ночь, на следующий день решило… назвать республику в честь  святого покровителя города - Республика Святого Амвросия. Республика существовала в течение двух с половиной лет до февраля 1450 года, когда была разорена голодом и войсками кондотьера Франческо Сфорца. - Лауро Мартинес, Власть и вымысел: Итальянские города-государства в эпоху Возрождения."
	style = 1

	date = { day = 13 month = august year = 1447 }

	action_a = { #Cry Republic!#
		name = "Основать Республику!"
		command = { type = domestic which = CENTRALIZATION value = -1 }
		command = { type = domestic which = ARISTOCRACY value = -2 }
		command = { type = domestic which = SERFDOM value = -2 }
		command = { type = domestic which = OFFENSIVE value = -1 }
		command = { type = domestic which = QUALITY value = -2 }
		command = { type = revoltrisk which = 30 value = 5 }#reduced by IB
		command = { type = stability value = -3 }
		command = { type = merchants value = 2 } #added IB
		command = { type = sleepevent which = 228006 } #Milan Acquiesces
		command = { type = leader which = 09639 } # Sforza AR version
	} 
	action_b = { #Choose Sforza as Duke
		name = "Поддержать Сфорца"
		command = { type = sleepmonarch   which = 06561 }#Repubblica
		command = { type = sleepmonarch   which = 06562 }#Sforza
 		command = { type = wakemonarch  which = 32150 }#Sforza II
		command = { type = ADM   which = -3 value = 30 }#well it's a crisis he doesn't have much legitimacy
		command = { type = DIP   which = -3 value = 30 }#ditto
		command = { type = province_revoltrisk   which = 389 value = 8 }#Milan citizens unhappy
		command = { type = province_revoltrisk   which = 1919 value = 8 }
		command = { type = province_revoltrisk   which = 1921 value = 8 }
            command = { type = province_revoltrisk   which = 1988 value = 8 }
            command = { type = revolt   which = 389 }#He'll have to fight to take the city!
		command = { type = revolt   which = 389 }
		command = { type = revolt   which = 389 }
		command = { type = stability   value = -2 }
		command = { type = domestic which = CENTRALIZATION value = 1 } 
		command = { type = sleepevent   which = 228004 } #Sforza takes Milan
		command = { type = leader which = 09636 } # Sforza Duke version
	}
}
#Frederick III claimed as lapsed fief, Alfonso of Aragon/Naples was
#named heir and had troops in the Citadel, Charles of Orleans nephew of
#Filipo Maria, Sforza son in law

#The Sforza by ejs5# 
event = { 
	id = 228004 
	trigger = {
		monarch = 06562 #so that it will fire for a revolter
	}
	random = no 
	country = MLO 
	name = "Франческо Сфорца захватил Милан" 
	desc = "25 марта 1450 года Франческо Сфорца прошел сквозь Миланские ворота, и объявил себя герцогом. Проведя жизнь кондотьера, Сфорца смог достичь мира только во время своего правления. Самыми верными союзниками Сфорцы были король Франции и Козимо Медичи, который предпочел возрожденный Милан венецианскому господству над Ломбардией." 
	style = 1 

	date = { day = 25 month = march year = 1450 } 
	offset = 10
	deathdate = { month = February year = 1466 }

	action_a ={ #Sforza!# 
		name = "Сильная личность положит конец хаосу!" 
		command = { type = domestic which = CENTRALIZATION value = 2 } 
		command = { type = domestic which = ARISTOCRACY value = 3 } 
		command = { type = domestic which = OFFENSIVE value = 1 } 
		command = { type = domestic which = QUALITY value = 2 } 
		command = { type = relation which = FRA value = 50 } 
		command = { type = relation which = TOS value = 50 } 
		command = { type = stability value = 3 } 
		command = { type = leader which = 09636 } # Sforza Duke version

	} 
}

#By mnorrefeldt adapted from idea by mcmaus
event = {
	id = 228005
	random = no
	country = MLO
	name = "Правитель Людовик"
	desc = "В 1476 году в церкви Сан-Стефано был убит герцог Галеаццо Мария. У него остался маленький сын Джиан Галеаццо, которому тогда было около восьми лет. Поэтому от своего имени и от имени ребенка управлять герцогством стала его мать Бона Савойская. Однако вскоре между регентом и ее деверем стали возникать разногласия. В первом столкновении удача была на стороне Боны и ее главного советника Чикко Симонетты, поэтому братья Галеаццо Марии были вынуждены покинуть город. Но задолго до этого Людовик, самый талантливый сын Франческо Сфорцы, снова заявил о своем праве на престол.  Начиная с 1479 года, после свержения с престола и казни Симонетты, управление Миланом перешло в руки Людовика, чья власть еще больше окрепла в 1480 году, когда он схватил юного герцога, и вынудил герцогиню покинуть Милан. С этого времени, власти Людовика больше ничто не угрожало. Юный герцог был в тюрьме, а Людовик руководил всем от его имени." 
	style = 1
        date = { day = 1 month = january year = 1480 }
        deathdate = { day = 1 month = january year = 1481 }
	offset = 300

	action_a ={	#Ludovico wins#
		name = "Позволить Людовику встать во главе герцогства"
            command = { type = relation which = SAV value = -30 } #Bona of Savoy
		command = { type = infra value = -200 } #executing chief counsellor
		command = { type = stability value = -1 }
		command = { type = domestic which = aristocracy value = -1 }
		command = { type = MIL which = 1 value = 180 } #until end of Gian Galeazzo rule
	}

	action_b ={	# stop Ludovico #
		name = "Джиан Галеаццо, наш истинный правитель"		
		command = { type = stability value = 1 }
		command = { type = domestic which = aristocracy value = 1 }
		command = { type = dynastic which = SAV }
		command = { type = ADM which = -2 value = 15 } 
	}
}

#Milan accepts Sforza by Isaac Brock# 
event = { 
	id = 228006 
	trigger = {
		event = 228003 #Ambrosian Republic
		control  = { province = 389 data = MLO } #Controls Milan
	}
	random = no 
	country = MLO 
	name = "Миланцы принемают Сфорцу" 
	desc = "После года беспорядков простой народ Милана признал правление Франческо Сфорцы." 
	style = 1 

	date = { day = 1 month = october year = 1448 } 
	deathdate = { day = 6 month = march year = 1466 } #Death of Sforza
		
	action_a ={ #Excellent# 
		name = "Превосходно" 
		command = { type = province_revoltrisk   which = 389 value = -8 }
		command = { type = province_revoltrisk   which = 1919 value = -8 }
		command = { type = province_revoltrisk   which = 1921 value = -8 }
                command = { type = province_revoltrisk   which = 1988 value = -8 }
	} 
}



event = {
	id = 228014
	random = no
	country = MLO
	name = "Банк Святого Амвросия"
	desc = "В 1593 году правительство основало в Милане первый публичный банк - ‘Банк Святого Амвросия’. Таким образом, Милан стал главным финансовым центром северной Италии."
	style = 2
	date = { day = 20 month = march year = 1593 }
	offset = 30
	deathdate = { day = 1 month = april year = 1595 }

	action_a ={
		name = "Замечательно!"
		command = { type = ADM which = 1 value = 12 }
		command = { type = treasury value = 100 }
		command = { type = inflation value = -3 }
		command = { type = loansize which = 100 }
	}
}


#Carmagnola's Threat by Bordic
event = {
	id = 228015
	random = no
	country = MLO
	name = "Угрозы Карманьёлы"
	desc = "EVENTHIST228015"
	style = 1

	date = { day = 15 month = january year = 1425 } 

	action_a = {
		name = "Уволить Карманьёлу"  
		command = { type = cash value = 50 } # unpaid loans and confiscated estates
		command = { type = desertion which = -2 value = 2000 }
		command = { type = domestic  which = quality  value = -1 }
	}
	action_b = {
		name = "Держать около себя Карманьёлу" 
		command = { type = treasury value = -150 }
		command = { type = domestic which = aristocracy value = -1 }
		command = { type = stability value = -1 } # Nobles' resentments
		command = { type = wakeleader which = 19637 } #MLO fantasy Carmagnola
		command = { type = sleepevent which = 17001 } #VEN Carmagnola
		command = { type = sleepevent which = 17002 } #VEN Carmagnola's Trial
	}
	action_c = {
		name = "Назначить губернатором Генуи" 
		command = { type = treasury value = -100 }
		command = { type = stability value = -2 } # deeper Nobles' resentments
		command = { type = sleepevent which = 17001 } #VEN Carmagnola
		command = { type = sleepevent which = 17002 } #VEN Carmagnola's Trial
		command = { type = trigger which = 174025 }   #GEN Carmagnola rules in Genoa 
	}  
}



#The Reconstruction of Castello Sforzesco by Bordic
event = {
	id = 228016
	trigger = {	
		OR = {
			event = 228004 #The Sforza for MLO
	event = 228006 } #Milan accepts Sforza for MLO
		}		
	random = no
	country = MLO
	name = "Ремонт главной крепости Милана"
	desc = "EVENTHIST228016"
	style = 1

	date = { day = 6 month = june year = 1450 } #starting date
	offset = 20
	deathdate = { day = 1 month = march year = 1466 }

	action_a ={
		name = "Отстроить крепость" #build the fortress
		command = { type = treasury value = -150 }
		command = { type = fortress which = 389 value = 1 } # Lombardia
		command = { type = land value = 500 } 
	}
	action_b ={
		name = "Не на что нам строить, так что оставим эту затею" #don't build the fortress
		command = { type = vp value = -5 }
		command = { type = domestic which = offensive value = 1 }
	}
}

#Carmagnola's Trick by Bordic (MLO version)
event = {
	id = 228017
	trigger = {
		leader = 09641 # VEN Carmagnola
		war = { country = MLO country = VEN } 
	}
	random = no
	country = MLO
	name = "Уловки Карманьёлы"
	desc = "EVENTHIST228017"
	style = 1

	date = { day = 1 month = february year = 1425 } # Venice hires Carmagnola
	offset = 30
	deathdate = { day = 7 month = april year = 1432 } # Carmagnola arrested in Venice

	action_a ={
		name = "Продажный Карманьёла!" #Carmagnola is corruptible
		command = { type = treasury  value = -50 } #cost of messengers
		command = { type = DIP which = 2 value = 6 } 
		command = { type = MIL which = 2 value = 6 }
		command = { type = relation which = SAV  value = 50 } # Savoyard messengers used 
		command = { type = trigger which = 326007 } #->VEN Carmagnola's Trick	
	}
}



#####Milan Flavor Events#######
#By Henrik 'Doomdark' Fеhraeus#
###############################

#Leonardo da Vinci#
event = {
	id = 5240
	random = no
	country = MLO
	name = "EVENTNAME5240"
	desc = "EVENTHIST5240"
	style = 1
	date = { day = 1 month = june year = 1497 }

	action_a ={				#Ok#
		name = "ACTIONNAME5240A"
		command = { type = stability value = 1 }
		command = { type = infra value = 250 }
		command = { type = domestic which = INNOVATIVE value = 1 }
	}
}

### Alessandro Volta (for MLO)
### (text from Weisstein's World of Scientific Biography)
### (http://scienceworld.wolfram.com/biography/)
### By mfigueras

event = {
	id = 5241
	trigger = { domestic = { type = innovative value = 3 }
           	stability = 0 }
	random = no
	country = MLO
	name = "EVENTNAME5241"
	desc = "EVENTHIST5241"
	style = 5
	date = {day = 1 month = march year = 1800}
	offset = 360
	deathdate = {day = 30 month = december year = 1801}
	action_a = {
		name = "ACTIONNAME5241A"
		command = {type = infra value = 50}
		}
}


# Ids free to 5249


#Milan event by Basileus #
event = {
	id = 17316
	trigger = { religion = catholic event = 102 }
	random = no
	country = MLO
	name = "EVENTNAME17316"
	desc = "EVENTHIST17316"
	style = 2
	date = { day = 1 year = 1560 }
	offset = 20
	deathdate = { day = 7 year = 1584 }
	
	action_a = { #Charles is Archbishop#
		name = "ACTIONNAME17316A"
		command = { type = religion which = Counterreform }
		command = { type = missionaries value = 6 }
		command = { type = stability value = -1 }
		command = { type = revoltrisk which = 120 value = 3 }
		command = { type = dip which = 3 value = 240 } #Isaac Brock changed 6 to 3
		command = { type = adm which = 3 value = 240 } #Isaac Brock changed 6 to 3
		command = { type = relation which = PAP value = 100 } #Isaac Brock: changed 200 to 100  
		command = { type = relation which = SPA value = 50 } #Isaac Brock: changed 100 to 50 
		command = { type = relation which = HAB value = 50 } #Isaac Brock: changed 100 to 50 
		}
}





#(1675-1715) Economic and Social Decadence - Ahistorical
#by Bordic
event = {
	id = 228048
	trigger = {
		NOT = {
			countrysize = 10
			domestic = { type = innovative value = 9 }
			domestic = { type = serfdom value = 3 }
			domestic = { type = aristocracy value = 1 }
			
		}
	}
	random = no
	country = MLO
	name = "Economic and Social Decadence" 
	desc = "In the late XVIIth century, the disuse of the Mediterranean sea as the main international trade junction between Europa and the East Indies brought the Italian economic system to collapse. Italy became more removed from the mainstream of European development and each local administration along the peninsula lagged behind that of any other European contemporary. The practice of agriculture as prevailing economic activity meant the coming back to power of the most conservative landowning aristocracy. That economic backwardness associated with the effects of Counterreform deeply affected Italian social life too, now less and less inclined to accept innovation and to develop some entrepreneurial attitude."
	

	date = { day = 24 month = january year = 1675 }
	offset = 60
	deathdate = { day = 0 month = january year = 1715 }

	action_a = {
		name = "ALAS"
		command = { type = stability value = -1 }
		command = { type = provincetax which = -2 value = -2 }
		command = { type = provincemanpower which = -2 value = -1 }
		command = { type = domestic which = ARISTOCRACY value = 1 }
		command = { type = domestic which = CENTRALIZATION value = -1 }
		command = { type = domestic which = INNOVATIVE value = -1 }
		command = { type = domestic which = MERCANTILISM value = 1 }
		command = { type = domestic which = SERFDOM value = 1 }
		command = { type = domestic which = LAND value = 1 }
		command = { type = trade value = -500 }
		command = { type = infra value = -500 }
		command = { type = naval value = -500 }
	}
}

