##############################
##EEP RUS events for Granada##
##############################
####by Garbon and Marc########
##############################
# EEP RUS ver.   part by Vich#
##############################  

# Muhammad XII Boabdil the Little #

event = { 
	id = 45100 
	random = no 
	country = GRA 
	name = "EVENTNAME45100" 
	desc = "EVENTHIST45100" 
	style = 1 
	date = { day = 1 month = january year = 1482 } 
	offset = 30 

	action_a = { 
		name = "ACTIONNAME45100A" 
		command = { type = revoltrisk which = 12 value = 3 } 
		command = { type = stability value = -4 } 
		command = { type = revolt which = 445 } 
		command = { type = ADM which = -3 value = 6 } 
		command = { type = MIL which = -3 value = 6 } 
		command = { type = DIP which = -3 value = 6 } 
		} 
} 

# Muhammad IX and Sayid Jaqmaq #

event = { 
	id = 45101 
	trigger = { exists = MAM }
	random = no 
	country = GRA 
	name = "EVENTNAME45101" 
	desc = "EVENTHIST45101" 
	style = 1 
	date = { day = 29 month = september year = 1441 } 
	offset = 360
	deathdate = { day = 1 month = december year = 1444 }

	action_a = { 
		name = "ACTIONNAME45101A" 
		command = { type = cash value = 100 } 
		command = { type = diplomats value = 1 } 
		command = { type = inf which = -1 value = 5000 } 
		command = { type = relation which = MAM value = 50 } 
		command = { type = trigger which = 45102 } 
		} 
	action_b = { 
		name = "ACTIONNAME45101B" 
		command = { type = stability value = -2 } 
		command = { type = casusbelli which = MAM value = 2 } 
		} 
} 

# Reconquest of Andalusia #

event = {
	id = 45103
	trigger = { 
		owned = { province = 443 data = GRA }
	}
	random = no
	country = GRA
	name = "EVENTNAME45103"
	desc = "EVENTHIST45103"
	style = 2
	date = { day = 2 month = january year = 1419 }
	offset = 30
	deathdate = { day = 1 month = january year = 1820 }
	action_a = {
		name = "ACTIONNAME45103A"
		command = { type = stability value = 1 }
		command = { type = population which = 443 value = -5000 }
		command = { type = population which = 444 value = 4000 }
		command = { type = provincetax which = 444 value = 1 }
	}
	action_b = {
		name = "ACTIONNAME45103B"
		command = { type = capital which = 443 }
		command = { type = conversion which = 443 }
		command = { type = stability value = 1 }
		command = { type = population which = 443 value = 4000 }
		command = { type = population which = 444 value = -5000 }
	}

}

# Restoration of Alcazar #

event = {
	id = 45104
	trigger = {
		event = 45103
		owned = { province = 443 data = GRA }
	}
	random = no
	country = GRA
	name = "EVENTNAME45104"
	desc = "EVENTHIST45103"
	style = 2
	date = { day = 1 month = january year = 1501 }
	deathdate = { day = 30 month = december year = 1819 }
	action_a = {
		name = "ACTIONNAME45104A"
		command = { type = cash value = -150 }
		command = { type = fortress which = 443 value = 1 }
		command = { type = land value = 200 }
		command = { type = vp value = 50 }
	}
	action_b = {
		name = "ACTIONNAME45104B"
		command = { type = vp value = -10 }
	}
}



# Counterreconquista of Toledo #

event = {
	id = 45106
	trigger = {
		owned = { province = 439 data = GRA }
	}
	random = no
	country = GRA
	name = "EVENTNAME45106"
	desc = "EVENTHIST45103"
	style = 2	
	date = { day = 1 month = january year = 1478 }
	offset = 60
	deathdate = { day = 30 month = december year = 1819 }
	action_a = {
		name = "ACTIONNAME45106A"
		command = { type = relation which = SPA value = -150 }
		command = { type = fortress which = 439 value = 1 }
		command = { type = relation which = ALD value = 50 }
		command = { type = relation which = MOR value = 50 }
		command = { type = relation which = POR value = -50 }
		command = { type = relation which = TUR value = 50 }
	}
	action_b = {
		name = "ACTIONNAME45106B"
		command = { type = relation which = SPA value = 150 }
		command = { type = cash value = -100 }
		command = { type = stability value = -1 }
		command = { type = revoltrisk which = 12 value = 5 }
		command = { type = relation which = MOR value = -50 }
		command = { type = relation which = ALD value = -50 }
		command = { type = relation which = TUR value = -50 }
	}
}



# The Return of Muhammad VIII #

