##########################
###  Mamelukes Events  ###
###      by Crook      ###
##########################

#Capture of the Morgarbina#
event = {
	id = 24032
	random = no
	country = MAM
	trigger = { event = 24015
			atwar = no
			NOT = { alliance = { country = KNI country = MAM }  }
			exists = KNI
 }
	name = "EVENTNAME24032"
	desc = "EVENTHIST24032"
	style = 2
	date = { day = 1 month = april year = 1507 }
	offset = 10
	deathdate = { day = 1 month = september year = 1515 }


	action_a ={
		name = "ACTIONNAME24032A"
		command = { type = war which = KNI }
		command = { type = stability  value = 6}
		command = { type = galleys which = -1 value = 10 }
		command = { type = cav which = -3 value = 10000 }
		command = { type = treasury value = -50 }
	}
	action_b ={	
		name = "ACTIONNAME24032B"
		command = { type = stability value = -1 }
		command = { type = treasury value = -50 }
		command = { type = casusbelli which = KNI value = 120 }
	}
}

#Anarchy#
event = {
	id = 24033
	random = no
	country = MAM
	name = "EVENTNAME24033"
	desc = "EVENTHIST24033"
	style = 1
	date = { day = 1 month = march year = 1421 }
	offset = 30
	deathdate = { day = 1 month = june year = 1422 }
	action_a ={
		name = "ACTIONNAME24033A"
		command = { type = domestic which = mercantilism value = 2 }
		command = { type = stability  value = -6 }
		command = { type = domestic which = centralization value = -2 }
		command = { type = revoltrisk which = 18 value = 7 }
		command = { type = revolt which = -1 }
		command = { type = domestic which = aristocracy value = 1 }
		command = { type = relation which = VEN value = -30 }
	}
	action_b ={	
		name = "ACTIONNAME24033B"
		command = { type = stability value = -8 }
		command = { type = revoltrisk which = 60 value = 10 }
		command = { type = revolt which = -1 }
		command = { type = revolt which = -1 }
		command = { type = domestic which = aristocracy value = -1 }
		command = { type = domestic which = centralization value = 1 }
		command = { type = relation which = VEN value = 30 }
	}
}

#Rule of Sultan Barsbay#
event = {
	id = 24034
	random = no
	country = MAM
	name = "EVENTNAME24034"
	trigger = { exists = CYP
		atwar = no
		NOT = { alliance = { country = CYP country = MAM }  }
}
	desc = "EVENTHIST24034"
	style = 1
	date = { day = 1 month = may year = 1423 }
	offset = 30
	deathdate = { day = 1 month = june year = 1433 }


	action_a ={
		name = "ACTIONNAME24034A"
		command = { type = war which = CYP }
		command = { type = stability  value = 5 }
		command = { type = galleys which = -1 value = 10 }
		command = { type = cav which = -3 value = 10000 }
		command = { type = treasury value = -50 }
		command = { type = relation which = CYP value = -50 }
		command = { type = relation which = FRA value = -50 }
		command = { type = relation which = VEN value = -50 }
	}
	action_b ={	
		name = "ACTIONNAME24034B"
		command = { type = relation which = CYP value = 30 }
		command = { type = relation which = FRA value = 30 }
		command = { type = relation which = VEN value = 30 }
		command = { type = sleepevent which = 24035 }
	}
}

#Rule of Sultan Barsbay#
event = {
	id = 24035
	random = no
	country = MAM
	name = "EVENTNAME24035"
	trigger = { exists = VEN 
		event = 24034 
		OR = { control = { province = 484 data = -1 }
			vassal = { country = MAM country = CYP } }
}
	desc = "EVENTNAME24035"
	style = 1
	date = { day = 1 month = may year = 1428 }
	offset = 30
	deathdate = { day = 1 month = june year = 1445 }


	action_a ={
		name = "ACTIONNAME24035A"
		command = { type = domestic which = mercantilism value = 4 }
		command = { type = treasury  value = 200 }
		command = { type = trade value = -250 }
		command = { type = merchants value = 2 }
		command = { type = relation which = VEN value = -50 }
	}
	action_b ={	
		name = "ACTIONNAME24035B"
		command = { type = domestic which = mercantilism value = -1 }
		command = { type = relation which = VEN value = 50 }
		command = { type = sleepevent which = 24036 }
	}
}

#Rule of Sultan Barsbay#
event = {
	id = 24036
	random = no
	country = VEN
	name = "EVENTNAME24035"
	trigger = { exists = MAM 
		event = 24035 }
	desc = "EVENTHIST24035"
	style = 1
	date = { day = 1 month = may year = 1428 }
	offset = 30
	deathdate = { day = 1 month = june year = 1445 }


	action_a ={
		name = "ACTIONNAME24036A"
		command = { type = treasury  value = -100 }
		command = { type = inflation value = 2 }
		command = { type = trade value = 700 }
	}

	action_b ={	
		name = "ACTIONNAME24036B"
		command = { type = domestic which = mercantilism value = 1 }
		command = { type = trade value = -300 }
		command = { type = inflation value = -2 }
	}
}

