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

event = {
	id = 51000
	random = no
	trigger = {
		NOT = { event = 51001 }
		atwar = no
}
	country = MOR
	name = "EVENTNAME51000"
	desc = "EVENTHIST51000"
	style = 1
	date = { day = 1 month = january year = 1472 }
	action_a = {
		name = "ACTIONNAME51000A"
		command = { type = country which = FEZ }
		command = { type = removecore which = 1595 }
		command = { type = removecore which = 805 }
		command = { type = colonialrevolt which = -1 }
		command = { type = stability value = 2 }
		command = { type = revoltrisk which = 72 value = 1 }
		command = { type = sleepevent which = 51002 }
		}
	action_b = {
		name = "ACTIONNAME51000B"
		command = { type = stability value = -4 }
		command = { type = removecore which = 732 }
		command = { type = removecore which = 733 }
		command = { type = removecore which = 806 }
		command = { type = revoltrisk which = 60 value = 2 }
		command = { type = revolt which = -1 }
		}
}

event = {
	id = 51001
	random = no
	trigger = {
		atwar = yes
		NOT = { event = 51000 }
}
	country = MOR
	name = "EVENTNAME51000"
	desc = "EVENTHIST51000"
	style = 1
	date = { day = 1 month = january year = 1472 }
	action_a = {
		name = "ACTIONNAME51000A"
		command = { type = country which = FEZ }
		command = { type = removecore which = 1595 }
		command = { type = removecore which = 805 }
		command = { type = colonialrevolt which = -1 }
		command = { type = colonialrevolt which = -1 }
		command = { type = stability value = 1 }
		command = { type = revoltrisk which = 84 value = 1 }
		command = { type = sleepevent which = 51002 }
		}
	action_b = {
		name = "ACTIONNAME51000B"
		command = { type = stability value = -3 }
		command = { type = removecore which = 732 }
		command = { type = removecore which = 733 }
		command = { type = removecore which = 806 }
		command = { type = revoltrisk which = 60 value = 4 }
		command = { type = revolt which = -1 }
		command = { type = revolt which = -1 }
		}
}

event = {
	id = 51002
	random = no
	trigger = {
		NOT = { exists = FEZ }
		OR = {
			control   = { province = 1595 data = REB }
			control   = { province = 805 data = REB }
			control   = { province = 806 data = REB }
			control   = { province = 733 data = REB }
			control   = { province = 732 data = REB }
	}
}
	country = MOR
	name = "EVENTNAME51002"
	desc = "EVENTHIST51002"
	style = 1
	date = { day = 1 month = january year = 1473 }
	deathdate = { day = 1 month = january year = 1540 }
	action_a = {
		name = "ACTIONNAME51002A"
		command = { type = country which = FEZ }
		command = { type = removecore which = 1595 }
		command = { type = removecore which = 805 }
	}
	action_b = {
		name = "ACTIONNAME51002B"
		command = { type = capital which = 805 }
		command = { type = independence which = FEZ }
		command = { type = addcore which = 1595 }
		command = { type = addcore which = 805 }
		command = { type = trigger which = 51004 }
		command = { type = add_countryculture which = berber }
		command = { type = remove_countryculture which = arabic }
	}
}

event = {
	id = 51003
	random = no
	trigger = {
		NOT = { exists = FEZ }
}
	country = MOR
	name = "EVENTNAME51003"
	desc = "EVENTHIST51003"
	style = 1
	date = { day = 1 month = january year = 1545 }
	offset = 60
	deathdate = { day = 1 month = january year = 1665 }
	action_a = {
		name = "ACTIONNAME51003A"
		command = { type = addcore which = 732 }
		command = { type = addcore which = 806 }
		command = { type = addcore which = 733 }
		command = { type = capital which = 733 }
	}
}

event = {
	id = 51005
	random = no
	trigger = {
		exists = FEZ
}	
	country = MOR
	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 = 806 }
		command = { type = addcore which = 733 }
		command = { type = casusbelli which = FEZ value = 936 }
		command = { type = casusbelli which = POR value = 12 }
		command = { type = relation which = FEZ value = -200 }
		command = { type = relation which = POR value = -100 }
		}
}

event = {
	id = 51006
	random = no
	country = MOR
	name = "EVENTNAME51003"
	desc = "EVENTHIST51006"
	style = 2
	action_a = {
		name = "ACTIONNAME51006A"
		command = { type = breakvassal which = FEZ }
		command = { type = stability value = 2 }
		command = { type = casusbelli which = FEZ value = 936 }
		command = { type = relation which = FEZ value = -200 }
		command = { type = add_countryculture which = berber }
		command = { type = remove_countryculture which = arabic }
		command = { type = trigger which = 51007 }
	}
}

#########################################
### Muhammad al-Jazūlī EVENT SEQUENCE ###
#########################################