event = {
	id = 45107
	random = no
	country = GRA
	name = "EVENTNAME45107"
	desc = "EVENTHIST45107"
	style = 1
	date = { day = 5 month = january year = 1427 }
	offset = 120

	action_a = {
		name = "ACTIONNAME45107A"
		command = { type = stability value = -1 }
		command = { type = manpower value = 7 }
        	}
	action_b = {
		name = "ACTIONNAME45107B"
		command = { type = stability value = -2 }
		command = { type = revoltrisk which = 12 value = 1 }
		command = { type = DIP which = 2 value = 24 }
		command = { type = cash value = 250 }
	        }
}


# The expulsion of the Ibn Sarray #

event = {
	id = 45108
	random = no
	country = GRA
	name = "EVENTNAME45108"
	desc = "EVENTHIST45108"
	style = 1
	date = { day = 3 month = november year = 1463 }
	offset = 25

	action_a = {
		name = "ACTIONNAME45108A"
		command = { type = revoltrisk which = 24 value = -8 }
		command = { type = population which = -1 value = -500 }
		command = { type = manpower value = -2 } 
           	}
	action_b = {
		name = "ACTIONNAME45108B"
		command = { type = stability value = -1 }
		command = { type = manpower value = 4 }
		command = { type = DIP which = -2 value = 24 }
           	}
	action_c = {
		name = "ACTIONNAME45108C"
		command = { type = stability value = -2 }
		command = { type = revoltrisk which = 12 value = 8 }
		command = { type = DIP which = 1 value = 24 }
		command = { type = cash value = 100 }
		}
}

# The Mamelukes send money #

event = { 
	id = 45109 
	random = no 
	country = GRA
	name = "EVENTNAME45109" 
	desc = "EVENTHIST45109" 
	style = 1 

	action_a = { 
		name = "ACTIONNAME45109A" 
		command = { type = cash value = 100 }
		command = { type = diplomats value = 2 }
		command = { type = relation which = MAM value = -25 }
           } 
}

# The Mamelukes send troops #

event = { 
	id = 45110 
	random = no 
	country = GRA
	name = "EVENTNAME45109" 
	desc = "EVENTHIST45110" 
	style = 1 

	action_a = {
		name = "ACTIONNAME45110A" 
		command = { type = cash value = 50 }
		command = { type = INF which = -1 value = 5000 }
		command = { type = CAV which = -1 value = 1000 }
		command = { type = relation which = MAM value = 50 }
           } 
}

# The mamelukes send nothing #

event = { 
	id = 45111 
	random = no 
	country = GRA
	name = "EVENTNAME45109" 
	desc = "EVENTHIST45111" 
	style = 1 

	action_a = {
		name = "ACTIONNAME45111A" 
		command = { type = relation which = MAM value = -100 }
		command = { type = casusbelli which = MAM value = 24 }
           } 
}

# Granada asks for help #

event = {
	id = 45102
	random = no
	country = MAM
	name = "EVENTNAME45102"
	desc = "EVENTHIST45102"
	style = 1

	action_a = {
		name = "ACTIONNAME45102A"
		command = { type = cash value = -100 }
		command = { type = DIP which = -1 value = 12 }
		command = { type = trigger which = 45109 }
           }
	action_b = {
		name = "ACTIONNAME45102B"
		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 = 45110 }
           }
	action_c = {
		name = "ACTIONNAME45102C"
		command = { type = stability value = -2 }
		command = { type = revoltrisk which = 24 value = 8 }
		command = { type = trigger which = 45111 }
           }
}

# We had enough #

event = { 
	id = 45112 
	random = no 
	country = CAS 
	name = "EVENTNAME45112" 
	desc = "EVENTHIST45112" 
	style = 1 
	date = { day = 1 month = january year = 1476 } 
	offset = 100 
	
	action_a = { 
		name = "ACTIONNAME45112A" 
		command = { type = inf which = -2 value = 5000 } 
		command = { type = breakvassal which = GRA } 
		} 
} 

# Castillian Conflict with Granada #

event = { 
	id = 45113 
	trigger = { 
		NOT = { exists = SPA } 
	} 
	random = no 
	country = CAS 
	name = "EVENTNAME45113" 
	desc = "EVENTHIST45113" 
	style = 1 
	date = { day = 27 month = december year = 1481 } 

	action_a = { 
		name = "ACTIONNAME45113A" 
		command = { type = inf which = -2 value = 5000 } 
		command = { type = relation which = GRA value = -200 } 
		command = { type = casusbelli which = GRA value = 24 } 
		command = { type = stability value = 1 } 
		command = { type = addcore which = 444 } 
		command = { type = addcore which = 445 } 
                command = { type = addcore which = 1413 } 
		} 
} 

