#Aragon (ARG)

#See AGCEEP_Alt_Iberia.txt for Alternative events involving Portugal

#-----------------------------------------------------------------------------------------------
#Anjou sequence

#(1420) The gift of Naples
#by Bordic
event = {
	id = 111012 #triggered by NAP_239006 A
	random = no
	country = ARG
	name = "EVENTNAME111012" #The gift of Naples
	desc = "EVENTHIST239006"
	#-#Giovanna of Anjou-Durazzo was not destined to be Queen, and when she found herself with the crown of Naples on her head after the death of her brother, she refused to give up her previous dissolute life. She soon started to yield the power to whoever happened to be her current paramour. The nobility was restless and conspirative. Pope Martinus V, as his predecessors, wanted to see Naples in the firm hands of a trusted man, but as a previous arranged marriage to Jean of Bourbon had failed, and Giovanna was now 50 years old, he decided to invest Louis III of Anjou, Count of Provence, of the junior branch of the House of Anjou, with claims to Naples. Martinus and Louis recruited the help of Neapolitan condottiero Muzio Attendolo, also known as 'lo Sforza'. When Sforza's army invaded Naples, Giovanna turned to Alfons V of Aragon, who had also distant claims to the crown of Naples, and in exchange for his help, adopted him as heir. Alfons arrived to Naples with his forces, and made Braccio da Montone, Sforza's greatest rival, commander of the Neapolitan armies.

	action_a = {
		name = "ACTIONNAME111012A" #Giovanna adopted us
		command = { type = stability value = 1 }
		command = { type = relation which = NAP value = 25 }
		command = { type = relation which = DAU value = -50 }
		command = { type = relation which = FRA value = -50 }
	}
}
#(1420) Naples defies the Aragonese
#by Bordic
event = {
	id = 111009 #triggered by NAP_239006 B
	random = no
	country = ARG
	name = "EVENTNAME111009" #Naples defies the Aragonese
	desc = "EVENTHIST239006"
	#-#Giovanna of Anjou-Durazzo was not destined to be Queen, and when she found herself with the crown of Naples on her head after the death of her brother, she refused to give up her previous dissolute life. She soon started to yield the power to whoever happened to be her current paramour. The nobility was restless and conspirative. Pope Martinus V, as his predecessors, wanted to see Naples in the firm hands of a trusted man, but as a previous arranged marriage to Jean of Bourbon had failed, and Giovanna was now 50 years old, he decided to invest Louis III of Anjou, Count of Provence, of the junior branch of the House of Anjou, with claims to Naples. Martinus and Louis recruited the help of Neapolitan condottiero Muzio Attendolo, also known as 'lo Sforza'. When Sforza's army invaded Naples, Giovanna turned to Alfons V of Aragon, who had also distant claims to the crown of Naples, and in exchange for his help, adopted him as heir. Alfons arrived to Naples with his forces, and made Braccio da Montone, Sforza's greatest rival, commander of the Neapolitan armies.

	action_a = {
		name = "ACTIONNAME111009A" #Giovanna adopted Louis
		command = { type = stability value = -1 }
		command = { type = relation which = PRO value = -50 }
		command = { type = relation which = DAU value = -50 }
		command = { type = relation which = FRA value = -50 }
		command = { type = relation which = PAP value = -50 }
		command = { type = casusbelli which = NAP value = 24 }
		command = { type = casusbelli which = PRO value = 24 }
		command = { type = INF which = 395 value = 4000 } #Messina
		command = { type = CAV which = 395 value = 6000 }
		command = { type = wakeleader which = 010819 } #hopefully in Messina #Montone (ARG)
	}
}
#(1423) Naples adopted the Angevin Duke
#by Bordic
event = {
	id = 111003 #triggered by NAP_239011 A
	random = no
	country = ARG
	name = "EVENTNAME111003" #Naples adopted the Angevin Duke
	desc = "EVENTHIST239011"
	#-#Alfons of Aragon, after being adopted by Giovanna of Anjou-Durazzo, arrived at the Kingdom of Naples with the intention of being recognised as its legitimate ruler, due mainly to his descent from the last Hohenstaufen King of Sicily, and not due to the will of a member of an usurping dynasty, the House of Anjou. He wanted to take control of Naples immediately without waiting for the Queen's death. He soon imprisoned Caracciolo, Giovanna's lover, but he failed to capture the Queen. Muzio Attendolo Sforza, the Neapolitan condottiero in the service of the Pope, informed that Giovanna was in great danger, went hastily to Naples and rescued her. It was then easy for the Pope to convince the Queen to adopt Louis III of Anjou, Count of Provence, instead of Alfons of Aragon. Taking advantage of the absence of Alfons due to his problems in Aragon, and with the military help of Visconti, Duke of Milan and Signore of Genoa, the Aragonese were expelled from Naples, and Giovanna appointed Louis as Duke of Calabria, the heir's title. Louis moved his court to Cosenza to arrange his stay in Italy.

	action_a = {
		name = "ACTIONNAME111003A" #Louis appointed Duke of Calabria
		command = { type = stability value = -1 }
		command = { type = relation which = PRO value = -50 }
		command = { type = relation which = DAU value = -50 }
		command = { type = relation which = FRA value = -50 }
		command = { type = relation which = PAP value = -50 }
		command = { type = relation which = NAP value = -50 }
		command = { type = casusbelli which = NAP value = 120 }
		command = { type = casusbelli which = PRO value = 120 }
	}
}
#(1423) Naples to the House of Trastamara
#by Bordic
event = {
	id = 111004 #triggered by NAP_239011 B
	random = no
	country = ARG
	name = "EVENTNAME111004" #Naples to the House of Trastamara
	desc = "EVENTHIST239011"
	#-#Alfons of Aragon, after being adopted by Giovanna of Anjou-Durazzo, arrived at the Kingdom of Naples with the intention of being recognised as its legitimate ruler, due mainly to his descent from the last Hohenstaufen King of Sicily, and not due to the will of a member of an usurping dynasty, the House of Anjou. He wanted to take control of Naples immediately without waiting for the Queen's death. He soon imprisoned Caracciolo, Giovanna's lover, but he failed to capture the Queen. Muzio Attendolo Sforza, the Neapolitan condottiero in the service of the Pope, informed that Giovanna was in great danger, went hastily to Naples and rescued her. It was then easy for the Pope to convince the Queen to adopt Louis III of Anjou, Count of Provence, instead of Alfons of Aragon. Taking advantage of the absence of Alfons due to his problems in Aragon, and with the military help of Visconti, Duke of Milan and Signore of Genoa, the Aragonese were expelled from Naples, and Giovanna appointed Louis as Duke of Calabria, the heir's title. Louis moved his court to Cosenza to arrange his stay in Italy.

	action_a = {
		name = "ACTIONNAME262011A" #We are Duke of Calabria
		command = { type = stability value = 1 }
		command = { type = relation which = PRO value = -50 }
		command = { type = relation which = DAU value = -50 }
		command = { type = relation which = FRA value = -50 }
		command = { type = relation which = PAP value = -50 }
	}
}
#(1435-1442) The Inheritance of Naples 
#by Bordic
event = {
	id = 111011 #testing NAP_239007
	random = no
	country = ARG
	name = "EVENTNAME111011" #The Inheritance of Naples
	desc = "EVENTHIST239007"
	#-#Queen Giovanna of Naples is dead. Her last will was that the crown should be given to Ren of Anjou, brother of Louis III of Anjou, her adopted son who died just three months before she did. Pope Eugenius IV declared that as suzerain he had the right to invest the new King and as for now he would send a bishop as temporary regent. However the Neapolitan people, determined to respect the will of their former Queen, ignored the Papal resolution and sent a delegation to Provence to urge Ren of Anjou to claim the throne in Naples. Since Ren of Anjou had been taken captive in Burgundy by Duke Philip the Fair, his wife Isabelle of Lorraine accepted the crown in his place. From his base in Sicily, Alfons of Aragon, who was designated heir by Giovanna between 1420 and 1423, and had a claim to Naples as King of Sicily, gained the support of the Neapolitan nobility hostile to the Anjou dynasty, and started making preparations to invade the Kingdom before the French Angevins could arrive in Naples and take the crown.

	date = { day = 1 month = February year = 1435 }
	offset = 20
	deathdate = { day = 1 month = February year = 1442 }


	action_a = {
		name = "ACTIONNAME111011A" #The Angevins established in Naples
		trigger = {
			NAP = { flag = [Angevin] }
		}
		command = { type = relation which = NAP value = -250 }
		command = { type = relation which = PRO value = -100 }
		command = { type = relation which = DAU value = -75 }
		command = { type = relation which = FRA value = -75 }
		command = { type = casusbelli which = NAP value = 85 }
		command = { type = casusbelli which = PRO value = 85 }
	}
	action_b = {
		name = "ACTIONNAME111011B" #The House of Trastamara in Naples
		trigger = {
			NAP = { flag = [Aragonese] }
		}
		command = { 
			trigger = { NOT = { vassal = { country = NAP country = ARG } }
			}
			type = vassal which = NAP
		}
		command = { type = relation which = TOS value = -25 }
		command = { type = relation which = VEN value = -25 }
		command = { type = relation which = GEN value = -25 }
		command = { type = relation which = MLO value = -25 }
		command = { type = relation which = DAU value = -50 }
		command = { type = relation which = FRA value = -50 }
	}
}

#(1435) Visconti supports the Aragonese cause
#by Bordic
event = {
	id = 111013 #triggered by MLO_228020
	random = no
	country = ARG
	name = "EVENTNAME111013" #Visconti supports the Aragonese cause
	desc = "EVENTHIST228020"
	#-#After the death of Giovanna of Anjou without natural heirs, a war of succession for the Kingdom of Naples broke out between the two claimants, Ren of Anjou and Alfons of Aragon, both designated heirs in two different times by Giovanna. Filippo Maria Visconti of Milan, also Signore of Genoa, preoccupied with the increasing Aragonese influence in the Mediterranean sea trade routes as much as in the Italian peninsula, decided to support the Angevins. Alfons of Aragon was defeated and captured by a Genovese fleet at the battle of Ponza in 1435. Transferred to Milan, Alfons succeeded in gaining Visconti's favour to his cause against the French Angevins. He convinced Filippo Maria that a French presence in Italy could be against the interests of Milan since the House of Orlans had never hidden its dynastic claims on the Duchy of Milan. But Genoa, a bitter rival of Aragon during centuries of dispute over Sardinia, Corsica, and the control of the Western Mediterranean trade, was appalled by Visconti's sudden change of sides, and immediately asked for admission in the Venetian-Florentine league against her former suzerain.

	action_a = {
		name = "MAGNIFICENT"
		command = { type = vassal which = MLO } #WAD: ARG and MLO can be (were, IRL) at war against each other
		command = { type = relation which = MLO value = 10 } #as to avoid possible ghost event notification
		command = { type = trigger which = 111064 } #MLO: The secret alliance with Milan
	}
}
#(1435-1436) The secret alliance with Milan
#by Bordic
event = {
	id = 111064 #triggered by ARG_111013 
	random = no
	country = ARG
	name = "EVENTNAME111064" #The secret alliance with Milan
	desc = "EVENTHIST228057"
	#-#While Genoa was breaking her allegiance to Visconti, Alfons of Aragon and Visconti secretly planned a hegemonic division of Italy in two zones of influence at the expenses of the other Italian States, with the Southern part for Alfonso, and the Northern part for Filippo Maria.

	action_a = {
		name = "OK"
		command = { type = alliance which = MLO }
		command = { type = relation which = GEN value = -50 }
		command = { type = casusbelli which = GEN value = 36 }
		command = { type = trigger which = 228057 } #MLO: The secret alliance with Aragon
	}
}
#(1442-1457) The Aragonese Kingdom of Naples
#by Bordic
event = {
	id = 111014
	trigger = {
		OR = {
			event = 239009 #NAP: The Battle over Naples -I-
			event = 239036 #NAP: The Battle over Naples -II-
		}
		NOT = {
			vassal = { country = NAP country = ARG }
			war = { country = NAP country = ARG }
		}
		exists = NAP
	}
	random = no
	country = ARG
	name = "EVENTNAME111014" #The Aragonese Kingdom of Naples
	desc = "EVENTHIST111014"
	#-#After his release from Milan, Alfons returned to Naples, where his brother Pedro had conquered Gaeta. Naples was defended by Isabelle of Lorraine with the support of Pope Eugenius IV. For three years Alfonso conducted as much a diplomatic war as a military one, gaining allies to his cause from the Neapolitan nobles. In 1438, Ren of Anjou paid a huge ransom to Burgundy for his release, and arrived in the Kingdom, but since he had exhausted his funds his allies abandoned him and he had to retreat to Naples. A long siege was then established, during which the Infante Don Pedro was killed by a chance shot to the great grief of his brother. The support of the Genoese fleet allowed Ren to sustain the besieged capital, but finally on June 1, 1442, 300 well-armed men entered the town through an open drain accesible during the dry season, revealed to Alfons' son Ferrante by some prisoners. After several hours of fighting, Naples was conquered and Ren escaped to Florence. After conquering the rest of the Kingdom, Alfons entered the capital in triumph on February 23, 1443.

	date = { day = 3 month = June year = 1442 }
	offset = 5
	deathdate = { day = 29 month = December year = 1457 }

	action_a = {
		name = "ACTIONNAME111014A" #Rule it as an independent Kingdom
		command = { type = vassal which = NAP }
		command = { type = relation which = NAP value = 200 }
		command = { type = relation which = TOS value = -25 }
		command = { type = relation which = VEN value = -25 }
		command = { type = relation which = GEN value = -25 }
		command = { type = sleepevent which = 262006 } #PRO: The Angevin Kingdom of Naples
		command = { type = trigger which = 111040 } #ARG: The allegiance of Naples
	}
}
#(1442-1457) The allegiance of Naples
#by Bordic
event = {
	id = 111040 #triggered by ARG_111014
	random = no
	country = ARG
	name = "EVENTNAME111040" #The allegiance of Naples
	desc = "EVENTHIST111040"
	#-#Pope Eugenius refused to invest Alfons as King of Naples and threatened to declare him in unlawful possession of Naples, Sicily, Corsica and Sardinia. Alfons threatened back with his support for an anti-Pope, Felix V, chosen at the Council of Basel, and Eugenius accepted to invest him in exchange for his support as the genuine Pope and help against the Turks that never materialized. Ferrante was named Prince of Calabria, and the Neapolitans were pleased that their Kingdom was not going to be incorporated to Aragon. Alfons, who as a Castilian had always felt a foreigner in Barcelona, never returned to Aragon, and his court in Naples was filled with the splendor of the Renaissance. Alfons soon gained the nickname of the Magnanimous.

	action_a = {
		name = "OK"
		command = { type = stability value = 1 }
		command = { type = alliance which = NAP }
		command = { type = vp value = 5 }
	}
}
#(1442) The Aragonese chased out of Naples
#by Bordic
event = {
	id = 111015 #triggered by NAP_239009 B / NAP_239036 A
	random = no
	country = ARG
	name = "EVENTNAME111015" #The Aragonese chased out of Naples
	desc = "EVENTHIST262006"
	#-#After his release from Milan, Alfons of Aragon returned to Naples, where his brother Pedro had conquered Gaeta. Naples was defended by Isabelle of Lorraine with the support of Pope Eugenius IV. For three years Alfons conducted as much a diplomatic war as a military one, gaining allies to his cause from the Neapolitan nobles. In 1438, Ren of Anjou paid a huge ransom to Burgundy for his release, and arrived in the Kingdom, but since he had exhausted his funds his allies abandoned him and he had to retreat to Naples. A long siege was then established, during which the Infante Don Pedro was killed by a chance shot to the great grief of his brother. The support of the Genoese fleet allowed Ren to sustain the besieged capital with success until 1 June 1442, when 300 Aragonese well-armed men entered the town through an open drain accessible during the dry season, revealed to Alfons' son Ferrante by some prisoners. After several hours of fighting and in spite of the stealthy move inside the city walls, Naples withstood the Aragonese and Alfons was forced to retreat to Sicily. After recovering the rest of the Kingdom, Ren entered the capital in triumph the year after. Pope Eugenius IV, very happy for the Angevin success, invested Ren as King of Naples and Sicily thus declaring Alfons of Aragon in unlawful possession of the Sicilian island.

	action_a = {
		name = "ACTIONNAME111015A" #We'll never give up our rights to Naples
		command = { type = stability value = -1 }
		command = { type = relation which = NAP value = -75 }
		command = { type = relation which = PRO value = -50 }
		command = { type = relation which = DAU value = -50 }
		command = { type = relation which = FRA value = -50 }
		command = { type = relation which = GEN value = -25 }
		command = { type = casusbelli which = NAP value = 120 }
		command = { type = wakeleader which = 010825 } #Alfons V (ARG)
	}
}
#(1454) The Treaty of Lodi
#by Bordic
event = {
	id = 111018
	trigger = {
		exists = VEN
		exists = MLO
		exists = TOS
		exists = PAP
		event = 228034 #MLO: The Peace of Lodi
		NOT = {
			exists = NAP
			war = { country = ARG country = MLO }
			war = { country = ARG country = TOS }
			war = { country = ARG country = VEN }
			war = { country = ARG country = PAP }
		}
		owned = { province = 393 data = -1 } #Napoli
	}
	random = no
	country = ARG
	name = "EVENTNAME326038" #The Treaty of Lodi
	desc = "EVENTHIST326038"
	#-#During the war of succession in Milan, all the belligerent nations were brought to exhaustion of money and troops. Francesco Sforza, ruler of Milan and Venice, the chief state of the league confederates, who was more and more threatened by the advancing Ottomans in her eastern Mediterranean territories, convened a cease-fire while a bilateral treaty was hastily signed in Lodi on 7 April 1454. With that treaty Sforza was legitimated Duke of Milan. Without even being called for, Florence and the Pope had no choice then to endorse the treaty. The King of Naples, being a rightful claimant on the ducal throne reluctantly joined the alliance under the condition to keep Genoa out of it. Intended 'infra terminos italicos', that treaty showed the objective impossibility for all the Italian major powers (specifically Milan, Tuscany, Venice, Naples and Papal States) to prevail upon each other in the struggle for the hegemony in Italy and that the better solution was to come to terms with each other. That would have also avoided the practice of very expensive and pointless wars in the next future. Although the treaty actually played a minor part in Italian balance of powers and so won't be able to avoid future wars of aggression from inside as well from outside Italy, the post-Lodi era historically represented a period of relative peace in which the figurative arts definitively flourished in the whole Italian peninsula, as well as economy and trade and, last but not the least, the skills and tricks of the art of diplomacy.

	date = { day = 7 month = April year = 1454 }
	offset = 30
	deathdate = { day = 9 month = March year = 1466 }

	action_a = {
		name = "ACTIONNAME111018A" #Yes, peace
		command = { type = relation which = VEN value = 50 }
		command = { type = relation which = MLO value = 100 }
		command = { type = relation which = TOS value = 75 }
		command = { type = relation which = PAP value = 75 }
		command = { type = relation which = GEN value = -50 }
	}
	action_b = {
		name = "ACTIONNAME111018B" #Sforza is not a legitimate Duke
		command = { type = casusbelli which = GEN value = 24 }
		command = { type = casusbelli which = MLO value = 60 }
		command = { type = relation which = MLO value = -50 }
		command = { type = relation which = TOS value = -50 }
		command = { type = relation which = GEN value = -50 }
		command = { type = relation which = VEN value = -50 }
		command = { type = relation which = FRA value = -50 }
		command = { type = sleepevent which = 275017 } #SAV: The Peace of Lodi
		command = { type = sleepevent which = 257000 } #SIE: The Peace of Lodi
		command = { type = sleepevent which = 220010 } #MAN: The Peace of Lodi
		command = { type = sleepevent which = 252010 } #MOD: The Peace of Lodi
	}
}
#End of Anjou Sequence
#-----------------------------------------------------------------------------------------------