#Succession of Sultan Barsbay#
event = {
	id = 24037
	random = no
	country = MAM
	name = "EVENTNAME24037"
	desc = "EVENTHIST24037"
	style = 1
	date = { day = 6 month = june year = 1438 }

	action_a ={
		name = "ACTIONNAME24037A"
		command = { type = domestic which = centralization value = -1 }
		command = { type = stability  value = -6 }
		command = { type = revoltrisk which = 18 value = 8 }
		command = { type = religiousrevolt which = -1 }
	}
}

#Policies of Sultan Barsbay#
event = {
	id = 24038
	random = no
	country = MAM
	name = "EVENTNAME24038"
	desc = "EVENTHIST24038"
	style = 1
	date = { day = 1 month = may year = 1422 }
	offset = 3200
	deathdate = { day = 1 month = january year = 1438 }

	action_a ={
		name = "ACTIONNAME24038A"
		command = { type = domestic which = centralization value = 2 }
		command = { type = domestic which = innovative  value = -1 }
		command = { type = domestic which = serfdom value = 1 }
	}
	action_b ={
		name = "ACTIONNAME24038B"
		command = { type = domestic which = centralization value = -1 }
		command = { type = domestic which = innovative  value = 1 }
		command = { type = stability value = -1 }
	}
}

#Peaceful reign of Sultan Cakmak#
event = {
	id = 24039
	random = no
	country = MAM
	name = "EVENTNAME24039"
	desc = "EVENTHIST24039"
	style = 1
	date = { day = 1 month = april year = 1442 }
	offset = 1000
	deathdate = { day = 1 month = january year = 1453 }

	action_a ={
		name = "ACTIONNAME24039A"
		command = { type = domestic which = aristocracy value = 1 }
		command = { type = domestic which = centralization value = -1 }
		command = { type = relation which = TUR  value = 30 }
		command = { type = relation which = TIM  value = 30 }
		command = { type = relation which = DUL  value = 30 }
		command = { type = relation which = KAR  value = 30 }
		command = { type = relation which = CAN  value = 30 }
	}
	action_b ={
		name = "ACTIONNAME24039B"
		command = { type = domestic which = centralization value = 1 }
		command = { type = domestic which = aristocracy  value = -1 }
		command = { type = stability value = -3 }
		command = { type = casusbelli which = KNI value = 100 }
		command = { type = casusbelli which = TUR value = 100 }
	}
}

#Succession of Sultan Cakmak#
event = {
	id = 24040
	random = no
	country = MAM
	name = "EVENTNAME24040"
	desc = "EVENTHIST24040"
	style = 1
	date = { day = 13 month = february year = 1453 }
	offset = 1
	deathdate = { day = 1 month = march year = 1453 }

	action_a ={
		name = "ACTIONNAME24040A"
		command = { type = domestic which = aristocracy value = 1 }
		command = { type = domestic which = centralization value = -2 }
		command = { type = stability value = -6 }
		command = { type = revoltrisk which = 20 value = 6 }
		command = { type = religiousrevolt which = -1 }
	}
	action_b ={
		name = "ACTIONNAME24040B"
		command = { type = domestic which = centralization value = 1 }
		command = { type = domestic which = aristocracy  value = -1 }
		command = { type = stability value = -6 }
		command = { type = revoltrisk which = 26 value = 8 }
		command = { type = religiousrevolt which = -1 }
	}
}

#Plague of 1460#
event = {
	id = 24041
	random = no
	country = MAM
	name = "EVENTNAME24041"
	desc = "EVENTHIST24041"
 	style = 1
	date = { day = 1 month = january year = 1460 }
	offset = 120
	deathdate = { day = 1 month = january year = 1461 }

	action_a ={
		name = "ACTIONNAME24037A"
		command = { type = population which = 746 value = -2000 }
		command = { type = population which = 744 value = -2000 }
		command = { type = population which = 745 value = -1000 }
		command = { type = population which = 747 value = -1000 }
		command = { type = stability  value = -1 }
		command = { type = provincetax which = 744 value = -1 }
		command = { type = provincetax which = 746 value = -1 }
		command = { type = provincemanpower which = 744 value = -1 }
	}
}

