# New 1.3 events for the Age of Timur scenario #
# All events written by Garbon unless stated otherwise; adapted for 1.3 by mandead
# Event IDs: 26000 - 26055

#(1388-1418) The Acciajuoli Conquer Athens - (by Obelixeke)
event = {
	id = 26000
	trigger = {
		owned = { province = 359 data = -1 }
		NOT = { exists = ATH }
	}
	random = no
	country = ARG

	name = "EVENTNAME26000"
	desc = "EVENTHIST26000"

	date = { day = 1 month = january year = 1388 }
	offset = 150
	deathdate = { day = 1 month = january year = 1418 }

	action_a ={
		name = "ACTIONNAME26000A"
		command = { type = independence which = ATH }
		command = { type = relation which = FLO value = 50 }
		command = { type = badboy value = -1 }
		command = { type = trigger which = 26003 } #ATH: The Florentine Duchy of Athens
	}
	action_b ={
		name = "ACTIONNAME26000B"
		command = { type = province_revoltrisk which = 359 value = 10 }
		command = { type = provincetax which = 359 value = -1 }
		command = { type = provincemanpower which = 359 value = -1 }
		command = { type = relation which = FLO value = -50 }
		command = { type = revolt which = 359 }
		command = { type = revolt which = 359 }
		command = { type = stability value = -1 }
	}
}

#(1410-1412) The Compromise of Caspe
event = {
	id = 26001
	random = no
	country = ARG

	name = "EVENTNAME26001"
	desc = "EVENTHIST26001"

	date = { day = 1 month = june year = 1410 }
	offset = 60
	deathdate = { day = 1 month = july year = 1412 }

	action_a = {
		name = "ACTIONNAME26001A"
		command = { type = relation which = CAS value = 100 }
		command = { type = relation which = PAP value = 50 }
		command = { type = relation which = NAP value = -200 }
		command = { type = relation which = PRO value = -200 }
		command = { type = stability value = -1 }
		command = { type = domestic which = CENTRALIZATION value = 2 }
		command = { type = domestic which = ARISTOCRACY value = -1 }
	}
	action_b = {
		name = "ACTIONNAME26001B"
		command = { type = wakemonarch which = 04190 } # Jaume III *
		command = { type = wakemonarch which = 04191 } # Felip I *
		command = { type = wakemonarch which = 04192 } # Jaume IV *
		command = { type = wakemonarch which = 04193 } # Pere Alfons *
		command = { type = wakemonarch which = 04194 } # Jaume V *
		command = { type = wakemonarch which = 04195 } # Felip II *
		command = { type = sleepmonarch which = 04189 } # Ferran I
		command = { type = sleepmonarch which = 04170 } # Alfons V
		command = { type = sleepmonarch which = 04182 } # Juan II
		command = { type = sleepmonarch which = 04171 } # Ferran II
		command = { type = sleepleader which = 010800 } # Alfons V
		command = { type = sleepleader which = 010821 } # Ferran II
		command = { type = cash value = 100 }
		command = { type = stability value = -2 }
		command = { type = relation which = NAP value = 50 }
		command = { type = relation which = PRO value = 50 }
		command = { type = relation which = CAS value = -100 }
		command = { type = relation which = PAP value = -50 }
		command = { type = domestic which = OFFENSIVE value = 2 }
		command = { type = domestic which = ARISTOCRACY value = 1 }
		command = { type = sleepevent which = 26002 } #ARG: The Revolt of Jaume d'Urgell
	}
	action_c = {
		name = "ACTIONNAME26001C"
		command = { type = wakemonarch which = 04196 } # Frederic I *
		command = { type = wakemonarch which = 04197 } # Frederic II *
		command = { type = wakemonarch which = 04198 } # Ramiro III *
		command = { type = wakemonarch which = 04199 } # Caterina *
		command = { type = sleepmonarch which = 04189 } # Ferran I
		command = { type = sleepmonarch which = 04170 } # Alfons V
		command = { type = sleepmonarch which = 04182 } # Juan II
		command = { type = sleepmonarch which = 04171 } # Ferran II
		command = { type = sleepleader which = 010800 } # Alfons V
		command = { type = sleepleader which = 010821 } # Ferran II
		command = { type = infra value = 400 }
		command = { type = stability value = 1 }
		command = { type = relation which = NAP value = 100 }
		command = { type = relation which = PRO value = 100 }
		command = { type = relation which = CAS value = -50 }
		command = { type = relation which = PAP value = -200 }
		command = { type = domestic which = OFFENSIVE value = -1 }
		command = { type = domestic which = QUALITY value = 1 }
		command = { type = domestic which = INNOVATIVE value = 1 }
	}
}

#(1413) The Revolt of Jaume d'Urgell
event = {
	id = 26002
	random = no
	country = ARG

	name = "EVENTNAME26002"
	desc = "EVENTHIST26002"

	date = { day = 1 month = march year = 1413 }
	offset = 120

	action_a = {
		name = "ACTIONNAME26002A"
		command = { type = revolt which = 429 }
		command = { type = revolt which = 429 }
		command = { type = revolt which = 429 }
	}
}

#(1388-1418) The Florentine Duchy of Athens
event = {
	id = 26003 #triggered by ARG_26000A
	random = no
	country = ATH

	name = "EVENTNAME26003"
	desc = "EVENTHIST26003"

	action_a ={
		name = "ACTIONNAME26003A"
		command = { type = breakvassal which = ARG }
		command = { type = stability value = 4 }
		command = { type = INF which = -2 value = 4000 }
		command = { type = CAV which = -2 value = 1000 }
	}
}

#(1409-1414) Support for the Pisan Papacy
event = {
	id = 26004
	trigger = {
		continent = Europe
		religion = catholic
		event = 26006
		NOT = {
			tag = AVI
			tag = PAP
			flag = [pisan_papacy]
			flag = [avignon_papacy]
		}
	}
	random = yes

	name = "EVENTNAME26004"
	desc = "EVENTHIST26004"

	date = { day = 1 month = january year = 1409 }
	offset = 5
	deathdate = { day = 1 month = january year = 1414 }

	action_a = {
		name = "ACTIONNAME26004A"
		command = { type = cash value = 100 }
		command = { type = relation which = PAP value = -150 }
		command = { type = setflag which = [pisan_papacy] }
	}
	action_b = {
		name = "ACTIONNAME26004B"
		command = { type = stability value = 1 }
		command = { type = relation which = -1 value = 50 }
		command = { type = relation which = -4 value = 50 }
		command = { type = relation which = -4 value = 50 }
	}
}

#(1400-1406) Support for the Avignon Papacy
event = {
	id = 26005
	trigger = {
		continent = Europe
		religion = catholic
		NOT = { event = 26007 }
		NOT = {
			tag = AVI
			tag = PAP
			flag = [avignon_papacy]
			flag = [pisan_papacy]
		}
	}
	random = yes

	name = "EVENTNAME26005"
	desc = "EVENTHIST26005"

	date = { day = 1 month = january year = 1400 }
	offset = 5
	deathdate = { day = 1 month = january year = 1406 }

	action_a = {
		name = "ACTIONNAME26005A"
		command = { type = cash value = 100 }
		command = { type = relation which = PAP value = -150 }
		command = { type = setflag which = [avignon_papacy] }
	}
	action_b = {
		name = "ACTIONNAME26005B"
		command = { type = stability value = 1 }
		command = { type = relation which = -1 value = 50 }
		command = { type = relation which = -4 value = 50 }
		command = { type = relation which = -4 value = 50 }
	}
}

#(1409) The Council of Pisa
event = { 
	id = 26006
	global = yes

	name = "EVENTNAME26006"
	desc = "EVENTHIST26006"

	date = { day = 4 month = june year = 1409 }

	action_a = {
		name = "ACTIONNAME26006A"
	}
}

#(1415) The Council of Constance
event = { 
	id = 26007
	global = yes

	name = "EVENTNAME26007"
	desc = "EVENTHIST26007"

	date = { day = 3 month = july year = 1415 }

	action_a = {
		name = "ACTIONNAME26007A"
	}
}

#(1400-1401) Manuel travels to Western Europe - (by Sahib)
event = {
	id = 26008
	trigger = {
		exists = TUR
		NOT = { countrysize = 12 }
	}
	random = no
	country = BYZ

	name = "EVENTNAME26008"
	desc = "EVENTHIST26008"

	date = { day = 1 month = january year = 1400 }
	offset = 30
	deathdate = { day = 1 month = january year = 1401 }

	action_a = {
		name = "ACTIONNAME26008A"
		command = { type = stability value = -1 }
		command = { type = domestic which = INNOVATIVE value = 1 }
	}
	action_b = {
		name = "ACTIONNAME26008B"
		command = { type = domestic which = INNOVATIVE value = -1 }
		command = { type = stability value = 1 }
		command = { type = sleepevent which = 26009 } #BYZ: Manuel's Return
	}
}