#(1421) Aragon response if Genoa submits and Milan accepts, by Isaac Brock
event = {
	id = 111000 #triggered by MLO_228054
	random = no
	country = ARG
	name = "EVENTNAME228000" #Genoa Submits to Milan
	desc = "EVENTHIST111000"
	#-#In 1421, Aragon formed an alliance with Milan in order that Milan might conquer Genoa and Aragon gain complete control over Corsica. When the Milanese army approached Genoa the city chose to submit to Milan so that it could fight Aragon over Corsica.

	action_a = {
		name = "ACTIONNAME111000A" #The scoundrels!
		command = { type = relation which = GEN value = -50 }
		command = { type = relation which = MLO value = -100 }
		command = { type = casusbelli which = GEN value = 24 }
		command = { type = casusbelli which = MLO value = 24 }
	}
}
#(1421) Aragon response if Genoa defies Milan, by Isaac Brock
event = {
	id = 111001 #triggered by GEN_174005 B
	random = no
	country = ARG
	name = "EVENTNAME111001" #The alliance with Milan
	desc = "EVENTHIST111001"
	#-#In 1421 an alliance was formed with Milan in order that Milan might conquer Genoa and Aragon gain complete control over Corsica.

	action_a = {
		name = "ACTIONNAME111000A" #The scoundrels!
		command = { type = relation which = MLO value = 50 }
		command = { type = alliance which = MLO }
		command = { type = addcore which = 398 } #Corsica for the rest of Alfonso's reign
	}
}

#(1422) Imports of foreign clothes forbidden
event = {
	id = 7128
	random = no
	country = ARG
	name = "EVENTNAME7128" #No more foreign clothes
	desc = "EVENTHIST7128"
	#-#From the middle of the 14th century on, the Kings, upon request from the mercantile institutions, adopted protectionist measures, the first of which was a limitation on foreign ships insurances in 1345. In 1422 the importation of foreign clothes was forbidden, in an attempt to keep the competiveness of local products.

	date = { day = 1 month = march year = 1422 }
	offset = 300
	deathdate = { day = 29 month = december year = 1422 }

	action_a = {
		name = "ACTIONNAME7128A" #Aye, let's protect our own goods
		command = { type = domestic which = mercantilism value = 1 }
		command = { type = trade value = -200 }
	}
	action_b = {
		name = "ACTIONNAME7128B" #No, foreign products are good for our economy
		command = { type = stability value = -1 }
		command = { type = trade value = 200 }
	}
}

#(1423) The Pope of Peiscola - Flavor
#by Havard changed by Bordic
event = {
	id = 7112
	random = no
	country = ARG
	name = "EVENTNAME7112" #The Pope of Peiscola
	desc = "EVENTHIST7112"
	#-#The Council held in Constance from 1414 to 1418 brought an end to the Great Schism, declared its superiority over the Papacy, deposed two of the claimants popes (Gregorius XII elected in Rome and supported by Bayern, Naples, Hungary and Venice and Benedictus XIII elected in Avignon and supported by France, Castile, Aragon and Scotland) and pressed to abdicate the third (Johannes XXIII elected in the council of Pisa) and eventually chose a new pontiff, Martinus V. In spite of what had been decreed by the council of Constance, Benedictus XIII, Pedro de Luna, although deposed, continued to proclaim himself as the only legitimate Pope elected in Avignon. He also declared that the election of a new Pope to end the Great Schism could have been made according to his personal decision only and that he certainly would have confirmed himself as the new pontiff. Abandoned by his main supporters, the Kings of Aragon, Castile and Scotland amongst them, and due to his obstinacy Benedictus XIII preferred to retire in the fortress of Peiscola near Valencia where he died in 1423. Stirred up by Alfons V hostile to Martinus V in the succession of Naples, the cardinals still faithful to the last Antipope elected a new successor, Clemens VIII, but that new Pope had authority only in Aragon and in 1429 he decided to submit to the Roman pontiff. His submission definitely put an end to the Great Schism of the Western Church.

	date = { day = 10 month = june year = 1423 }

	action_a = {
		name = "ACTIONNAME7112A" #Elect a new Pope
		command = { type = relation which = PAP value = -50 }
		command = { type = trigger which = 251025 } #PAP: A new Antipope is elected
	}
	action_b = {
		name = "ACTIONNAME7112B" #Legitimate Martinus V
		command = { type = relation which = PAP value = 25 }
		command = { type = trigger which = 251026 } #PAP: The last pope of Avignon
	}
}

#(1434) Appointment of a new viceroy in Corsica
event = {
	id = 111019
	trigger = {
		event = 150003 #COR: Vincentellu d'Istria has been executed
	}
	random = no
	country = ARG
	name = "EVENTNAME111019" #Corsican matters
	desc = "EVENTHIST111019"
	#-#Our viceroy in Corsica was treacherously seized and murdered by the Genoese. His nephew Ghjudice d'Istria is requesting that we send him money and troops so that he may come into his rightful inheritance on our behalf.

	date = { day = 29 month = december year = 1434 }

	action_a = {
		name = "ACTIONNAME111019A" #Send him support
		command = { type = relation which = GEN value = -100 }
		command = { type = treasury value = -50 }
		command = { type = casusbelli which = COR value = 36 }
	}
	action_b = {
		name = "ACTIONNAME111019B" #Let him fall
		command = { type = relation which = GEN value = 50 }
		command = { type = sleepevent which = 150004 } #COR: Ghjudice d'Istria I
		command = { type = sleepevent which = 150005 } #COR: Ghjudice d'Istria II
		command = { type = sleepevent which = 174038 } #GEN: Third revolts after annexion
		command = { type = sleepevent which = 111038 } #ARG: Corsica is now ours
	}
}

#(1434-1436) Corsica is free from Aragon
event = {
	id = 111027 #triggered by COR_150003 A / COR_150004 A / COR_150006 A/B
	random = no
	country = ARG
	name = "EVENTNAME111027" #Corsicans won't recognize us as their liege anymore
	desc = "EVENTHIST111027"
	#-#It seems like our partisans have been definitely defeated.

	action_a = {
		name = "ACTIONNAME111027A" #We'll think about it...
		command = { type = relation which = COR value = -200 }
		command = { type = trigger which = 174033 } #GEN: Corsicans will pledge to us
	}
}

#(1435-1461) Gain of core on Corsica
event = {
	id = 111038
	trigger = {
		NOT = { core = { province = 398 data = -1 } } #Corsica
		OR = {
			owned = { province = 398 data = -1 } #Corsica
			vassal = { country = ARG country = COR }
		}
	}
	random = no
	country = ARG
	name = "EVENTNAME111038" #Corsica is now ours
	desc = "EVENTHIST111038"
	#-#After many years of struggle against the Republic of Genoa, we have finally manage to concretely assert our ancient claim upon Corsica.

	date = { day = 0 month = july year = 1435 }
	offset = 360
	deathdate = { day = 29 month = june year = 1461 }

	action_a = {
		name = "ACTIONNAME111038A" #Fine
		command = { type = addcore which = 398 } #Corsica
	}
}

#(1447) Expulsion of italian merchants
event = {
	id = 7129
	random = no
	country = ARG
	name = "EVENTNAME7129" #The florentine merchants in our Kingdom
	desc = "EVENTHIST7129"
	#-#In 1447, following the protectionist policies demanded by the merchants, the King ordered the expulsion of all florentine merchants from the Kingdom.

	date = { day = 1 month = march year = 1447 }
	offset = 300
	deathdate = { day = 29 month = december year = 1447 }

	action_a = {
		name = "ACTIONNAME7129A" #Aye, let's protect our merchants from foreign competition
		command = { type = domestic which = mercantilism value = 1 }
		command = { type = treasury value = -50 }
		command = { type = trade value = -100 }
		command = { type = relation which = TOS value = -50 }
	}
	action_b = {
		name = "ACTIONNAME7129B" #No, we have to remain open to international trade
		command = { type = stability value = -1 }
		command = { type = revolt which = -1 }
		command = { type = treasury value = 50 }
		command = { type = merchants value = 2 }
	}
}

#(1450) Revolta dels Forans (flavour)
event = {
	id = 7130
	random = no
	country = ARG
	name = "EVENTNAME7130" #Revolta dels Forans
	desc = "EVENTHIST7130"
	#-#During the first 50 years of the 15th century, the relations between peasants and urban citizens in Mallorca deteriorated progressively, leading eventually to peasant revolts against the capital, Palma de Mallorca. In 1450 there was a great peasant revolt, called 'la Revolta dels Forans' (the 'Forans' were the population living outside the capital, Palma), that lasted for three years.

	date = { day = 1 month = march year = 1450 }
	offset = 300
	deathdate = { day = 29 month = december year = 1450 }

	action_a = {
		name = "ACTIONNAME7130A" #Damned unfaithful subjects!
		command = { type = revolt which = 821 } #The Baleares
		command = { type = revolt which = 821 } #The Baleares
		command = { type = population which = 821 value = -200 } #The Baleares
	}
}

#(1453) La Busca i la Biga
event = {
	id = 7131
	trigger = {
		domestic = { type = aristocracy value = 2 }
		domestic = { type = centralization value = 1 }
		NOT = { domestic = { type = aristocracy value = 9 } }
		NOT = { domestic = { type = centralization value = 9 } }
	}
	random = no
	country = ARG
	name = "EVENTNAME7131" #La Busca i la Biga
	desc = "EVENTHIST7131"
	#-#One of the ever-present realities during the reign of Alfons V was the confrontation between the King, supported by the popular factions, and the oligarchy. This resulted in tumultuous parlamentary sessions during his reign. The situation was especially critical in Barcelona, where the municipal power (the 'Consell de Cent' which had great influence throughout the Kingdom) was in the hands of the oligarchic faction, called 'La Biga', formed by the wealthy urban patricians. Its power was opposed by the popular faction, called 'La Busca', supported by the King and formed by middle-class merchants and artisans. In 1453, the lieutenant of the King, Galceran de Requesens, removed the municipal power from 'La Biga' and gave it to 'La Busca'. The political situation was stressed nearly to the point of no-return.

	date = { day = 1 month = march year = 1453 }
	offset = 90
	deathdate = { day = 29 month = december year = 1453 }

	action_a = {
		name = "ACTIONNAME7131A" #Aye, let's give the power to 'La Busca'
		command = { type = inflation value = 5 }
		command = { type = domestic which = mercantilism value = 2 }
		command = { type = domestic which = aristocracy value = -1 }
		command = { type = domestic which = centralization value = -1 }
		command = { type = trade value = -400 }
		command = { type = infra value = -100 }
	}
	action_b = {
		name = "ACTIONNAME7131B" #Let's reconcile with the patricians and maintain 'La Biga' in the power
		command = { type = treasury value = 150 }
		command = { type = trade value = 100 }
		command = { type = stability value = -2 }
		command = { type = revolt which = 426 } #Roussillon
		command = { type = revolt which = 429 } #Catalonia
		command = { type = revolt which = 427 } #Gerona
		command = { type = manpower value = 5 }
		command = { type = domestic which = serfdom value = 1 }
		command = { type = sleepevent which = 7132 } #ARG: The Interlocutory Sentence
	}
}

#(1454-1458) The Interlocutory Sentence
event = {
	id = 7132
	trigger = { event = 7131 }
	random = no
	country = ARG
	name = "EVENTNAME7132" #The Interlocutory Sentence
	desc = "EVENTHIST7132"
	#-#After having given the municipal power in Barcelona to 'La Busca', the King continued in his policy of confrontation with the wealthy urban oligarchy. The next step was the 'Sentncia Interlocutria' (Interlocutory Sentence), that abolished some peasant servitudes, 'els mals usos', against the will of the nobility.

	date = { day = 1 month = march year = 1454 }
	offset = 400
	deathdate = { day = 1 month = september year = 1458 }

	action_a = {
		name = "ACTIONNAME7132A" #Let's abolish the peasant servitudes
		command = { type = domestic which = serfdom value = -2 }
		command = { type = stability value = -3 }
	}
	action_b = {
		name = "ACTIONNAME7132B" #No, we have upset the oligarchy enough
		command = { type = treasury value = 50 }
		command = { type = revolt which = -1 }
		command = { type = stability value = -2 }
		command = { type = manpower value = 3 }
		command = { type = sleepevent which = 111007 } #ARG: Constituci de l'observana
	}
}

#(1458) The will of King Alfons by Havard and modified by Bordic
#(if Aragon owns Napoli, or has them as vassals)
event = {
	id = 7114
	trigger = {
		OR = {
			vassal = { country = ARG country = NAP }
			owned = { province = 393 data = -1 } #Napoli
		}
	}
	random = no
	country = ARG
	name = "EVENTNAME7114" #The will of King Alfons
	desc = "EVENTHIST7114"
	#-#At his death King Alfons left his new Kingdom of Naples to his son Fernando and his Aragonese inheritance to his brother Juan, already King of Navarre.

	date = { day = 27 month = June year = 1458 }

	action_a = {
		name = "ACTIONNAME7114A" #Accept the King's last will
		command = { type = independence which = NAP } #If they are annexed
		command = { type = domestic which = centralization value = 1 }
		command = { type = trigger which = 7115 } #ARG: The execution of the will
		command = { type = trigger which = 7118 } #NAP: The will of King Alfons
	}
}

#(1458) The execution of the will
#by Havard and modified by Bordic
event = {
	id = 7115 #triggered by ARG_7114
	random = no
	country = ARG
	name = "EVENTNAME7115" #The execution of the will
	desc = "EVENTHIST7115"
	#-#In accordance with his father's will, Ferdinando succeeded Alfonso I on the throne of Naples. Ferdinando I, also called Don Ferrante, was the natural son of Alfonso V of Aragon and I of Sicily and Naples. In order to arrange a good future to his bastard son, King Alfonso had him married in 1444 to Isabella of Chiaramonte, a feudal heiress of remarkable feudal possessions in Southern Italy and granddaughter of Maria d'Enghien, Queen consort of Ladislao, the last Angevin King of Naples. Establishing there the newly born Neapolitan branch of the Trastamara Dynasty, the Kingdom of Naples will be our most faithful ally.

	action_a = {
		name = "ACTIONNAME7115A" #Naples will be our ally
		command = { type = cedeprovince which = NAP value = 394 } #If ARG has Apulia#
		command = { type = alliance which = NAP }
		command = { type = relation which = PAP value = 50 }
	}
}

#(1458) The two crowns
event = {
	id = 7116
	trigger = {
		event = 241022 #NAV: Finally the Civil War Explodes
		exists = NAV
		NOT = {
			vassal = { country = NAV country = ARG }
		}
	}
	random = no
	country = ARG
	name = "EVENTNAME7116" #The two crowns
	desc = "EVENTHIST7116"
	#-#At the death of King Alfons the two crowns of Navarre and Aragon were united when Juan, already King of Navarre, also became King of Aragon.

	date = { day = 29 month = june year = 1458 }

	action_a = {
		name = "OK"
		command = { type = vassal which = NAV }
		command = { type = relation which = NAV value = 200 }
	}
}
#(1458) The two crowns (safety event in case ARG_7116 didn't fire)
event = {
	id = 111062 #triggered by NAV_241023
	trigger = {
		NOT = {
			event = 7116 #ARG: The two crowns
			vassal = { country = NAV country = ARG }
		}
	}
	random = no
	country = ARG
	name = "EVENTNAME7116" #The two crowns
	desc = "EVENTHIST111062"
	#-#At the death of Carles de Viana, claimant to the throne of Navarre, the two crowns of Navarre and Aragon were united when Juan, already King of Aragon since Alfons' death in 1458, also became King of Navarre.

	action_a = {
		name = "VIVAT"
		command = { type = vassal which = NAV }
		command = { }
	}
}

#(1458-1461) Aragon loses claim to Corsica, by Isaac Brock
event = {
	id = 111002
	trigger = {
		core = { province = 398 data = -1 } #Corsica
		NOT = { owned = { province = 398 data = -1 } } #Corsica
		NOT = { control = { province = 398 data = -1 } }
		NOT = { vassal = { country = ARG country = COR } }
	}
	random = no
	country = ARG
	name = "EVENTNAME111002" #Corsica won't be ours
	desc = "EVENTHIST111002"
	#-#With the death of Alfonso, our ancient claim upon the island is now totally disregarded, even by the Pope. It's too late.

	date = { day = 27 month = june year = 1458 }
	offset = 30
	deathdate = { day = 26 month = june year = 1461 }

	action_a = {
		name = "ALAS"
		command = { type = removecore which = 398 } #Corsica
	}
}

#(1459) Last chance in Corsica
event = {
	id = 111039
	trigger = {
		event = 174040 #GEN: Raffe di Leca
		owned = { province = 398 data = GEN } #Corsica
		OR = {
			vassal = { country = ARG country = NAP }
			alliance = { country = ARG country = NAP }
			owned = { province = 393 data = -1 } #Napoli
		}
	}
	random = no
	country = ARG
	name = "EVENTNAME111039" #Corsican lords in Napoli
	desc = "EVENTHIST111039"
	#-#Following the defeat of their leader, the rebellious Corsican feudal lords fled in Sicily or Sardinia. The most important families, including the d'Istria, have sent an embassy to our court in Napoli in order to ask for our support in regaining their influence in western Corsica. We might use them to regain our own influence.

	date = { day = 0 month = january year = 1459 }
	offset = 30
	deathdate = { day = 29 month = december year = 1459 }

	action_a = {
		name = "ACTIONNAME111039A" #Let them fall
		command = { type = relation which = GEN value = 50 }
		command = { type = trigger which = 174041 } #GEN: Cinarchese revolters
	}
	action_b = {
		name = "ACTIONNAME111039B" #Send support
		command = { type = casusbelli which = GEN value = 24 }
		command = { type = relation which = GEN value = -200 }
		command = { type = inf which = -2 value = 5000 }
		command = { type = treasury value = -100 }
	}
}