#Succession of Sultan Inal#
event = {
	id = 24042
	random = no
	country = MAM
	name = "EVENTNAME24042"
	desc = "EVENTHIST24042"
	style = 1
	date = { day = 1 month = may year = 1461 }
	offset = 60
	deathdate = { day = 1 month = august year = 1461 }

	action_a ={
		name = "ACTIONNAME24040A"
		command = { type = domestic which = aristocracy value = 1 }
		command = { type = domestic which = centralization value = -2 }
		command = { type = stability value = -6 }
		command = { type = revoltrisk which = 19 value = 6 }
		command = { type = religiousrevolt which = -1 }
	}
	action_b ={
		name = "ACTIONNAME24040B"
		command = { type = domestic which = centralization value = 1 }
		command = { type = domestic which = aristocracy  value = -1 }
		command = { type = stability value = -6 }
		command = { type = revoltrisk which = 28 value = 8 }
		command = { type = religiousrevolt which = -1 }
	}
}

#Arab uprisings#
event = {
	id = 24043
	random = no
	country = MAM
	name = "EVENTNAME24043"
	desc = "EVENTHIST24043"
 	style = 1
	date = { day = 1 month = january year = 1462 }
	offset = 180
	deathdate = { day = 1 month = january year = 1466 }

	action_a ={
		name = "ACTIONNAME24037A"
		command = { type = revoltrisk which = 48 value = 7 }
		command = { type = revolt which = -1 }
		command = { type = revolt which = -1 }
		command = { type = revolt which = -1 }
		command = { type = stability  value = -2 }
	}
}

#Succession of Sultan Khushkadam#
event = {
	id = 24044
	random = no
	country = MAM
	name = "EVENTNAME24044"
	desc = "EVENTHIST24044"
	style = 1
	date = { day = 9 month = october year = 1467 }
	offset = 20
	deathdate = { day = 1 month = january year = 1469 }

	action_a ={
		name = "ACTIONNAME24040A"
		command = { type = domestic which = aristocracy value = 1 }
		command = { type = domestic which = centralization value = -1 }
		command = { type = stability value = -3 }
		command = { type = revoltrisk which = 24 value = 5 }
		command = { type = religiousrevolt which = -1 }
	}
}

#Policies of sultan Qa'itbay#
event = {
	id = 24045
	random = no
	country = MAM
	name = "EVENTNAME24045"
	desc = "EVENTHIST24045"
	style = 1
	date = { day = 1 month = may year = 1476 }
	offset = 1200
	deathdate = { day = 1 month = august year = 1490 }

	action_a ={
		name = "ACTIONNAME24045A"
		command = { type = domestic which = aristocracy value = -1 }
		command = { type = domestic which = centralization value = 1 }
		command = { type = domestic which = mercantilism value = -1 }
		command = { type = stability value = 1 }
		command = { type = provincetax which = -1 value = 1 }
		command = { type = infra value = 600 }
		command = { type = trade value = 500 }
		command = { type = treasury value = -100 }
	}
	action_b ={
		name = "ACTIONNAME24045B"
		command = { type = domestic which = land value = 1 }
		command = { type = domestic which = aristocracy  value = 1 }
		command = { type = land value = 600 }
		command = { type = inf which = -1 value = 6000 }
		command = { type = casusbelli which = -1 value = 48 }
		command = { type = relation which = -3 value = -80 }
		command = { type = treasury value = -100 }
	}
}

#Sultan Cem#
event = {
	id = 24046
	random = no
	country = MAM
	trigger = { event = 3368 }
	name = "EVENTNAME24046"
	desc = "EVENTHIST24046"
	style = 1
	date = { day = 1 month = may year = 1476 }
	offset = 1200
	deathdate = { day = 1 month = august year = 1490 }

	action_a ={
		name = "ACTIONNAME24046A"
		command = { type = relation which = TUR value = -150 }
		command = { type = stability value = -1 }
	}
	action_b ={
		name = "ACTIONNAME24046B"
		command = { type = relation which = TUR value = 50 }
		command = { type = stability value = 1 }
	}
}

#Plague of 1492#
event = {
	id = 24047
	random = no
	country = MAM
	trigger = { atwar = yes }
	name = "EVENTNAME24047"
	desc = "EVENTHIST24047"
 	style = 1
	date = { day = 1 month = january year = 1492 }
	offset = 120
	deathdate = { day = 1 month = january year = 1516 }

	action_a ={
		name = "ACTIONNAME24037A"
		command = { type = desertion which = -1 value = 5000 }
		command = { type = desertion which = -1 value = 5000 }
		command = { type = stability  value = -2 }
	}
}

#Plague of 1494#
event = {
	id = 24048
	random = no
	country = MAM
	name = "EVENTNAME24048"
	desc = "EVENTHIST24048"
 	style = 1
	date = { day = 1 month = january year = 1494 }
	offset = 120
	deathdate = { day = 1 month = january year = 1495 }

	action_a ={
		name = "ACTIONNAME24037A"
		command = { type = population which = -2 value = -4000 }
		command = { type = population which = -1 value = -2000 }
		command = { type = provincetax which = -2 value = -2 }
		command = { type = provincemanpower which = -2 value = -1 }
		command = { type = provincetax which = -1 value = -1 }
		command = { type = provincemanpower which = -3 value = -1 }
		command = { type = stability  value = -2 }
	}
}