# Spanish Conflict with Granada # 

event = { 
	id = 45114 
	trigger = { exists = GRA } 
	random = no 
	country = SPA 
	name = "EVENTNAME45113" 
	desc = "EVENTHIST45113" 
	style = 1 
	date = { day = 27 month = december year = 1481 } 

	action_a = { 
		name = "ACTIONNAME45113A" 
		command = { type = inf which = -2 value = 12000 } 
                command = { type = CAV which = -2 value = 5000 }
		command = { type = relation which = GRA value = -200 } 
		command = { type = casusbelli which = GRA value = 24 } 
		command = { type = stability value = 1 } 
		} 
} 

# Reconquista is almost Finished! #

event = { 
	id = 45115 
	trigger = { exists = GRA } 
	random = no 
	country = SPA 
	name = "EVENTNAME45115" 
	desc = "EVENTHIST45115" 
	style = 1 
	date = { day = 1 month = july year = 1491 } 

	action_a = { 
		name = "ACTIONNAME45115A" 
		command = { type = inf which = -2 value = 12000 } 
                command = { type = CAV which = -2 value = 5000 }
		command = { type = relation which = GRA value = -200 } 
		command = { type = war which = GRA } 
		command = { type = stability value = 1 } 
		} 
}

####################
#  Granada Events  #
# EEP RUS by Vich  #
####################

event = {
	id = 45116
	trigger = {	
               OR = { 
		war = { country = GRA country = CAS }
		war = { country = GRA country = ARG }
		war = { country = GRA country = POR }
		}
	}	
	random = no
	country = GRA
	name = "EVENTNAME45116"
	desc = "EVENTHIST45116"
	style = 1
	date = { day = 1 month = january year = 1419 }
	deathdate = { day = 1 month = january year = 1432 }

	action_a = {
		name = "ACTIONNAME45116A"
		command = { type = stability value = -3 }
		command = { type = INF which = -1 value = 7000 }
		command = { type = INF which = -1 value = 5000 }
		command = { type = domestic which = serfdom value = -2 }
		command = { type = domestic which = centralization value = -2 }
		}
	action_b = { 	 
		name = "ACTIONNAME45116B"
		command = { type = stability value = 2 }
		command = { type = INF which = -1 value = 7000 }
		command = { type = INF which = -1 value = 5000 }
		command = { type = CAV which = -1 value = 5000 }
		command = { type = CAV which = -1 value = 3000 }
		command = { type = cash value = -50 }
		command = { type = domestic which = centralization value = 2 }
	}
}

event = {
	id = 45117
	trigger = { 
		monarch  =  03725 
		exists = CAS 
		NOT = { vassal = { country = GRA country = CAS } 
		}
	}
	random = no
	country = GRA
	name = "EVENTNAME45117"
	desc = "EVENTHIST45117" 
	date = { day = 1 month = january year = 1432 }
	offset = 30
	style = 1

	action_a = {
		name = "ACTIONNAME45117A"
		command = { type = stability value = 2 }
		command = { type = relation which = CAS value = -200 }
		command = { type = relation which = ARG value = -50 }
		command = { type = relation which = POR value = -50 }
		command = { type = relation which = MOR value = 200 }
		command = { type = relation which = FEZ value = 200 }
		command = { type = relation which = ALD value = 200 }
		command = { type = INF which = -1 value = 5000 }
		command = { type = INF which = -1 value = 5000 }
		command = { type = CAV which = -1 value = 5000 }
		command = { type = CAV which = -1 value = 5000 }
		command = { type = MIL which = 3 value = 36 }
		}
	action_b = {
		name = "ACTIONNAME45117B"
		command = { type = stability value = -1 }
		command = { type = relation which = CAS value = 100 }
		command = { type = relation which = ARG value = 50 }
		command = { type = relation which = POR value = 50 }
		command = { type = relation which = MOR value = 75 }
		command = { type = relation which = FEZ value = 75 }
		command = { type = relation which = ALD value = 75 }
		command = { type = cash value = -150 }
		command = { type = DIP which = 3 value = 36 }
		command = { type = diplomats   value = 6 } 
		}
	action_c = {
		name = "ACTIONNAME45117C"
		command = { type = trigger   which = 45118 } #Мавры предлагают вассализацию - кастильский эвент
		command = { type = relation which = CAS value = 300 }
		command = { type = relation which = ARG value = 100 }
		command = { type = relation which = POR value = 100 }
		command = { type = relation which = MOR value = -200 }
		command = { type = relation which = FEZ value = -200 }
		command = { type = relation which = ALD value = -200 }
		command = { type = cash value = -50 }
		command = { type = stability value = -3 }
		command = { type = revoltrisk which = 12 value = 3 } 
	}
}