#(1460-1461) Carles de Viana
event = {
	id = 7133
	random = no
	country = ARG
	trigger = {
		exists = FRA
		owned = { province = 426 data = -1 }
		NOT = { war = { country = FRA country = ARG } }
		OR = {
			owned = { province = 422 data = FRA }
			owned = { province = 423 data = FRA }
		}

	}
	name = "EVENTNAME7133" #The prince Carles de Viana
	desc = "EVENTHIST7133"
	#-#With the new King Joan II, the confrontation between the King and the oligarchy went on, reaching new heights. Carles de Viana was the son of the King Joan II. By 1450 there had already been various problems between father and son, which led the King, in 1456, to dispossess his son of his inheritance. But Carles won some support in Sicily and among the members of the Parliament, and the King imprisoned him in Barcelona in 1460. The Corts held in Lleida in the same year, dominated by the oligarchy, who opposed the King and supported the prince Carles, entrusted the Generalitat (permanent delegation of the Corts) the raising of an army in order to eventually fight the King in case he didn't accept their reivindications.

	date = { day = 1 month = june year = 1460 }
	offset = 90
	deathdate = { day = 1 month = september year = 1461 }

	action_a = {
		name = "ACTIONNAME7133A" #Let's free the prince and accept the conditions of the Corts
		command = { type = domestic which = aristocracy value = 1 }
		command = { type = domestic which = serfdom value = 1 }
		command = { type = stability value = -2 }
		command = { type = treasury value = -150 }
	}
	action_b = {
		name = "ACTIONNAME7133B" #We'll never give up!
		command = { type = sleepevent which = 7134 } #ARG: Juana Enrquez and the Civil War
		command = { type = trigger which = 7117 } #ARG: Civil war!
	}
}

#-----------------------------------------------------------------------------------------------
#Civil war (if FRA exists) Sequence

#(1462-1464) Juana Enrquez
event = {
	id = 7134
	random = no
	country = ARG
	trigger = {
		exists = FRA
		owned = { province = 426 data = -1 } #Roussillon
		NOT = { war = { country = FRA country = ARG } }
		OR = {
			owned = { province = 422 data = FRA } #Languedoc
			owned = { province = 423 data = FRA } #Guyenne
		}
	}
	name = "EVENTNAME7134" #Juana Enrquez and the Civil War
	desc = "EVENTHIST7134"
	#-#After the death of the prince Carles de Viana, who supported the Corts and the oligarchy, the post of 'lieutenant of the King' went to the King's wife, Juana Enrquez, a faithful supporter of the royalist cause. The relation with the Corts became more difficult than ever as the Queen worked hard to restablish royalist power. The Corts and the Generalitat, afraid of possible reprisals against them for the previous events, began a persecution of royalist supporters and raised an army, with which they besieged the city of Girona, where the Queen and her son were at that very moment. The war seemed inevitable.

	date = { day = 1 month = march year = 1462 }
	offset = 210
	deathdate = { day = 1 month = march year = 1464 }

	action_a = {
		name = "ACTIONNAME7134A" #If they want a war, they'll have a war!
		command = { type = trigger which = 7117 } #ARG: Civil war!
	}
	action_b = {
		name = "ACTIONNAME7134B" #Let's prevent the war at any cost, whatever it be
		command = { type = domestic which = aristocracy value = 1 }
		command = { type = stability value = -3 }
		command = { type = revoltrisk value = 8 }
		command = { type = treasury value = -300 }
	}
}
#(1462-1464) The beginning of the war
event = {
	id = 7117 #triggered by ARG_7134 A
	random = no
	country = ARG
	name = "EVENTNAME7117" #Civil war
	desc = "EVENTHIST7117"
	#-#The King Joan II, not obtaining troops from Aragn and Valncia, ceded temporarily and under mortgage the Roussillon to France in exchange of military help (treaty of Bayonne). For this action the Catalan Cortes declared the King a traitor and looked for a foreign candidate to the throne. It was the beginning of the war.

	action_a = {
		name = "ACTIONNAME7117A" #The traitors are raising armies! Let's ask the King of France for help
		command = { type = revolt which = -1 }
		command = { type = revolt which = 437 } #Valencia
		command = { type = revolt which = 429 } #Catalonia
		command = { type = revolt which = 427 } #Gerona
		command = { type = desertion which = -1 value = 2000 }
		command = { type = revoltrisk value = 10 }
		command = { type = stability value = -2 }
		command = { type = trigger which = 12145 } #FRA: The cessation of Roussillon
	}
	action_b = {
		name = "ACTIONNAME7117B" #The traitors are raising armies, but we can crush them without foreign help
		command = { type = revolt which = -1 }
		command = { type = revolt which = -1 }
		command = { type = revolt which = 429 } #Catalonia
		command = { type = revolt which = 427 } #Gerona
		command = { type = revolt which = 437 } #Valencia
		command = { type = desertion which = -1 value = 2000 }
		command = { type = revoltrisk value = 8 }
		command = { type = stability value = -2 }
		command = { type = sleepevent which = 7136 } #ARG: The Treaty of Barcelona
		command = { type = sleepevent which = 7137 } #SPA: The Treaty of Barcelona
		command = { type = sleepevent which = 12146 } #FRA: The Treaty of Barcelona
	}
}
#(1462-1464) The cessation of Roussillon
event = {
	id = 111041 #triggered by FRA_12145 A
	random = no
	country = ARG
	name = "EVENTNAME12145" #The cessation of Roussillon
	desc = "EVENTHIST111041"
	#-#French signed the Treaty of Bayonne. Let's hope they will not forget it is only a temporary mortgage...

	action_a = {
		name = "GOOD"
		command = { type = relation which = FRA value = 100 }
		command = { type = cedeprovince which = FRA value = 426 } #Roussillon
		command = { type = INF which = 430 value = 10000 } #Aragon
		command = { type = CAV which = 430 value = 6000 } #Aragon
		command = { type = treasury value = 150 }
	}
}
#(1462-1464) No help from France
event = {
	id = 111060 #triggered by FRA_12145 B
	random = no
	country = ARG
	name = "EVENTNAME111060" #No help from France
	desc = "EVENTHIST111060"
	#-#French refused to sign the treaty...

	action_a = {
		name = "OH_NO"
		command = { type = relation which = FRA value = -50 }
		command = { type = sleepevent which = 7136 } #ARG: The Treaty of Barcelona
		command = { type = sleepevent which = 7137 } #SPA: The Treaty of Barcelona
		command = { type = sleepevent which = 12146 } #FRA: The Treaty of Barcelona
	}
}
#(1464-1465) Kings, Kings and still more Kings
event = {
	id = 7135
	trigger = { event = 7134 }
	random = no
	country = ARG
	name = "EVENTNAME7135" #A collection of Kings
	desc = "EVENTHIST7135"
	#-#After the outbreak of the war the Generalitat looked for a King to whom offer the crown. They offered the Kingdom successively to Enrique IV of Castilla, to Pedro of Portugal and to Renat of Provence. Enrique IV hesitated but finally declined the offer. Pedro accepted and he was, in fact, proclaimed King for a brief period until he died in 1466. Finally, Renat of Provence accepted as well, but after some military successes against the King Joan II he also gave up. These 'Kings' offered some military help to the armies of the Generalitat, but nevertheless, the royalist forces were gaining the upper hand.

	date = { day = 1 month = september year = 1464 }
	offset = 120
	deathdate = { day = 1 month = september year = 1465 }

	action_a = {
		name = "ACTIONNAME7135A" #We'll fight their new 'Kings'
		command = { type = revolt which = -1 }
		command = { type = revolt which = -1 }
		command = { type = revoltrisk value = 7 }
		command = { type = desertion which = -1 value = 2000 }
	}
	action_b = {
		name = "ACTIONNAME7135B" #Let's negotiate with the Generalitat and end this exhausting war
		command = { type = domestic which = aristocracy value = 1 }
		command = { type = domestic which = serfdom value = 1 }
		command = { type = treasury value = -200 }
	}
}
#End of Civil war (if FRA exists) Sequence
#-----------------------------------------------------------------------------------------------

#-----------------------------------------------------------------------------------------------
#Alternative civil war (if FRA doesn't exist) Sequence

#(1460-1461) Carles de Viana
event = {
	id = 7141
	trigger = {
		OR = {
			NOT = { exists = FRA }
			NOT = { owned = { province = 426 data = -1 } }
		}
		NOT = { event = 7133 }
		war = { country = FRA country = ARG }
		NOT = {
				owned = { province = 422 data = FRA }
				owned = { province = 423 data = FRA }
		}
	}
	random = no
	country = ARG
	name = "EVENTNAME7133" #The prince Carles de Viana
	desc = "EVENTHIST7133"
	#-#With the new King Joan II, the confrontation between the King and the oligarchy went on, reaching new heights. Carles de Viana was the son of the King Joan II. By 1450 there had already been various problems between father and son, which led the King, in 1456, to dispossess his son of his inheritance. But Carles won some support in Sicily and among the members of the Parliament, and the King imprisoned him in Barcelona in 1460. The Corts held in Lleida in the same year, dominated by the oligarchy, who opposed the King and supported the prince Carles, entrusted the Generalitat (permanent delegation of the Corts) the raising of an army in order to eventually fight the King in case he didn't accept their reivindications.

	date = { day = 1 month = june year = 1460 }
	offset = 90
	deathdate = { day = 1 month = september year = 1461 }

	action_a = {
		name = "ACTIONNAME7133A" #Let's free the prince and accept the conditions of the Corts
		command = { type = domestic which = aristocracy value = 1 }
		command = { type = domestic which = serfdom value = 1 }
		command = { type = stability value = -2 }
		command = { type = treasury value = -150 }
	}
	action_b = {
		name = "ACTIONNAME7133B" #We'll never give up!
		command = { type = sleepevent which = 7142 } #ARG: Juana Enrquez and the Civil War
		command = { type = revolt which = -1 }
		command = { type = revolt which = -1 }
		command = { type = revolt which = 429 } #Catalonia
		command = { type = revolt which = 427 } #Gerona
		command = { type = revolt which = 437 } #Valencia
		command = { type = desertion which = -1 value = 2000 }
		command = { type = revoltrisk value = 9 }
		command = { type = stability value = -2 }
	}
}
#(1462-1464) Juana Enrquez
event = {
	id = 7142
	trigger = {
		OR = {
			NOT = { exists = FRA }
			NOT = { owned = { province = 426 data = -1 } }
		}
		NOT = { event = 7134 }
		war = { country = FRA country = ARG }
		NOT = {
			owned = { province = 422 data = FRA }
			owned = { province = 423 data = FRA }
		}
	}
	random = no
	country = ARG
	name = "EVENTNAME7134" #Juana Enrquez and the Civil War
	desc = "EVENTHIST7134"
	#-#After the death of the prince Carles de Viana, who supported the Corts and the oligarchy, the post of 'lieutenant of the King' went to the King's wife, Juana Enrquez, a faithful supporter of the royalist cause. The relation with the Corts became more difficult than ever as the Queen worked hard to restablish royalist power. The Corts and the Generalitat, afraid of possible reprisals against them for the previous events, began a persecution of royalist supporters and raised an army, with which they besieged the city of Girona, where the Queen and her son were at that very moment. The war seemed inevitable.

	date = { day = 1 month = march year = 1462 }
	offset = 210
	deathdate = { day = 1 month = march year = 1464 }

	action_a = {
		name = "ACTIONNAME7134A" #If they want a war, they'll have a war!
		command = { type = revolt which = -1 }
		command = { type = revolt which = -1 }
		command = { type = revolt which = 429 } #Catalonia
		command = { type = revolt which = 427 } #Gerona
		command = { type = revolt which = 437 } #Valencia
		command = { type = desertion which = -1 value = 2000 }
		command = { type = revoltrisk value = 9 }
		command = { type = stability value = -2 }
	}
	action_b = {
		name = "ACTIONNAME7134B" #Let's prevent the war at any cost, whatever it be
		command = { type = domestic which = aristocracy value = 1 }
		command = { type = stability value = -3 }
		command = { type = revoltrisk value = 8 }
		command = { type = treasury value = -300 }
	}
}
#(1464-1465) Kings, Kings and still more Kings
event = {
	id = 7143
	trigger = {
		OR = {
			event = 7141
			event = 7142
		}
	}
	random = no
	country = ARG
	name = "EVENTNAME7135" #A collection of Kings
	desc = "EVENTHIST7135"
	#-#After the outbreak of the war the Generalitat looked for a King to whom offer the crown. They offered the Kingdom successively to Enrique IV of Castilla, to Pedro of Portugal and to Renat of Provence. Enrique IV hesitated but finally declined the offer. Pedro accepted and he was, in fact, proclaimed King for a brief period until he died in 1466. Finally, Renat of Provence accepted as well, but after some military successes against the King Joan II he also gave up. These 'Kings' offered some military help to the armies of the Generalitat, but nevertheless, the royalist forces were gaining the upper hand.

	date = { day = 1 month = september year = 1464 }
	offset = 120
	deathdate = { day = 1 month = september year = 1465 }

	action_a = {
		name = "ACTIONNAME7135A" #We'll fight their new 'Kings'
		command = { type = revolt which = -1 }
		command = { type = revolt which = -1 }
		command = { type = revoltrisk value = 7 }
		command = { type = desertion which = -1 value = 2000 }
	}
	action_b = {
		name = "ACTIONNAME7135B" #Let's negotiate with the Generalitat and end this exhausting war
		command = { type = domestic which = aristocracy value = 1 }
		command = { type = domestic which = serfdom value = 1 }
		command = { type = treasury value = -200 }
	}
}
#End of Alternative civil war (if FRA doesn't exist) Sequence
#-----------------------------------------------------------------------------------------------

#-----------------------------------------------------------------------------------------------
#The Union of Castile and Aragon Sequence
#Idea and first design by Twoflower
#Final layout and descriptions by Fodoron
#Many thanks to Norrefeldt and the rest of the AGCEEP crew

#The following events belong to a series formed by CAS events 142010-142016 and ARG events 111020-111026 designed to unite Castile and Aragon and form Spain. The series is initiated by ARG 111020 and 111021 events followed by CAS 142010, 142011 and 142012 events. ARG_111022 checks for a human player and is responsible for chosing between simmetrical paths formed by ARG_111023, CAS_142013 and CAS_142014 or alternatively CAS_142015, ARG_111024 and ARG_111025 to form SPA from CAS or ARG respectively. CAS_142016 and ARG_111026 are designed to form SPA in the absence of the other or if the other has decided to keep separate.

