#####Aragon Major Events#####
#By Joakim 'Greven' Bergqwist   #
#   Thomas 'Besuchov' Johansson #
#   Henrik 'Doomdark' Fåhraeus  #
#################################
#modified by Hive

#The Iberian Wedding#
event = {

	id = 3716
	trigger = {
			exists = CAS
		}
	random = no
	country = ARG
	name = "EVENTNAME3717"
	desc = "EVENTHIST3717"
	style = 1

	date = { day = 1 month = october year = 1469 }
	offset = 30
	deathdate = { day = 30 month = december year = 1491 }

	action_a ={			#Let us bind their Dynasty to ours#
		name = "ACTIONNAME3717A"
		command = { type = dynastic which = CAS }
		command = { type = alliance which = CAS }
		command = { type = relation which = CAS value = 150 }
		command = { type = relation which = POR value = -50 }
		command = { type = land value = 800 }
		command = { type = stability value = 2 }
		command = { type = casusbelli which = GRA value = 300 }
		command = { type = domestic which = ARISTOCRACY value = -1 }
		command = { type = domestic which = CENTRALIZATION value = 1 }
		command = { type = domestic which = INNOVATIVE value = -1 }
		command = { type = domestic which = MERCANTILISM value = 1 }
		command = { type = domestic which = OFFENSIVE value = 1 }
		command = { type = trigger which = 3717 }
	}

	action_b ={			#No let us marry a local talent instead#
		name = "ACTIONNAME3717B"
		command = { type = relation which = CAS value = -150 }
		command = { type = relation which = POR value = 50 }
		command = { type = stability value = -3 }
		command = { type = fortress which = -1 value = 1 }
		command = { type = fortress which = -1 value = 1 }
		command = { type = fortress which = -1 value = 1 }
		command = { type = merchants value = 5 }
		command = { type = trade value = 800 }
		command = { type = domestic which = ARISTOCRACY value = 2 }
		command = { type = domestic which = CENTRALIZATION value = -1 }
		command = { type = domestic which = INNOVATIVE value = 1 }
		command = { type = domestic which = MERCANTILISM value = -2 }
		command = { type = domestic which = OFFENSIVE value = -1 }
	}
}

#Viva España#
event = {

	id = 3554
	trigger = {
		owned = {
			province = 436
			data = -1
		}
		NOT = {
			exists = SPA
			exists = CAS
		}
	}
	random = no
	country = ARG
	name = "EVENTNAME3554"
	desc = "EVENTHIST3554"
	style = 2

	date = { day = 24  month = january year = 1516 } # The day that Carlos I inherits the throne.
	offset = 30
	deathdate = { day = 24  month = january year = 1560 }

	action_a ={				#Let us claim the name Kingdom of Spain#
		name = "ACTIONNAME3554A"
		command = { type = country which = SPA }
		command = { type = addcore which = 428 }
		command = { type = addcore which = 431 }
		command = { type = addcore which = 432 }
		command = { type = addcore which = 433 }
		command = { type = addcore which = 435 }
		command = { type = addcore which = 436 }
		command = { type = addcore which = 438 }
		command = { type = addcore which = 439 }
		command = { type = addcore which = 440 }
		command = { type = addcore which = 443 }
		command = { type = addcore which = 444 }
		command = { type = addcore which = 445 }
		command = { type = addcore which = 817 }
	}

	action_b ={				#Let us keep the name Kingdom of Aragon instead#
		name = "ACTIONNAME3554B"
		command = { type = stability value = -2 }
		command = { type = relation which = PAP value = -100 }
		command = { type = relation which = GEN value = 100 }
		command = { type = relation which = VEN value = 100 }
		command = { type = relation which = POR value = -100 }
		command = { type = domestic which = CENTRALIZATION value = -5 }
		command = { type = desertion which = -1 value = 5000 }
	}
}