event = {
	id = 45118
	trigger = { event = 45117 } #Обращение Юсуфа
	random = no
	country = CAS
	name = "EVENTNAME45118"
	desc = "EVENTHIST45118"
	style = 1

	action_a = {
		name = "ACTIONNAME45118A"
		command = { type = trigger which = 45119 } #Испанцы согласны
		command = { type = vassal which = GRA }
		command = { type = DIP which = 1 value = 36 } 
		command = { type = stability value = -1 }
		}
	action_b = {
		name = "ACTIONNAME45118B"
		command = { type = trigger which = 45120 } #Испанцы отвергли нашу просьбу
		command = { type = relation which = GRA value = -300 }
		command = { type = stability value = 1 }
	}
}

event = {
	id = 45119
	random = no
	country = GRA
	name = "EVENTNAME45119"
	desc = "EVENTHIST45119"
	style = 1

	action_a = {
		name = "ACTIONNAME45119A"
		command = { type = stability value = 1 }
	}
}

event = {
	id = 45120 
	random = no
	country = GRA
	name = "EVENTNAME45120"
	desc = "EVENTHIST45120"
	style = 1

	action_a = {
		name = "ACTIONNAME45120A"
		command = { type = stability value = 3 }
		command = { type = relation which = CAS value = -300 }
		command = { type = relation which = ARG value = -100 }
		command = { type = relation which = POR value = -100 }
		command = { type = relation which = MOR value = 200 }
		command = { type = relation which = FEZ value = 200 }
		command = { type = relation which = ALD value = 200 }
		command = { type = INF which = -1 value = 5000 }
		command = { type = INF which = -1 value = 5000 }
		command = { type = CAV which = -1 value = 5000 }
		command = { type = CAV which = -1 value = 5000 }
		}
	action_b = {
		name = "ACTIONNAME45120B"
		command = { type = stability value = 1 }
		command = { type = relation which = CAS value = -100 }
		command = { type = relation which = ARG value = -50 }
		command = { type = relation which = POR value = -50 }
		command = { type = relation which = MOR value = 100 }
		command = { type = relation which = FEZ value = 100 }
		command = { type = relation which = ALD value = 100 }
		command = { type = DIP which = -1 value = 48 }
	}
}

event = {
	id = 45121 
	trigger = {
		monarch = 03726
		event = 45119 
		vassal= { country = GRA country = SPA } 
		}
	random = no
	country = GRA
	name = "EVENTNAME45121"
	desc = "EVENTHIST45121"
	style = 1
	date = { day = 1 month = january year = 1441 }
	offset = 150
	deathdate = { day = 1 month = february year = 1445 }

	action_a = {
		name = "ACTIONNAME45121A"
		command = { type = relation which = CAS value = -300 }
		command = { type = relation which = MAM value = 100 }
		command = { type = stability value = -1 }
		command = { type = manpower value = 7 }
		command = { type = domestic which = quality value = 2 }
		command = { type = domestic which = land  value = 2 }
		command = { type = cash value = 200 }
		command = { type = land value = 500 }
		command = { type = MIL which = 2 value = 50 } 
		}
	action_b = {
		name = "ACTIONNAME45121B"
		command = { type = relation which = CAS value = -100 }
		command = { type = relation which = MAM value = -25 }
		command = { type = manpower value = 5 }
		command = { type = domestic which = quality value = 1 }
		command = { type = domestic which = land  value = 1 }
		command = { type = cash value = 500 }
		command = { type = land value = 800 } 
		command = { type = ADM which = 1 value = 36 }
		command = { type = MIL which = 1 value = 36 } 
		}
	action_c = {
		name = "ACTIONNAME45121C"
		command = { type = relation which = CAS value = 50 }
		command = { type = relation which = MAM value = -100 }
		command = { type = manpower value = 3 }
		command = { type = domestic which = quality value = 1 }
		command = { type = cash value = 300 } 
		command = { type = infra value = 500 } 
		command = { type = trade value = 500 }
		command = { type = domestic which = centralization value = 1 }
		command = { type = provincetax which = -1 value = 1 } 
		command = { type = provincetax which = -1 value = 1 } 
		command = { type = provincetax which = -1 value = 1 } 
		command = { type = provincetax which = -2 value = 2 }
		command = { type = merchants value = 6 }
	}	 
}

# Free ids to 45130