#(1469) Fernando's marriage proposal to Isabel
#by Twoflower and Fodoron
event = {
	id = 111020
	trigger = { exists = CAS }
	random = no
	country = ARG
	name = "EVENTNAME111020" #Seek Dynastic Alliance to Castile
	desc = "EVENTHIST111020"
	#-#Aragon was inmersed in a civil war after the death of the Prince of Viana. Juan felt also the pressure from Louis XI of France that after accepting the Rousillon as a guaranty for payment in exchange for his help, had changed sides and keeping the Rousillon was now supporting the rebellion in Barcelona with troops. Given his bad relationship with Enrique IV of Castile, who had tried to steal his throne, Juan needed to ensure the neutrality of Castile, or even enlist her help, and for that he was counting on his son Fernando. Fernando had already shown his quality as a military leader, obtaining his first victory when he was 13 years old, and now at 17 was helping his father to pacify the difficult Kingdom. Juan sent ambassador Pierres de Peralta to negotiate a marriage agreement between Fernando and Beatriz, daughter of Juan Pacheco, Marquis of Villena, the most powerful noble in Castile during the rule of weak Enrique. But with the death of his brother Alfonso, Isabel had come to the forefront of Castilian politics, and was already pretended by Louis XI for his brother, the Duke of Guyenne, and by Alfonso V of Portugal for himself. Peralta understood the importance of Isabel in troubled Castile, and presented a marriage proposal to Isabel instead. Juan was soon in favor of this new arrangement, and named Fernando King of Sicily to better compete with the King of Portugal. The marriage of Isabel and Fernando could unite the two strongest Kingdoms of the Iberian Peninsula solving their problems. However, when Enrique found out about the offer he was displeased, as he favored a union with Portugal and considered Juan his enemy.

	date = { day = 19 month = june year = 1469 }

	action_a = {
		name = "ACTIONNAME111020A" #Isabel #Support the marriage to Isabel and name Fernando King of Sicily
		command = { type = stability value = 1 }
		command = { type = gainbuilding which = 396 value = courthouse } #Sicily
		command = { type = relation which = CAS value = -25 }
		command = { type = DIP which = 1 value = 120 }
		command = { type = sleepevent which = 111021 } #ARG: Fernando Rescues Isabel
		command = { type = trigger which = 142010 } #CAS: Seek Dynastic Alliance to Aragon
	}
	action_b = {
		name = "ACTIONNAME111020B" #Beatriz #A marriage union with Villena will not compromise our identity
		command = { type = stability value = 1 }
		command = { type = relation which = CAS value = 25 }
		command = { type = INF which = 430 value = 5000 } #Villena's troops to fight insurrection
	}
}
#(1469) Fernando travels to Castile in disguise
#by Twoflower and Fodoron
event = {
	id = 111021
	trigger = { exists = CAS }
	random = no
	country = ARG
	name = "EVENTNAME111021" #Fernando Rescues Isabel
	desc = "EVENTHIST111021"
	#-#Fernando, young and imbued in the knighthood spirit of his time, decided to rescue Isabel from Villena and King Enrique, after receiving her letter accepting his marriage proposal. But the mountain passes were controlled by nobles loyal to Enrique with orders to stop him. To avoid being recognized, he disguised himself as a servant to a group of merchants, going to the extreme of having to serve them dinner at the stops. Running a serious risk, he crossed hostile territory before meeting the count of Trevio with 300 lances to protect him. Finally he arrived to Valladolid to meet his bride. It was love at first sight. However a problem remained, as Isabel and Fernando were second cousins and required papal dispensation. But Paul II was in good terms with Enrique, and had already granted a papal dispensation for Isabel and Alfonso V of Portugal, also related, and refused to give a second dispensation for the same person. But nothing could stand in the way of love, and a papal dispensation was quickly forged and dated five years before, during the papacy of Pius II. A real dispensation will not be obtained until 1471 with Sixtus IV, and by then the couple already had a daughter.

	date = { day = 1 month = september year = 1469 }

	action_a = {
		name = "ACTIONNAME111021A" #Accept the power of love
		command = { type = stability value = 1 }
		command = { type = relation which = CAS value = -25 }
		command = { type = relation which = PAP value = -25 }
		command = { type = DIP which = 1 value = 120 }
		command = { type = trigger which = 142010 } #CAS: Seek Dynastic Alliance to Aragon
	}
	action_b = {
		name = "ACTIONNAME111021B" #Aragon shall remain independent
		command = { type = stability value = -1 }
		command = { type = relation which = CAS value = 25 }
		#command = { type = remove_countryculture which = castilian } #cultures eventually separate too much
		command = { type = trigger which = 111010 } #ARG: Prince Fernando commands the armies of Aragon
		command = { type = sleepevent which = 142011 } #Wedding at Valladolid #CAS: Let's Consummate the Union
		command = { type = sleepevent which = 142012 } #CAS: Isabel and Fernando Kings of Castile
		command = { type = sleepevent which = 111022 } #ARG: The Civil Wars of Aragon and Castile are Over
		command = { type = sleepevent which = 111023 } #ARG: Aragon and Castile are one
	}
}
#(1469 or 1478) Prince Fernando commands the armies of Aragon
#by Fodoron
event = {
	id = 111010 #triggered by ARG_111021 B or CAS_142011 B or ARG_111022
	random = no
	country = ARG
	name = "EVENTNAME111010" #Prince Fernando commands the armies of Aragon
	desc = "EVENTHIST111010"
	#-#We can rest assured that our Kingdom is safe. Prince Fernando is a very skilled commander, and he is no longer distracted by his affairs in Castile.

	action_a = {
		name = "ACTIONNAME111010A" #Welcome my son
		command = { type = wakeleader which = 010821 } #Fernando II (ARG)
	}
}
#(1478) The end of the Castilian civil war
#by Twoflower and Fodoron
event = {
	id = 111022
	trigger = {
		ai = no
	}
	random = no
	country = ARG
	name = "EVENTNAME111022" #The Civil Wars of Aragon and Castile are Over
	desc = "EVENTHIST111022"
	#-#Juan II monarchy was very troublesome. His disputes with his own son Carlos, and the resistance of the catalan nobility to his authority, ended in a civil war with the uprising of Barcelona in 1462. But the catalan serfs or remensa revolted in favor of the King against the nobles, and he had also the support of Aragon, Valencia and Sicily. The war was very long, and with foreign participation, as the catalan nobility offered the County to whoever offered help, including Enrique of Castile, Pedro of Portugal and Renee of Anjou. Finally, a blind seventy years old Juan was able to win and enter Barcelona in 1472. He wisely showed clemency and pardoned all implicated. His troubles with Louis XI continued as he tried to recover the Rousillon, ceded to the French King as a guaranty and not returned. He also helped his son Fernando, when the civil war started in Castile with the crowning of Isabel and Fernando in 1475. With the decisive defeat of the Portuguese at Toro in 1476, the war was reduced to a series of campaigns against rebel nobles. In his last days before dying of old age, Juan could finally rest, as he had secured the Kingdom of Aragon for his son, and he had set in motion the union of Aragon and Castile to form a strong Iberian Kingdom.

	date = { day = 1 month = december year = 1478 }

	action_a = {
		name = "ACTIONNAME111022A" #My Kingdom is secured for my son
		command = { type = stability value = 1 }
		command = { type = domestic which = centralization value = 1 }
		command = { type = domestic which = aristocracy value = -1 }
		command = { type = trigger which = 111010 } #ARG: Prince Fernando commands the armies of Aragon
		command = { type = sleepevent which = 111023 } #ARG: Aragon and Castile are One
	}
}
#(1479-1490) Aragon ready to be inherited
#by Twoflower and Fodoron
event = {
	id = 111023
	trigger = {
		OR = {
			atwar = no
			year = 1490
		}
	}
	random = no
	country = ARG
	name = "EVENTNAME111023" #Aragon and Castile are One
	desc = "EVENTHIST111023"
	#-#Hmm... you are not supposed to be reading this, as Aragon is about to disappear in the formation of Spain. If you believe a bug caused the undue inheritance of Aragon, report it at the AGCEEP forum at Paradox.

	date = { day = 16 month = january year = 1479 }
	offset = 30
	deathdate = { day = 1 month = january year = 1490 }

	action_a = {
		name = "ACTIONNAME111023A" #So be it
		command = { type = trigger which = 142013 } #CAS: Isabel and Fernando Kings of Aragon
	}
}
#(1479-1490) Fernando and Isabel Kings of Aragon
#by Twoflower and Fodoron
event = {
	id = 111024 #triggered by CAS_142015
	random = no
	country = ARG
	name = "EVENTNAME111024" #Fernando and Isabel Kings of Aragon
	desc = "EVENTHIST111024"
	#-#After the death of his father Juan, Fernando and his wife Isabel became also Kings of Aragon with the same agreement as the one for Castile, they will both have the same powers, but Fernando will have precedence and exclusivity over the crown. Europe was fascinated by the Iberian experiment, where more than the marriage of the Kings, it appeared that the countries were marrying in equal terms. The new Kings soon showed the power of a strong monarchy, administering justice everywhere, subjugating the rebellious nobles, reorganizing the military orders, and introducing church reforms. The problems of instability, anarchy and banditry that have plagued Castile and Aragon were solved. The city rights were restored and the high nobility put under control and balanced by the increase in numbers of the lower nobility.

	action_a = {
		name = "ACTIONNAME111024A" #Fernando and Isabel will rule Aragon jointly from now on
		command = { type = addcore which = 431 } #Cantabria
		command = { type = addcore which = 432 } #Asturias
		command = { type = addcore which = 433 } #Galicia
		command = { type = addcore which = 435 } #Leon
		command = { type = addcore which = 436 } #Castilla
		command = { type = addcore which = 438 } #Murcia
		command = { type = addcore which = 439 } #Toledo
		command = { type = addcore which = 440 } #Estramadura
		command = { type = addcore which = 443 } #Andalusia
		command = { type = addcore which = 444 } #Granada
		command = { type = addcore which = 445 } #Gibraltar
		command = { type = addcore which = 817 } #The Canary Islands
		command = { type = add_countryculture which = castilian }
		command = { type = remove_countryculture which = catalan }
		command = { type = remove_countryculture which = italian }
		command = { type = remove_countryculture which = maltese }
		command = { type = remove_countryculture which = basque }
		command = { type = add_countryculture which = catalan }
		command = { type = add_countryculture which = basque }
		command = { type = add_countryculture which = italian }
		command = { type = add_countryculture which = maltese }
		command = { type = inherit which = CAS }
		command = { type = stability value = 2 }
		#command = { type = wakeleader which = XXXXX } #Fernando of Aragon - removed in 1.40 => no such leader for Aragon
	}
}
#(1479-1490) The formation of Spain by Aragon
#by Twoflower and Fodoron
event = {
	id = 111025
	trigger = {
		event = 111024 #ARG: Fernando and Isabel Kings of Aragon
		OR = {
			atwar = no
			year = 1490
		}
		NOT = { event = 142014 } #CAS forms Spain
		NOT = { exists = SPA }
	}
	random = no
	country = ARG
	name = "EVENTNAME142014" #Regnum Hispaniorum
	desc = "EVENTHIST142014"
	#-#For centuries the Christians in the Iberian Peninsula have dreamed of restoring the Visigothic Kingdom that was destroyed by the Muslim invasion. Many Kings have tried to achieve this union of Christians by force of arms, and have carried the title of Hispaniorum Imperator. Between them Sancho III of Navarre and Alfonso VII of Castile nearly achieved unity. But it was not by force that unity could be imposed, as a strong sense of freedom had been developed by the Iberians in their long struggle against Islam, manifested in an equally long struggle against their Christian neighbors. But the peaceful union under Isabel and Fernando will finally achieve what force could not. Under the fierce independence there was a common layer that Fernando and Isabel will identify and use to unite the new country. It was religion and the concept of blood purity. Now, with the country at peace it was a question of prioritizing the international policies of the new powerful entity. First Granada, Castile's biggest dream, as a crusade was useful to unite the peasants and nobles of the country under the same banner. It was a tremendous task, as the Moorish resistance had concentrated in Granada's roughest terrain and 400 years of defensive works had made it a bastion that will require ten years of continuous assaults. It was soon clear to Europeans that a new political entity had been born, and both Iberians and foreigners started referring to it not as Castile and Aragon, but as Spain.

	date = { day = 16 month = january year = 1479 }
	offset = 15
	deathdate = { day = 29 month = december year = 1490 }

	action_a = {
		name = "ACTIONNAME142014A" #A new country is born
		command = { type = flagname which = "" }
		command = { type = country which = SPA }
		command = { type = domestic which = centralization value = -1 }
		command = { type = domestic which = aristocracy value = -1 }
		command = { type = sleepleader which = 010812 } #Prospero Colonna (ARG)
	}
}
#(1479-1491) Orphan Kingdom of Aragon
#by Twoflower and Fodoron
event = {
	id = 111026
	trigger = {
		OR = {
			NOT = { #CAS missing but not by inheritance
				exists = CAS
				event = 111024
			}
			NOT = { event = 142012 } #CAS: Isabel and Fernando Kings of Castile (CAS rejected union)
		}
		NOT = { exists = SPA }
		OR = {
			owned = { province = 431 data = -1 } #Cantabria
			owned = { province = 433 data = -1 } #Galicia
			owned = { province = 443 data = -1 } #Andalusia
		}
		OR = {
			owned = { province = 435 data = -1 } #Leon
			owned = { province = 436 data = -1 } #Castilla
			owned = { province = 440 data = -1 } #Estramadura
		}
	}
	random = no
	country = ARG
	name = "EVENTNAME111026" #The Forging of the Spanish Identity
	desc = "EVENTHIST111026"
	#-#For centuries the Christians in the Iberian peninsula have dreamed of restoring the Visigothic Kingdom that was destroyed by the Muslim invasion. Many Kings have tried to achieve this union of Christians by force of arms, and have carried the title of Hispaniorum Imperator. Between them Sancho III of Navarre and Alfonso VII of Castile were close to achieve unity. But it was not by force that unity could be imposed, as a strong sense of freedom have been developed by the Iberians in their long struggle against Islam, manifested in an equally long struggle against their Christian neighbors. As the Kingdom of Castile cannot claim the title of Hispaniorum Imperator, Aragon has no big opponent to resuscitate the Kingdom of Spain.

	date = { day = 20 month = january year = 1479 }
	offset = 100
	deathdate = { day = 29 month = december year = 1491 }

	action_a = {
		name = "ACTIONNAME111026A" #Yes, Aragon shall become Spain
		command = { type = addcore which = 431 } #Cantabria
		command = { type = addcore which = 432 } #Asturias
		command = { type = addcore which = 433 } #Galicia
		command = { type = addcore which = 435 } #Leon
		command = { type = addcore which = 436 } #Castilla
		command = { type = addcore which = 438 } #Murcia
		command = { type = addcore which = 439 } #Toledo
		command = { type = addcore which = 440 } #Extremadura
		command = { type = addcore which = 443 } #Andalucia
		command = { type = addcore which = 444 } #Gibraltar
		command = { type = addcore which = 445 } #Granada
		command = { type = addcore which = 817 } #The Canary Islands
		command = { type = add_countryculture which = castilian }
		command = { type = flagname which = "" }
		command = { type = country which = SPA }
		command = { type = domestic which = centralization value = 1 }
		command = { type = sleepleader which = 010812 } #Prospero Colonna (ARG)
		command = { type = trigger which = 285279 } #SPA: The Forging of the Spanish Identity
		#command = { type = AI which = Spa_time1479.txt } #war of granada
		#command = { type = sleepevent which = 990100 } #Spanish bpai up to Dec. 1479 #SPA: AI_EVENT
		#command = { type = sleepevent which = 990101 } #Spanish bpai 1480-1490 #SPA: AI_EVENT
		#command = { type = wakeleader which = XXXXX } #Fernando of Aragon - removed in 1.40 => no such leader for Aragon
	}
	action_b = {
		name = "ACTIONNAME111026B" #No, Aragon is good enough
		command = { type = stability value = 1 }
	}
}
#End of The Union of Castile and Aragon Sequence
#-----------------------------------------------------------------------------------------------

#-----------------------------------------------------------------------------------------------
#Revolt of the Remences Sequence
#by sturmvogel

#(1481) Constituco de l'observana
event = {
	id = 111007
	trigger = { event = 7132 } #ARG: The Interlocutory Sentence
	random = no
	country = ARG
	name = "EVENTNAME111007" #Constituco de l'observana
	desc = "EVENTHIST111007"
	#-#Ferran II was forced to abolish the 'Sentncia Interlocutria' (Interlocutory Sentence) of 1455, which had abolished some peasant servitudes, 'els mals usos', to gain the agreement of the Corts of Catalonia to a much needed subsidy, pacify restless nobles and clergy and to push through some governmental reforms.

	date = { day = 1 month = august year = 1481 }
	offset = 100
	deathdate = { day = 1 month = september year = 1482 }

	action_a = {
		name = "ACTIONNAME111007A" #Let's abolish the Sentncia Interlocutria
		command = { type = domestic which = serfdom value = 2 }
		command = { type = stability value = 1 }
		command = { type = treasury value = 100 }
		command = { type = province_revoltrisk which = 427 value = 4 } #Gerona
		command = { type = province_revoltrisk which = 429 value = 4 } #Catalonia
	}
	action_b = {
		name = "ACTIONNAME111007B" #No, the Remences were our allies during the Civil War
		command = { type = sleepevent which = 111036 } #ARG: Second Revolt of the Remences
		command = { type = stability value = -1 }
	}
}
#(1484) 2nd Revolt of the Remences
event = {
	id = 111036
	trigger = { event = 111007 } #ARG: Constituco de l'observana
	random = no
	country = ARG
	name = "EVENTNAME111036" #Second Revolt of the Remences
	desc = "EVENTHIST111036"
	#-#By abolishing the 'Sentncia Interlocutria' Ferran II had set the stage for another revolt of the peasants who believed they had no other choice than to rebel to stop the reimposition of the 'els mals usos'.

	date = { day = 23 month = september year = 1484 }
	offset = 100
	deathdate = { day = 19 month = april year = 1486 }

	action_a = {
		name = "ACTIONNAME111036A" #Oops
		command = { type = revolt which = 427 } #Gerona
		command = { type = revolt which = 429 } #Catalonia
	}
}
#(1484-1486) The Sentncia Arbitral de Guadalupe
event = {
	id = 111029
	trigger = {
		event = 111036 #ARG: Second Revolt of the Remences
		control = { province = 427 data = -1 } #Gerona
		control = { province = 429 data = -1 } #Catalonia
	}
	random = no
	country = ARG
	name = "EVENTNAME111029" #Sentncia Arbitral de Guadalupe
	desc = "EVENTHIST111029"
	#-#Ferran II let the local nobles and clergy attempt to put down the revolt and he successfully got both sides to agree to let him arbitrate between them. He abolished most of the 'els mals usos' in exchange for payments to the nobility and clergy for damages inflicted during the revolt. While the peasant still owed his feudal obligations to his lord he was no longer bound to the land.

	date = { day = 21 month = september year = 1484 }
	offset = 120
	deathdate = { day = 20 month = april year = 1486 }

	action_a = {
		name = "ACTIONNAME111029A" #We must free the peasants to end these revolts!
		command = { type = province_revoltrisk which = 427 value = -4 } #Gerona
		command = { type = province_revoltrisk which = 429 value = -4 } #Catalonia
		command = { type = domestic which = serfdom value = 2 }
		command = { type = stability value = 2 }
	}
}
#End of Revolt of the Remences Sequence
#-----------------------------------------------------------------------------------------------

#(1492) Expulsion of the Spanish Jews
#by Fodoron
event = {
	id = 111037
	random = no
	country = ARG
	name = "EVENTNAME285044" #Expulsion of the Spanish Jews
	desc = "EVENTHIST285044"
	#-#Medieval Spain was unique in Western Europe for the diversity of its population. In addition to a large segment of Muslims, Spain had the single largest Jewish community in the world, with three hundred thousand souls. In the 14th Century, however, anti-Jewish attitudes were on the rise throughout Europe. In 1290, England expelled its Jews and France followed in 1306. Spain began to experience an increasing anti-Jewish sentiment. It exploded in the summer of 1391 with angry anti-Jewish riots with hundreds of deaths. These riots led to major forced conversions of Jews to Christianity. Unlike the remaining Jews, the converts were welcomed into a full participation in Spanish society and they would soon become leaders in government, science, business and the Church. Over the years the Old Christians saw these converted families as opportunists who secretly maintained the faith of their forefathers. It was a strong mixture of racial prejudice and jealousy against the converts that would stir-up the Spanish Inquisition to prosecute the minority of false-converts. On March 31, 1492, Isabel and Fernando signed the edict of expulsion of all Jews in their Kingdoms by July 31. They were allowed to sell their properties and take their valuables, and money in letters of payment, but no gold or silver. The Kings intended to force the conversion of most of them, and indeed many converted, raising the proportion of Jews converted along the century to two thirds of their original population. But many also chose to leave, their numbers still debated, but probably over 100,000, most of them from Castilla, Toledo, Andalucia, and Murcia. It was a popular measure probably intended to forge a national identity for Spain, and also due to the belief that the Jews were a bad influence to the converts. The Jews that went to Portugal, Navarra, Provence and Morocco, suffered prosecution, violence and new expulsions, and the Kings of Spain allowed the return of those willing to convert until 1499. Those that went to Italy and Constantinople fared better. The economic consequences of the expulsion were negative as the Jews paid increased taxes, lent money to Kings and nobles, and administered properties. Culturally it was an even greater loss.

	date = { day = 29 month = july year = 1492 }

	action_a = {
		name = "ACTIONNAME285044A" #Out with them
		command = { type = treasury value = 100 } #Gold and communal properties seized
		command = { type = stability value = 1 }
		command = { type = loansize which = 100 }
		command = { type = inflation value = 1 }
		command = { type = domestic which = innovative value = -1 }
		command = { type = ADM which = -2 value = 30 }
		command = { type = trade value = -750 }
		command = { type = merchants value = -3 }
	}
	action_b = {
		name = "ACTIONNAME285044B" #They are beneficial to the country
		command = { type = stability value = -1 }
		command = { type = revoltrisk which = 12 value = 2 }
		command = { type = domestic which = innovative value = 1 }
		command = { type = ADM which = 1 value = 60 }
		command = { type = treasury value = 25 } #Jews offered gold to revert edict
	}
}

#(1493-1512) The Treaty of Barcelona (for ARG)
event = {
	id = 7136
	trigger = {
		event = 12145
		owned = { province = 426 data = FRA }
		NOT = { event = 7137 } #SPA: The treaty of Barcelona
	}
	random = no
	country = ARG
	name = "EVENTNAME7136" #The Treaty of Barcelona
	desc = "EVENTHIST7136"
	#-#During the Civil War, the King Joan II had ceded the Roussillon and Cerdanya to the King of France, in exchange of military help. The treaty established a mortgage of 300.000 ducats for these territories. In 1493, the King Ferran II decided to recover them and to pay the price.

	date = { day = 1 month = march year = 1493 }
	offset = 120
	deathdate = { day = 1 month = march year = 1512 }

	action_a = {
		name = "ACTIONNAME7136A" #Let's recover our lands
		command = { type = treasury value = -300 }
		command = { type = stability value = 1 }
		command = { type = trigger which = 12146 } #FRA: The Treaty of Barcelona
	}
	action_b = {
		name = "ACTIONNAME7136B" #It's not worth the money
		command = { type = stability value = -2 }
	}
}
#(1493-1512) France refuses (for ARG)
event = {
	id = 7138 #triggered by FRA_12146 B
	random = no
	country = ARG
	name = "EVENTNAME7138" #France has refused
	desc = "EVENTHIST7138"
	#-#France has refused our payment for the Roussillon and will not return our lands.

	action_a = {
		name = "ACTIONNAME7138A" #Traitors!!
		command = { type = treasury value = 300 }
		command = { type = casusbelli which = FRA value = 36 }
	}
}