#(1402-1403) Manuel's Return - (by Sahib)
event = {
	id = 26009
	random = no
	country = BYZ

	name = "EVENTNAME26009"
	desc = "EVENTHIST26009"

	date = { day = 1 month = january year = 1402 }
	offset = 30
	deathdate = { day = 1 month = january year = 1403 }

	action_a = {
		name = "ACTIONNAME26009A"
		command = { type = stability value = 1 }
		command = { type = treasury value = 50 }
		command = { type = relation which = MLO value = 50 }
		command = { type = relation which = FRA value = 50 }
		command = { type = relation which = ENG value = 50 }
		command = { type = relation which = -1 value = 25 }
		command = { type = relation which = -4 value = 25 }
		command = { type = relation which = -4 value = 25 }
	}
}

#(1402-1405) A Bridge in the Atlantic - (by Corleone)
event = {
	id = 26010
	random = no
	country = CAS

	name = "EVENTNAME26010"
	desc = "EVENTHIST26010"

	date = { day = 1 month = january year = 1402 }
	offset = 30
	deathdate = { day = 1 month = january year = 1405 }

	action_a = { 
		name = "ACTIONNAME26010A"
		command = { type = naval value = 200 }
		command = { type = infra value = 50 }
		command = { type = trade value = 100 }
		command = { type = warships which = -1 value = 3 }
		command = { type = transports which = -1 value = 2 }
		command = { type = domestic which = LAND value = -1 }
		command = { type = stability value = 1 }
		command = { type = cash value = -100 }
		command = { type = vp value = 15 }
	}
	action_b = { 
		name = "ACTIONNAME26010B"
		command = { type = stability value = -1 }
		command = { type = cash value = 50 }
		command = { type = vp value = -15 }
		command = { type = sleepevent which = 26022 } #CAS: Distant Shores
	}
}

#(1413-1415) The Accession of Henry V
event = {
	id = 26011
	trigger = {
		monarch = 04031 #Henry V
	}
	random = no
	country = ENG

	name = "EVENTNAME26011"
	desc = "EVENTHIST26011"

	date = { day = 1 month = january year = 1413 }
	offset = 20
	deathdate = { day = 1 month = january year = 1415 }

	action_a = {
		name = "ACTIONNAME26011A"
		command = { type = stability value = 3 }
		command = { type = domestic which = CENTRALIZATION value = 1 }
		command = { type = revoltrisk which = 60 value = -3 }
	}
}

#(1407) The Assasination of Louis, Duke of Orléans
event = {
	id = 26012
	random = no 
	country = FRA

	name = "EVENTNAME26012"
	desc = "EVENTHIST26012"
	
	date = { day = 23 month = november year = 1407 }

	action_a ={
		name = "ACTIONNAME26012A"
		command = { type = revoltrisk which = 60 value = 5 }
		command = { type = revolt which = -1 }
		command = { type = revolt which = -1 }
		command = { type = revolt which = -1 }
		command = { type = revolt which = -2 }
		command = { type = revolt which = -2 }
		command = { type = relation which = BUR value = -100 }
		command = { type = desertion which = -1 value = 8000 }
		command = { type = desertion which = -1 value = 10000 }
		command = { type = desertion which = -1 value = 10000 }
		command = { type = desertion which = -1 value = 7000 }
		command = { type = stability value = -3 }
	}
}

#(1400-1410) A Confucian State
event = {
	id = 26013
	trigger = { 
		monarch = 05088 #Taejong
		NOT = { religion = confucian } 
	}
	random = no
	country = KOR

	name = "EVENTNAME26013"
	desc = "EVENTHIST26013"
	
	date = { day = 1 month = january year = 1400 }
	offset = 90
	deathdate = { day = 1 month = january year = 1410 }

	action_a = { 
		name = "ACTIONNAME26013A"
		command = { type = religion which = confucian }
		command = { type = ADM which = 2 value = 48 }
		command = { type = infra value = 200 }
		command = { type = stability value = -2 }
	}
	action_b = { 
		name = "ACTIONNAME26013B"
		command = { type = stability value = 1 }
		command = { type = sleepevent which = 26015 } #KOR: Promotion of Confucian Studies
		command = { type = vp value = -5 }
	}
}

#(1405-1415) T'aejo II's Land Reforms
event = {
	id = 26014
	trigger = {
		domestic = { type = ARISTOCRACY value = 2 }
	}
	random = no
	country = KOR

	name = "EVENTNAME26014"
	desc = "EVENTHIST26014"
	
	date = { day = 1 month = january year = 1405 }
	offset = 90
	deathdate = { day = 1 month = january year = 1415 }

	action_a = {
		 name = "ACTIONNAME26014A"
		 command = { type = cash value = -150 }
		 command = { type = revoltrisk which = 36 value = -2 }
		 command = { type = provincetax which = 641 value = 2 }
		 command = { type = provincetax which = 642 value = 1 }
		 command = { type = domestic which = SERFDOM value = -1 }
		 command = { type = stability value = -2 }
	}
	action_b = { 
		name = "ACTIONNAME26014B"
		command = { type = domestic which = ARISTOCRACY value = 1 }
		command = { type = revoltrisk which = 36 value = 2 }
	}
}

#(1405-1415) Promotion of Confucian Studies
event = {
	id = 26015
	trigger = { 
		domestic = { type = INNOVATIVE value = 5 } 
		event = 26013
		religion = confucian
	}
	random = no
	country = KOR

	name = "EVENTNAME26015"
	desc = "EVENTHIST26015"
	
	date = { day = 1 month = january year = 1405 }
	offset = 90
	deathdate = { day = 1 month = january year = 1415 }

	action_a = { 
		name = "ACTIONNAME26015A"
		command = { type = cash value = -100 }
		command = { type = conversion which = 641 }
		command = { type = infra value = 200 }
		command = { type = stability value = -1 }
	}
	action_b = { 
		name = "ACTIONNAME26015B"
		command = { type = cash value = -150 }
		command = { type = land value = 200 }
		command = { type = naval value = 200 }
	}
	action_c = { 
		name = "ACTIONNAME26015C"
		command = { type = vp value = -2 }
	}
}

#(1401-1410) The Approach to Lollardy
event = {
	id = 26016
	random = no
	country = ENG

	name = "EVENTNAME26016"
	desc = "EVENTHIST26016"
	
	date = { day = 1 month = january year = 1401 }
	offset = 300
	deathdate = { day = 1 month = january year = 1410 }
	
	action_a = {
		name = "ACTIONNAME26016A"
		command = { type = revoltrisk which = 24 value = 3 }
		command = { type = domestic which = INNOVATIVE value = -1 }
		command = { type = stability value = 1 }
	}
	action_b = { 
		name = "ACTIONNAME26016B"
		command = { type = revoltrisk which = 24 value = 1 }
		command = { type = provincereligion which = 248 value = lollard }
		command = { type = domestic which = INNOVATIVE value = 1 }
		command = { type = stability value = -2 }
	}
	action_c = { 
		name = "ACTIONNAME26016C"
		command = { type = revoltrisk which = 72 value = 6 }
		command = { type = religion which = lollard }
		command = { type = conversion which = 244 }
		command = { type = conversion which = 248 }
		command = { type = domestic which = INNOVATIVE value = 2 }
		command = { type = domestic which = SERFDOM value = -2 }
		command = { type = treasury value = 400 }
		command = { type = missionaries value = 2 }
		command = { type = relation which = PAP value = -200 }
		command = { type = relation which = -1 value = -100 }
		command = { type = relation which = -4 value = -100 }
		command = { type = relation which = -4 value = -100 }
		command = { type = relation which = -4 value = -100 }
		command = { type = sleepevent which = 3001 } #ENG: The Lollard Heresy
		command = { type = stability value = -5 }
	}
}

#(1402) The Ottoman Interregnum
event = {
	id = 26017
	random = no 
	country = TUR

	name = "EVENTNAME26017"
	desc = "EVENTHIST26017"
	
	date = { day = 2 month = july year = 1402 }

	action_a ={
		name = "ACTIONNAME26017A"
		command = { type = revoltrisk which = 60 value = 6 }
		command = { type = revolt which = -1 }
		command = { type = revolt which = -1 }
		command = { type = revolt which = -1 }
		command = { type = revolt which = -1 }
		command = { type = revolt which = -2 }
		command = { type = revolt which = -2 }
		command = { type = desertion which = -1 value = 8000 }
		command = { type = desertion which = -1 value = 10000 }
		command = { type = desertion which = -1 value = 10000 }
		command = { type = desertion which = -1 value = 7000 }
		command = { type = stability value = -5 }
	}
}

#(1410-1412) The Start of the Colonial Race - (by Corleone)
event = {
	id = 26018
	trigger = {
		countrysize = 3
		NOT = { 
			owned = { province = 732 data = -1 }
		}
	}
	random = no
	country = POR

	name = "EVENTNAME26018"
	desc = "EVENTHIST26018"
	
	date = { day = 1 month = january year = 1410 }
	offset = 60
	deathdate = { day = 1 month = january year = 1412 }

	action_a = { name = "ACTIONNAME26018A"
		command = { type = addcore_claim which = 732 }
		command = { type = land value = 100 }
		command = { type = naval value = 100 }
		command = { type = stability value = 1 }
		command = { type = relation which = MOR value = -50 }
		command = { type = badboy value = 2 }
	}
	action_b = { name = "ACTIONNAME26018B"
		command = { type = stability value = -1 }
		command = { type = relation which = MOR value = 50 }
		command = { type = infra value = 100 }
		command = { type = trade value = 100 }
		command = { type = vp value = -25 }
		command = { type = sleepevent which = 26023 } #POR: Distant Shores
	}
}