event = {
	id = 51014
	random = no
	country = MOR
	name = "EVENTNAME51014"
	desc = "EVENTHIST51014"
	style = 1
	date = { day = 1 month = december year = 1464 }
	offset = 15
	action_a = {
		name = "ACTIONNAME51014A"
		command = { type = revoltrisk which = 12 value = 2 }
		command = { type = stability value = 1 }
		command = { type = sleepevent which = 51016 }
		}
	action_b = {
		name = "ACTIONNAME51014B"
		command = { type = revoltrisk which = 12 value = 1 }
		command = { type = sleepevent which = 51015 }
		}
	action_c = {
		name = "ACTIONNAME51014C"
		command = { type = sleepevent which = 51015 }
		command = { type = stability value = 1 }
		command = { type = domestic which = centralization value = -1 }
		}
}

event = {
	id = 51015
	random = no
	country = MOR
	name = "EVENTNAME51015"
	desc = "EVENTHIST51015"
	style = 2
	date = { day = 1 month = january year = 1465 }
	action_a = {
		name = "ACTIONNAME51015A"
		command = { type = revoltrisk which = 84 value = 4 }
		command = { type = stability value = -3 }
	}
}

event = {
	id = 51016
	random = no
	country = MOR
	name = "EVENTNAME51015"
	desc = "EVENTHIST51015"
	style = 2
	date = { day = 1 month = january year = 1465 }
	action_a = {
		name = "ACTIONNAME51016A"
		command = { type = revoltrisk which = 84 value = 6 }
		command = { type = stability value = -3 }
	}
}

event = {
	id = 51017
	random = no
	country = MOR
	name = "EVENTNAME51017"
	desc = "EVENTHIST51017"
	style = 2
	action_a = {
		name = "ACTIONNAME51017A"
		command = { type = relation which = TUR value = 100 }
		command = { type = casusbelli which = TUN value = 24 }
		command = { type = trigger which = 50022 }
	}
	action_b = {
		name = "ACTIONNAME51017B"
		command = { type = relation which = TUR value = 50 }
		command = { type = stability value = -1 }
		command = { type = cash value = -75 }
		command = { type = sleepevent which = 51018 }
		command = { type = trigger which = 50023 }
	}
}

event = {
	id = 51018
	trigger = {
		   	event = 51017
		  }
	random = no
	country = MOR
	name = "EVENTNAME51018"
	desc = "EVENTHIST51018"
	style = 2
	date = { day = 15 month = december year = 1574 }
	action_a = {
		name = "ACTIONNAME51018A"
		command = { type = stability value = 1 }
		command = { type = relation which = TUR value = -50 }
	}
	action_b = {
		name = "ACTIONNAME51018B"
		command = { type = stability value = -2 }
		command = { type = relation which = SPA value = -100 }
		command = { type = casusbelli which = SPA value = 24 }
		command = { type = revoltrisk which = 12 value = 1 }
	}
}

event = {
	id = 51019
	random = no
	country = MOR
	name = "EVENTNAME51019"
	desc = "EVENTHIST51019"
	style = 1
	date = { day = 15 month = march year = 1560 }
	offset = 20
	action_a = {
		name = "ACTIONNAME51019A"
		command = { type = stability value = 1 }
		command = { type = diplomats value = 1 }
		command = { type = missionaries value = 1 }
		command = { type = cash value = -50 }
		command = { type = infra value = 100 }
		}
	action_b = {
		name = "ACTIONNAME51019B"
		command = { type = stability value = -1 }
		command = { type = revoltrisk which = 4 value = 2 }
		command = { type = domestic which = centralization value = 1 }
		}
}

event = {
	id = 51020
	trigger = { exists = USA }
	random = no
	country = MOR
	date = { day = 1 month = january year = 1776 }
	offset = 60
	deathdate = { day = 1 month = january year = 1790 }
	name = "EVENTNAME51020"
	desc = "EVENTHIST51020"
	style = 1
	action_a = {
		name = "ACTIONNAME51020A"
		command = { type = relation which = USA value = 100 }
		command = { type = diplomats value = 3 }
	}
}

event = {
	id = 51021
	random = no
	country = MOR
	name = "EVENTNAME51021"
	desc = "EVENTHIST51021"
	style = 2
	date = { day = 23 month = october year = 1557 }
	action_a = {
		name = "ACTIONNAME51021A"
                command = { type = domestic which = centralization value = -1 }
		command = { type = stability value = -1 }
		command = { type = revoltrisk which = 240 value = 1 }
		command = { type = revoltrisk which = 12 value = 3 }
                command = { type = diplomats value = -2 }
	}
}

event = {
	id = 51022
	trigger = { owned = { province = 436 data = -1 } }
	random = no
	country = MOR
	name = "EVENTNAME51022"
	desc = "EVENTHIST51022"
	style = 1
	date = { day = 3 month = november year = 1675 }
	action_a = {
		name = "ACTIONNAME51022A"
		command = { type = relation which = FRA value = 100 }
		command = { type = cash value = -150 }
		command = { type = capital which = 733 }
		command = { type = domestic which = centralization value = 3 }
		command = { type = vp value = 50 }
		command = { type = gainmanufactory which = -2  value = luxury }
	}
	action_b = {
		name = "ACTIONNAME51022B"
		command = { type = vp value = -10 }
		command = { type = cash value = 50 }
		command = { type = domestic which = aristocracy value = 3 }
	}
}