#(1495-1498) The Anti-French League of Venice
#modified by Bordic
#previously, Anti-French Coalition (Aragon Event)
event = {
	id = 12144
	trigger = {
		NOT = { event = 12143 }	#SPA: The Anti-French League of Venice
		OR = {
			event = 12022 #NAP: Charles VIII presses claims on Naples
			event = 170040 #FRA: The French King in Naples
		}
	}
	random = no
	country = ARG
	name = "EVENTNAME326035" #The Anti-French League of Venice
	desc = "EVENTHIST170040"
	#-#The presence of Charles VIII of France in the Kingdom of Naples scared the Italian princes, who had in a certain way permitted the French King to achieve his goal of settling there almost undisturbed. Venice and Florence were worried about a French hegemony in the peninsula. French military presence wasn't limited to Southern Italy but also to villages of Tuscany and the Papal States, which previously surrendered to Charles VIII in his march towards Naples, strategically located to grant the French military supply line. The Pope, who previously granted the French King military access through the Papal territories and consented his stay in Rome, felt in jeopardy as much as to refuse Charles VIII being proclaimed King of Naples. Also King Ferdinand of Aragon couldn't accept the French presence in a Kingdom where he instead, in spite of Alfons V's testament which assigned Naples to the other Trastamara branch, could be the one to have claims there. The position of Naples was also important for the Aragonese trading in the Mediterranean. The Duke of Milan, who decisively affected Charles VIII's decision to settle in Naples, was now alarmed by the presence of French reserve troops deployed in the county of Asti, very close to Milan and at the order of the Duke of Orlans, who had dynastical claims to the Milanese throne. So Venice, Milan, the Pope, Spain and even the Holy Roman Empire (so firmly opposed to the French expansionism in Italy as to join any Anti-French alliance available) consequently formed the Anti-French league in Venice on 31 March 1495. Florence preferred to stay out because of her internal problems caused by Charles VIII's passage and decided to support France instead. Having heard about those arrangements and fearing that the confederates would isolate his army in Italy, Charles VIII decided to return to France for reinforcements leaving his regent in Naples. He had to move his army quickly through the Apennines as to reach the Alps and then safety, but the presence of heavy artilleries and carriages transporting the big loot he accumulated across Italy, slowed his march down. Only at Fornovo on the Taro River, in the Po Valley, Charles VIII finally faced the army of the confederates. Despite having lost all the carriages, he managed to reach the Alps gaining from his expedition to Italy nothing but his army decimated by epidemies.

	date = { day = 0 month = January year = 1495 }
	offset = 25
	deathdate = { day = 0 month = April year = 1498 }

	action_a = {
		name = "ACTIONNAME12143A" #Protect our dynasty from French interference
		command = { type = casusbelli which = FRA value = 36 }
		command = { type = vassal which = NAP } #if existing, Ferrandino asked Ferdinand's help
		command = { type = relation which = FRA value = -150 }
		command = { type = relation which = VEN value = 50 }
		command = { type = relation which = MLO value = 50 }
		command = { type = relation which = HAB value = 50 }
		command = { type = relation which = PAP value = 50 }
	}
	action_b = {
		name = "ACTIONNAME12143B" #We cannot stand up to the French
		command = { type = stability value = -1 }
		command = { type = relation which = FRA value = 10 }
		command = { type = relation which = VEN value = -25 }
		command = { type = relation which = MLO value = -25 }
		command = { type = relation which = HAB value = -25 }
		command = { type = relation which = PAP value = -25 }
		command = { type = sleepevent which = 179025 } #HAB: The Anti-French League of Venice
	}
}

#(1496-1500) The fate of Naples
#by Bordic
event = {
	id = 111005
	trigger = { event = 239027 } #NAP: The short and happy life of King Ferrandino
	random = no
	country = ARG
	name = "EVENTNAME285204" #The fate of Naples
	desc = "EVENTHIST285204"
	#-#With the French entering Naples, the young King Ferdinando II, also called Ferrandino, had sailed to Sicily to receive the military support of his cousin, Ferdinand II King of Aragon. Starting from his base in Messina he then tried to reconquer his Kingdom with an Aragonese army led by general Gonzalo Fernndez de Crdoba. After an initial defeat against the French in the battle of Seminara, the King organized a fleet and, supported by the local population which was hostile to the presence of French troops, entered Naples retaking the castles which were still in French hands. Although having successfully helped his cousin Ferrandino, Ferdinand of Aragon distrusted Ferrandino's uncle Federico who succeded to the throne because of lack of Ferrandino's direct descendancy. Federico was a weak monarch whose unhappy diplomatic moves to appease France, even acknowledging his realm as a French fief, and to encourage diplomatic relations with the Turk would let the Kingdom be prey of foreign powers. Ferdinand of Aragon, who didn't deny to disconfess Alfons V's testament to keep the crown of Naples separate from those of Aragon and Sicily, feared that the defense of Naples, crucial to the Aragonese trading in the Mediterranean, could no longer be entrusted to his relative. He had to face the difficult choice of either going to war against France or splitting the Kingdom of Naples with them. When Federico refused a marriage between his son Ferrandino, Duke of Calabria, and Ferdinand's niece, Juana de Aragn, King Ferdinand definitively resolved to come to terms with the French King signing the treaty of Granada. The fate of Naples was then written.

	date = { day = 6 month = October year = 1496 }
	offset = 30
	deathdate = { day = 11 month = November year = 1500 }

	action_a = {
		name = "ACTIONNAME285204A" #Naples worths a try
		command = { type = stability value = -1 }
		command = { type = addcore which = 393 } #Napoli
		command = { type = addcore which = 394 } #Apulia
		command = { type = relation which = NAP value = -100 }
		command = { type = wakeleader which = 010822 } #Fernando de valos (ARG)
		command = { type = wakeleader which = 010823 } #Alfonso de valos (ARG)
	}
	action_b = {
		name = "ACTIONNAME285204B" #We shall support our cousin, in any case...
		command = { type = stability value = -1 }
		command = { type = DIP which = 2 value = 24 }
		command = { type = MIL which = 2 value = 24 }
		command = { type = relation which = NAP value = 100 }
	}
}

#(1500-1505) The Treaty of Granada
#by Bordic from an event of Toio
event = {
	id = 111016
	trigger = {
		NOT = { event = 285103 } #SPA: The Treaty of Granada
		NOT = {
			alliance = { country = FRA country = NAP }
			vassal = { country = FRA country = NAP }
		}
		OR = {
			NOT = {
				alliance = { country = SPA country = NAP }
				vassal = { country = SPA country = NAP }
			}
			NOT = {
				alliance = { country = ARG country = NAP }
				vassal = { country = ARG country = NAP }
			}
		}
		exists = NAP
		event = 170043 #FRA: The Treaty of Granada
	}
	random = no
	country = ARG
	name = "EVENTNAME170043" #The Treaty of Granada
	desc = "EVENTHIST170043"
	#-#Louis XII of Orlans and King of France, as did as his predecessor Charles VIII, invaded Italy to press his claims to both the Visconti inheritance of Milan and the Angevin inheritance of Naples. This time he sought allies before starting a new military campaign in Italy to avoid being isolated.

	date = { day = 11 month = November year = 1500 }
	offset = 35
	deathdate = { day = 11 month = November year = 1505 }

	action_a = {
		name = "ACTIONNAME285103A" #Accept the French offer
		command = { type = war which = NAP }
		command = { type = addcore which = 393 } #Napoli
		command = { type = addcore which = 394 } #Apulia
		command = { type = relation which = NAP value = -200 }
		command = { type = wakeleader which = 010822 } #Fernando de valos (ARG)
		command = { type = wakeleader which = 010823 } #Alfonso de valos (ARG)
		command = { type = trigger which = 170164 } #FRA: A new military expedition to Naples
	}
	action_b = {
		name = "ACTIONNAME111016B" #Naples belongs to the crown of Aragon only
		command = { type = relation which = FRA value = -70 }
		command = { type = relation which = NAP value = 25 }
		command = { type = addcore which = 393 } #Napoli
		command = { type = addcore which = 394 } #Apulia
		command = { type = wakeleader which = 010822 } #Fernando de valos (ARG)
		command = { type = wakeleader which = 010823 } #Alfonso de valos (ARG)
	}
}

#(1501) The border's dispute in Naples
#by Bordic
event = {
	id = 111017
 	trigger = {
		event = 170044 	#FRA: The conquest of Naples
		owned = { province = 394 data = -1 } #apulia
	}
	random = no
	country = ARG
	name = "EVENTNAME285104" #The border's dispute in Naples
	desc = "EVENTHIST239018"
	#-#King Federico III of Naples was unable to oppose much resistance, and the French entered Naples in August 1501. Gonzalo Fernndez de Crdoba met more resistance in the siege of Taranto, defended by Federico's son Ferdinando. Ferdinando surrendered Taranto to Spain on March 1502, and Fernando of Aragon did not keep Cordoba's promise of personal freedom to him, asking Cordoba to send him to Spain. His father King Federico III had already ceded the Kingdom to Louis XII King of France, who in exchange for it, appointed him Duke of Anjou. Federico III will die in 1504 in France. In 1550 with the death of his son Ferdinando, who was taken captive in Spain, the line of the House of Trastamara Naples will be definitely extinct. But the Kings had neglected to properly divide the regions of the Kingdom, leaving the Principati, the Basilicata and the Capitanata between both parts unassigned. The French denied that Capitanata (a land on which both Apulia and Abruzzi depended for food and flock wintering) was part of Apulia arguing recent administrative usage, and refused to allow the commissaries of Spain to collect the tolls on migrating flocks as the treaty stipulated. Soon incidents were taking place and open war broke out in July 1502. But the lack of decision by the French to attack when they had the advantage, the skill of Gonzalo Fernndez de Crdoba and the delays of Louis in bringing reinforcements will see the French expelled from Naples in one year. Completely defeated in Naples by Gonzalo Fernndez de Crdoba, Louis XII of France agreed at Blois in October of 1505 to cede his rights over Naples to his relative Germaine de Foix on her marriage to Fernando of Aragon. After the battle of Cerignola on 28 April 1503 Gonzalo Fernndez will be remembered as el Gran Capitn. He introduced many of the reforms that would change the way battles were fought for centuries, and lead to the creation of the Spanish Tercios, and also trained most of the next generation of Spanish commanders.

	date = { day = 11 month = November year = 1500 }
	offset = 90
	deathdate = { day = 11 month = November year = 1515 }

	action_a = {
		name = "ACTIONNAME285104A" #Naples is part of our Kingdom
		command = { type = INF which = 394 value = 8000 } #apulia
		command = { type = relation which = FRA value = -50 }
		command = { type = sleepevent which = 285104 } #SPA: The border's dispute in Naples
	}
}

#-----------------------------------------------------------------------------------------------
#North African policy of Aragon Sequence

#(1505-1509) The conquest of Mazalquivir and Oran
#by Fodoron
event = {
	id = 111028
	trigger = {
		exists = TLE
		NOT = { vassal = { country = ARG country = TLE } }
		NOT = { vassal = { country = TLE country = ARG } }
		}
	random = no
	country = ARG
	name = "EVENTNAME285119" #The conquest of Mazalquivir and Oran
	desc = "EVENTHIST111028"
	#-#Ferrn II decided to attack Mazalquivir (Mers-el-Kebir), the port of Oran (Wahran), to ensure the security of his Italian possessions from Barbary attacks. The Aragonese expedition under the naval command of Ramn de Cardona and land command of the Alcaide de los Donceles captured the fortress after a heavy bombardment. But Mazalquivir was difficult to hold, as it lacked water and had to be provisioned by dangerous sorties or by friendly tribes. Ferrn understood that another expedition to Oran was necessary to complete the task. Command of the expedition was entrusted to Pedro Navarro who landed an army of over 20,000 men and besieged the city. Navarro soon blew the walls with his mines and heavy artillery bombardment, and in the assault the Aragonese inflicted 4000 casualties in the enemy, and conquered the city. Some commanders wanted to push the conquest inland, but Navarro, under orders from the King, refused.

	date = { day = 10 month = september year = 1505 }
	offset = 100
	deathdate = { day = 26 month = november year = 1509 }

	action_a = {
		name = "ACTIONNAME111028A" #Send the troops
		command = { type = INF which = 438 value = 8000 }
		command = { type = CAV which = 438 value = 2000 }
		command = { type = ART which = 438 value = 30 }
		command = { type = galleys which = 438 value = 5 }
		command = { type = treasury value = -150 }
		command = { type = relation which = PAP value = 25 }
		command = { type = war which = TLE } #Tlemcen
	}
	action_b = {
		name = "ACTIONNAME285119B" #We have got our hands full
		command = { type = relation which = MOR value = 50 }
		command = { type = relation which = TLE value = 50 }
	}
}
#(1509-1551) The conquest of Bugia and Tripoli (Tunis version)
#by Fodoron
event = {
	id = 111030
	trigger = {
		owned = { province = 734 data = -1 } #Orania
		NOT = {
			event = 111031 #ARG: The conquest of Bugia and Tripoli (Tripoli version)
			war = { country = TLE country = ARG }
			vassal = { country = ARG country = TUN }
			vassal = { country = ARG country = TLE }
			vassal = { country = TLE country = ARG }
			exists = TRI
		}
	}
	random = no
	country = ARG
	name = "EVENTNAME285120" #The conquest of Bugia and Tripoli
	desc = "EVENTHIST111030"
	#-#Pedro Navarro was left on command of Oran, and in the next season he attacked Bugia (Bjaa), in the Eastern side of Tlemcen. Navarro disembarked 5,000 men and a train of artillery, and after defeating a far more numerous Berber army, conquered the city sacking it. Since it was still early in the season, Navarro decided to attack Tripoli. An army of 14,000 men was prepared. The city, the strongest in the campaign, was taken by assault, with over 5,000 casualties between the defenders. Immediately Navarro went to Djerba with the intention of capturing the island. After landing, they were ambushed in an oasis where 3,000 soldiers were killed. Navarro therefore returned to Tripoli. The Zayyanid Sultan of Tlemcen, Abu Abdallah Muhammad VIII, worried by the continuous defeats decided to become a vassal of Aragon in 1510.

	date = { day = 26 month = november year = 1509 }
	offset = 100
	deathdate = { day = 14 month = august year = 1551 }

	action_a = {
		name = "ACTIONNAME285120A" #Conquer North Africa
		command = { type = stability value = 2 }
		command = { type = relation which = PAP value = 50 }
		command = { type = addcore which = 740 } #Tripolitania
		command = { type = vassal which = TLE } #Tlemcen
		command = { type = war which = TUN } #Tunis
		command = { type = trigger which = 332015 } #TLE: The Aragonese are too strong!!!!!
		command = { type = cedeprovince which = TLE value = 736 } #Aures
		command = { type = cedeprovince which = TLE value = 737 } #Al-Djazar
		command = { type = vp value = 50}
	}
	action_b = {
		name = "ACTIONNAME285120B" #Time to stop
		command = { type = stability value = 1 }
		command = { type = relation which = PAP value = -10 }
		command = { type = vp value = -5}
	}
}
#(1509-1551) The conquest of Bugia and Tripoli (Tripoli version)
#by Fodoron
event = {
	id = 111031
	trigger = {
		owned = { province = 734 data = -1 } #Orania
		exists = TRI
		NOT = {
			event = 111030 #ARG: The conquest of Bugia and Tripoli (Tunis version)
			war = { country = TLE country = ARG }
			vassal = { country = ARG country = TRI }
		}
	}
	random = no
	country = ARG
	name = "EVENTNAME285120" #The conquest of Bugia and Tripoli
	desc = "EVENTHIST111030"
	#-#Pedro Navarro was left on command of Oran, and in the next season he attacked Bugia (Bjaa), in the Eastern side of Tlemcen. Navarro disembarked 5,000 men and a train of artillery, and after defeating a far more numerous Berber army, conquered the city sacking it. Since it was still early in the season, Navarro decided to attack Tripoli. An army of 14,000 men was prepared. The city, the strongest in the campaign, was taken by assault, with over 5,000 casualties between the defenders. Immediately Navarro went to Djerba with the intention of capturing the island. After landing, they were ambushed in an oasis where 3,000 soldiers were killed. Navarro therefore returned to Tripoli. The Zayyanid Sultan of Tlemcen, Abu Abdallah Muhammad VIII, worried by the continuous defeats decided to become a vassal of Aragon in 1510.

	date = { day = 26 month = november year = 1509 }
	offset = 100
	deathdate = { day = 14 month = august year = 1551 }

	action_a = {
		name = "ACTIONNAME285120A" #Conquer North Africa
		command = { type = stability value = 2 }
		command = { type = relation which = PAP value = 50 }
		command = { type = addcore which = 740 } #Tripolitania
		command = { type = vassal which = TLE } #Tlemcen
		command = { type = war which = TRI } #Tripoli
		command = { type = trigger which = 332015 } #TLE: The Aragonese are too strong!!!!
		command = { type = cedeprovince which = TLE value = 736 } #Aures
		command = { type = cedeprovince which = TLE value = 737 } #Al-Djazar
		command = { type = vp value = 50}
	}
	action_b = {
		name = "ACTIONNAME285120B" #Time to stop
		command = { type = stability value = 1 }
		command = { type = relation which = PAP value = -10 }
		command = { type = vp value = -5}
	}
}
#(1510-1543) The Barbarossa
#by Fodoron
event = {
	id = 111032
	trigger = {
		vassal = { country = ARG country = TLE }
		owned = { province = 734 data = -1 } #Orania
		owned = { province = 737 data = TLE } #Al Djazair
		NOT = {
			event = 51024 #TLE: Arudj and Khayr ad-Din Barbarossa
			event = 51025 #TLE: Arudj and Khayr ad-Din Barbarossa
		}
	}
	random = no
	country = ARG
	name = "EVENTNAME285122" #The Barbarossa
	desc = "EVENTHIST111032"
	#-#Ferrn II had decided upon a policy of North African expansion to provide an alternate route to Sicily, and to squash piracy on the Barbary cost. However the conquest of isolated presidios (fortresses) in the coast had the exact opposite effect. Under the pressure of Aragon, the authority of the Zayyanid rulers of Tlemcen was weakened, and pirates became independent and more active all along the coast. A famous Turkish pirate named Aruj received permission from the Hafsid sultan of Tunis to use the island of Djerba (Gelves) as a base, and he captured Jijelli in 1514 and took over Algiers in 1516 when he defeated the Aragonese. He then killed the local ruler and proclaimed himself Sultan. He was known as Baba Aruj, or Father Aruj. This was translated by the Aragonese as Barbarroja (Barbarossa in Italian, or Redbeard). He became the nightmare of the Aragonese. In 1517 he supported a successful rebellion in Tlemcen, but he was driven out by the Aragonese and killed in 1518. However the balance of power in Tlemcen was shifting towards Algiers, which remained independent under the leadership of Aruj's brother, Khayr ad-Din Barbarossa, who sought the help of the Ottoman Empire.

	date = { day = 1 month = july year = 1510 }
	offset = 100
	deathdate = { day = 1 month = january year = 1543 }

	action_a = {
		name = "ACTIONNAME285122A" #Curse them
		command = { type = stability value = -1 }
		command = { type = trigger which = 51024 } #TLE: Arudj and Khayr ad-Din Barbarossa
		command = { type = relation which = TLE value = 100 }
	}
}
#End of North African policy of Aragon Sequence
#-----------------------------------------------------------------------------------------------