#(1405) The Death of Timur
event = {
	id = 26019
	random = no 
	country = TIM

	name = "EVENTNAME26019"
	desc = "EVENTHIST26019"
	
	date = { day = 13 month = february year = 1405 }

	action_a ={
		name = "ACTIONNAME26019A"
		command = { type = revoltrisk which = 60 value = 6 }
		command = { type = revolt which = -1 }
		command = { type = revolt which = -1 }
		command = { type = revolt which = -1 }
		command = { type = revolt which = -1 }
		command = { type = revolt which = -2 }
		command = { type = revolt which = -2 }
		command = { type = revolt which = 1529 }
		command = { type = revolt which = 1530 }
		command = { type = desertion which = -1 value = 8000 }
		command = { type = desertion which = -1 value = 10000 }
		command = { type = desertion which = -1 value = 10000 }
		command = { type = desertion which = -1 value = 7000 }
		command = {
			trigger = {
				NOT = { event = 26042 }
			}
			type = trigger which = 26027 #TUR: The Ottoman Revival
		}
		command = { type = stability value = -8 }
	}
}

#(1413-1417) Armagnacs and Burgundians - (by mandead)
event = {
	id = 26020
	trigger = { 
		event = 26012
	}
	random = no 
	country = FRA

	name = "EVENTNAME26020"
	desc = "EVENTHIST26020"
	
	date = { day = 1 month = january year = 1413 }
	offset = 60
	deathdate = { day = 1 month = january year = 1417 }

	action_a ={
		name = "ACTIONNAME26020A"
		command = { type = revoltrisk which = 60 value = 3 }
		command = { type = revolt which = -1 }
		command = { type = revolt which = -4 }
		command = { type = revolt which = -4 }
		command = { type = domestic which = ARISTOCRACY value = 1 }
		command = { type = domestic which = SERFDOM value = 1 }
		command = { type = relation which = AUV value = 100 }
		command = { type = relation which = BRI value = 100 }
		command = { type = relation which = PRO value = 100 }
		command = { type = relation which = SCO value = 100 }
		command = { type = relation which = BUR value = -200 }
		command = { type = relation which = ENG value = -100 }
		command = { type = relation which = LOR value = -100 }
		command = { type = relation which = SAV value = -100 }
		command = { type = stability value = -3 }
	}
	action_b ={
		name = "ACTIONNAME26020B"
		trigger = { 
			NOT = {
				war = { country = FRA country = BUR }
				war = { country = FRA country = ENG }
			}
		}
		command = { type = revoltrisk which = 60 value = 5 }
		command = { type = revolt which = -1 }
		command = { type = revolt which = -4 }
		command = { type = revolt which = -4 }
		command = { type = domestic which = INNOVATIVE value = 2 }
		command = { type = relation which = BUR value = 200 }
		command = { type = relation which = ENG value = 100 }
		command = { type = relation which = LOR value = 100 }
		command = { type = relation which = SAV value = 100 }
		command = { type = relation which = AUV value = -100 }
		command = { type = relation which = BRI value = -100 }
		command = { type = relation which = PRO value = -100 }
		command = { type = relation which = SCO value = -100 }
		command = { type = sleepleader which = 09148 } # de Buchan
		command = { type = stability value = -5 }
	}
}

#(1404-1406) The Regreg War - (by mandead)
event = {
	id = 26021
	trigger = {
		someof = {
			number = 6
			owned = { province = 678 data = -1 }
			owned = { province = 681 data = -1 }
			owned = { province = 682 data = -1 }
			owned = { province = 697 data = -1 }
			owned = { province = 698 data = -1 }
			owned = { province = 699 data = -1 }
			owned = { province = 703 data = -1 }
			owned = { province = 704 data = -1 }
			owned = { province = 705 data = -1 }
		}
		NOT = { exists = MTR }
	}
	random = no
	country = MAJ

	name = "EVENTNAME26021"
	desc = "EVENTHIST26021"
	
	date = { day = 1 month = january year = 1404 }
	offset = 30
	deathdate = { day = 1 month = january year = 1406 }

	action_a = {
		name = "ACTIONNAME26021A"
		command = { type = revoltrisk which = 60 value = 8 }
		command = { type = revolt which = 698 }
		command = { type = revolt which = 699 }
		command = { type = revolt which = 703 }
		command = { type = revolt which = 705 }
		command = { type = relation which = AYU value = 100 }
		command = { type = relation which = CHI value = -200 }
		command = { type = relation which = BEI value = -100 }
		command = { type = relation which = BJR value = -100 }
		command = { type = relation which = BUT value = -100 }
		command = { type = relation which = KUT value = -100 }
		command = { type = relation which = MKS value = -100 }
		command = { type = relation which = TER value = -100 }
		command = { type = domestic which = LAND value = 2 }
		command = { type = wakeleader which = 055323 } # Wikramawardhana
		command = { type = cot which = 677 }
		command = { type = removecot which = 678 }
		command = { type = stability value = -6 }
	}
	action_b = {
		name = "ACTIONNAME26021B"
		command = { type = revoltrisk which = 60 value = 8 }
		command = { type = revolt which = 678 }
		command = { type = revolt which = 681 }
		command = { type = revolt which = 682 }
		command = { type = revolt which = 697 }
		command = { type = relation which = CHI value = 100 }
		command = { type = relation which = AYU value = -200 }
		command = { type = relation which = ATJ value = -100 }
		command = { type = relation which = BTN value = -100 }
		command = { type = relation which = KED value = -100 }
		command = { type = relation which = MLC value = -100 }
		command = { type = relation which = PAL value = -100 }
		command = { type = relation which = SIA value = -100 }
		command = { type = relation which = SUN value = -100 }
		command = { type = domestic which = LAND value = -2 }
		command = { type = wakeleader which = 09856 } # Bhre Wirabhumi
		command = { type = cot which = 677 }
		command = { type = removecot which = 678 }
		command = { type = stability value = -6 }
	}
	action_c = {
		name = "ACTIONNAME26021C"
		command = { type = independence which = ATJ } # Just in case...
		command = { type = independence which = BEI }
		command = { type = independence which = BJR }
		#command = { type = independence which = BTN } # not needed; overlaps with PAL/SUN
		command = { type = independence which = BUT }
		command = { type = independence which = KUT }
		command = { type = independence which = KED }
		command = { type = independence which = MKS }
		command = { type = independence which = MLC }
		command = { type = independence which = PAL }
		command = { type = independence which = SIA }
		command = { type = independence which = SUN }
		command = { type = independence which = TER }
		command = { type = cedeprovince which = MLC value = 678 }
		command = { type = cedeprovince which = BEI value = 695 }
		command = { type = cedeprovince which = BEI value = 697 }
		command = { type = cedeprovince which = KUT value = 699 }
		command = { type = cedeprovince which = SUN value = 702 }
		command = { type = cedeprovince which = SUN value = 703 }
		command = { type = removecore_national which = 681 } # Imperial cores outside Java
		command = { type = removecore_national which = 682 }
		command = { type = removecore_national which = 697 }
		command = { type = removecore_national which = 698 }
		command = { type = removecore_national which = 699 }
		command = { type = removecore_national which = 700 }
		command = { type = removecore_national which = 708 }
		command = { type = removecore_national which = 709 }
		command = { type = relation which = CHI value = 50 }
		command = { type = relation which = AYU value = 50 }
		command = { type = relation which = -1 value = 100 }
		command = { type = relation which = -4 value = 100 }
		command = { type = relation which = -4 value = 100 }
		command = { type = treasury value = -200 }
		command = { type = cityname which = 704 value = "Kotagede" }
		command = { type = country which = MTR }
		command = { type = stability value = -3 }
	}
}

#(1415-1418) Distant Shores (CAS) - (by mandead)
event = {
	id = 26022
	trigger = {
		atwar = no
		isvassal = no
		stability = 2
		event = 26010
		owned = { province = 817 data = -1 } # The Canary Islands
	}
	random = no
	country = CAS

	name = "EVENTNAME26022"
	desc = "EVENTHIST26022"
	
	date = { day = 1 month = january year = 1415 }
	offset = 90
	deathdate = { day = 1 month = january year = 1418 }

	action_a = {
		name = "ACTIONNAME26022A"
		command = { type = explorer which = -1 }
		command = { type = colonists value = 2 }
		command = { type = missionaries value = 1 }
		command = { type = relation which = PAP value = 50 }
		command = { type = relation which = POR value = 50 }
	}
}

