#####Castillian Major Events#####
#By Joakim 'Greven' Bergqwist   #
#   Thomas 'Besuchov' Johansson #
#   Henrik 'Doomdark' Fåhraeus  #
#################################

#Viva España#
event = {

	id = 3554
	trigger = {
		OR = {
			vassal = { country = ARG country = CAS }
			union = { country = ARG country = CAS }
			AND = {
				owned = { province = 435 data = -1 }
				owned = { province = 436 data = -1 }
				owned = { province = 439 data = -1 }
				NOT = { exists = CAS }
				NOT = { event = 3556 }
			}
		}
	}
	random = no
	country = ARG
	name = "EVENTNAME3554"
	desc = "EVENTHIST3554"

	date = { day = 1 month = june year = 1476 }
	offset = 30
	deathdate = { day = 1 month = january year = 1820 }

	action_a ={				#Let us claim the name Kingdom of Spain#
		name = "ACTIONNAME3554A"
		command = { type = add_countryculture which = basque }
		command = { type = addcore_national which = 428 } # Castile and Navarra
		command = { type = addcore_national which = 431 }
		command = { type = addcore_national which = 432 }
		command = { type = addcore_national which = 433 }
		command = { type = addcore_national which = 435 }
		command = { type = addcore_national which = 436 }
		command = { type = addcore_national which = 438 }
		command = { type = addcore_national which = 439 }
		command = { type = addcore_national which = 440 }
		command = { type = addcore_national which = 443 }
		command = { type = addcore_national which = 444 }
		command = { type = addcore_national which = 445 }
		command = { type = addcore_national which = 817 }
		command = { type = inherit which = CAS }
		command = { type = country which = SPA }
		command = { type = stability value = 1 }
	}

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

#The Aragon Inheritance of Napoli#
event = {

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

	action_a ={				#Rule it as an independent Kingdom#
		name = "ACTIONNAME3555A"
		command = { type = vassal which = NAP }
		command = { type = alliance which = NAP }
		command = { type = addcore_claim which = 393 } # Napoli and Apulia
		command = { type = addcore_claim which = 394 }
		command = { type = relation which = PAP value = 100 }
		command = { type = relation which = FLO 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 }
		command = { type = stability value = 2 }
	}

	action_b ={				#Rule it as an autonomous part of Aragon#
		name = "ACTIONNAME3555B"
		command = { type = inherit which = NAP }
		command = { type = addcore_national which = 393 } # Napoli and Apulia
		command = { type = addcore_national which = 394 }
		command = { type = relation which = PAP value = -100 }
		command = { type = relation which = FLO 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 }
		command = { type = stability value = -2 }
	}
}

# Removed 3850 'The Ascendancy of Carlos I'