#(1508-1509) The League of Cambrai
#Modified by Isaac Brock
event = {
	id = 17019
	trigger = {
		event = 17017 #VEN: Seeing a Chance in Romagna
		exists = VEN
		OR = {
			event = 3107 #FRA: The League of Cambrai
			event = 17023 #FRA: The League of Cambrai (HAB doesn't exists)
		}
	}
	random = no
	country = ARG
	name = "EVENTNAME3107" #The League of Cambrai
	desc = "EVENTHIST3107"
	#-#Since 1495, Venice had been holding the main ports of Apulia despite Aragonese claims to have them back. With the French invasion of Milan, Venice had acquired Milanese territories east of the Adda River, and upon the fall of Cesare Borgia had also acquired Rimini, Faenza and Ravenna, against the will of Pope Julius II. The Venetians also held Veneto and Friuli, on which Maximilian of Habsburg had imperial claims. In late 1507 Maximilian announced his intention to travel to Italy to receive the imperial investiture from the Pope himself, and in early 1508 he assembled a big army to escort him down to Rome. He requested free passage through Venetian territories, but was told that he would be allowed passage only without his army. Enraged at the answer, Maximilian attacked Venice, but this decision proved unwise: Venice not only routed the imperial army but also seized the imperial cities of Trieste, Gorz and Fiume. A second assault by a Tyrolean force several weeks later was an even greater failure, forcing Maximilian to conclude a humiliating three-year truce. With Pope Julius II's assent, Maximilian took the title of 'Emperor-elect', thus breaking the century-old custom that the Holy Roman Emperor had to be crowned by the Pope. Shortly afterward, Venice provided a pretext for war by appointing her own candidate to the vacant bishopric of Vicenza. The Emperor, the King of France and Ferdinand of Aragon gathered in Cambrai in December 1508 to sign a treaty which seemed to be a defensive alliance against the Turk. In reality they meant to form a league to attack Venice and deprive the Serenissima of most of her mainland territories. Pope Julius II, after a renewed Venetian refusal to give the Romagna lands back to the Papacy, ratified the treaty and at the same time proceeded to excommunicate all Venetian citizens. Ferrara and Mantua, each with separate claims to territories held by Venice, joined the league as well. In April 1509 military operations started, and a month later French troops decimated one of the two Venetian armies at the battle of Agnadello. Even though in August 1509 Venice managed to eliminate Mantua from the war, she still faced the collapse of her strategic position and had by February 24, 1510 to accept the papal demands on the cities she had occupied in Romagna. However, Pope Julius II was still not satisfied and demanded that the war be prosecuted until Venice conceded control over their church to the Pope and compensated him for his expenses. The Council of Ten had privately resolved that the terms had been accepted under duress and were therefore invalid, and that Venice should violate them at the earliest opportunity. This opportunity presented itself shortly afterward.

	date = { day = 10 month = December year = 1508 }
	offset = 20
	deathdate = { day = 1 month = April year = 1509 }

	action_a = {
		name = "ACTIONNAME3107A" #Express Support
		command = { type = casusbelli which = VEN value = 36 }
		command = { type = relation which = VEN value = -150 }
		command = { type = relation which = HAB value = 150 }
		command = { type = relation which = PAP value = 150 }
		command = { type = relation which = FRA value = 150 }
		command = { type = relation which = BUR value = 200 }
	}
	action_b = {
		name = "ACTIONNAME3107B" #Ignore
		command = { type = relation which = VEN value = 50 }
		command = { type = relation which = HAB value = -50 }
		command = { type = relation which = PAP value = -50 }
		command = { type = relation which = FRA value = -50 }
	}
	action_c = {
		name = "ACTIONNAME3107C" #Express Hostility
		command = { type = relation which = VEN value = 150 }
		command = { type = relation which = HAB value = -150 }
		command = { type = relation which = PAP value = -150 }
		command = { type = relation which = FRA value = -150 }
	}
}

#(1510-1512) Holy League of 1510 - Aragon Version
event = {
	id = 17026
	trigger = {
		OR = {
			event = 17024 #PAP: The Holy League against France
			event = 236006 #MUS: The Holy League against France
		}
	}
	random = no
	country = ARG
	name = "EVENTNAME17024" #The Holy League against France
	desc = "EVENTHIST17024"
	#-#In 1510 Venice submitted to the Pope, thus lessening the league of Cambrai. Conditions were hard for Venice, the Republic had to renounce her traditional power to appoint bishops as well as all jurisdiction over Papal subjects in Venetian territory and was to compensate Pope Julius II for his war expenses needed to recapture the Papal holdings in Romagna, while the Pope accepted the humble request of the Republic for pardon, cancelling the interdict. But the reconciliation between Venice and the Pope did not stop the French to continue the war against Venice with attacks to her cities in Terraferma. Julius II, in the meanwhile, had become increasingly concerned by the growing French presence in Italy and formulated plans, both to chase the French out of the Po Valley and to seize the Duchy of Ferrara, a French ally, with the intention to add the territories of Modena, Reggio and Ferrara to the Papal States. In realizing his plan the Pope immediately excommunicated Alfonso d'Este, Duke of Ferrara, declaring his fief forfeited for his remaining loyal to France, then he gained the military support of Venice, eager to recover her territories lost to the French a armies and hired an army of Swiss mercenaries to attack Milan as to isolate the French armies in Italy. However his plans failed as the French army managed to invade Romagna and occupy the cities of Bologna and Ravenna, supported by the powerful and celebrated artillery of Duke Alfonso d'Este. In addition, in response to Pope's switching sides, Louis XII of France convoked a Schismatic Council at Pisa as to have the 'Warrior Pope' deposed. Pope Julius II, having unsuccessfully pressed the Republic of Florence to refuse hosting the schismatic cardinals, proclaimed the Holy League against France and convoked a Council of his own to meet at the Lateran in Rome. The promise of territorial gains at French expense caused Ferdinand II of Aragon and Emperor Maximilian I to abandon their alliance with the French, and in October 1511, they joined the newly-formed Holy League together with Julius II and the Republic of Venice. In November, Henry VIII of England and the Swiss confederation joined as well.

	date = { day = 10 month = October year = 1510 }
	offset = 500
	deathdate = { day = 1 month = april year = 1512 }

	action_a = {
		name = "ACTIONNAME17024A" #Express Support
		command = { type = casusbelli which = FRA value = 36 }
		command = { type = relation which = FRA value = -150 }
		command = { type = relation which = VEN value = 150 }
		command = { type = relation which = ENG value = 150 }
		command = { type = relation which = HAB value = 150 }
		command = { type = relation which = PAP value = 150 }
	}
	action_b = {
		name = "ACTIONNAME17024B" #Stay neutral
		command = { type = relation which = FRA value = 50 }
		command = { type = relation which = ENG value = -50 }
		command = { type = relation which = HAB value = -50 }
		command = { type = relation which = VEN value = -50 }
		command = { type = relation which = PAP value = -50 }
	}
	action_c = {
		name = "ACTIONNAME17024C" #Express Hostility
		command = { type = relation which = FRA value = 150 }
		command = { type = relation which = ENG value = -150 }
		command = { type = relation which = VEN value = -150 }
		command = { type = relation which = HAB value = -150 }
		command = { type = relation which = PAP value = -150 }
	}
}

#(1512) Fernando of Aragon claims Navarre
event = {
	id = 111008
	trigger = {
		owned = { province = 428 data = NAV } #Navarra
		event = 351005 #BEA: A bigger Kingdom
	}
	random = no
	country = ARG
	name = "EVENTNAME111008" #Aragon claims Navarre
	desc = "EVENTHIST111008"
	#-#Upon the premature childless death of Franois Phoebus of Navarre, his sister Catherine succeeded him. This arrangement was opposed by the next male relative, Jean Vicomte de Narbonne who started contesting his niece's and her husband's inheritance in 1494. The war lasted for three years and crippled the whole country until Jean finally submitted in the Peace of Tarbes on September 7th 1497. However, the Vicomtes of Narbonne never really gave up their claim and Jean's son Gaston continued to gather support for it. When Gaston died in battle in 1512, Fernando of Aragon who had married Gaston's sister Germaine inherited the claim. This was of course a long-awaited opportunity for Fernando to complete Spain's possessions on the Iberian Peninsula, and he did not hesitate to invade Navarre. Spanish troops occupied everything south of the Pyrenees within less than a year.

	date = { day = 1 month = january year = 1512 }
	offset = 120
	deathdate = { day = 29 month = december year = 1512 }

	action_a = {
		name = "ACTIONNAME111008A" #Press the claim
		command = { type = relation which = NAV value = -200 }
		command = { type = relation which = FRA value = -100 }
		command = { type = addcore which = 428 } #Navarra
		command = { type = add_countryculture which = basque }
	}
	action_b = {
		name = "ACTIONNAME111008B" #Leave Navarre alone
		command = { type = relation which = NAV value = 50 }
		command = { type = stability value = 1 }
	}
}

#-----------------------------------------------------------------------------------------------
#Ahistorical: if Aragon survived
#-----------------------------------------------------------------------------------------------

#(1515-1558) Mediterranean or Atlantic (fantasy event)
event = {
	id = 7149
	random = no
	country = ARG
	name = "EVENTNAME7149" #Mediterranean or Atlantic
	desc = "EVENTHIST7149"
	#-#After the discovery of America and the new routes opened by Portuguese sailors to India and China, the once very dynamical and mercantile Mediterranean progressively lost its role as the economical heart of Europe. The interest and the money shifted to endeavors across the Atlantic. This was a hard blow to the Crown of Aragon and its Mediterranean-based economy.

	date = { day = 1 month = march year = 1515 }
	offset = 100
	deathdate = { day = 1 month = march year = 1558 }

	action_a = {
		name = "ACTIONNAME7149A" #Let us look east and west!
		command = { type = infra value = -100 }
		command = { type = stability value = -2 }
		command = { type = treasury value = -50 }
		command = { type = trade value = 100 }
		command = { type = colonists value = 2 }
		command = { type = galleys which = -1 value = 2 }
		command = { type = relation which = FRA value = -25 }
		command = { type = relation which = SPA value = -50 }
		command = { type = relation which = POR value = -50 }
		command = { type = relation which = PAP value = -25 }
		command = { type = relation which = TUR value = -25 }
		command = { type = wakeleader which = 010827 } #Gabriel Bosque (ARG)
		command = { type = wakeleader which = 010829 } #Miguel Daz de Aux (ARG)
		command = { type = wakeleader which = 010830 } #Alfons Moreno Daz (ARG)
		command = { type = wakeleader which = 010828 } #Cristbal de Olid (ARG)
		command = { type = setflag which = [ArgExpl] }
	}
	action_b = {
		name = "ACTIONNAME7149B" #We must strengthen our control over the remaining Mediterranean trade!
		command = { type = treasury value = -50 }
		command = { type = stability value = -1 }
		command = { type = merchants value = 2 }
		command = { type = colonists value = -2 }
		command = { type = trade value = 500 }
		command = { type = domestic which = land value = -2 }
		command = { type = relation which = FRA value = -25 }
		command = { type = relation which = SPA value = -25 }
		command = { type = galleys which = -1 value = 5 }
		command = { type = relation which = TUR value = -50 }
		command = { type = relation which = GEN value = -50 }
		command = { type = relation which = POR value = -25 }
		command = { type = sleepevent which = 111063 } #ARG: Tristn de Luna y Arellano's Expedition
	}
	action_c = {
		name = "ACTIONNAME7149C" #There is no money in the Mediterranean, go west!
		command = { type = stability value = -4 }
		command = { type = merchants value = -3 }
		command = { type = revolt which = 397 } #Sardinia
		command = { type = revolt which = 395 } #Messina
		command = { type = revolt which = -1 }
		command = { type = revolt which = -1 }
		command = { type = treasury value = -200 }
		command = { type = domestic which = land value = -1 }
		command = { type = naval value = 500 }
		command = { type = explorer which = -1 }
		command = { type = warships which = -1 value = 2 }
		command = { type = relation which = SPA value = -100 }
		command = { type = relation which = PAP value = -50 }
		command = { type = relation which = POR value = -100 }
		command = { type = wakeleader which = 010827 } #Gabriel Bosque (ARG)
		command = { type = wakeleader which = 010829 } #Miguel Daz de Aux (ARG)
		command = { type = wakeleader which = 010830 } #Alfons Moreno Daz (ARG)
		command = { type = wakeleader which = 010828 } #Cristbal de Olid (ARG)
		command = { type = setflag which = [ArgExpl] }
	}
}

#(1523-1798) Generous offer to the Hospitallers (The Knights don't exist)
#by Fodoron
event = {
	id = 111033
	trigger = {
		owned = { province = 819 data = -1 } #Malta
		control = { province = 819 data = -1 } #Malta
		NOT = { exists = KNI }
	}
	random = no
	country = ARG
	name = "EVENTNAME285123" #Generous offer to the Hospitallers
	desc = "EVENTHIST111033"
	#-#When the Order of St. John was expelled from Rhodes in 1523, it underwent a crisis. Their possessions were being confiscated all over Europe, by both Catholic and Protestant rulers, their income was shrinking and their recruits stopped coming. They desperately needed a base, preferably by reconquering Rhodes, otherwise an island in the Aegean, but no one would help and Venice actively opposed them. Europe was at war and there was no place for their neutrality. The King of Aragon however came up with a master idea. He offered Malta to the Hospitallers. Malta was difficult to defend from the growing Ottoman power, but the Knights were a tough breed. They would give their lives defending his shipping lines to Sicily. In 1524 the Hospitallers sent a commission to Malta. Their report was very negative. The island could not sustain itself and the defences were very poor. Then Enric I decided to include Tripoli as part of an all or nothing deal. The Knights thought even less of Tripoli. They did not have the resources to upgrade its defenses, but having no other option, the Chapter General decided in 1527 to accept the offer despite the opposition of the French Langues. They still had hopes of recovering Rhodes, but in 1530 they gave up and moved to Malta, taking possession also of Tripoli. From then on, the Aragonese and the Knights of St. John would fight their battles in North Africa together.

	date = { day = 0 month = january year = 1523 }
	offset = 100
	deathdate = { day = 9 month = june year = 1798 }

	action_a = {
		name = "ACTIONNAME285123A" #They will defend Malta
		command = { type = stability value = 1 }
		command = { type = removecore which = 819 } #Malta
		command = { type = remove_countryculture which = maltese }
		command = { type = independence which = KNI }
		command = { type = badboy value = -2 }
		command = { type = ADM which = 1 value = 48 }
		command = { type = relation which = PAP value = 50 }
		command = { type = relation which = TUR value = -50 }
		command = { type = relation which = VEN value = -25 }
		command = { type = relation which = ALD value = -50 }
	}
	action_b = {
		name = "ACTIONNAME285123B" #We don't need them
		command = { type = fortress which = 819 value = -1 } #Malta is exposed to attacks
	}
}
#(1523-1798) Generous offer to the Hospitallers (donation of Malta)
#by Fodoron
event = {
	id = 111034 #triggered by KNI_201000 A
	trigger = {
		owned = { province = 819 data = -1 } #Malta
		control = { province = 819 data = -1 } #Malta
	}
	random = no
	country = ARG
	name = "EVENTNAME285123" #Generous offer to the Hospitallers
	desc = "EVENTHIST111033"
	#-#When the Order of St. John was expelled from Rhodes in 1523, it underwent a crisis. Their possessions were being confiscated all over Europe, by both Catholic and Protestant rulers, their income was shrinking and their recruits stopped coming. They desperately needed a base, preferably by reconquering Rhodes, otherwise an island in the Aegean, but no one would help and Venice actively opposed them. Europe was at war and there was no place for their neutrality. The King of Aragon however came up with a master idea. He offered Malta to the Hospitallers. Malta was difficult to defend from the growing Ottoman power, but the Knights were a tough breed. They would give their lives defending his shipping lines to Sicily. In 1524 the Hospitallers sent a commission to Malta. Their report was very negative. The island could not sustain itself and the defences were very poor. Then Enric I decided to include Tripoli as part of an all or nothing deal. The Knights thought even less of Tripoli. They did not have the resources to upgrade its defenses, but having no other option, the Chapter General decided in 1527 to accept the offer despite the opposition of the French Langues. They still had hopes of recovering Rhodes, but in 1530 they gave up and moved to Malta, taking possession also of Tripoli. From then on, the Aragonese and the Knights of St. John would fight their battles in North Africa together.

	action_a = {
		name = "ACTIONNAME285123A" #They will defend Malta
		command = { type = remove_countryculture which = maltese }
		command = { type = removecore which = 819 } #Malta
		command = { type = cedeprovince which = KNI value = 819 } #Malta
		command = { type = badboy value = -1 }
		command = { type = ADM which = 1 value = 48 }
		command = { type = vassal which = KNI }
		command = { type = trigger which = 24001 } #KNI: The Order of St. John is offered Malta
		command = { type = relation which = PAP value = 50 }
		command = { type = relation which = TUR value = -50 }
		command = { type = relation which = VEN value = -25 }
		command = { type = relation which = ALD value = -50 }
		command = { type = sleepevent which = 111033 } #ARG: Generous offer to the Hospitallers
	}
	action_b = {
		name = "ACTIONNAME285123B" #We don't need them
		command = { type = fortress which = 819 value = -1 } #Malta is exposed to attacks
		command = { type = sleepevent which = 111033 } #ARG: Generous offer to the Hospitallers
	}
}
#(1523-1551) Generous offer to the Hospitallers (donation of Tripoli)
#by Fodoron
event = {
	id = 111035
	trigger = {
		owned = { province = 740 data = -1 } #Tripolitania
		exists = KNI
		NOT = { war = { country = KNI country = ARG } }
		NOT = {
			core = { province = 819 data = -1 } #Malta donated
		}
	}
	random = no
	country = ARG
	name = "EVENTNAME285123" #Generous offer to the Hospitallers
	desc = "EVENTHIST111033"
	#-#When the Order of St. John was expelled from Rhodes in 1523, it underwent a crisis. Their possessions were being confiscated all over Europe, by both Catholic and Protestant rulers, their income was shrinking and their recruits stopped coming. They desperately needed a base, preferably by reconquering Rhodes, otherwise an island in the Aegean, but no one would help and Venice actively opposed them. Europe was at war and there was no place for their neutrality. The King of Aragon however came up with a master idea. He offered Malta to the Hospitallers. Malta was difficult to defend from the growing Ottoman power, but the Knights were a tough breed. They would give their lives defending his shipping lines to Sicily. In 1524 the Hospitallers sent a commission to Malta. Their report was very negative. The island could not sustain itself and the defences were very poor. Then Enric I decided to include Tripoli as part of an all or nothing deal. The Knights thought even less of Tripoli. They did not have the resources to upgrade its defenses, but having no other option, the Chapter General decided in 1527 to accept the offer despite the opposition of the French Langues. They still had hopes of recovering Rhodes, but in 1530 they gave up and moved to Malta, taking possession also of Tripoli. From then on, the Aragonese and the Knights of St. John would fight their battles in North Africa together.

	date = { day = 0 month = january year = 1523 }
	offset = 100
	deathdate = { day = 14 month = august year = 1551 }

	action_a = {
		name = "ACTIONNAME285125A" #They will defend Tripoli
		command = { type = removecore which = 740 } #Tripolitania
		command = { type = cedeprovince which = KNI value = 740 } #Tripolitania
		command = { type = ADM which = 1 value = 48 }
		command = { type = trigger which = 24003 } #KNI: We take possession of Tripoli
	}
	action_b = {
		name = "ACTIONNAME285123B" #We don't need them
		command = { type = province_revoltrisk which = 740 value = 48 } #Tripolitania
	}
}