#(1415-1418) Distant Shores (POR) - (by mandead)
event = {
	id = 26023
	trigger = {
		atwar = no
		isvassal = no
		stability = 2
		event = 26018
		owned = { province = 823 data = -1 } # The Azores
	}
	random = no
	country = POR

	name = "EVENTNAME26022"
	desc = "EVENTHIST26022"
	
	date = { day = 1 month = january year = 1415 }
	offset = 90
	deathdate = { day = 1 month = january year = 1418 }

	action_a = {
		name = "ACTIONNAME26022A"
		command = { type = explorer which = -1 }
		command = { type = colonists value = 2 }
		command = { type = missionaries value = 1 }
		command = { type = relation which = PAP value = 50 }
		command = { type = relation which = CAS value = 50 }
	}
}

#(1401-1403) The Welsh Revolt - (by mandead)
event = {
	id = 26024
	trigger = {
		owned = { province = 243 data = -1 } # Wales
	}
	random = no
	country = ENG

	name = "EVENTNAME26024"
	desc = "EVENTHIST26024"
	
	date = { day = 1 month = january year = 1401 }
	offset = 60
	deathdate = { day = 1 month = january year = 1403 }

	action_a = {
		name = "ACTIONNAME26024A"
		command = { type = revoltrisk which = 120 value = 4 }
		command = { type = revolt which = 243 }
		command = { type = revolt which = 243 }
		command = { type = domestic which = CENTRALIZATION value = 1 }
		command = { type = domestic which = OFFENSIVE value = 1 }
		command = { type = stability value = -2 }
	}
	action_b = {
		name = "ACTIONNAME26024B"
		command = { type = independence which = WLS }
		command = { type = domestic which = CENTRALIZATION value = -1 }
		command = { type = domestic which = INNOVATIVE value = 1 }
		command = { type = domestic which = SERFDOM value = -2 }
		command = { type = stability value = -1 }
	}
}

#(1406-1407) The Ming Conquest of Dai Viet - (by mandead)
event = {
	id = 26025
	trigger = {
		exists = DAI
		NOT = {
			alliance = { country = CHI country = DAI }
			vassal = { country = CHI country = DAI }
			war = { country = CHI country = DAI }
		}
	}
	random = no
	country = CHI

	name = "EVENTNAME26025"
	desc = "EVENTHIST26025"
	
	date = { day = 1 month = january year = 1406 }
	offset = 30
	deathdate = { day = 1 month = january year = 1407 }

	action_a = {
		name = "ACTIONNAME26025A"
		command = { type = war which = DAI }
		command = { type = casusbelli which = DAI value = 72 }
		command = { type = relation which = DAI value = -200 }
		command = { type = domestic which = OFFENSIVE value = 1 }
		command = { type = domestic which = QUALITY value = 1 }
		command = { type = badboy value = 10 }
		command = { type = stability value = -1 }
	}
	action_b = {
		name = "ACTIONNAME26025B"
		command = { type = vassal which = DAI }
		command = { type = relation which = DAI value = 100 }
		command = { type = domestic which = MERCANTILISM value = 1 }
		command = { type = domestic which = SERFDOM value = 1 }
		command = { type = stability value = 2 }
	}
	action_c = {
		name = "ACTIONNAME26025C"
		command = { type = dynastic which = DAI }
		command = { type = relation which = DAI value = 50 }
		command = { type = domestic which = CENTRALIZATION value = 1 }
		command = { type = domestic which = INNOVATIVE value = 1 }
		command = { type = stability value = 1 }
	}
}

#(1403-1405) The Revolt in Beta Israel - (by mandead)
event = {
	id = 26026
	trigger = {
		owned = { province = 1588 data = -1 } # Gonder
	}
	random = no
	country = ETH

	name = "EVENTNAME26026"
	desc = "EVENTHIST26026"
	
	date = { day = 1 month = january year = 1403 }
	offset = 60
	deathdate = { day = 1 month = january year = 1405 }

	action_a = {
		name = "ACTIONNAME26026A"
		command = { type = conversion which = 1588 }
		command = { type = revolt which = 1588 }
		command = { type = revolt which = 1588 }
		command = { type = domestic which = CENTRALIZATION value = 1 }
		command = { type = domestic which = INNOVATIVE value = -1 }
		command = { type = stability value = -2 }
	}
	action_b = {
		name = "ACTIONNAME26026B"
		command = { type = revoltrisk which = 24 value = 2 }
		command = { type = domestic which = CENTRALIZATION value = -1 }
		command = { type = domestic which = INNOVATIVE value = 1 }
		command = { type = stability value = -1 }
	}
	action_c = {
		name = "ACTIONNAME26026C"
		trigger = { 
			ai = no
		}
		command = { type = religion which = jewish }
		command = { type = conversion which = 1517 }
		command = { type = conversion which = 1588 }
		command = { type = conversion which = 1589 }
		command = { type = revolt which = 752 }
		command = { type = revolt which = 753 }
		command = { type = missionaries value = 1 }
		command = { type = relation which = NUB value = -150 }
		command = { type = domestic which = ARISTOCRACY value = -2 }
		command = { type = domestic which = INNOVATIVE value = 2 }
		command = { type = domestic which = SERFDOM value = -1 }
		command = { type = stability value = -5 }
	}
}

#(1405) The Ottoman Revival - (by mandead)
event = {
	id = 26027 #triggered by TIM_26019A
	random = no
	country = TUR

	name = "EVENTNAME26027"
	desc = "EVENTHIST26027"

	action_a ={
		name = "ACTIONNAME26027A"
		command = { type = breakvassal which = TIM }
		command = { type = casusbelli which = TIM value = 60 }
		command = { type = treasury value = 800 }
		command = { type = land value = 1000 }
		command = { type = naval value = 1000 }
		command = { type = infra value = 500 }
		command = { type = trade value = 500 }
		command = { type = domestic which = OFFENSIVE value = 1 }
		command = { type = domestic which = QUALITY value = 1 }
		command = { type = stability value = 5 }
		command = { type = INF which = -2 value = 15000 }
		command = { type = CAV which = -2 value = 5000 }
		command = { type = INF which = -1 value = 5000 }
		command = { type = INF which = -1 value = 5000 }
	}
}

#(1405-1409) The Samogitian Uprisings - (by mandead)
event = {
	id = 26028
	trigger = {
		owned = { province = 283 data = -1 } # Kurland
	}
	random = no
	country = LAT

	name = "EVENTNAME26028"
	desc = "EVENTHIST26028"
	
	date = { day = 1 month = january year = 1405 }
	offset = 60
	deathdate = { day = 1 month = january year = 1409 }

	action_a = {
		name = "ACTIONNAME26028A"
		command = { type = conversion which = 283 }
		command = { type = cityname which = 283 value = "Mitau" }
		command = { type = revolt which = 283 }
		command = { type = revolt which = 283 }
		command = { type = casusbelli which = LIT value = 24 }
		command = { type = relation which = LIT value = -50 }
		command = { type = domestic which = CENTRALIZATION value = 1 }
		command = { type = domestic which = OFFENSIVE value = 1 }
		command = { type = stability value = -2 }
	}
	action_b = {
		name = "ACTIONNAME26028B"
		trigger = { 
			NOT = { exists = LIV }
		}
		command = { type = independence which = LIV }
		command = { type = alliance which = LIV }
		command = { type = remove_countryculture which = ugric }
		command = { type = removecore_national which = 275 }
		command = { type = removecore_national which = 276 }
		command = { type = removecore_national which = 277 }
		command = { type = removecore_national which = 282 }
		command = { type = removecore_national which = 283 }
		command = { type = domestic which = CENTRALIZATION value = -1 }
		command = { type = domestic which = OFFENSIVE value = -1 }
		command = { type = domestic which = QUALITY value = 1 }
		command = { type = sleepevent which = 3620 } #LAT: The Fate of the Teutonic Order
		command = { type = stability value = -3 }
	}
	action_c = {
		name = "ACTIONNAME26028C"
		trigger = { 
			exists = LIT
			NOT = {
				war = { country = LAT country = LIT }
			}
		}
		command = { type = treasury value = 200 }
		command = { type = cedeprovince which = LIT value = 283 }
		command = { type = removecore_national which = 283 }
		command = { type = relation which = LIT value = 150 }
		command = { type = sleepevent which = 26036 } #LAT: Terra Mariana
		command = { type = trigger which = 26054 } #LIT: The Order Returns Samogitia
		command = { type = stability value = -1 }
	}
}

#(1410-1411) The Ming-Kotte War - (by mandead)
event = {
	id = 26029
	trigger = {
		leader = 08830 #Zheng He
	}
	random = no
	country = CHI

	name = "EVENTNAME26029"
	desc = "EVENTHIST26029"
	
	date = { day = 1 month = january year = 1410 }
	offset = 30
	deathdate = { day = 1 month = january year = 1411 }

	action_a = {
		name = "ACTIONNAME26029A"
		command = { type = colonists value = 1 }
		command = { type = missionaries value = 1 }
		command = { type = discover which = 576 }
		command = { type = warships which = -1 value = 5 }
		command = { type = transports which = -3 value = 5 }
		command = { type = domestic which = INNOVATIVE value = 1 }
		command = { type = casusbelli which = LNK value = 36 }
		command = { type = relation which = LNK value = -150 }
		command = { type = naval value = 500 }
		command = { type = treasury value = -300 }
		command = { type = stability value = 1 }
	}
	action_b = {
		name = "ACTIONNAME26029B"
		command = { type = merchants value = 2 }
		command = { type = discover which = 576 }
		command = { type = domestic which = MERCANTILISM value = -1 }
		command = { type = relation which = LNK value = -50 }
		command = { type = trade value = 500 }
		command = { type = treasury value = 200 }
		command = { type = sleepleader which = 08830 } # Zheng He
		command = { type = stability value = -1 }
	}
}