#Succession of Sultan Qa'itbay#
event = {
	id = 24049
	random = no
	country = MAM
	name = "EVENTNAME24049"
	desc = "EVENTHIST24049"
	style = 1
	date = { day = 7 month = july year = 1496 }
	offset = 20

	action_a ={
		name = "ACTIONNAME24040A"
		command = { type = domestic which = aristocracy value = 1 }
		command = { type = domestic which = centralization value = -2 }
		command = { type = domestic which = quality value = -1 }
		command = { type = stability value = -7 }
		command = { type = revoltrisk which = 60 value = 6 }
		command = { type = revolt which = -1 }
		command = { type = revolt which = -1 }
		command = { type = population which = -1 value = -1000 }
		command = { type = population which = -1 value = -1000 }
		command = { type = provincemanpower which = -3 value = -1 }
	}
}

#Rule of Sultan al-Ghawri#
event = {
	id = 24050
	random = no
	country = MAM
	name = "EVENTNAME24050"
	desc = "EVENTHIST24050"
	style = 1
	date = { day = 7 month = july year = 1496 }
	offset = 20

	action_a ={
		name = "ACTIONNAME24050A"
		command = { type = domestic which = aristocracy value = -1 }
		command = { type = domestic which = centralization value = 1 }
		command = { type = domestic which = mercantilism value = -1 }
		command = { type = stability value = -2 }
		command = { type = revoltrisk which = 90 value = 2 }
		command = { type = trade value = 300 }
		command = { type = infra value = 300 }
		command = { type = revolt which = -1 }
		command = { type = population which = -2 value = -2000 }
		command = { type = population which = -1 value = -1000 }
		command = { type = provincemanpower which = -3 value = -1 }
		command = { type = provincetax which = -3 value = -1 }
		command = { type = provincetax which = -2 value = -1 }
	}
}

### Granada asks for help
# By mfigueras
event = {
	id = 24051
	random = no
	country = MAM
	trigger = { event = 7123 }
	date = { day = 1 month = october year = 1441 }
	offset = 30
	deathdate = { day = 1 month = january year = 1444 }
	name = "EVENTNAME24051"
	desc = "EVENTHIST24051"
	style = 1
	action_a = {
		name = "ACTIONNAME24051A"
		command = {type = cash value = -100}
		command = {type = DIP which = -1 value = 12}
		command = {type = trigger which = 7153}
		}
	action_b = {
		name = "ACTIONNAME24051B"
		command = {type = desertion which = -1 value = 6000}
		command = {type = cash value = -50}
		command = {type = DIP which = 1 value = 18}
		command = {type = diplomats value = 1}
		command = {type = trigger which = 7154}
		}
	action_c = {
		name = "ACTIONNAME24051C"
		command = {type = stability value = -2}
		command = {type = revoltrisk which = 24 value = 8}
		command = {type = trigger which = 7155}
		}
}

#The Independence of the Mameluks in Egypt# 
#By RepublicofGenoa
event = { 
	id = 24059
	trigger = { event = 3398 } 
	random = no 
	country = MAM 
	name = "EVENTNAME3398" 
	desc = "EVENTHIST24059" 
	style = 4 
	date = { day = 29 month = june year = 1786 }
	offset = 72
	deathdate = { day = 1 month = january year = 1808 }
	action_a ={ 
		name = "ACTIONNAME24059A" 
		command = { type = addcore which = 748 } 
		command = { type = addcore which = 749 } 
		command = { type = remove_countryculture which = georgian } 
		command = { type = add_countryculture which = arabic } 
		command = { type = INF which = 746 value = 5000 } 
		command = { type = CAV which = 746 value = 1000 } 
		command = { type = ART which = 746 value = 30 } 
		command = { type = relation which = TUR value = -50 } #don't want reannexed 
		}
}

#Rise of Gondor#
#By RepublicofGenoa
event = { 
	id = 24060
	trigger = { owned = { province = 1516 data = -1 } }
	random = no 
	country = ETH 
	name = "EVENTNAME24060" 
	desc = "EVENTHIST24060"
 	style = 3 
	date = { day = 14 month = september year = 1632 } 
	offset = 100 
	deathdate = { day = 18 month = october year = 1667 } 
	action_a ={ 
		name = "ACTIONNAME24060A" 
		command = { type = capital which = 1516 } 
		command = { type = fortress which = 1516 value = 1 } 
		command = { type = infra value = 1000 } 
		command = { type = population which = 1516 value = 3000 } 
		}
}		

