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

#Civil War in Castile#
event = {
	id = 3557	
	random = no
	country = CAS
	name = "EVENTNAME3557"
	desc = "EVENTHIST3557"
	style = 1

	date = { day = 1 month = june year = 1438 }
	offset = 150

	action_a = { # Support Álvaro de Luna
		name = "ACTIONNAME3557A"
		command = { type = revolt which = -1 }
		command = { type = revolt which = -1 }
		command = { type = revolt which = -1 }
		command = { type = revoltrisk which = 48 value = 5 }
		command = { type = stability value = 1 }
		command = { type = DIP which = 2 value = 120 }
		command = { type = ADM which = 2 value = 120 }
		command = { type = MIL which = 2 value = 120 }
	}

	action_b = { # Support the sons of Ferdinand
		name = "ACTIONNAME3557B"
		command = { type = stability value = -1 }
	}
}

#The Iberian Wedding#
event = {

	id = 3717
	random = no
	country = CAS
	name = "EVENTNAME3716"
	desc = "EVENTHIST3716"
	style = 1

	action_a ={
		name = "ACTIONNAME5250A"
		command = { type = alliance which = ARG }
		command = { type = relation which = ARG value = 150 }
		command = { type = relation which = POR value = -50 }
		command = { type = land value = 800 }
		command = { type = stability value = 2 }
		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 }
	}
}

#Viva España#
event = {

	id = 3556
	trigger = {
		owned = {
			province = 436
			data = -1
		}
		NOT = {
			exists = SPA
			exists = ARG
		}
	}
	random = no
	country = CAS
	name = "EVENTNAME3556"
	desc = "EVENTHIST3556"
	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 = "ACTIONNAME3556A"
		command = { type = country which = SPA }
		command = { type = addcore which = 426 }
		command = { type = addcore which = 427 }
		command = { type = addcore which = 428 }
		command = { type = addcore which = 429 }
		command = { type = addcore which = 430 }
		command = { type = addcore which = 437 }
		command = { type = addcore which = 821 }
	}

	action_b ={				#Let us keep the name Kingdom of Castille instead#
		name = "ACTIONNAME3556B"
		command = { type = stability value = -3 }
		command = { type = relation which = PAP value = -100 }
		command = { type = relation which = NAV value = 100 }
		command = { type = relation which = PRO 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 = 3849
	trigger = {
		event = 3717
		exists = ARG
		owned = {
			province = 436
			data = -1
		}
		NOT = {
			exists = SPA
			event = 3850
		}
	}
	random = no
	country = CAS
	name = "EVENTNAME3849"
	desc = "EVENTHIST3849"
	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 = "ACTIONNAME3556A"
		command = { type = country which = SPA }
		command = { type = addcore which = 426 }
		command = { type = addcore which = 427 }
		command = { type = addcore which = 428 }
		command = { type = addcore which = 429 }
		command = { type = addcore which = 430 }
		command = { type = addcore which = 437 }
		command = { type = addcore which = 821 }
		command = { type = trigger which = 15014 }
	}

	action_b ={				#Let us keep the name Kingdom of Castille instead#
		name = "ACTIONNAME3556B"
		command = { type = stability value = -3 }
		command = { type = relation which = PAP value = -100 }
		command = { type = relation which = NAV value = 100 }
		command = { type = relation which = PRO 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 = 15013
	random = no
	country = CAS
	name = "EVENTNAME3849"
	desc = "EVENTHIST3849"
	style = 2

	action_a = { #The Kingdoms are one!#
		name = "ACTIONNAME3849A"
		command = { type = trigger which = 3848 } # Spain inherits Castille
	}
	action_b ={ #No! Let us elect our own king instead.#
		name = "ACTIONNAME3849C"
		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 }
	} 
}

#Torquemada and the Expulsion of the Moors#
event = {

	id = 3150
	random = no
	country = CAS
	name = "EVENTNAME3150"
	desc = "EVENTHIST3150"
	style = 1

	date = { day = 1 month = january year = 1493 }
	offset = 30
	deathdate = { day = 1 month = january year = 1499 }

	action_a ={		#Let us be rid of those we cannot trust#
		name = "ACTIONNAME3150A"
		command = { type = domestic which = INNOVATIVE value = -3 }
		command = { type = population which = 444 value = -15000 }
		command = { type = population which = 439 value = -15000 }
		command = { type = religiousrevolt which = 438 }
		command = { type = religiousrevolt which = 443 }
		command = { type = provincereligion which = 438 value = catholic }
		command = { type = provincereligion which = 443 value = catholic }
		command = { type = stability value = -1 }
		command = { type = trigger which = 3654 }
		command = { type = trigger which = 3652 }
		command = { type = trigger which = 3657 }
	}

	action_b ={		#Let us make a clean sweep for the Glory of God#
		name = "ACTIONNAME3150B"
		command = { type = domestic which = INNOVATIVE value = -4 }
		command = { type = population which = 439 value = -20000 }
		command = { type = population which = 444 value = -20000 }
		command = { type = provincereligion which = 438 value = catholic }
		command = { type = provincereligion which = 443 value = catholic }
		command = { type = provincereligion which = 444 value = catholic }
		command = { type = provincereligion which = 445 value = catholic }
		command = { type = religiousrevolt which = 438 }
		command = { type = religiousrevolt which = 443 }
		command = { type = religiousrevolt which = 444 }
		command = { type = religiousrevolt which = 445 }
		command = { type = stability value = -3 }
		command = { type = trigger which = 3728 }
		command = { type = trigger which = 3729 }
		command = { type = trigger which = 3730 }
	}
}

#The Trade Center of Sevilla#
event = {

	id = 3153
	trigger = {
			owned = { province = 443 data = -1 }
	}
	random = no
	country = CAS
	name = "EVENTNAME3153"
	desc = "EVENTHIST3153"
	style = 2

	date = { day = 1 month = january year = 1501 }
	offset = 30

	action_a ={		#We now have control of our Oversea Trade#
		name = "ACTIONNAME3153A"
		command = { type = cot which = 443 }
		command = { type = gainbuilding which = 443 value = shipyard }
		command = { type = merchants value = 6 }
		command = { type = treasury value = 200 }
	}
}