#(1418) The Lam Son Uprising - (by mandead)
event = {
	id = 26030
	trigger = {
		event = 26025
		OR = {  
			owned = { province = 662 data = -1 }
			owned = { province = 663 data = -1 }
			owned = { province = 1554 data = -1 }
		}
		NOT = { event = 3904 }
	}
	random = no
	country = CHI

	name = "EVENTNAME26030"
	desc = "EVENTHIST26030"
	
	date = { day = 1 month = january year = 1418 }
	offset = 30
	deathdate = { day = 29 month = december year = 1418 }

	action_a = {
		name = "ACTIONNAME26030A"
		command = { type = badboy value = 5 }
		command = { type = province_revoltrisk which = 662 value = 30 }
		command = { type = province_revoltrisk which = 663 value = 30 }
		command = { type = province_revoltrisk which = 1554 value = 30 }
		command = { type = stability value = -2 }
	}
	action_b = {
		name = "ACTIONNAME26030B"
		trigger = { 
			NOT = { exists = DAI }
		}
		command = { type = independence which = DAI }
		command = { type = breakoverlord which = DAI }
		command = { type = relation which = DAI value = 100 }
		command = { type = domestic which = CENTRALIZATION value = -1 }
		command = { type = stability value = -1 }
	}
}

#(1413-1418) The Great Frisian War - (by mandead)
event = {
	id = 26031
	trigger = {
		atwar = no
	}
	random = no
	country = FRI

	name = "EVENTNAME26031"
	desc = "EVENTHIST26031"
	
	date = { day = 1 month = january year = 1413 }
	offset = 60
	deathdate = { day = 1 month = january year = 1418 }

	action_a = {
		name = "ACTIONNAME26031A"
		command = { type = revoltrisk which = 60 value = 2 }
		command = { type = domestic which = CENTRALIZATION value = 1 }
		command = { type = domestic which = OFFENSIVE value = 1 }
		command = { type = relation which = GEL value = 50 }
		command = { type = relation which = -6 value = 100 }
		command = { type = relation which = HLL value = -100 }
		command = { type = casusbelli which = HLL value = 24 }
		command = { type = provincetax which = 337 value = 2 }
		command = { type = INF which = 337 value = 5000 }
		command = { type = stability value = -2 }
	}
	action_b = {
		name = "ACTIONNAME26031B"
		command = { type = revoltrisk which = 24 value = 4 }
		command = { type = domestic which = CENTRALIZATION value = -1 }
		command = { type = domestic which = OFFENSIVE value = -1 }
		command = { type = alliance which = HLL }
		command = { type = dynastic which = HLL }
		command = { type = relation which = HLL value = 150 }
		command = { type = relation which = GEL value = -50 }
		command = { type = fortress which = 337 value = 1 }
		command = { type = treasury value = 50 }
		command = { type = sleepleader which = 08646 } # Fokko Ukena
		command = { type = stability value = -3 }
	}
}

#(1405-1412) The Scutari Wars - (by mandead)
event = {
	id = 26032
	trigger = {
		atwar = no
		isvassal = no
		religion = catholic
	}
	random = no
	country = ZET

	name = "EVENTNAME26032"
	desc = "EVENTHIST26032"
	
	date = { day = 1 month = january year = 1405 }
	offset = 60
	deathdate = { day = 1 month = january year = 1412 }

	action_a = {
		name = "ACTIONNAME26032A"
		trigger = { 
			neighbour = VEN
		}
		command = { type = religion which = orthodox }
		command = { type = INF which = 362 value = 5000 }
		command = { type = casusbelli which = VEN value = 36 }
		command = { type = alliance which = SER }
		command = { type = dynastic which = SER }
		command = { type = relation which = SER value = 150 }
		command = { type = relation which = VEN value = -100 }
		command = { type = domestic which = OFFENSIVE value = 1 }
		command = { type = stability value = -1 }
	}
	action_b = {
		name = "ACTIONNAME26032B"
		command = { type = fortress which = 362 value = 1 }
		command = { type = relation which = VEN value = 100 }
		command = { type = relation which = SER value = -50 }
		command = { type = domestic which = OFFENSIVE value = -1 }
		command = { type = treasury value = 50 }
		command = { type = stability value = 1 }
	}
	action_c = {
		name = "ACTIONNAME26032C"
		trigger = { 
			neighbour = TUR
		}
		command = { type = religion which = sunni }
		command = { type = missionaries value = 1 }
		command = { type = INF which = 362 value = 5000 }
		command = { type = relation which = TUR value = 150 }
		command = { type = relation which = SER value = -100 }
		command = { type = relation which = VEN value = -100 }
		command = { type = domestic which = INNOVATIVE value = 1 }
		command = { type = domestic which = QUALITY value = 1 }
		command = { type = treasury value = 200 }
		command = { type = stability value = -3 }
	}
}

#(1418) The Gihae Expedition - (by mandead)
event = {
	id = 26033
	trigger = {
		exists = NIP
		NOT = {
			alliance = { country = KOR country = NIP }
			vassal = { country = KOR country = NIP }
			war = { country = KOR country = NIP }
		}
	}
	random = no
	country = KOR

	name = "EVENTNAME26033"
	desc = "EVENTHIST26033"
	
	date = { day = 1 month = january year = 1418 }
	offset = 30
	deathdate = { day = 29 month = december year = 1418 }

	action_a = {
		name = "ACTIONNAME26033A"
		command = { type = warships which = -1 value = 15 }
		command = { type = transports which = -3 value = 5 }
		command = { type = casusbelli which = NIP value = 36 }
		command = { type = relation which = NIP value = -100 }
		command = { type = domestic which = OFFENSIVE value = 1 }
		command = { type = domestic which = LAND value = -1 }
		command = { type = naval value = 500 }
		command = { type = treasury value = -150 }
		command = { type = trigger which = 26034 } #NIP: The Joseon Invasion
		command = { type = stability value = 1 }
	}
	action_b = {
		name = "ACTIONNAME26033B"
		command = { type = fortress which = 641 value = 1 }
		command = { type = domestic which = OFFENSIVE value = -1 }
		command = { type = domestic which = LAND value = 1 }
		command = { type = land value = 500 }
		command = { type = treasury value = -150 }
		command = { type = stability value = -1 }
	}
	action_c = {
		name = "ACTIONNAME26033C"
		command = { type = revoltrisk which = 24 value = 2 }
		command = { type = dynastic which = NIP }
		command = { type = relation which = NIP value = 50 }
		command = { type = domestic which = ARISTOCRACY value = 1 }
		command = { type = treasury value = 100 }
		command = { type = sleepleader which = 08941 } # Yi Jong-mu
		command = { type = trigger which = 26035 } #NIP: The Wokou Negotiations
		command = { type = stability value = -2 }
	}
}

#(1418) The Joseon Invasion - (by mandead)
event = {
	id = 26034 #triggered by KOR_26033A
	random = no
	country = NIP

	name = "EVENTNAME26034"
	desc = "EVENTHIST26034"

	action_a ={
		name = "ACTIONNAME26034A"
		command = { type = pirates which = 1019 value = 3 }
		command = { type = revolt value = WKR which = 688 }
		command = { type = revolt value = WKR which = 688 }
		command = { type = stability value = -2 }
	}
}

#(1418) The Wokou Negotiations - (by mandead)
event = {
	id = 26035 #triggered by KOR_26033C
	random = no
	country = NIP

	name = "EVENTNAME26035"
	desc = "EVENTHIST26035"

	action_a ={
		name = "ACTIONNAME26035A"
		command = { type = warships which = 688 value = 5 }
		command = { type = provincetax which = 688 value = 2 }
		command = { type = domestic which = INNOVATIVE value = 1 }
		command = { type = treasury value = -100 }
		command = { type = stability value = 1 }
	}
}