#(1523-1640) The great siege of Malta
#by Fodoron
event = {
	id = 111042
	trigger = {
		war = { country = KNI country = TUR }
		NOT = { war = { country = KNI country = ARG } }
		NOT = {
			core = { province = 819 data = -1 } #Malta donated
		}
	}
	random = no
	country = ARG
	name = "EVENTNAME285127" #The great siege of Malta
	desc = "EVENTHIST285127"
	#-#It was just a matter of time before the Ottomans attacked Malta. In May 1565, a powerful fleet from the Ottomans and their allies the Barbary pirates, arrived to the island and landed an army of 40,000. Against them were 540 knights, 400 Spaniards and 4,000 Maltese. Fort St. Elmo lasted 5 weeks of furious fights until almost all its defenders were killed. By then 600 Spaniards from Sicily had arrived to the city. The fighting continued all summer taking the lives of 5000 defenders with the Turkish loses three times higher, including the famous pirate Dragut. In early September, when the defenders were at their last resistance, help from Spain finally arrived under command of lvaro de Bazn and Garca de Toledo. The Turks, low on morale, panicked and abandoned the island.

	date = { day = 0 month = january year = 1523 }
	offset = 100
	deathdate = { day = 0 month = january year = 1640 }

	action_a = {
		name = "ACTIONNAME285127A" #Help the Knights
		command = { type = trigger which = 201003 } #KNI: Aragonese help
		command = { type = trigger which = 111043 } #ARG: Tercios del mar
		command = { type = treasury value = -100 }
	}
	action_b = {
		name = "ACTIONNAME285127B" #They should solve their own problems
		command = { type = trigger which = 201004 } #KNI: Aragon refuses to help
		command = { type = relation which = KNI value = -50 }
	}
}
#(1523-1640) Tercios del mar
#by Fodoron
event = {
	id = 111043 #triggered by ARG_111042 A
	random = no
	country = ARG
	name = "EVENTNAME285150" #Tercios del mar
	desc = "EVENTHIST111043"
	#-#Aragon was the first nation in the world to create a permanent specific naval infantry unit in 1537. This was the Old Company of the Sea of Naples composed by harquebusiers to fight on board galleys. In the winter of 1564 spies told of a powerful Ottoman fleet being readied in Constantinople. On May 18, 1565 their target was revealed when the Janissaries landed in Malta. From the beginning of May Aragon had been gathering her force. Finally, on August 25, the Viceroy of Sicily, Garca de Toledo, gave the order to depart, arriving at Malta on September 7, forcing the Ottomans to lift their siege on the exact same day they had scheduled their final full-out assault on the few surviving defenders. Had they arrived one day later, Malta would have been lost. It was clear that a reaction time of four months was not acceptable and that Aragon could not project her power far away unless a permanent force capable of landing and conducting battles that could be quickly deployed was assigned to the Navy. So in February 1566 the Tercio de la Armada del Mar Oceano, or Tercio of the Navy of the Ocean Sea, also known as Tercio de Figueroa for its first commander, was created with 6,700 soldiers. Harquebusiers from this unit were the first to assault the Sultana, the Ottoman flagship in the battle of Lepanto and, as a reward, its commander Lope de Figueroa was given the commission to inform the King of the victory.

	action_a = {
		name = "ACTIONNAME285150A" #Send the marines
		command = { type = treasury value = -150 }
		command = { type = domestic which = offensive value = 1 }
		command = { type = domestic which = quality value = 1 }
		command = { type = naval value = 500 }
	}
	action_b = {
		name = "ACTIONNAME285150B" #We don't have the money
		command = { type = vp value = -5 }
	}
}

#-----------------------------------------------------------------------------------------------
#North African policy of Aragon Sequence

#(1527-1572) The Pasha of Tunis requests our help
#by Fodoron
event = {
	id = 111044 #triggered by TUN_300001 A
	trigger = {
		NOT = { exists = SPA }
	}
	random = no
	country = ARG
	name = "EVENTNAME285128" #The Pasha of Tunis requests our help
	desc = "EVENTHIST111044"
	#-#Alfons VI had inherited a North African situation that was turning into a nightmare. The Ottomans were calling to the doors of Vienna, and in Africa they had taken over Egypt, and with the help of the Barbary pirates, they were taking over Kingdom after Kingdom, destroying the policy of alliances that his grandfather Fernando had established. He could not let them reach the Straits of Gibraltar. Worse still, they entered an alliance with France, so he was facing war simultaneously in all fronts. To add to that, the Aragonese presidios (fortresses) in Africa were very difficult to defend. When Barbarossa conquered Tunis in 1534, the fleeing Pasha al-Hassan went to the Aragonese court and asked for help in exchange for vassalage. Alfons VI could not let the Ottomans or their allies come any closer to Aragon and Italy. A huge armada was assembled and he decided to lead it in person.

	action_a = {
		name = "ACTIONNAME285128A" #Send the fleet if Tunis falls
		command = { type = vassal which = TUN }
		command = { type = relation which = TUN value = 400 }
		command = { type = relation which = TLE value = 100 }
	}
	action_b = {
		name = "ACTIONNAME285128B" #They are a bunch of heathens
		command = { type = relation which = TUN value = -50 }
		command = { type = sleepevent which = 111045 } #ARG: Tunis conquered
		command = { type = sleepevent which = 111046 } #ARG: Tunis conquered
	}
}
#(1527-1572) Tunis conquered by Barbarossa (TUR version)
#by Fodoron
event = {
	id = 111045
	trigger = {
		event = 111044 #ARG: The Pasha of Tunis requests our help
		owned = { province = 739 data = TUR } #Tunisia
		owned = { province = 734 data = -1 } #Orania
		NOT = { exists = TUN }
		NOT = {
			vassal = { country = TUR country = ARG }
			vassal = { country = ARG country = TUR }
		}
	}
	random = no
	country = ARG
	name = "EVENTNAME285129" #Tunis conquered by Barbarossa
	desc = "EVENTHIST285129"
	#-#After the fall of Tunis, a huge fleet was assembled in Barcelona, It then proceed to Cagliari. It was composed of 74 galleys and over 300 sail ships. Command of the fleet was given to Andrea Doria, while lvaro de Bazn, commanded the Spanish squadron. The 50,000 troops were under command of the Duke of Alba, while supreme command of the operation was reserved for the emperor. After taking La Goulette, near Carthage, they proceeded to Tunis. The army of Barbarossa presented battle in the open and was routed by the Tercios. Once Tunis was under siege, several thousands of Christian slaves rebelled and took control of the armoury, helping during the final assault. Barbarossa, however, was able to escape.

	date = { day = 0 month = january year = 1527 }
	offset = 100
	deathdate = { day = 0 month = january year = 1572 }

	action_a = {
		name = "ACTIONNAME285129A" #We shall recover it
		command = { type = addcore which = 739 } #Tunisia (temporal to direct energies)
		command = { type = war which = TUR }
	}
}
#(1527-1572) Tunis conquered by Barbarossa (ALD version)
#by Fodoron
event = {
	id = 111046
	trigger = {
		event = 111044 #ARG: The Pasha of Tunis requests our help
		owned = { province = 739 data = ALD } #Tunisia
		NOT = { exists = TUN }
		NOT = {
			vassal = { country = TUR country = ARG }
			vassal = { country = ARG country = TUR }
		}
	}
	random = no
	country = ARG
	name = "EVENTNAME285129" #Tunis conquered by Barbarossa
	desc = "EVENTHIST285129"
	#-#After the fall of Tunis, a huge fleet was assembled in Barcelona, It then proceed to Cagliari. It was composed of 74 galleys and over 300 sail ships. Command of the fleet was given to Andrea Doria, while lvaro de Bazn, commanded the Spanish squadron. The 50,000 troops were under command of the Duke of Alba, while supreme command of the operation was reserved for the emperor. After taking La Goulette, near Carthage, they proceeded to Tunis. The army of Barbarossa presented battle in the open and was routed by the Tercios. Once Tunis was under siege, several thousands of Christian slaves rebelled and took control of the armoury, helping during the final assault. Barbarossa, however, was able to escape.

	date = { day = 0 month = january year = 1527 }
	offset = 100
	deathdate = { day = 0 month = january year = 1572 }

	action_a = {
		name = "ACTIONNAME285129A" #We shall recover it
		command = { type = addcore which = 739 } #Tunisia (temporary to direct energies)
		command = { type = war which = ALD }
	}
}
#(1527-1574) Tunis under Aragonese control
#by Fodoron
event = {
	id = 111047
	trigger = {
		event = 111044 #ARG: The Pasha of Tunis requests our help
		owned = { province = 739 data = -1 } #Tunisia
		core = { province = 739 data = -1 } #marker for acceptance of request
	}
	random = no
	country = ARG
	name = "EVENTNAME285131" #Tunis under Aragonese control
	desc = "EVENTHIST111047"
	#-#After the conquest of Tunis in 1535, Alfons VI reinstated al-Hassa Ibn Muhammad as Pasha of Tunis. He left a garrison of Aragonese soldiers to help him keep control and ensure his loyalty. Tunis continued as a vassal of Aragon until 1574, when it was conquered by the Ottoman Empire.

	date = { day = 0 month = january year = 1527 }
	offset = 100
	deathdate = { day = 0 month = january year = 1574 }

	action_a = {
		name = "ACTIONNAME285131A" #We fulfill our promises
		command = { type = removecore which = 739 } #Tunisia
		command = { type = independence which = TUN }
	}
}
#(1534-1540) Barbarossa raids our coasts I
#by Fodoron
event = {
	id = 111048
	trigger = {
		exists = TUR
		leader = 0139318 #Barbarossa (TUR)
		war = { country = ARG country = FRA }
		OR = {
			exists = ALD
			owned = { province = 737 data = TUR } #Al Djazair
		}
	}
	random = no
	country = ARG
	name = "EVENTNAME285135" #Barbarossa raids our coasts
	desc = "EVENTHIST111048"
	#-#The alliance against the Holy Roman Emperor, signed by the Most Christian King Franois Ier of France and the Sultan Suleiman of the Ottoman Empire, resulted in attacks by the Turks every time France fought against Aragon. The most destructive raid was the one produced after the invasion of Milan by France in 1542. Barbarossa, on command of a huge Ottoman and Barbary fleet, raided the costs of Italy, joining later a French fleet under command of the Duke of Enghien at Marseilles and both proceeded to attack Nice. At the arrival of Andrea Doria and Alfonso de Avalos, they retreated to Toulon for winter, where the churches were prohibited from ringing their bells, and Christian slaves were openly sold between Turks and pirates. While at Toulon, a fleet was dispatched to sack the coasts of Aragon. After the peace of Crpy between France and Aragon, Barbarossa returned to Istanbul, pillaging the coasts of Tuscany and Naples in the way.

	date = { day = 0 month = january year = 1534 }
	offset = 300
	deathdate = { day = 0 month = january year = 1540 }

	action_a = {
		name = "ACTIONNAME285135A" #He is the devil
		command = { type = stability value = -1 }
		command = { type = treasury value = -50 }
		command = { type = population which = 396 value = -1000 } #Sicily
		command = { type = population which = 427 value = -1000 } #Gerona
	}
}
#(1535-1557) Aragonese hegemony in North Africa
#by Fodoron
event = {
	id = 111049
	trigger = {
		exists = TLE
		exists = TUR
		owned = { province = 734 data = -1 } #Orania
		event = 111044 #ARG: The Pasha of Tunis requests our help
	}
	random = no
	country = ARG
	name = "EVENTNAME111049" #Aragonese Hegemony in North Africa
	desc = "EVENTHIST111049"
	#-#After the pact between Franois Ier of France and the Ottoman Sultan in 1527, Alfons VI found his empire in a difficult situation. The Turks usally sent their fleets to ravage his coasts, coinciding and even coordinating with French attacks. To avoid complete Ottoman control of the Mediterranean, he took Tunis in 1535. The new Governor of Oran, Martn Alonso de Cordoba, the Conde de Alcaudete, was ordered to lead an expedition against Tlemcen which was shifting towards the Ottoman side. At Prevesa, in the Albanian cost, the combined fleets of Aragon, Venice, Genoa and Papal States, under command of Andrea Doria, were defeated by the Ottoman-Barbary fleet under Khayr ad-Din Barbarossa. Although losses were small and mostly Venetian, since Doria refused to fight, its effect was to give supremacy in the Eastern Mediterranean to the Ottomans. Besides the expedition of Alcaudete, something needed to be done to maintain Aragonese supremacy, at least in the Western Mediterranean, and so Alfons VI ordered a naval expedition against Al-Djazar (Algiers).

	date = { day = 0 month = january year = 1535 }
	offset = 100
	deathdate = { day = 0 month = january year = 1557 }

	action_a = {
		name = "ACTIONNAME285132A" #Maintain supremacy
		command = { type = treasury value = -100 }
		command = { type = domestic which = offensive value = 1 }
		command = { type = relation which = GEN value = 50 }
		command = { type = relation which = PAP value = 50 }
		command = { type = relation which = KNI value = 100 }
		command = { type = relation which = TUR value = -50 }
	}
	action_b = {
		name = "ACTIONNAME285132B" #Leave the Mediterranean to the Ottomans
		command = { type = relation which = PAP value = -10 }
		command = { type = relation which = KNI value = -50 }
		command = { type = breakoverlord which = TLE } #Tlemcen
		command = { type = trigger which = 301040} #TUR: Tlemcen submits to the Ottoman Empire
		command = { type = sleepevent which = 332016 } #TLE: Between Aragonese and Ottomans
		command = { type = sleepevent which = 332017 } #TLE: Between Aragonese and Ottomans
	}
}
#(1535-1557) The first expedition of Alcaudete and the failure at Algiers (TLE not a vassal)
#by Fodoron
event = {
	id = 111050 #triggered by TLE_332016 A
	random = no
	country = ARG
	name = "EVENTNAME285133" #The first expedition of Alcaudete and the failure at Algiers
	desc = "EVENTHIST111050"
	#-#The confrontation between Aragon and the Sultan of the Ottomans was reaching Tlemcen at a delicate point, when dynastic fights were shaking the Zayyanids. The Conde de Alcaudete, military governor of Oran, joined in 1535 with tribal chief Ibn Radwan to help Zayyanid prince Abdallah overthrow his older brother Muhammad V. The expedition, including 600 Aragonese soldiers, was almost completely wiped out by the Banu Rashid tribe. However, probably because the Aragonese had taken Tunis, Sultan Muhammad agreed to pay tribute to Oran in exchange for Aragonese protection. Six years later, the expedition of more than four hundred ships sent against Barbarossa in Algiers departed too late in the season and, surprised by a storm, lost one fourth of its effectives and had to retreat. Overstretched because of the wars against France Alfons VI did not have the resources to maintain the hegemony in the Western Mediterranean against the Ottomans.

	action_a = {
		name = "ACTIONNAME285133A" #Disaster
		command = { type = stability value = -1 }
		command = { type = vassal which = TLE } #Tlemcen
		command = { type = desertion which = 734 value = 600 } #Orania
		command = { type = desertion which = -1 value = 5000 }
	}
}
#(1535-1557) The first expedition of Alcaudete and the failure at Algiers (TLE a vassal)
#by Fodoron
event = {
	id = 111051 #triggered by TLE_332017 A
	random = no
	country = ARG
	name = "EVENTNAME285133" #The first expedition of Alcaudete and the failure at Algiers
	desc = "EVENTHIST111050"
	#-#The confrontation between Aragon and the Sultan of the Ottomans was reaching Tlemcen at a delicate point, when dynastic fights were shaking the Zayyanids. The Conde de Alcaudete, military governor of Oran, joined in 1535 with tribal chief Ibn Radwan to help Zayyanid prince Abdallah overthrow his older brother Muhammad V. The expedition, including 600 Aragonese soldiers, was almost completely wiped out by the Banu Rashid tribe. However, probably because the Aragonese had taken Tunis, Sultan Muhammad agreed to pay tribute to Oran in exchange for Aragonese protection. Six years later, the expedition of more than four hundred ships sent against Barbarossa in Algiers departed too late in the season and, surprised by a storm, lost one fourth of its effectives and had to retreat. Overstretched because of the wars against France Alfons VI did not have the resources to maintain the hegemony in the Western Mediterranean against the Ottomans.

	action_a = {
		name = "ACTIONNAME285133A" #Disaster
		command = { type = stability value = -1 }
		command = { type = desertion which = 734 value = 600 } #Orania
		command = { type = desertion which = -1 value = 5000 }
	}
}
#(1540-1546) Barbarossa raids our coasts II
#by Fodoron
event = {
	id = 111052
	trigger = {
		exists = TUR
		leader = 0139318 #Barbarossa (TUR)
		war = { country = ARG country = FRA }
		OR = {
			exists = ALD
			owned = { province = 737 data = TUR } #Al Djazair
		}
	}
	random = no
	country = ARG
	name = "EVENTNAME285135" #Barbarossa raids our coasts
	desc = "EVENTHIST111052"
	#-#Taking advantage of the fights between different tribes in Tlemcen, the Conde de Alcaudete, military governor of Aragonese Oran, supported the Banu Rashid to dethrone Muhammad and install his brother Ahmad in 1545. Muhammad sought the help of Hassan Pasha, ruler of Al-Djazar and son of Khayr ad-Din Barbarossa, and was restored with the help of the Turks. Alcaudete attacked in 1547, but was driven back by the Turks. Meanwhile, in Morocco, the pro-Turkish Wattasid Sultan Ahmad was defeated by the Sa'did Muhammad al-Shaykh (al-Mahdi), who then invaded Tlemcen putting an end to 300 years of Zayyanid rule there. The Turkish reaction under Agha Hasan Quru however drove them out. Tlemcen was under Turkish control, but disputed by Moroccans and the Aragonese.

	date = { day = 0 month = january year = 1540 }
	offset = 300
	deathdate = { day = 0 month = january year = 1546 }

	action_a = {
		name = "ACTIONNAME285135A" #He is the devil
		command = { type = stability value = -1 }
		command = { type = treasury value = -50 }
		command = { type = population which = 395 value = -1000 } #Messina
		command = { type = population which = 821 value = -1000 } #The Baleares
	}
}
#(1545-1555) Civil war in Tlemcen
#by Fodoron
event = {
	id = 111053
	trigger = {
		vassal = { country = TUR country = TLE }
		owned = { province = 734 data = -1 } #Orania
	}
	random = no
	country = ARG
	name = "EVENTNAME285137" #Civil war in Tlemcen
	desc = "EVENTHIST111053"
	#-#The fall of Tlemcen into Ottoman hands in 1551 put Aragonese Oran in a mortal danger. Martn Alonso de Cordoba, Conde de Alcaudete, military governor of Oran, entered into an alliance with the Sultan of Morocco, Muhammad al-Shaykh, to drive the Turks from Tlemcen. However the Ottoman Sultan Suleiman dispatched spies that assassinated Muhammad al-Shaykh in 1557. Having lost this ally for an attack on Algiers, Alcaudete marched with an army of 12,000 on Mustaghanim (Mostaganem) the next year. But tribes and the Turkish forces of Hasan Quru totalling over 70,000 men defeated them. Alcaudete was killed, and his son and most of the army were captured. The next year many of them would abjure from their beliefs to escape slavery. Tlemcen disappeared as a country, firmly in the hands of the Pashas of Al-Djazar who were named by the Ottoman Empire. Tripoli was lost in 1551, Bugia in 1555, and Tunis in 1570. Aragon had lost the North African game, but would successfully defend Oran and Melilla from recurrent attacks for centuries.

	date = { day = 0 month = january year = 1545 }
	offset = 300
	deathdate = { day = 0 month = january year = 1555 }

	action_a = {
		name = "ACTIONNAME285137A" #Tlemcen should not be Ottoman
		command = { type = treasury value = -50 }
		command = { type = INF which = 734 value = 5000 } #Orania
		command = { type = CAV which = 734 value = 2000 } #Orania
		command = { type = casusbelli which = TLE value = 72 }
		command = { type = relation which = MOR value = 50 }
		command = { type = relation which = TUR value = -50 }
		command = { type = relation which = TLE value = -50 }
	}
	action_b = {
		name = "ACTIONNAME285137B" #Who cares about Tlemcen
		command = { type = vp value = -5}
		command = { type = trigger which = 332005 } #TLE: Tlemcen becomes part of the Ottoman Empire
		command = { type = sleepevent which = 111054 } #ARG: The last expedition of Alcaudete
	}
}
#(1545-1555) The last expedition of Alcaudete
#by Fodoron
event = {
	id = 111054
	trigger = {
		event = 111053 #ARG: Civil war in Tlemcen
		owned = { province = 734 data = -1 } #Orania
	}
	random = no
	country = ARG
	name = "EVENTNAME285139" #The last expedition of Alcaudete
	desc = "EVENTHIST285139"
	#-#The fall of Tlemcen into Ottoman hands in 1551 put Spanish Oran in a mortal danger. Martn Alonso de Cordoba, the count of Alcaudete, military governor of Oran, entered into an alliance with the sultan of Morocco, Muhammad al-Shaykh, to drive the Turks from Tlemcen. However the Ottoman sultan Suleiman dispatched spies that assassinated Muhammad al-Shaykh in 1557. Having lost this ally for an attack on Algiers, Alcaudete marched with an army of 12,000 on Mustaghanim (Mostaganem) the next year. But tribes and the Turkish forces of Hasan Quru totalling over 70,000 men defeated them. Alcaudete was killed, and his son and most of the army were captured. The next year many of them would abjure from their beliefs to escape slavery. Tlemcen disappeared as a country, firmly in the hands of the pashas of Al-Djazar, named by the Ottoman Empire. Tripoli was lost in 1551, Bugia in 1555, and Tunis in 1570. Spain had lost the North African game, but will successfully defend Oran and Melilla from recurrent attacks for centuries.

	date = { day = 0 month = january year = 1545 }
	offset = 20
	deathdate = { day = 0 month = january year = 1555 }

	action_a = {
		name = "ACTIONNAME285139A" #Disaster
		command = { type = stability value = -1 }
		command = { type = desertion which = 734 value = 12000 } #Orania
	}
}
#(1551) The fall of Tripoli (to prevent Aragon from keeping a core in Tripoli)
#by Fodoron
event = {
	id = 111055
	trigger = {
		core = { province = 740 data = -1 } #Tripolitania
	}
	random = no
	country = ARG
	name = "EVENTNAME285138" #The fall of Tripoli
	desc = "EVENTHIST111055"
	#-#The Knights Hospitallers took care of the defense of Tripoli after its cession by Alfons VI for over 20 years. Provisioned by the Viceroy of Sicily and with the help of a Aragonese garrison, the Order even considered moving their see there. However in 1551 they were attacked by a huge Ottoman army under command of Sinan Pasha and Dragut. There were very few Knights in Tripoli, and the Aragonese soldiers from Calabria refused to fight, and so Tripoli was surrendered almost without fight. In 1560 the Grand Master Jean Parisot de la Valette enticed the Viceroy of Sicily, Juan de la Cerda, Duke of Medinaceli to attempt its recovery, but the expedition, approved by Enric II, was a complete failure, since Tripoli had been converted into a stronghold by huge Ottoman defensive works under the direction of Dragut.

	date = { day = 14 month = august year = 1551 }

	action_a = {
		name = "ACTIONNAME285138A" #Outrageous
		command = { type = removecore which = 740 } #Tripolitania
	}
}
#(1556-1577) The battle of Lepanto
#by Fodoron
event = {
	id = 111056
	trigger = { war = { country = TUR country = ARG } }
	random = no
	country = ARG
	name = "EVENTNAME285140" #The battle of Lepanto
	desc = "EVENTHIST111056"
	#-#In 1565 the help of Enric II was required by the Hospitallers to defend Malta against a combined assault by the Ottomans and Barbary pirates. The victory was very important because it put a clear limit to how far could the Ottoman Empire capable project its power. However the Ottoman Empire was at its peak, as the capture of Tunis in 1569 demonstrated. The capture of Cyprus in 1571, triggered the formation of a Holy League, mainly formed by Aragon, Venice and Papal States, with the combined fleet under command of Don Juan de Austria. The interests of Venice and Aragon were very different: Venice wanted to recover Cyprus, and Aragon wanted to recover her North African presidios, and they could only agree in fighting the Ottoman Navy. The ensuing battle at Lepanto was the biggest naval battle in modern times with over 32,000 casualties (by comparison Trafalgar had only 3,000), 25,000 of them on the Ottoman side which was almost completely destroyed. News of the victory were extremely well received by the Christians that had suffered from Ottoman and Barbary piracy. Although the Ottomans rebuilt their fleet and recaptured Tunis a second time in 1574, their naval supremacy in the Mediterranean was destroyed forever.

	date = { day = 0 month = january year = 1556 }
	offset = 100
	deathdate = { day = 0 month = january year = 1577 }

	action_a = {
		name = "ACTIONNAME285140A" #A great achievement
		command = { type = stability value = 2 }
	}
}
#(1563-1574) The great siege of Oran
#by Fodoron
event = {
	id = 111057
	trigger = {
		owned = { province = 734 data = -1 } #Orania
	}
	random = no
	country = ARG
	name = "EVENTNAME285148" #The great siege of Oran
	desc = "EVENTHIST285148"
	#-#After the disaster of Mustaghanim, in 1558, the military governor of Oran was Alonso de Crdoba, the new Conde de Alcaudete. He ransomed his father's body for 2000 ducats and his brother Martn in 1561 for 23,333 ducats that he obtained from a pillaging expedition into Moorish territory. In 1563, after the failure of Medinaceli in Tripoli, and the loss of Djerba, where Dragut made a pyramid with the skulls of the garrison, the Beylerbey Hassan Pasha, son of Barbarossa, decided to attack Oran. The Ottoman fleet had 32 galleys and 3 French round ships. The army was constituted of 1,000 Spahis, 15,000 Janissaries, and over 12,000 Kabyles and Arabs, contributed by the Sultan of Koukou and the Banu-Abba tribe. The assaults started in April on Mazalquivir, defended by Martn de Crdoba and 200 men. Time after time the Muslims were repelled. The son of the Sultan of Koukou died, Hassan was wounded, but their troops reached the walls of the fortification. On the last assault, on June 7, Martn was also wounded. Then news arrived that a powerful Christian fleet under command of Gian Andrea Doria and Francisco de Mendoza was on its way. Hassan Pasha called for an all out assault, but the Janissaries refused, and he had to escape, leaving behind all his artillery, and having lost 4,000 men, four galleys and the three French transports. Only 130 survivors remained in Mazalquivir. Maintenance of Oran, however, was becoming a burden. The Council of State asked for reports to study the possibility of leaving Oran and keeping only Mazalquivir, but without the first, the second was untenable, and so it was decided in 1574 to keep both. A great investment was made to upgrade the fortifications, designed by Antonelli, and the castle of Santa Cruz was built in 1577.

	date = { day = 1 month = april year = 1563 }
	offset = 300
	deathdate = { day = 1 month = april year = 1574 }

	action_a = {
		name = "ACTIONNAME285148A" #Fortify the city
		command = { type = treasury value = -100 }
		command = { type = fortress which = 734 value = 1 } #Orania
	}
	action_b = {
		name = "ACTIONNAME285148B" #Too expensive to keep
		command = { type = cedeprovince which = TUR value = 734 } #Orania
	}
}
#(1574) Tunis is lost (safety to remove core if not played)
#by Fodoron
event = {
	id = 111058
	trigger = {
		core = { province = 739 data = -1 } #Tunisia
	}
	random = no
	country = ARG
	name = "EVENTNAME285147" #Tunis is lost
	desc = "EVENTHIST111058"
	#-#After the conquest of Tunis in 1535, Alfons VI reinstated al-Hassa Ibn Muhammad as Pasha of Tunis. He left a garrison of Spanish soldiers to help him keep control and ensure his loyalty. Tunis continued as a vassal of Spain until 1574, when it was conquered by the Ottoman Empire.

	date = { day = 0 month = january year = 1574 }

	action_a = {
		name = "ALAS"
		command = { type = removecore which = 740 } #Tunisia
	}
}
#(1577-1581) Peace with the Ottoman empire
#by Fodoron
event = {
	id = 111059
	trigger = {
		OR = {
			owned = { province = 733 data = TUR } #Fez
			owned = { province = 734 data = TUR } #Orania
			owned = { province = 735 data = TUR } #Atlas
			owned = { province = 736 data = TUR } #Aures
			owned = { province = 737 data = TUR } #Al-Djazair
			owned = { province = 738 data = TUR } #Kabilia
			owned = { province = 739 data = TUR } #Tunisia
			owned = { province = 740 data = TUR } #Tripolitania
			owned = { province = 741 data = TUR } #Cyrenaica
			owned = { province = 742 data = TUR } #Quattara
		}
		NOT = {
			war = { country = TUR country = ARG }
		}
		OR = {
			owned = { province = 736 data = -1 } #Aures
			owned = { province = 737 data = -1 } #Al-Djazair
			owned = { province = 738 data = -1 } #Kabilia
			owned = { province = 739 data = -1 } #Tunisia
			owned = { province = 740 data = -1 } #Tripolitania
		}
	}
	random = no
	country = ARG
	name = "EVENTNAME285141" #Peace with the Ottoman Empire
	desc = "EVENTHIST111059"
	#-#Enric II just did not have the money to pursue a North African conquest, but the rebellion of the Moriscos in 1569, at a time when Tunis was conquered for the Ottomans by the famous pirate and Beylerbey of Algiers, Uluj Ali, made him painfully aware of the dangers of ignoring that front. With great effort, the Moriscos rebellion was put down and the Ottoman fleet defeated at Lepanto. But although Tunis was briefly recovered, it was quickly lost again due to lack of resources. But he was not alone in having problems. The Ottomans, defeated at Malta and Lepanto, found themselves also overstretched due to the demands of their conflicts with Persia. Under these circumstances, Enric II and Murad III negotiated a series of truces between 1577 and 1581. In these truces Enric II renounced the former Aragonese conquests in North Africa, while the Ottoman sultan renounced Oran and would not lend help to the Moriscos. The peace between Aragon and the Ottoman Empire would be permanent, and would allow both empires to abandon the Mediterranean, which was left in the hands of the Barbary pirates, periodically checked by the European navies.

	date = { day = 0 month = january year = 1577 }
	offset = 300
	deathdate = { day = 0 month = january year = 1581 }

	action_a = {
		name = "ACTIONNAME285141A" #Sign the truces
		command = { type = stability value = 1 }
		command = { type = relation which = TUR value = 100 }
		command = { type = cedeprovince which = TUR value = 736 } #Aures
		command = { type = cedeprovince which = TUR value = 737 } #Al-Djazair
		command = { type = cedeprovince which = TUR value = 738 } #Kabilia
		command = { type = cedeprovince which = TUR value = 739 } #Tunisia
		command = { type = cedeprovince which = TUR value = 740 } #Tripolitania
		command = { type = trigger which = 301044 } #TUR: Peace with Aragon
	}
	action_b = {
		name = "ACTIONNAME285141B" #Holy war
		command = { type = stability value = -1 }
		command = { type = relation which = TUR value = -50 }
		command = { type = treasury value = -50 }
	}
}
#End of North African policy of Aragon Sequence
#-----------------------------------------------------------------------------------------------

