#####Castillian Major Events#####
#By Joakim 'Greven' Bergqwist   #
#   Thomas 'Besuchov' Johansson #
#   Henrik 'Doomdark' Fhraeus  #
#################################
#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 Espaa#
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 = 16 month = january year = 1479 }
	offset = 30
	deathdate = { day = 29 month = december year = 1491 }

	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 = addcore which = 1394 }
		command = { type = flagname which = "" }
		command = { type = add_countryculture   which = hawaiian } 
		command = { type = add_countryculture   which = basque } 
	}

	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
                OR = {
		       owned = {
		             	province = 436
			        data = -1
		       }
		       ai = no
                }
		NOT = {
			exists = SPA
			event = 3850
		}
	}
	random = no
	country = CAS
	name = "EVENTNAME3849"
	desc = "EVENTHIST3849"
	style = 2

	date = { day = 16 month = january year = 1479 }
	offset = 30
	deathdate = { day = 29 month = december year = 1491 }

	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 = addcore which = 1394 }
		command = { type = flagname which = "" }
		command = { type = add_countryculture   which = hawaiian } 
		command = { type = add_countryculture   which = basque } 
		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 = religiousrevolt which = 1948 }
		command = { type = provincereligion which = 438 value = catholic }
		command = { type = provincereligion which = 443 value = catholic }
		command = { type = provincereligion which = 1948 value = catholic }
		command = { type = provinceculture which = 1948 value = iberian }
		command = { type = provinceculture which = 438 value = iberian }
		command = { type = provinceculture which = 443 value = iberian }
		command = { type = stability value = -1 }
		command = { type = trigger which = 3652 }
		command = { type = trigger which = 3657 }
		command = { type = sleepevent which = 78793588 }
	}

	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 = provinceculture which = 438 value = iberian }
		command = { type = provinceculture which = 443 value = iberian }
		command = { type = provincereligion which = 444 value = catholic }
		command = { type = provincereligion which = 445 value = catholic }
		command = { type = provincereligion which = 1948 value = catholic }
		command = { type = provinceculture which = 1948 value = iberian }
		command = { type = religiousrevolt which = 438 }
		command = { type = religiousrevolt which = 443 }
		command = { type = religiousrevolt which = 444 }
		command = { type = religiousrevolt which = 445 }
 		command = { type = religiousrevolt which = 1948 }
		command = { type = stability value = -3 }
		command = { type = trigger which = 3729 }
		command = { type = trigger which = 3730 }
		command = { type = sleepevent which = 78793588 }
	}
}

#The Trade Center of Sevilla#
event = {

	id = 3153
	trigger = {
			owned = { province = 443 data = -1 }
			NOT = { event = 78793592 }
	}
	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 }
		command = { type = inflation value = -5 }
		command = { type = sleepevent which = 78793592 }
	}
}

event = {

	id = 8733804
	trigger = { ai = yes }
	random = no
	country = CAS
	name = "AI_EVENT"
	desc = "AI_DESC"
	style = 2

	date = { day = 1 month = january year = 1402 }
	offset = 500
	deathdate = { day = 1 month = january year = 1486 }

	action_a ={
		name = "Okay"
                command = { type = ai   which = spain_1402-1486.ai }
	}
}

event = {

	id = 78793731
	trigger = { ai = yes }
	random = no
	country = CAS
	name = "AI_EVENT"
	desc = "AI_DESC"
	style = 2

	date = { day = 1 month = january year = 1486 }
	offset = 500
	deathdate = { day = 1 month = january year = 1521 }

	action_a ={
		name = "Okay"
                command = { type = ai   which = spain_1486-1521.ai }
	}
}

event = {

	id = 8733805
	trigger = { ai = yes }
	random = no
	country = CAS
	name = "AI_EVENT"
	desc = "AI_DESC"
	style = 2

	date = { day = 1 month = january year = 1521 }
	offset = 500
	deathdate = { day = 1 month = january year = 1713 }

	action_a ={
		name = "Okay"
                command = { type = ai   which = spain_1521-1713.ai }
	}
}

event = {

	id = 8733806
	trigger = { ai = yes }
	random = no
	country = CAS
	name = "AI_EVENT"
	desc = "AI_DESC"
	style = 2

	date = { day = 1 month = january year = 1713 }
	offset = 500
	deathdate = { day = 1 month = january year = 1860 }

	action_a ={
		name = "Okay"
                command = { type = ai   which = spain_1713-1806.ai }
	}
}

event = {

	id = 8733807
	trigger = { ai = yes }
	random = no
	country = CAS
	name = "AI_EVENT"
	desc = "AI_DESC"
	style = 2

	date = { day = 1 month = january year = 1806 }
	offset = 500
	deathdate = { day = 1 month = january year = 1821 }

	action_a ={
		name = "Okay"
                command = { type = ai   which = spain_1806-1821.ai }
	}
}