#(1409-1411) Terra Mariana - (by mandead)
event = {
	id = 26036
	trigger = {
		atwar = no
		isvassal = no
		stability = 2
		event = 26028
		exists = POL
		exists = LIT
		NOT = {
			alliance = { country = LAT country = POL }
			vassal = { country = LAT country = POL }
			alliance = { country = LAT country = LIT }
			vassal = { country = LAT country = LIT }
		}
	}
	random = no
	country = LAT

	name = "EVENTNAME26036"
	desc = "EVENTHIST26036"
	
	date = { day = 1 month = january year = 1409 }
	offset = 60
	deathdate = { day = 1 month = january year = 1411 }

	action_a = {
		name = "ACTIONNAME26036A"
		command = { type = war which = POL }
		command = { type = war which = LIT }
		command = { type = relation which = POM value = 50 }
		command = { type = relation which = STT value = 50 }
		command = { type = relation which = DAN value = 50 }
		command = { type = relation which = SWE value = 50 }
		command = { type = relation which = LIV value = 50 }
		command = { type = relation which = -6 value = 50 }
		command = { type = relation which = POL value = -150 }
		command = { type = relation which = LIT value = -150 }
		command = { type = domestic which = ARISTOCRACY value = 1 }
		command = { type = domestic which = QUALITY value = -1 }
		command = { type = INF which = -2 value = 15000 }
		command = { type = CAV which = -2 value = 5000 }
		command = { type = treasury value = -150 }
		command = { type = trigger which = 26037 } #POL: The Order Reignites the Lithuanian Crusade (POL)
		command = { type = trigger which = 26038 } #LIT: The Order Reignites the Lithuanian Crusade (LIT)
		command = { type = stability value = 2 }
	}
	action_b = {
		name = "ACTIONNAME26036B"
		trigger = { 
			NOT = {
				war = { country = LAT country = DAN }
			}
			owned = { province = 308 data = -1 } # Gotland
		}
		command = { type = casusbelli which = POL value = 24 }
		command = { type = casusbelli which = LIT value = 24 }
		command = { type = relation which = POM value = 100 }
		command = { type = relation which = STT value = 100 }
		command = { type = relation which = DAN value = 100 }
		command = { type = relation which = SWE value = 100 }
		command = { type = relation which = LIV value = 100 }
		command = { type = relation which = -6 value = 100 }
		command = { type = relation which = POL value = -100 }
		command = { type = relation which = LIT value = -100 }
		command = { type = removecore_national which = 308 }
		command = { type = cedeprovince which = DAN value = 308 }
		command = { type = domestic which = ARISTOCRACY value = 1 }
		command = { type = domestic which = QUALITY value = -1 }
		command = { type = manpower value = 10 }
		command = { type = treasury value = 300 }
		command = { type = trigger which = 26037 } #POL: The Order Reignites the Lithuanian Crusade (POL)
		command = { type = trigger which = 26038 } #LIT: The Order Reignites the Lithuanian Crusade (LIT)
		command = { type = trigger which = 26039 } #DAN: The Order Reignites the Lithuanian Crusade (DAN)
		command = { type = stability value = -1 }
	}
	action_c = {
		name = "ACTIONNAME26036C"
		command = { type = revoltrisk which = 24 value = 2 }
		command = { type = relation which = POL value = 100 }
		command = { type = relation which = LIT value = 100 }
		command = { type = relation which = POM value = -50 }
		command = { type = relation which = STT value = -50 }
		command = { type = relation which = DAN value = -50 }
		command = { type = relation which = SWE value = -50 }
		command = { type = relation which = LIV value = -50 }
		command = { type = relation which = -6 value = -50 }
		command = { type = domestic which = ARISTOCRACY value = -1 }
		command = { type = domestic which = QUALITY value = 1 }
		command = { type = stability value = -2 }
	}
}

#(1409-1411) The Order Reignites the Lithuanian Crusade (POL) - (by mandead)
event = {
	id = 26037 #triggered by LAT_26036A/LAT_26036B
	random = no
	country = POL

	name = "EVENTNAME26037"
	desc = "EVENTHIST26037"

	action_a ={
		name = "ACTIONNAME26037A"
		command = { type = domestic which = OFFENSIVE value = -1 }
		command = { type = INF which = -2 value = 5000 }
		command = { type = stability value = -2 }
	}
}

#(1409-1411) The Order Reignites the Lithuanian Crusade (LIT) - (by mandead)
event = {
	id = 26038 #triggered by LAT_26036A/LAT_26036B
	random = no
	country = LIT

	name = "EVENTNAME26038"
	desc = "EVENTHIST26038"

	action_a ={
		name = "ACTIONNAME26038A"
		command = { type = domestic which = OFFENSIVE value = -1 }
		command = { type = CAV which = -2 value = 5000 }
		command = { type = stability value = -2 }
	}
}

#(1409-1411) The Order Reignites the Lithuanian Crusade (DAN) - (by mandead)
event = {
	id = 26039 #triggered by LAT_26036B
	random = no
	country = DAN

	name = "EVENTNAME26039"
	desc = "EVENTHIST26039"

	action_a ={
		name = "ACTIONNAME26039A"
		command = { type = alliance which = LAT }
		command = { type = casusbelli which = POL value = 12 }
		command = { type = casusbelli which = LIT value = 12 }
		command = { type = relation which = LAT value = 100 }
		command = { type = relation which = LIV value = 100 }
		command = { type = relation which = POL value = -100 }
		command = { type = relation which = LIT value = -100 }
		command = { type = treasury value = -300 }
		command = { type = stability value = -1 }
	}
	action_b ={
		name = "ACTIONNAME26039B"
		command = { type = relation which = LAT value = 50 }
		command = { type = relation which = LIV value = 50 }
		command = { type = relation which = POL value = -50 }
		command = { type = relation which = LIT value = -50 }
		command = { type = treasury value = -300 }
		command = { type = stability value = 1 }
	}
}

#(1402-1406) The Future of the Kalmar Union - (by mandead)
event = {
	id = 26040
	trigger = {
		vassal = { country = DAN country = NOR }
		vassal = { country = DAN country = SWE }
	}
	random = no
	country = DAN

	name = "EVENTNAME26040"
	desc = "EVENTHIST26040"
	
	date = { day = 1 month = january year = 1402 }
	offset = 60
	deathdate = { day = 1 month = january year = 1406 }

	action_a = {
		name = "ACTIONNAME26040A"
		trigger = { 
			NOT = {
				war = { country = DAN country = ENG }
			}
		}
		command = { type = dynastic which = ENG }
		command = { type = relation which = ENG value = 100 }
		command = { type = relation which = NOR value = -50 }
		command = { type = relation which = SWE value = -50 }
		command = { type = domestic which = CENTRALIZATION value = 1 }
		command = { type = domestic which = OFFENSIVE value = 1 }
		command = { type = revolt which = -1234 }
		command = { type = revolt which = -1235 }
		command = { type = stability value = -2 }
	}
	action_b = {
		name = "ACTIONNAME26040B"
		trigger = { 
			NOT = {
				war = { country = DAN country = SCO }
			}
		}
		command = { type = dynastic which = SCO }
		command = { type = relation which = SCO value = 100 }
		command = { type = relation which = NOR value = 50 }
		command = { type = relation which = SWE value = -50 }
		command = { type = domestic which = MERCANTILISM value = -1 }
		command = { type = domestic which = SERFDOM value = -1 }
		command = { type = revolt which = -1235 }
		command = { type = stability value = -1 }
	}
	action_c = {
		name = "ACTIONNAME26040C"
		trigger = { 
			NOT = {
				war = { country = DAN country = BAY }
			}
		}
		command = { type = dynastic which = BAY }
		command = { type = relation which = BAY value = 100 }
		command = { type = relation which = NOR value = -50 }
		command = { type = relation which = SWE value = 50 }
		command = { type = domestic which = LAND value = 1 }
		command = { type = domestic which = OFFENSIVE value = -1 }
		command = { type = revolt which = -1234 }
		command = { type = stability value = -1 }
	}
	action_d = {
		name = "ACTIONNAME26040D"
		command = { type = DIP which = 1 value = 120 }
		command = { type = ADM which = 1 value = 120 }
		command = { type = MIL which = 1 value = 120 }
		command = { type = relation which = NOR value = 50 }
		command = { type = relation which = SWE value = 50 }
		command = { type = relation which = ENG value = -50 }
		command = { type = relation which = SCO value = -50 }
		command = { type = relation which = BAY value = -50 }
		command = { type = domestic which = ARISTOCRACY value = 1 }
		command = { type = domestic which = CENTRALIZATION value = -2 }
		command = { type = stability value = 1 }
	}
}

#(1405-1410) The Ayutthayan Occupation - (by mandead)
event = {
	id = 26041
	trigger = {
		vassal = { country = AYU country = KHM }
	}
	random = no
	country = KHM

	name = "EVENTNAME26041"
	desc = "EVENTHIST26041"
	
	date = { day = 1 month = january year = 1405 }
	offset = 60
	deathdate = { day = 1 month = january year = 1410 }

	action_a = {
		name = "ACTIONNAME26041A"
		command = { type = breakvassal which = AYU }
		command = { type = casusbelli which = AYU value = 36 }
		command = { type = relation which = AYU value = -100 }
		command = { type = INF which = -2 value = 10000 }
		command = { type = domestic which = CENTRALIZATION value = 1 }
		command = { type = domestic which = OFFENSIVE value = 1 }
		command = { type = stability value = 2 }
	}
	action_b = {
		name = "ACTIONNAME26041B"
		command = { type = dynastic which = AYU }
		command = { type = relation which = AYU value = 100 }
		command = { type = revoltrisk which = 24 value = 2 }
		command = { type = domestic which = SERFDOM value = 1 }
		command = { type = stability value = -1 }
	}
}