#(1540-1560) Tristn de Luna y Arellano's Expedition
event = {
	id = 111063
	trigger = {
		event = 7149 #ARG: Mediterranean or Atlantic
	}
	random = no
	country = ARG
	name = "EVENTNAME111063" #Tristn de Luna y Arellano's Expedition
	desc = "EVENTHIST111063"
	#-#Born in Aragon in 1519, Tristn de Luna y Arellano was captivated by stories of the New World and longed to venture west. In 1559, de Luna y Arellano set out to found an Aragonese settlement in Florida.

	date = { day = 1 month = january year = 1540 }
	offset = 10
	deathdate = { day = 1 month = january year = 1560 }

	action_a = {
		name = "ACTIONNAME111063A" #Let's go for it
		command = { type = naval value = 100 }
		command = { type = domestic which = land value = -1 }
		command = { type = wakeleader which = 010826 } #T. de Luna y Arellano (ARG)
		command = { type = warships which = -1 value = 2 }
		command = { type = colonists value = 2 }
		command = { type = treasury value = -100 }
	}
	action_b = {
		name = "ACTIONNAME111063B" #We lack the money
		command = { type = vp value = -5 }
	}
}

#(1596-1604) El Palau de la Generalitat (not so fantasy event)
event = {
	id = 7140
	random = no
	country = ARG
	name = "EVENTNAME7140" #El Palau de la Generalitat
	desc = "EVENTHIST7140"
	#-#In 1596 the Generalitat (the permanent delegation of the Catalan Corts) decided to enlarge his old gothic offices in Barcelona with a new building in a more modern italian-like style. The decision was not only practical but also with the aim of boosting the prestige of the institution.

	date = { day = 1 month = march year = 1596 }
	offset = 1200
	deathdate = { day = 1 month = september year = 1604 }

	action_a = {
		name = "ACTIONNAME7140A" #Aye, let's build a new palace
		command = { type = infra value = 50 }
		command = { type = provincetax which = 429 value = 1 } #Catalonia
		command = { type = treasury value = -100 }
	}
	action_b = {
		name = "ACTIONNAME7140B" #Bah, the old building is enough for them
		command = { type = infra value = -25 }
	}
}

#(1620-1630) Joan de Serrallonga (not so fantasy event)
event = {
	id = 7150
	random = no
	country = ARG
	name = "EVENTNAME7150" #Joan de Serrallonga
	desc = "EVENTHIST7150"
	#-#During the 17th century, due to the difficulties in the rural life, gangs of bandits abounded in the interior of Catalonia and Valencia, specially in mountanious and densely forested zones. They were usually divided in two rival groups: the 'nyerros' and the 'cadells' according to their political ideas. The most famous of these bandits, origin of many legends, was Joan de Serrallonga, and his faithful fiance Joana Torrelles. These gangs were sometimes very dangerous and caused havoc to the economy and trade of the country.

	date = { day = 1 month = march year = 1620 }
	offset = 1800
	deathdate = { day = 1 month = march year = 1630 }

	action_a = {
		name = "ACTIONNAME7150A" #Let's finish with all these problems once and for all!
		command = { type = stability value = -2 }
		command = { type = revolt which = -1 }
		command = { type = revolt which = 429 } #Catalonia
		command = { type = revoltrisk which = 6 value = 6 }
		command = { type = trade value = 100 }
		command = { type = infra value = 100 }
	}
	action_b = {
		name = "ACTIONNAME7150B" #Mmmmhh... we can purchase his services for our own cause
		command = { type = treasury value = -200 }
		command = { type = INF which = 429 value = 4000 } #Catalonia
		command = { type = CAV which = 429 value = 1000 } #Catalonia
		command = { type = manpower value = 5 }
	}
	action_c = {
		name = "ACTIONNAME7150C" #Bah! I don't care those miserable thieves
		command = { type = stability value = -1 }
		command = { type = revoltrisk which = 24 value = 4 }
		command = { type = trade value = -75 }
		command = { type = infra value = -75 }
	}
}

#(1639-1645) The Iberian Revolts
event = {
	id = 111061
	trigger = {
		vassal = { country = SPA country = ARG }
		OR = {
			event = 260161 #POR: War of Acclamation -I-
			event = 260162 #POR: War of Acclamation -II-
			event = 260163 #POR: War of Acclamation -III-
			event = 285295 #SPA: Unrest in Catalonia
		}
	}
	random = no
	country = ARG
	name = "EVENTNAME111061" #The Iberian Revolts
	desc = "EVENTHIST111061"
	#-#We have been outraged by Olivares's demand to sacrifice our ancient rights and privileges for a Spanish empire...

	date = { day = 1 month = january year = 1639 }
	offset = 10
	deathdate = { day = 1 month = january year = 1645 }

	action_a = {
		name = "OK"
		command = { type = breakvassal which = SPA }
		command = { type = relation which = SPA value = -200 }
	}
}

#(1750-1820) Enlightenment Reforms (fantasy event)
event = {
	id = 7152
	trigger = { event = 12082 }
	random = no
	country = ARG
	name = "EVENTNAME7152" #The ideas of the Enlightenment
	desc = "EVENTHIST7152"
	#-#The ideas of the french philosophers are gaining more and more adepts in our lands. Even some ministers think that it would be a good idea to introduce great reforms in our administration.

	date = { day = 1 month = march year = 1750 }
	offset = 1800
	deathdate = { year = 1820 }

	action_a = {
		name = "ACTIONNAME7152A" #Let's introduce the new ideas in the administration
		command = { type = treasury value = -250 }
		command = { type = domestic which = ARISTOCRACY value = -1 }
		command = { type = domestic which = INNOVATIVE value = 1 }
		command = { type = domestic which = SERFDOM value = -2 }
		command = { type = infra value = 500 }
		command = { type = ADM which = 2 value = 24 }
		command = { type = revoltrisk which = 24 value = 5 }
		command = { type = stability value = -1 }
	}
	action_b = {
		name = "ACTIONNAME7152B" #Let's maintain our old good customs
		command = { type = stability value = 1 }
		command = { type = domestic which = ARISTOCRACY value = 1 }
		command = { type = domestic which = INNOVATIVE value = -2 }
		command = { type = ADM which = -6 value = 6 }
	}
}

#-----------------------------------------------------------------------------------------------
#Random Events
#-----------------------------------------------------------------------------------------------

#(1419-1820) Clash with the Cortes
event = {
	id = 111006
	random = yes
	country = ARG
	name = "EVENTNAME111006" #Clash with the Cortes
	desc = "EVENTHIST111006"
	#-#The parliaments of Aragon, Valencia and Catalonia, the Cortes, had strong influence. Among other things they had the right to accept or reject new Kings. From time to time they also demanded concessions from the King.

	action_a = {
		name = "ACTIONNAME111006A" #Concede
		command = { type = stability value = -1 }
		command = { type = domestic which = centralization value = -1 }
	}
	action_b = {
		name = "ACTIONNAME111006B" #Refuse the demands
		command = { type = stability value = 1 }
		command = { type = domestic which = centralization value = 1 }
	}
}

#-----------------------------------------------------------------------------------------------

#First free id: 111064-111065 then 111068