# The Ascendancy of Carlos I #
event = {
	id = 3850
	trigger = {
		event = 3717
		exists = CAS
		owned = {
			province = 436
			data = -1
		}
		NOT = {
			exists = SPA
			event = 3849
		}
	}
	random = no
	country = ARG
	name = "EVENTNAME3850"
	desc = "EVENTHIST3850"
	style = 2

	date = { day = 24  month = january year = 1516 } # The day that Carlos I inherits the throne.
	offset = 30
	deathdate = { day = 24  month = april year = 1516 }

	
	action_a ={				#Let us claim the name Kingdom of Spain#
		name = "ACTIONNAME3554A"
		command = { type = country which = SPA }
		command = { type = addcore which = 428 }
		command = { type = addcore which = 431 }
		command = { type = addcore which = 432 }
		command = { type = addcore which = 433 }
		command = { type = addcore which = 435 }
		command = { type = addcore which = 436 }
		command = { type = addcore which = 438 }
		command = { type = addcore which = 439 }
		command = { type = addcore which = 440 }
		command = { type = addcore which = 443 }
		command = { type = addcore which = 444 }
		command = { type = addcore which = 445 }
		command = { type = addcore which = 817 }
		command = { type = trigger which = 15013 }
	}

	action_b ={				#Let us keep the name Kingdom of Aragon instead#
		name = "ACTIONNAME3554B"
		command = { type = stability value = -2 }
		command = { type = relation which = PAP value = -100 }
		command = { type = relation which = GEN value = 100 }
		command = { type = relation which = VEN value = 100 }
		command = { type = relation which = POR value = -100 }
		command = { type = domestic which = CENTRALIZATION value = -5 }
		command = { type = desertion which = -1 value = 5000 }
	}
}

# The Ascendancy of Carlos I #
event = {
	id = 15014
	random = no
	country = ARG
	name = "EVENTNAME3850"
	desc = "EVENTHIST3850"
	style = 2

	action_a = { #The Kingdoms are one!#
		name = "ACTIONNAME3850A"
		command = { type = trigger which = 3848 } # Spain inherits Aragon
	}
	action_b = { #No! Let us elect our own king instead.#
		name = "ACTIONNAME3850C"
		command = { type = stability value = -3 }
		command = { type = relation which = SPA value = -150 }
		command = { type = relation which = HAB value = -150 }
		command = { type = relation which = FRA value = 50 }
	} 
}

#The Aragon Inheritance of Napoli#
event = {

	id = 3555				#Triggered by NAP3660#
	random = no
	country = ARG
	name = "EVENTNAME3555"
	desc = "EVENTHIST3555"
	style = 1

	action_a ={				#Rule it as an independent Kingdom#
		name = "ACTIONNAME3555A"
		command = { type = vassal which = NAP }
		command = { type = stability value = 2 }
		command = { type = relation which = PAP value = 100 }
		command = { type = relation which = TOS value = 100 }
		command = { type = relation which = VEN value = 100 }
		command = { type = relation which = GEN value = 100 }
		command = { type = relation which = FRA value = -50 }
		command = { type = relation which = PRO value = -100 }
	}

	action_b ={				#Rule it as an autonomous part of Aragon#
		name = "ACTIONNAME3555B"
		command = { type = addcore which = 393 }
		command = { type = addcore which = 394 }
		command = { type = inherit which = NAP }
		command = { type = stability value = -2 }
		command = { type = relation which = PAP value = -100 }
		command = { type = relation which = TOS value = -100 }
		command = { type = relation which = VEN value = -100 }
		command = { type = relation which = GEN value = -100 }
		command = { type = relation which = FRA value = -150 }
		command = { type = relation which = PRO value = -200 }
	}
}

# Events by Hive

#The Aragon Inheritance of Sicily#
event = {

	id = 15467				#Triggered by SIC15466#
	random = no
	country = ARG
	name = "The Aragon Inheritance of Sicily"
	desc = "A conflict between the Hohenstaufen house and the Papacy in 1266 led to Sicily's conquest by Charles I, duke of Anjou. But the Sicilians were unhappy with French officialdom and taxation, and offered the throne to Peter III of Aragon, who gladly accepted and thus invaded Sicily in 1282. These events are known as the Sicilian Vespers. Sicily was ruled as an independent branch of the Aragon dynasty untill 1409, when the Sicilian branch became extinct. Sicily was then returned to the main Aragonese line."
	style = 1

	action_a ={
		name = "Rule it as an autonomous part of Aragon"
		command = { type = addcore which = 395 }
		command = { type = addcore which = 396 }
		command = { type = addcore which = 819 }
		command = { type = inherit which = SIC }
		command = { type = stability value = 1 }
	}

	action_b ={
		name = "Rule it as an independent Kingdom"
		command = { type = vassal which = SIC }
		command = { type = stability value = 3 }
	}
}