#(1399-1405) The Age of Timur - (by mandead)
event = {
	id = 26042
	trigger = {
		monarch = 0141007 #Timur
		AND = {
			vassal = { country = TIM country = DLH }
			vassal = { country = TIM country = MAM }
			vassal = { country = TIM country = STE }
			vassal = { country = TIM country = TUR }
		}
	}
	random = no
	country = TIM

	name = "EVENTNAME26042"
	desc = "EVENTHIST26042"
	
	date = { day = 1 month = january year = 1399 }
	offset = 60
	deathdate = { day = 1 month = january year = 1405 }

	action_a = {
		name = "ACTIONNAME26042A"
		command = { type = vp value = 500 }
		command = { type = manpower value = 100 }
		command = { type = treasury value = 1000 }
		command = { type = casusbelli which = BYZ value = 60 }
		command = { type = casusbelli which = POL value = 60 }
		command = { type = casusbelli which = LIT value = 60 }
		command = { type = casusbelli which = HUN value = 60 }
		command = { type = relation which = DLH value = 300 }
		command = { type = relation which = MAM value = 300 }
		command = { type = relation which = STE value = 300 }
		command = { type = relation which = TUR value = 300 }
		command = { type = relation which = BYZ value = -100 }
		command = { type = relation which = POL value = -100 }
		command = { type = relation which = LIT value = -100 }
		command = { type = relation which = HUN value = -100 }
		command = { type = stability value = 3 }
	}
}

#(1406-1418) The Bahmani-Vijayanagara Wars - (by mandead)
event = {
	id = 26043
	trigger = {
		neighbour = VIJ
		NOT = {
			alliance = { country = HYD country = VIJ }
			vassal = { country = HYD country = VIJ }
			war = { country = HYD country = VIJ }
		}
	}
	random = no
	country = HYD

	name = "EVENTNAME26043"
	desc = "EVENTHIST26043"
	
	date = { day = 1 month = january year = 1406 }
	offset = 60
	deathdate = { day = 29 month = december year = 1418 }

	action_a = {
		name = "ACTIONNAME26043A"
		command = { type = casusbelli which = VIJ value = 36 }
		command = { type = relation which = VIJ value = -100 }
		command = { type = domestic which = OFFENSIVE value = 1 }
		command = { type = stability value = 1 }
	}
	action_b = {
		name = "ACTIONNAME26043B"
		command = { type = dynastic which = VIJ }
		command = { type = relation which = VIJ value = 100 }
		command = { type = revoltrisk which = 24 value = 2 }
		command = { type = domestic which = OFFENSIVE value = -1 }
		command = { type = stability value = -1 }
	}
}

#(1405) The Death of Margaret of Flanders - (by mandead)
event = {
	id = 26044
	trigger = {
		owned = { province = 380 data = -1 } # Flandern
	}
	random = no
	country = BUR

	name = "EVENTNAME26044"
	desc = "EVENTHIST26044"
	
	date = { day = 16 month = march year = 1405 }

	action_a = {
		name = "ACTIONNAME26044A"
		command = { type = add_countryculture which = dutch }
		command = { type = addcore_national which = 379 }
		command = { type = addcore_national which = 380 }
		command = { type = domestic which = CENTRALIZATION value = 1 }
		command = { type = domestic which = MERCANTILISM value = 1 }
		command = { type = treasury value = 500 }
		command = { type = stability value = 2 }
	}
}

#(1400-1406) Tokhtamysh's Rebellion - (by mandead)
event = {
	id = 26045
	trigger = {
		war = { country = STE country = SIB }
	}
	random = no
	country = STE

	name = "EVENTNAME26045"
	desc = "EVENTHIST26045"
	
	date = { day = 1 month = january year = 1400 }
	offset = 60
	deathdate = { day = 1 month = january year = 1406 }

	action_a = {
		name = "ACTIONNAME26045A"
		trigger = { 
			war = { country = STE country = TIM }
		}
		command = { type = manpower value = 25 }
		command = { type = treasury value = 250 }
		command = { type = diplomats value = 2 }
		command = { type = CAV which = -2 value = 25000 }
		command = { type = CAV which = 515 value = 10000 }
		command = { type = stability value = 2 }
	}
	action_b = {
		name = "ACTIONNAME26045B"
		trigger = { 
			war = { country = STE country = LIT }
		}
		command = { type = manpower value = 20 }
		command = { type = treasury value = 200 }
		command = { type = diplomats value = 2 }
		command = { type = CAV which = -2 value = 20000 }
		command = { type = CAV which = 460 value = 10000 }
		command = { type = stability value = 2 }
	}
	action_c = {
		name = "ACTIONNAME26045C"
		command = { type = manpower value = 15 }
		command = { type = treasury value = 150 }
		command = { type = missionaries value = 4 }
		command = { type = CAV which = 511 value = 15000 }
		command = { type = stability value = 1 }
	}
}

#(1403-1405) The End of the Venetian Renaissance - (by mandead)
event = {
	id = 26046
	trigger = {
		owned = { province = 365 data = NAP } # Dalmatia
		NOT = {
			war = { country = VEN country = NAP }
			war = { country = HUN country = NAP }
		}
	}
	random = no
	country = VEN

	name = "EVENTNAME26046"
	desc = "EVENTHIST26046"
	
	date = { day = 1 month = january year = 1403 }
	offset = 60
	deathdate = { day = 1 month = january year = 1405 }

	action_a = {
		name = "ACTIONNAME26046A"
		command = { type = trigger which = 26047 } #NAP: Venice Offers to Purchase Dalmatia
	}
	action_b = {
		name = "ACTIONNAME26046B"
		trigger = { 
			exists = GEN
		}
		command = { type = casusbelli which = GEN value = 36 }
		command = { type = relation which = GEN value = -100 }
		command = { type = merchants value = 3 }
		command = { type = infra value = 500 }
		command = { type = trade value = 500 }
		command = { type = stability value = 1 }
	}
	action_c = {
		name = "ACTIONNAME26046C"
		trigger = { 
			exists = TUR
			NOT = { event = 26027 }
		}
		command = { type = casusbelli which = TUR value = 36 }
		command = { type = relation which = TUR value = -100 }
		command = { type = INF which = 359 value = 10000 }
		command = { type = land value = 500 }
		command = { type = stability value = 1 }
	}
	action_d = {
		name = "ACTIONNAME26046D"
		trigger = { 
			exists = MAM
		}
		command = { type = casusbelli which = MAM value = 36 }
		command = { type = relation which = MAM value = -100 }
		command = { type = galleys which = 480 value = 25 }
		command = { type = naval value = 500 }
		command = { type = stability value = 1 }
	}
}

#(1403-1405) Venice Offers to Purchase Dalmatia - (by mandead)
event = {
	id = 26047 #triggered by VEN_26046A
	random = no
	country = NAP

	name = "EVENTNAME26047"
	desc = "EVENTHIST26047"

	action_a ={
		name = "ACTIONNAME26047A"
		command = { type = breakoverlord which = BOS }
		command = { type = removecore_national which = 365 }
		command = { type = removecore_national which = 366 }
		command = { type = cedeprovince which = VEN value = 364 }
		command = { type = cedeprovince which = VEN value = 365 }
		command = { type = cedeprovince which = VEN value = 366 }
		command = { type = treasury value = 300 }
		command = { type = trigger which = 26048 } #VEN: Naples Agrees to Sell Dalmatia
		command = { type = stability value = 1 }
	}
	action_b ={
		name = "ACTIONNAME26047B"
		command = { type = trigger which = 26049 } #VEN: Naples Refuses to Sell Dalmatia
		command = { type = stability value = -1 }
	}
}

#(1403-1405) Naples Agrees to Sell Dalmatia - (by mandead)
event = {
	id = 26048 #triggered by NAP_26047A
	random = no
	country = VEN

	name = "EVENTNAME26048"
	desc = "EVENTHIST26048"

	action_a ={
		name = "ACTIONNAME26048A"
		command = { type = relation which = NAP value = 100 }
		command = { type = treasury value = -300 }
		command = { type = stability value = 1 }
	}
}

#(1403-1405) Naples Refuses to Sell Dalmatia - (by mandead)
event = {
	id = 26049 #triggered by NAP_26047B
	random = no
	country = VEN

	name = "EVENTNAME26049"
	desc = "EVENTHIST26049"

	action_a ={
		name = "ACTIONNAME26049A"
		command = { type = relation which = NAP value = -100 }
		command = { type = stability value = -1 }
	}
}

