#######Fez Major Events#########
#By Joakim 'Greven' Bergqwist###
################################

#Moor Refugees from Al-Andalus#
event = {

	id = 3654					#Triggered by SPA3150#
	random = no
	country = FEZ
	name = "EVENTNAME3654"
	desc = "EVENTHIST3654"
	style = 1

	action_a ={					#Al-Andalus has fallen#
		name = "ACTIONNAME3654A"
		command = { type = population which = -1 value = 5000 }
		command = { type = population which = -1 value = 5000 }
		command = { type = relation which = GRA value = 150 }
		command = { type = relation which = MOR value = 100 }
		command = { type = relation which = ALD value = 100 }
		command = { type = relation which = SPA value = -100 }
		command = { type = trade value = 800 }
		command = { type = land value = 800 }
		command = { type = treasury value = 500 }
		command = { type = inflation value = -3 }
	}
}

#Moor Exodus from Al-Andalus#
event = {

	id = 3728					#Triggered by SPA3150#
	random = no
	country = FEZ
	name = "EVENTNAME3728"
	desc = "EVENTHIST3728"
	style = 1

	action_a ={					#This means Holy War#
		name = "ACTIONNAME3728A"
		command = { type = population which = -1 value = 5000 }
		command = { type = population which = -1 value = 5000 }
		command = { type = relation which = GRA value = 180 }
		command = { type = relation which = MOR value = 150 }
		command = { type = relation which = ALD value = 150 }
		command = { type = relation which = SPA value = -150 }
		command = { type = trade value = 1200 }
		command = { type = land value = 1200 }
		command = { type = treasury value = 400 }
		command = { type = stability value = 1 }
		command = { type = casusbelli which = SPA value = 36 }
		command = { type = dynastic which = MOR }
		command = { type = dynastic which = ALD }
		command = { type = dynastic which = GRA }
		command = { type = alliance which = MOR }
		command = { type = alliance which = ALD }
		command = { type = alliance which = GRA }
	}

	action_b ={					#Unfortenantely our hands are bound#
		name = "ACTIONNAME3728B"
		command = { type = population which = -1 value = 5000 }
		command = { type = population which = -1 value = 5000 }
		command = { type = relation which = GRA value = -50 }
		command = { type = relation which = MOR value = -50 }
		command = { type = relation which = ALD value = -50 }
		command = { type = relation which = SPA value = -50 }
		command = { type = trade value = 1200 }
		command = { type = land value = 1200 }
		command = { type = treasury value = 300 }
		command = { type = stability value = -2 }
		command = { type = inflation value = -6 }
	}
}

#Morisque Refugees from Al-Andalus#
event = {

	id = 3655				#Triggered by SPA3160#
	random = no
	country = FEZ
	name = "EVENTNAME3655"
	desc = "EVENTHIST3655"
	style = 2

	action_a ={				#Our Kindren are being murdered!#
		name = "ACTIONNAME3655A"
		command = { type = population which = -1 value = 6000 }
		command = { type = population which = -1 value = 5000 }
		command = { type = trade value = 800 }
		command = { type = land value = 600 }
		command = { type = treasury value = 100 }
		command = { type = stability value = -1 }
		command = { type = inflation value = -1 }
	}
}

#Morisque Refugees from Al-Andalus#
event = {

	id = 3656					#Triggered by SPA3167#
	random = no
	country = FEZ
	name = "EVENTNAME3656"
	desc = "EVENTHIST3656"
	style = 3

	action_a ={				#This is a Black Day for Islam!#
		name = "ACTIONNAME3656A"
		command = { type = population which = -1 value = 10000 }
		command = { type = population which = -1 value = 5000 }
		command = { type = trade value = 1200 }
		command = { type = land value = 1200 }
		command = { type = merchants value = 6 }
		command = { type = treasury value = 200 }
		command = { type = stability value = -2 }
		command = { type = inflation value = -2 }
	}
}


###############################
### WATTASID EVENT SEQUENCE ###
###       by Garbon         ###
###############################

event = {
	id = 166000
	random = no
	trigger = { NOT = { exists = MOR } }
	country = FEZ
	name = "EVENTNAME51003"
	desc = "EVENTHIST51012"
	style = 1
	date = { day = 1 month = january year = 1554 }
	offset = 40
	deathdate = { day = 1 month = january year = 1665 }
	action_a = {
		name = "ACTIONNAME51012A"
		command = { type = country which = MOR }
		command = { type = capital which = 733 }
		command = { type = sleepevent which = 166001 } 
		}
}

