#####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 = 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 = 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 = 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 = 529 data = -1 }
		control = { province = 529 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 = 529 }
		command = { type = religion which = shiite }
		command = { type = add_countryculture which = persian }
		command = { type = remove_countryculture which = kurdish }
		command = { type = revoltrisk value = -8 }
		command = { type = cav which = -1 value = 7000 }
		command = { type = stability value = 1 }
command = { type = independence which = U04 }	
command = { type = vassal which = U04 }
command = { type = alliance   which = U04 }
	}
	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 = 530 data = -1 }
			owned = { province = 531 data = -1 }
			owned = { province = 528 data = -1 }
			owned = { province = 529 data = -1 }
			owned = { province = 526 data = -1 }
			owned = { province = 527 data = -1 }
			owned = { province = 532 data = -1 }
			owned = { province = 533 data = -1 }
			owned = { province = 534 data = -1 }
			owned = { province = 535 data = -1 }
			owned = { province = 1529 data = -1 }
			owned = { province = 1530 data = -1 }
                        owned = { province = 487 data = -1 }
owned = { province = 1437 data = -1 }
owned = { province = 1327 data = -1 }
owned = { province = 1060 data = -1 }
owned = { province = 1062 data = -1 }
owned = { province = 1961 data = -1 }

owned = { province = 1454 data = -1 }
owned = { province = 1004 data = -1 }
owned = { province = 486 data = -1 }
owned = { province = 488 data = -1 }
owned = { province = 1432 data = -1 }
owned = { province = 1806 data = -1 }

owned = { province = 469 data = -1 }
owned = { province = 473 data = -1 }
owned = { province = 1058 data = -1 }
owned = { province = 470 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 = 530 }
		command = { type = secedeprovince which = PER value = 531 }
		command = { type = secedeprovince which = PER value = 528 }
		command = { type = secedeprovince which = PER value = 529 }
		command = { type = secedeprovince which = PER value = 526 }
		command = { type = secedeprovince which = PER value = 527 }
		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 = 487 }
		command = { type = secedeprovince which = PER value = 1529 }
		command = { type = secedeprovince which = PER value = 1530 }
command = { type = secedeprovince which = PER value = 1437 }
command = { type = secedeprovince which = PER value = 1327 }
command = { type = secedeprovince which = PER value = 1060 }
command = { type = secedeprovince which = PER value = 1062 }
command = { type = secedeprovince which = PER value = 1961 }


command = { type = secedeprovince which = PER value = 1454 }
command = { type = secedeprovince which = PER value = 488 }
command = { type = secedeprovince which = PER value = 486 }
command = { type = secedeprovince which = PER value = 1004 }
command = { type = secedeprovince which = PER value = 1432 }
command = { type = secedeprovince which = PER value = 1806 }

command = { type = independence  which = SEL }
command = { type = independence  which = U16 }
command = { type = secedeprovince which = U16 value = 1058 }
command = { type = secedeprovince which = U16 value = 470 }
command = { type = secedeprovince which = SEL value = 473 }
command = { type = secedeprovince which = SEL value = 469 }
	}
	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 = 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 = 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 = 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 = 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 = 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 = 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 }
	}
}