#(1401-1410) The Many Crowns of Sigismund - (by mandead)
event = {
	id = 26050
	trigger = {
		atwar = no
		isvassal = no
		stability = 1
		monarch = 06260 #Zsigmond
		countrysize = 10
	}
	random = no
	country = HUN

	name = "EVENTNAME26050"
	desc = "EVENTHIST26050"
	
	date = { day = 1 month = january year = 1401 }
	offset = 60
	deathdate = { day = 1 month = january year = 1410 }

	action_a = {
		name = "ACTIONNAME26050A"
		command = { type = dynastic which = HAB }
		command = { type = relation which = HAB value = 100 }
		command = { type = relation which = CEL value = 50 }
		command = { type = provincetax which = -1 value = 2 }
		command = { type = provincetax which = -4 value = 1 }
		command = { type = provincetax which = -4 value = 1 }
		command = { type = diplomats value = 3 }
		command = { type = stability value = 2 }
	}
	action_b = {
		name = "ACTIONNAME26050B"
		command = { type = casusbelli which = BOH value = 36 }
		command = { type = casusbelli which = BRA value = 36 }
		command = { type = relation which = BOH value = -100 }
		command = { type = relation which = BRA value = -100 }
		command = { type = CAV which = 326 value = 5000 }
		command = { type = stability value = -1 }
	}
	action_c = {
		name = "ACTIONNAME26050C"
		command = { type = casusbelli which = MOL value = 36 }
		command = { type = casusbelli which = WAL value = 36 }
		command = { type = relation which = MOL value = -100 }
		command = { type = relation which = WAL value = -100 }
		command = { type = INF which = 323 value = 5000 }
		command = { type = stability value = 1 }
	}
	action_d = {
		name = "ACTIONNAME26050D"
		trigger = { 
			neighbour = NAP
		}
		command = { type = addcore_claim which = 365 }
		command = { type = addcore_claim which = 366 }
		command = { type = casusbelli which = NAP value = 36 }
		command = { type = casusbelli which = BOS value = 36 }
		command = { type = relation which = NAP value = -100 }
		command = { type = relation which = BOS value = -100 }
		command = { type = INF which = 366 value = 5000 }
		command = { type = stability value = 2 }
	}
}

#(1401-1402) The Guardianship of Scotland - (by mandead)
event = {
	id = 26051
	random = no
	country = SCO

	name = "EVENTNAME26051"
	desc = "EVENTHIST26051"
	
	date = { day = 1 month = january year = 1401 }
	offset = 60
	deathdate = { day = 1 month = january year = 1402 }

	action_a = {
		name = "ACTIONNAME26051A"
		command = { type = revolt which = 238 }
		command = { type = domestic which = CENTRALIZATION value = -1 }
		command = { type = stability value = -1 }
	}
	action_b = {
		name = "ACTIONNAME26051B"
		command = { type = revoltrisk which = 60 value = 3 }
		command = { type = treasury value = 150 }
		command = { type = domestic which = ARISTOCRACY value = -1 }
		command = { type = stability value = -2 }
	}
	action_c = {
		name = "ACTIONNAME26051C"
		command = { type = CAV which = 239 value = 5000 }
		command = { type = casusbelli which = ENG value = 24 }
		command = { type = relation which = ENG value = -50 }
		command = { type = domestic which = ARISTOCRACY value = 1 }
		command = { type = stability value = 1 }
	}
	action_d = {
		name = "ACTIONNAME26051D"
		command = { type = revolt which = 237 }
		command = { type = revolt which = 239 }
		command = { type = DIP which = 2 value = 60 }
		command = { type = ADM which = 2 value = 60 }
		command = { type = MIL which = 2 value = 60 }
		command = { type = domestic which = CENTRALIZATION value = 1 }
		command = { type = domestic which = SERFDOM value = 1 }
		command = { type = stability value = -3 }
	}
}

#(1399) The Death of John the Conqueror - (by mandead)
event = {
	id = 26052
	trigger = {
		NOT = {
			war = { country = BRI country = FRA }
			war = { country = BRI country = ENG }
		}
	}
	random = no
	country = BRI

	name = "EVENTNAME26052"
	desc = "EVENTHIST26052"
	
	date = { day = 1 month = november year = 1399 }

	action_a = {
		name = "ACTIONNAME26052A"
		command = { type = relation which = FRA value = 50 }
		command = { type = relation which = ENG value = 50 }
		command = { type = provincetax which = 415 value = 3 }
		command = { type = trade value = 500 }
		command = { type = stability value = 1 }
	}
	action_b = {
		name = "ACTIONNAME26052B"
		command = { type = alliance which = FRA }
		command = { type = dynastic which = FRA }
		command = { type = relation which = FRA value = 100 }
		command = { type = relation which = ENG value = -100 }
		command = { type = casusbelli which = ENG value = 24 }
		command = { type = domestic which = LAND value = -1 }
		command = { type = naval value = 500 }
		command = { type = stability value = -2 }
	}
	action_c = {
		name = "ACTIONNAME26052C"
		command = { type = alliance which = ENG }
		command = { type = dynastic which = ENG }
		command = { type = relation which = ENG value = 100 }
		command = { type = relation which = FRA value = -100 }
		command = { type = casusbelli which = FRA value = 24 }
		command = { type = domestic which = LAND value = 1 }
		command = { type = land value = 500 }
		command = { type = sleepleader which = 09142 } # de Richemont (FRA)
		command = { type = stability value = -2 }
	}
}

#(1401-1413) Vytautas and the Expansion of Lithuania - (by mandead)
event = {
	id = 26053
	trigger = {
		atwar = no
		isvassal = no
		stability = 1
		monarch = 04290 #Vytautas Didysis
		countrysize = 10
	}
	random = no
	country = LIT

	name = "EVENTNAME26053"
	desc = "EVENTHIST26053"
	
	date = { day = 1 month = january year = 1401 }
	offset = 60
	deathdate = { day = 1 month = january year = 1413 }

	action_a = {
		name = "ACTIONNAME26053A"
		command = { type = relation which = POL value = 50 }
		command = { type = relation which = MAS value = 50 }
		command = { type = treasury value = 150 }
		command = { type = infra value = 500 }
		command = { type = trade value = 500 }
		command = { type = stability value = 2 }
	}
	action_b = {
		name = "ACTIONNAME26053B"
		command = { type = addcore_claim which = 277 }
		command = { type = relation which = LAT value = 200 }
		command = { type = relation which = LIV value = 200 }
		command = { type = relation which = NVG value = -200 }
		command = { type = relation which = PSK value = -200 }
		command = { type = casusbelli which = NVG value = 60 }
		command = { type = casusbelli which = PSK value = 60 }
		command = { type = stability value = -1 }
	}
	action_c = {
		name = "ACTIONNAME26053C"
		command = { type = addcore_claim which = 283 }
		command = { type = relation which = LAT value = -200 }
		command = { type = relation which = LIV value = -200 }
		command = { type = casusbelli which = LAT value = 60 }
		command = { type = casusbelli which = LIV value = 60 }
		command = { type = stability value = -2 }
	}
	action_d = {
		name = "ACTIONNAME26053D"
		command = { type = wakemonarch which = 04294 } # Jogaila
		command = { type = revolt which = -2 }
		command = { type = revolt which = -2 }
		command = { type = relation which = POL value = 200 }
		command = { type = relation which = MAS value = 100 }
		command = { type = domestic which = ARISTOCRACY value = -3 }
		command = { type = domestic which = CENTRALIZATION value = 3 }
		command = { type = domestic which = QUALITY value = 1 }
		command = { type = domestic which = INNOVATIVE value = 1 }
		command = { type = treasury value = 400 }
		command = { type = infra value = 1000 }
		command = { type = trade value = 1000 }
		command = { type = stability value = -4 }
	}
}

#(1405-1409) The Order Returns Samogitia - (by mandead)
event = {
	id = 26054 #triggered by LAT_26028C
	random = no
	country = LIT

	name = "EVENTNAME26054"
	desc = "EVENTHIST26054"

	action_a ={
		name = "ACTIONNAME26054A"
		command = { type = treasury value = -200 }
		command = { type = addcore_claim which = 283 }
		command = { type = stability value = 1 }
	}
}

#(1405-1447) The Horde Rides East - (by mandead)
event = {
	id = 26055
	trigger = {
		exists = CHI
		event = 26042
		someof = {
			number = 3
			OR = {
				NOT = { exists = BYZ }
				vassal = { country = TIM country = BYZ }
			}
			OR = {
				NOT = { exists = POL }
				vassal = { country = TIM country = POL }
			}
			OR = {
				NOT = { exists = LIT }
				vassal = { country = TIM country = LIT }
			}
			OR = {
				NOT = { exists = HUN }
				vassal = { country = TIM country = HUN }
			}
		}
		OR = {
			alliance = { country = TIM country = CHG }
			vassal = { country = TIM country = CHG }
			neighbour = CHI
		}
	}
	random = no
	country = TIM

	name = "EVENTNAME26055"
	desc = "EVENTHIST26055"
	
	date = { day = 1 month = january year = 1405 }
	offset = 60
	deathdate = { day = 1 month = january year = 1447 }

	action_a = {
		name = "ACTIONNAME26055A"
		command = { type = vp value = 150 }
		command = { type = manpower value = 25 }
		command = { type = treasury value = 500 }
		command = { type = INF which = -2 value = 15000 }
		command = { type = CAV which = -2 value = 35000 }
		command = { type = ART which = -2 value = 50 }
		command = { type = casusbelli which = CHI value = 120 }
		command = { type = relation which = BYZ value = 100 }
		command = { type = relation which = POL value = 100 }
		command = { type = relation which = LIT value = 100 }
		command = { type = relation which = HUN value = 100 }
		command = { type = relation which = CHI value = -200 }
		command = { type = stability value = 2 }
	}
}