event = {
	id = 166001
	random = no
	trigger = { 
		NOT = { 
			exists = MOR 
			event = 166002
		} 
	}
	country = FEZ
	name = "EVENTNAME51003"
	desc = "EVENTHIST51012"
	style = 1
	date = { day = 1 month = january year = 1554 }
	offset = 40
	deathdate = { day = 1 month = january year = 1665 }
	action_a = {
		name = "ACTIONNAME51012A"
		command = { type = country which = MOR }
		command = { type = addcore which = 732 }
		command = { type = addcore which = 733 }
		command = { type = addcore which = 1733 }
		command = { type = addcore which = 1734 }
		command = { type = addcore which = 1391 }
		command = { type = addcore which = 1615 }
		command = { type = addcore which = 1595 }
command = { type = addcore which = 842 }
		command = { type = capital which = 733 }
		command = { type = sleepevent which = 166000 }
		
command = { type = inflation value = -20 }
command = { type = addcore which = 673 }
		command = { type = addcore which = 668 }
		}
}

event = {
	id = 166002
	random = no
	trigger = {
		exists = MOR
}	
	country = FEZ
	name = "EVENTNAME51003"
	desc = "EVENTHIST51005"
	style = 1
	date = { day = 1 month = january year = 1530 }
	offset = 30
	deathdate = { day = 1 month = january year = 1545 }
	action_a = {
		name = "ACTIONNAME51005A"
		command = { type = addcore which = 732 }
		command = { type = addcore which = 733 }
		command = { type = addcore which = 1733 }
		command = { type = addcore which = 1734 }
		command = { type = addcore which = 1391 }
		command = { type = addcore which = 1615 }
		command = { type = addcore which = 1595 }
command = { type = addcore which = 673 }
command = { type = addcore which = 842 }
		command = { type = addcore which = 668 }
		command = { type = INF which = -2 value = 10000 }
		command = { type = casusbelli which = MOR value = 936 }
		command = { type = casusbelli which = POR value = 12 }
		command = { type = relation which = MOR value = -200 }
		command = { type = relation which = POR value = -100 }
		}
}

##################################
### AL-MANSUR'S HEIRS SEQUENCE ###
###          by Garbon         ###
##################################


event = {
	id = 166004
	random = no
	country = FEZ
	name = "Brother against Brother"
	desc = "In dying heirless, al-Mansur dealt Morocco a terrible fate. A power struggle erupted shortly after his death. Three of his sons, including al-Mamun, fought for control of Morocco. One son, Mulay Zidan was proclaimed at Fez. Abu Faris was acknowledged at Marrakesh. The three fought for seven years in changing alliances of two to one."
	style = 3
	action_a ={		
		name = "Al-Mansur is dead and chaos reigns!"
		command = { type = breakvassal which = MOR }
		command = { type = relation which = MOR value = -350 }
		command = { type = revoltrisk which = 12 value = 5 }
		command = { type = capital which = 805 }
		command = { type = stability value = -3 }
	}
}


event = {
	id = 166005
	random = no
	country = FEZ
	name = "Death of Abu Faris"
	desc = "In 1610, after 7 years of fighting, Abu Faris was assasinated by his nephew 'Abd Allah, son of al-Mamun. With the help of the Spanish, al-Mamun secured Fez. Mulay Zidan fled to Marrakesh were he would remain until his death."
	style = 3
	date = { day = 1 month = january year = 1610 } 
	action_a ={		
		name = "This fratricide is ripping apart the remnants of our great nation!"
		command = { type = stability value = -2 }
	}
}

#The Capture of Fez - by Garbon#
event = {
	id = 166006
	random = no
	trigger = {
		exists = MOR
		control = { province = 733 data = FEZ }
	}
	country = FEZ
	name = "The Capture of Fez"
	desc = "With their capture of Fez, the capital of the Wattasid dynasty, the Sa'dis had found the bargaining chip they needed to take control of Morocco."
	style = 1
	date = { day = 1 month = january year = 1554 }
	offset = 10
	deathdate = { day = 1 month = january year = 1590 }
	action_a = {
		name = "Unification!"
		command = { type = inherit which = MOR }
		
command = { type = inflation value = -20 }
	}
}

