#####Ak Koyunlu Major Events#####
#####      By  Crook        #####
#################################

#Death of Yaqub#
event = {
	id = 65051
	trigger = {
		NOT = { domestic = { type = centralization value = 6 } }
}
	random = no
	country = AKK
	name = "EVENTNAME65051"
	desc = "EVENTHIST65051"
	style = 1

	date = { day = 1 month = may year = 1490 }
	offset = 30
	deathdate = { day = 1 month = january year = 1491 }

	action_a ={ 
		name = "ACTIONNAME65051A"
		command = { type = revolt which = -1 }
		command = { type = revolt which = -1 }
		command = { type = revolt which = -1 }
		command = { type = revolt which = -1 }
		command = { type = revolt which = -1 }
		command = { type = revolt which = -1 }
		command = { type = provincetax which = -1 value = -1 }
		command = { type = provincetax which = -1 value = -1 }
		command = { type = provincetax which = -1 value = -1 }
		command = { type = domestic which = centralization value = -2 }
		command = { type = revoltrisk which = 90 value = 8 }
		command = { type = stability value = -6 }	
	}
}

#Shi'a takeover#
event = {
	id = 65052
	trigger = {
		owned = { province = 530 data = -1 }
		control = { province = 530 data = REB }
		NOT = { exists = PER }
}
	random = no
	country = AKK
	name = "EVENTNAME65052"
	desc = "EVENTHIST65052"
	style = 1

	date = { day = 1 month = may year = 1491 }
	offset = 30
	deathdate = { day = 1 month = january year = 1505 }

	action_a ={ 
		name = "ACTIONNAME65052A"
		command = { type = country which = PER }
		command = { type = capital which = 530 }
		command = { type = religion which = shiite }
		command = { type = add_countryculture which = persian }
		command = { type = remove_countryculture which = turkish }
		command = { type = remove_countryculture which = kurdish }
		command = { type = revoltrisk value = -8 }
		command = { type = cav which = -1 value = 7000 }
		command = { type = stability value = 1 }	
	}
	action_b ={ 
		name = "ACTIONNAME65052B"
		command = { type = revolt which = -1 }
		command = { type = revolt which = -1 }
		command = { type = revolt which = -1 }
		command = { type = revolt which = -1 }
		command = { type = revolt which = -1 }
		command = { type = revolt which = -1 }
		command = { type = provincetax which = -1 value = -1 }
		command = { type = provincetax which = -1 value = -1 }
		command = { type = provincetax which = -1 value = -1 }
		command = { type = domestic which = centralization value = -2 }
		command = { type = revoltrisk which = 90 value = 8 }
		command = { type = stability value = -6 }
	}
}

# Persia is Resurrected
event = {
	id = 3817
	trigger = {
		exists = PER
		OR = {
			owned = { province = 525 data = -1 }
			owned = { province = 526 data = -1 }
			owned = { province = 527 data = -1 }
			owned = { province = 528 data = -1 }
			owned = { province = 529 data = -1 }
			owned = { province = 530 data = -1 }
			owned = { province = 531 data = -1 }
			owned = { province = 532 data = -1 }
			owned = { province = 533 data = -1 }
			owned = { province = 534 data = -1 }
			owned = { province = 535 data = -1 }
			owned = { province = 536 data = -1 }
			owned = { province = 1529 data = -1 }
			owned = { province = 1530 data = -1 }
		}
	}
	random = no
	country = AKK
	name = "EVENTNAME3817"
	desc = "EVENTHIST3817"
	style = 2
	
	date = { day = 1 month = january year = 1497 }
	offset = 60
	deathdate = { day = 1 month = january year = 1530 }

	action_a = { # Let them be.
		name = "ACTIONNAME3817A"
		command = { type = relation which = PER value = 400 }
		command = { type = secedeprovince which = PER value = 525 }
		command = { type = secedeprovince which = PER value = 526 }
		command = { type = secedeprovince which = PER value = 527 }
		command = { type = secedeprovince which = PER value = 528 }
		command = { type = secedeprovince which = PER value = 529 }
		command = { type = secedeprovince which = PER value = 530 }
		command = { type = secedeprovince which = PER value = 531 }
		command = { type = secedeprovince which = PER value = 532 }
		command = { type = secedeprovince which = PER value = 533 }
		command = { type = secedeprovince which = PER value = 534 }
		command = { type = secedeprovince which = PER value = 535 }
		command = { type = secedeprovince which = PER value = 536 }
		command = { type = secedeprovince which = PER value = 1529 }
		command = { type = secedeprovince which = PER value = 1530 }
		command = { type = vp value = 25 }
	}
	action_b = { # Crush the rebellion.
		name = "ACTIONNAME3817B"
		command = { type = revoltrisk which = 120 value = 8 }
		command = { type = revolt which = -1 }
		command = { type = revolt which = -1 }
		command = { type = revolt which = -1 }
		command = { type = revolt which = -1 }
		command = { type = revolt which = -1 }
		command = { type = stability value = -6 }
	}
}