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




#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 = addcore which = 934 }
		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 }
	}
}



#########################
####  Aragon Events  ####
####    by Havard    ####
#########################

# The death of Benedicto XIII (1423) #
# (Flavor event)                     #
event = {
	id = 7112
	random = no
	country = ARG
	name = "EVENTNAME7112"
	desc = "EVENTHIST7112"
	style = 1

	date = { day = 1 month = january year = 1423 }
	offset = 300
        deathdate = { day = 1 month = december year = 1423 }

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


# Juan of Aragon inherits Navarra (1425) #
event = {
	id = 7113
	random = no
	country = ARG
	name = "EVENTNAME7113"
	desc = "EVENTHIST7113"
	style = 1

	date = { day = 1 month = january year = 1425 }

	action_a = { # #
		name = "ACTIONNAME5848A"
		command = { type = alliance which = NAV }
		command = { type = relation which = NAV value = 400 }
	}
}

# The will of king Alfons (1458)                #
# If Aragon own Napoli, or have them as vassals #
event = {
	id = 7114
	trigger = {
		OR = {
			vassal =  { country = ARG country = NAP }
			owned = { province = 393 data = -1 }
		}
	}
	random = no
	country = ARG
	name = "EVENTNAME7114"
	desc = "EVENTHIST7114"
	style = 1

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

	action_a = { # Honor the will #
		name = "ACTIONNAME7114A"
		command = { type = independence which = NAP } #If they are annexed#
		command = { type = stability value = 3 }
		command = { type = relation which = NAP value = 400 } # If Naples already independent 
		command = { type = trigger which = 7115 } 
		command = { type = trigger which = 7118 }
	}
	action_b = { # Make Fernando swear vassalage to Juan #
		name = "ACTIONNAME7114B"
		command = { type = independence which = NAP } #If they are annexed#
		command = { type = vassal which = NAP }# If Naples already independent#
		command = { type = relation which = NAP value = 400 } # If Naples already independent# 
		command = { type = trigger which = 7115 } 
	}
action_c = { 
		name = "Нарушить последную волю короля"
		command = { type = stability value = -3 }
                command = { type = revolt which = 394}
		command = { type = revolt which = 934}
		command = { type = revolt which = 393}
command = { type = revolt which = 1407}
   command = { type = revolt which = 394}
		command = { type = revolt which = 934}
		command = { type = revolt which = 393}
command = { type = revolt which = 1407}
command = { type = revolt which = 1990}
command = { type = revolt which = 1990}
command = { type = revolt which = 1990}
	}
}

# The will of king Alfons (1458)   continued             #
event = {
	id = 7115
	random = no
	country = ARG
	name = "EVENTNAME7115"
	desc = "EVENTHIST7115"
	style = 1

	action_a = { # #
		name = "ACTIONNAME5251A"
		command = { type = secedeprovince which = NAP value = 394 } #If ARG have Apulia# 
command = { type = secedeprovince which = NAP value = 1407 } #If ARG have Apulia# 
command = { type = secedeprovince which = NAP value = 1990 }
		command = { type = alliance which = NAP } 
	}
}

# The two crowns (1458) #
event = {
	id = 7116
	random = no
	country = ARG
	name = "EVENTNAME7116"
	desc = "EVENTHIST7116"
	style = 1

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

	action_a = { # #
		name = "ACTIONNAME5251A"
		command = { type = vassal which = NAV }
		command = { type = relation which = NAV value = 200 }
	}
}



#The League of Cambrai#
event = {

	id = 17019
	trigger = { 
			event = 17017 #VEN seeing a chance
			exists = VEN 
		}
	random = no
	country = ARG
	name = "EVENTNAME3107"
	desc = "EVENTHIST17019"
	style = 2

	date = { day = 1 month = october year = 1503 }
	offset = 2070
	deathdate = { day = 1 month = april year = 1509 }

	action_a ={
		name = "ACTIONNAME3107A"	#Express Support#
		command = { type = casusbelli which = VEN value = 72 }
		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 = TOS value = 150 }
		command = { type = relation which = FRA value = 150 }
	}

	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 = TOS 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 = TOS value = -150 }
		command = { type = relation which = FRA value = -150 }
	}

}

#Holy League of 1510 Aragon Version
event = {

	id = 17026
	trigger = { 
		event = 17024
	}
	random = no
	country = ARG
	name = "EVENTNAME17024"
	desc = "EVENTHIST17025"
	style = 2

	date = { day = 1 month = july 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"	#Ignore#
		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 }
	}
}

### Anti-French Coalition (Aragon Event) ###

event = {
	id = 12144
	trigger = { event = 12022 }
	random = no
	country = ARG
	name = "EVENTNAME12143"
	desc = "EVENTHIST12143"
	style = 1
	date = { day = 1 month = january year = 1496 }
	offset = 30
	action_a = {
		name = "ACTIONNAME12143A"
		command = { type = alliance which = HAB }
		command = { type = alliance which = VEN }
		command = { type = casusbelli which = FRA value = 120 }
                command = { type = breakdynastic which = FRA }
}
	action_b = {
		name = "ACTIONNAME12143B"
		command = { type = stability value = -1 }
}
}

###
### Events for the Kingdom of Aragon by Marc Figueras and lozanof.
### With very valuable corrections by LP2le_retour and Cat Lord.
### Many thanks to them.
###

# Imports of foreign clothes forbidden
event = {
	id = 7128
	random = no
	country = ARG
	name = "EVENTNAME7128"
	desc = "EVENTHIST7128"
	style = 1
	date = {day = 1 month = march year = 1422}
	offset = 300
	action_a = {
		name = "ACTIONNAME7128A"
		command = { type = domestic which = mercantilism value = 1 }
		command = { type = trade value = -200}
		}
	action_b = {
		name = "ACTIONNAME7128B"
		command = { type = stability value = -1 }
		command = { type = trade value = 200}
		}
}

# Expulsion of italian merchants
event = {
	id = 7129
	random = no
	country = ARG
	name = "EVENTNAME7129"
	desc = "EVENTHIST7129"
	style = 1
	date = {day = 1 month = march year = 1447}
	offset = 300
	action_a = {
		name = "ACTIONNAME7129A"
		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"
		command = { type = stability value = -1}
		command = { type = revolt which = -1}
		command = { type = treasury value = 50}
		command = { type = merchants value = 2}
		}
}

# Revolta dels Forans (flavour)
event = {
	id = 7130
	random = no
	country = ARG
	name = "EVENTNAME7130"
	desc = "EVENTHIST7130"
	style = 1
	date = {day = 1 month = march year = 1450}
	offset = 120
	action_a = {
		name = "ACTIONNAME7130A"
		command = { type = revoltrisk which = 24 value = 5} #Crook
		command = { type = revolt which = 821 } #Crook
		command = { type = population which = 821 value = -200}
		}
}

# 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"
	desc = "EVENTHIST7131"
	style = 1
	date = {day = 1 month = march year = 1453}
	offset = 90

	action_a = {
		name = "ACTIONNAME7131A"
		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"
		command = { type = treasury value = 150}
		command = { type = trade value = 100}
		command = { type = stability value = -2}
		command = { type = revolt which = 426 }
		command = { type = revolt which = 429 }
		command = { type = revolt which = 427 }
command = { type = revolt which = 1410 }
		command = { type = manpower value = 5 }
		command = { type = domestic which = serfdom value = 1 }
		command = { type = sleepevent which = 7132 }
		}
}

# The Interlocutory Sentence
event = {
	id = 7132
	trigger = { event = 7131 }
	random = no
	country = ARG
	name = "EVENTNAME7132"
	desc = "EVENTHIST7132"
	style = 1
	date = {day = 1 month = march year = 1454}
	offset = 400
	deathdate = {day = 1 month = september year = 1458}

	action_a = {
		name = "ACTIONNAME7132A"
		command = { type = domestic which = serfdom value = -2}
		command = { type = stability value = -3}
		}
	action_b = {
		name = "ACTIONNAME7132B"
		command = { type = treasury value = 50}
		command = { type = revolt which = -1}
		command = { type = stability value = -2}
		command = { type = manpower value = 3}
		}
}


# 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 = 421 data = FRA } }

          }
	name = "EVENTNAME7133"
	desc = "EVENTHIST7133"
	style = 1
	date = {day = 1 month = june year = 1460}
	offset = 90
	deathdate = {day = 1 month = september year = 1461}

	action_a = {
		name = "ACTIONNAME7133A"
		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"
		command = { type = sleepevent which = 7134}
		command = { type = trigger which = 7117}
		}
}

# Juana Enrнquez
event = {
	id = 7134
	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 = 421 data = FRA } 
		}
          }
	name = "EVENTNAME7134"
	desc = "EVENTHIST7134"
	style = 1
	date = { day = 1 month = march year = 1462 }
	offset = 210

	action_a = {
		name = "ACTIONNAME7134A"
		command = { type = trigger which = 7117 }
		}
	action_b = {
		name = "ACTIONNAME7134B"
		command = { type = domestic which = aristocracy value = 1 }
		command = { type = stability value = -3 }
		command = { type = revoltrisk value = 8 }
		command = { type = treasury value = -300 }
		}
}


###
### The Civil War (abridg'd)
###

### The begginning of the war
event = {
	id = 7117
	random = no
	country = ARG
	name = "EVENTNAME7117"
	desc = "EVENTHIST7117"
	style = 1

	action_a = {
		name = "ACTIONNAME7117A"
		command = { type = revolt which = -1}
		command = { type = revolt which = 437}
		command = { type = revolt which = 429}
		command = { type = revolt which = 427}
command = { type = revolt which = 1410 }
                command = { type = revolt which = 430 }
		command = { type = desertion which = -1 value = 2000}
		command = { type = secedeprovince which = FRA value = 426}
		command = { type = INF which = 430 value = 10000}
		command = { type = CAV which = 430 value = 6000}
		command = { type = relation which = FRA value = 100}
		command = { type = treasury value = 150}
		command = { type = revoltrisk value = 10}
		command = { type = stability value = -2}
		command = { type = trigger which = 12145 }
		}
	action_b = {
		name = "ACTIONNAME7117B"
		command = { type = revolt which = -1 }
		command = { type = revolt which = -1 }
		command = { type = revolt which = 429 }
		command = { type = revolt which = 427 }
		command = { type = revolt which = 437 }
                command = { type = revolt which = 430}
command = { type = revolt which = 1410 }
		command = { type = desertion which = -1 value = 2000 }
		command = { type = revoltrisk value = 8 }
		command = { type = stability value = -2 }
		command = { type = sleepevent which = 7136 }
		command = { type = sleepevent which = 7137 }
		command = { type = sleepevent which = 12146 }
		}
}

# Kings, kings and still more kings
event = {
	id = 7135
	trigger = { event = 7134 }
	random = no
	country = ARG
	name = "EVENTNAME7135"
	desc = "EVENTHIST7135"
	style = 1
	date = {day = 1 month = september year = 1464}
	offset = 120
	action_a = {
		name = "ACTIONNAME7135A"
		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"
		command = { type = domestic which = aristocracy value = 1}
		command = { type = domestic which = serfdom value = 1}
		command = { type = treasury value = -200}
		}
}

# The Treaty of Barcelona (for ARG)
event = {
	id = 7136
	trigger = { 

                NOT = { event = 7137 } #The treaty of Barcelona (for SPA)
          }
	random = no
	country = ARG
	name = "EVENTNAME7136"
	desc = "EVENTHIST7136"
	style = 1
	date = {day = 1 month = march year = 1493}
	offset = 120
	deathdate = {day = 1 month = march year = 1512}
	action_a = {
		name = "ACTIONNAME7136A"
		command = { type = treasury value = -300}
		command = { type = stability value = 1 }
		command = { type = trigger which = 12146 }
		}
	action_b = {
		name = "ACTIONNAME7136B"
		command = { type = stability value = -2}
		}
}

# France refuses (for ARG)
event = {
	id = 7138
	random = no
	country = ARG
	name = "EVENTNAME7138"
	desc = "EVENTHIST7138"
	style = 1
	action_a = {
		name = "ACTIONNAME7138A" 
		
		command = { type = casusbelli which = FRA value = 36} 
		} 
}

# El Palau de la Generalitat (not so fantasy event)
event = {
	id = 7140
	random = no
	country = ARG
	name = "EVENTNAME7140"
	desc = "EVENTHIST7140"
	style = 2
	date = {day = 1 month = march year = 1596}
	offset = 1200
	deathdate = {day = 1 month = september year = 1604}
	action_a = {
		name = "ACTIONNAME7140A"
		command = { type = infra value = 50}
		command = { type = provincetax which = 429 value = 1}
		command = { type = treasury value = -100}
		}
	action_b = {
		name = "ACTIONNAME7140B"
		command = { type = infra value = -25}
		}
}


###
### Alternative civil war if FRA doesn't exist
###

### Carles de Viana
event = {
	id = 7141
	trigger = { OR = {
		NOT = {exists = FRA}
           	NOT = {owned = { province = 426 data = -1} }
		}
		NOT = { event = 7133 } #Crook
		war = { country = FRA country = ARG }
		NOT = { OR = { owned = { province = 422 data = FRA }
				owned = { province = 421 data = FRA } } }

}
	random = no
	country = ARG
	name = "EVENTNAME7133"
	desc = "EVENTHIST7133"
	style = 1
	date = {day = 1 month = june year = 1460}
	offset = 90
	deathdate = {day = 1 month = september year = 1461}
	action_a = {
		name = "ACTIONNAME7133A"
		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"
		command = { type = sleepevent which = 7142 }
		command = { type = revolt which = -1}
		command = { type = revolt which = -1}
		command = { type = revolt which = 429}
		command = { type = revolt which = 427}
		command = { type = revolt which = 437}
command = { type = revolt which = 1410 }
		command = { type = desertion which = -1 value = 2000}
		command = { type = revoltrisk value = 9}
		command = { type = stability value = -2}
		}
}

# Juana Enrнquez
event = {
	id = 7142
	trigger = {OR = {
		NOT = { exists = FRA}
		NOT = { owned = { province = 426 data = -1 } }
		}
		NOT = { event = 7134 } #Crook
		war  = { country = FRA country = ARG }
		NOT = { OR = { owned = { province = 422 data = FRA}
			       owned = { province = 421 data = FRA} } }

          }
	random = no
	country = ARG
	name = "EVENTNAME7134"
	desc = "EVENTHIST7134"
	style = 1
	date = {day = 1 month = march year = 1462}
	offset = 210
	action_a = {
		name = "ACTIONNAME7134A"
		command = { type = revolt which = -1}
		command = { type = revolt which = -1}
		command = { type = revolt which = 429}
		command = { type = revolt which = 427}
		command = { type = revolt which = 437}
command = { type = revolt which = 1410 }
		command = { type = desertion which = -1 value = 2000}
		command = { type = revoltrisk value = 9}
		command = { type = stability value = -2}
		}
	action_b = {
		name = "ACTIONNAME7134B"
		command = { type = domestic which = aristocracy value = 1}
		command = { type = stability value = -3}
		command = { type = revoltrisk value = 8}
		command = { type = treasury value = -300}
		}
}

# Kings, kings and still more kings
event = {
	id = 7143
	trigger = { OR = { event = 7141
			event = 7142
			}
}
	random = no
	country = ARG
	name = "EVENTNAME7135"
	desc = "EVENTHIST7135"
	style = 1
	date = {day = 1 month = september year = 1464}
	offset = 120
	action_a = {
		name = "ACTIONNAME7135A"
		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"
		command = { type = domestic which = aristocracy value = 1}
		command = { type = domestic which = serfdom value = 1}
		command = { type = treasury value = -200}
		}
}

# Ausiаs March and the new poetry (ARG owns Valиncia)
event = {
	id = 7148
	trigger = {owned = {province = 437 data = -1}
		NOT = { event = 7144 }
}
	random = no
	country = ARG
	name = "EVENTNAME7144"
	desc = "EVENTHIST7144"
	style = 1
	date = {day = 1 month = february year = 1435}
	offset = 600
	action_a = {
		name = "ACTIONNAME7144A"
		command = { type = infra value = 75}
		}
}

# Ausiаs March and the new poetry (CAT owns Valиncia)
event = {
	id = 7144
	trigger = {owned = {province = 437 data = -1}
		NOT = { event = 7148 }
}
	random = no
	country = CAT
	name = "EVENTNAME7144"
	desc = "EVENTHIST7144"
	style = 1
	date = {day = 1 month = february year = 1435}
	offset = 600
	action_a = {
		name = "ACTIONNAME7144A"
		command = { type = infra value = 75}
		}
}

# Joanot Martorell and the Tirant lo Blanc (ARG owns Valиncia)
event = {
	id = 7145 
	trigger = {owned = {province = 437 data = -1}
		NOT = { event = 7146 }
		NOT = { event = 7147 }
}
	random = no
	country = ARG
	name = "EVENTNAME7145"
	desc = "EVENTNAME7145"
	style = 1
	date = {day = 1 month = february year = 1490}
	offset = 120
	action_a = {
		name = "ACTIONNAME7145A"
		command = { type = stability value = 1}
		command = { type = infra value = 50}
		}
}

# Joanot Martorell and the Tirant lo Blanc (CAT owns Valиncia)
event = {
	id = 7146
	trigger = {owned = {province = 437 data = -1}
		NOT = { event = 7147 }
		NOT = { event = 7145 }
}
	random = no
	country = CAT
	name = "EVENTNAME7145"
	desc = "EVENTHIST7145"
	style = 1
	date = {day = 1 month = february year = 1490}
	offset = 120
	action_a = {
		name = "ACTIONNAME7145A"
		command = { type = stability value = 1}
		command = { type = infra value = 50}
		}
}

# Mediterranean or Atlantic? (fantasy event)
event = {
	id = 7149
	random = no
	country = ARG
	name = "EVENTNAME7149"
	desc = "EVENTHIST7149"
	style = 2
	date = {day = 1 month = march year = 1560 }
	offset = 1200
	action_a = {
		name = "ACTIONNAME7149A"
		command = { type = infra value = 100 }
		command = { type = colonists value = -2 }
		command = { type = galleys which = -1 value = 3 }
		command = { type = relation which = FRA value = 25 }
		command = { type = relation which = SPA value = 25 }
		}
	action_b = {
		name = "ACTIONNAME7149B"
		command = { type = cash value = -250 }
		command = { type = stability value = -2 }
		command = { type = revolt which = 397 }
command = { type = revolt which = 1990 }
		command = { type = revolt which = 395 }
		command = { type = merchants value = -2 }
		command = { type = colonists value = 2 }
		command = { type = conquistador which = -1 }
		command = { type = explorer which = -3 }
command = { type = conquistador which = -1 }
		command = { type = explorer which = -3 }
		command = { type = naval value = 500 }
		command = { type = domestic which = land value = -1 }
		command = { type = provincemanpower which = -1 value = -1 }
		command = { type = provincemanpower which = -1 value = -1 }
		command = { type = relation which = FRA value = -25 }
		command = { type = relation which = SPA value = -25 }
		}
}


# Joan de Serrallonga (not so fantasy event)
event = {
	id = 7150
	random = no
	country = ARG
	name = "EVENTNAME7150"
	desc = "EVENTHIST7150"
	style = 3
	date = {day = 1 month = march year = 1620}
	offset = 1800
	action_a = {
		name = "ACTIONNAME7150A"
		command = { type = stability value = -2}
		command = { type = revolt which = -1}
		command = { type = revolt which = 429}
		command = { type = revoltrisk which = 6 value = 6}
		command = { type = trade value = 100}
		command = { type = infra value = 100}
		}
	action_b = {
		name = "ACTIONNAME7150B"
		command = { type = cash value = -200}
		command = { type = INF which = 429 value = 4000}
		command = { type = CAV which = 429 value = 1000}
		command = { type = manpower value = 5}
		}
	action_c = {
		name = "ACTIONNAME7150C"
		command = { type = stability value = -1}
		command = { type = revoltrisk which = 24 value = 4}
		command = { type = trade value = -75}
		command = { type = infra value = -75}
		}
}



# The Succession of Carlos II in Spain (fantasy event)
event = {
	id = 7151
	random = no
	country = ARG
	trigger = { event = 3173 } #Crook
	name = "EVENTNAME7151"
	desc = "EVENTHIST7151"
	style = 4
	date = {day = 1 month = november year = 1700}
	offset = 10
	deathdate = { day = 1 month = december year = 1700 }
	action_a = {
		name = "ACTIONNAME7151A"
		command = { type = dynastic which = HAB}
		command = { type = alliance which = HAB}
		command = { type = relation which = HAB value = 150}
		command = { type = relation which = FRA value = -150}
		}
	action_b = {
		name = "ACTIONNAME7151B"
		command = { type = relation which = FRA value = -25}
		command = { type = relation which = HAB value = -25}
		}
	action_c = {
		name = "ACTIONNAME7151C"
		command = { type = dynastic which = FRA}
		command = { type = alliance which = FRA}
		command = { type = relation which = FRA value = 150}
		command = { type = relation which = HAB value = -150}
		}
}

# Enlightenment Reforms (fantasy event)
event = {
	id = 7152
	random = no
	country = ARG
	trigger = { event = 12082 } #Crook
	name = "EVENTNAME7152"
	desc = "EVENTHIST7152"
	style = 4
	date = {day = 1 month = march year = 1750}
	offset = 1800
	deathdate = { day = 1 month = january year = 1820 }
	action_a = {
		name = "ACTIONNAME7152A"
		command = { type = cash 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"
		command = { type = stability value = 1}
		command = { type = domestic which = ARISTOCRACY value = 1}
		command = { type = domestic which = INNOVATIVE value = -2}
		command = { type = ADM which = -1 value = 12}
		}
}

#
# agceep
#

#Aragon response if Genoa submits and Milan accepts, by Isaac Brock
event = {
	id = 111000 # triggered by MLO 228000
	random = no
	country = ARG
	name = "Милан захватывает Геную"
	desc = "В 1421 году, Арагон заключил союз с Миланом, для того, чтобы помощь в захвате Генуи, в замен Арагон получает Корсику. Когда же миланская армия подошла к городу,горожане согласились мирно подчинится Милану, но при условии не отдавать Арагону Корсику."
	style = 1

	action_a ={
		name = "Негодяи!"
		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 }
	}
}


#Aragon response if Genoa defies Milan, by Isaac Brock
event = {
	id = 111001 # triggered by GEN 174005
	random = no
	country = ARG
	name = "Миланский Союз"
	desc = "В 1421 году, Арагон заключил союз с Миланом, для того, чтобы помочь захватить Геную и в замен получить Корсику."
	style = 1

	action_a ={
		name = "Негодяи!"
		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
	}
}


#Aragon loses claim to Corsica
event = {
	id = 111002
	trigger = {
		event = 111001
		NOT =   { owned = { province = 398 data = -1 } } #Corsica
		}
	random = no
	country = ARG
	name = "Арагон перестал претендовать на Корсику"
	desc = "Со смертью Алфонсо, Арагон прекратил попытки свергнуть генуэзское владычество на Корсике.
            Мы прекращаем претендовать на этот остров.!"
	style = 1
	date = { day = 27 month = june year = 1458} #death of Alfonso

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

############################################
#  EEP events for Aragon (Anjou sequence)
#
#  by Havard
#
# -----------------------------------------------------------------------------------------
#An heir to Naples (1420) Added papal relations and Montone leader#
event = {

	id = 111009 #triggered by NAP239006/239011/239012
	random = no
	country = ARG
	name = "Наследник Неаполя."
	desc = "Армия, посланная Папой Римским вынудила Королеву Джованну Неаполитанскую принять Луи III Прованского как своего наследника.Эта угроза правам законных Королей Неаполя. Главный кондоттьери, Брассио де Монте присоединился к нам, чтобы выступить против Королевы Неаполя."
	style = 1

	action_a ={
		name = "Мы не удивлены!"	
		command = { type = relation which = PRO value = -100 }
		command = { type = relation which = PAP value = -100 }
		command = { type = casusbelli which = NAP value = 60 }
		command = { type = INF   which = 395 value = 4000 } #Messina
		command = { type = CAV   which = 395 value = 6000 }
		command = { type = leader which = 16131 } #Montone hopefully in Messina
	}
}

#An heir to Naples (1420)#
event = {

	id = 111012 #Trigged by NAP239006/239008
	random = no
	country = ARG
	name = "Наследник Неаполя"
	desc = "К огорчению Дюка Рени де Анжу, королева Хуанна II Неаполитанская приняла наши требования и выбрала короля Алфонсо новым наследником трона, после смерти его старшего брата Луи."
	style = 1

	action_a ={
		name = "Превосходно!"	
		command = { type = setflag which = nap_aragon }
		command = { type = relation which = NAP value = 100 }
		command = { type = stability value = 1 }

	}
}

#The inheritance of Naples/Anjou (1435)#
event = {

	id = 111011 #Trigged by NAP239007
	random = no
	country = ARG
	name = "Наследник Неаполя"
	desc = "Королева Джованна II Неаполитанская скончалась. Наш новый конкурент Рени де Анжу, принял трон."
	style = 1

	action_a ={
		name = "Чёрт бы их побрал!"	
		command = { type = relation which = NAP value = -150 }
		command = { type = relation which = PRO value = -150 }
		command = { type = casusbelli which = NAP value = 60 }
		command = { type = casusbelli which = PRO value = 60 }
	}
}

#The battle over Naples (1442)#
event = {
	id = 111014
	trigger = { 
		OR = {
			event = 239010   
			event = 239013 } # both NAP Trastamara dinasty in Naples
	}
	random = no
	country = ARG
	name = "Битва за Неаполь"
	desc = "После нашего давления, Король Рени де Анжу оставил трон с корону и принял наше законое требование."
	style = 1
	
	date = { day = 3 month = june year = 1442 }

	action_a ={
		name = "Превосходно!"	
		command = { type = vassal which = NAP }
		command = { type = relation which = NAP value = 400 }
		command = { type = relation which = PRO value = 100 }
		command = { type = relation which = PAP value = -50 }
		command = { type = relation which = TOS value = -50 }
		command = { type = relation which = VEN value = -50 }
		command = { type = relation which = GEN value = -50 }
		command = { type = relation which = MLO value = 100 }
	}
}


#Inheritance of Navarra
event = {
      id = 111005
      random = no
      country = ARG
      name = "Inheritance of Navarra"
      desc = "In the Treaty of Barcelona of 1456, John of Navarra dispossessed his son Carlos de Viana and appointed the Count of Foix, then Gaston IV, his successor, appreciating his support in the civil war in Navarra and Aragon. Now that our King John has died, Navarra ignored the Treaty and decided to stay within the crown of Aragon."   
      style = 1

           
      action_a = {
               name = "Fine"
               command = { type = addcore which = 428 } #Navarra
               command = { type = inherit which = NAV }
               command = { type = relation which = U17 value = -100 }
               command = { type = relation which = FRA value = -100 }
               command = { type = add_countryculture which = basque }
                 }
}
event = {
      id = 111006
      trigger = { event = 111005 #ARG: Inheritance of Navarra
                  owned = { province = 428 data = -1 } #Navarra
                }
      random = no     
      country = ARG
      name = "War between Beaumont and Gramont continues"
      desc = "Since 1452 two factions led by hostile families, Beaumont and Gramont, waged a bloody, exhausting civil war in Navarra about the legimate succession to the throne, the one originally supporting John of Aragon, the other his son Carlos de Viana. This struggle continued after the death of Carlos in 1461 and even after the death of John when the Count of Foix inherited Navarra, preventing his coronation."
      style = 1 
      
      date = { day = 13 month = february year = 1479 }
      offset = 0
      
      action_a = {
               name = "Damn them"
               command = { type = removecore which = 428 } #Navarra
               command = { type = province_revoltrisk which = 428 value = 7 } 
               command = { type = revolt which = 428 }
                 }
}
event = {
      id = 111007
      trigger = { event = 111005 #ARG: Inheritance of Navarra
                  owned = { province = 428 data = -1 } #Navarra
                  control = { province = 428 data = -1 }
                }
      random = no
      country = ARG
      name = "Coronation in Pamplona"
      desc = "For two years after his recognition as heir to the crown of Navarra, the King of Aragon wasn't even able to enter his new Kingdom safely because of the ongoing civil war between the Beaumont and Gramont factions. We have now finally managed to restore order in Navarra and can now let the coronation in the Kingdom's capital, Pamplona, take place."
      style = 1
      
      date = { day = 1 month = july year = 1481 }
      offset = 0
      deathdate = { day = 31 month = december year = 1500 }
      
      action_a = {
               name = "Finally"
               command = { type = vp value = 50 }
               command = { type = addcore which = 428 } #Navarra
               command = { type = province_revoltrisk which = 428 value = -7 }
                }
}
#Fernando of Aragon claims Navarra
event = {
      id = 111008
      trigger = { owned = { province = 428 data = NAV } #Navarra
                  event = 320005  #U17: Coronation in Pamplona (Foix has turned into Navarra)
                }
      random = no
      country = ARG
      name = "Aragon claims Navarra"
      desc = "Upon the premature childless death of Franзois Febus of Navarra 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 Navarra. Spanish troops occupied everything south of the Pyrenees within less than a year."  
      style = 2
      
      date = { day = 1 month = january year = 1512 }
      offset = 120 
      
      action_a = {
               name = "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 }
               command = { type = trigger which = 241006 } #NAV: Aragon claims Navarra
                 }
      action_b = {
               name = "Leave Navarra alone"  
               command = { type = relation which = NAV value = 50 }
               command = { type = stability value = 1 } 
                 }
}


###########################################
# The Union of Castile and Aragon
# 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 event 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. Please update changes to this caption to facilitate modding if you change the series. If you have questions about the set up, start by checking the discussions here: http://forum.paradoxplaza.com/forum...712#post4228712 #

# Fernando’s marriage proposal to Isabel #
# by Twoflower and Fodoron #
event = {
	id = 111020
	trigger = { exists = CAS }
	random = no
	country = ARG
	name = "EVENTNAME111020"
	desc = "EVENTHIST111020"
	style = 1
	date = { day = 19 month = june year = 1468 }

	action_a ={ # Isabel
		name = "ACTIONAME111020A"
		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 travels to Castile in disguise
		command = { type = trigger which = 142010 } # CAS Isabel’s choice of husband
	}
	action_b ={ # Beatriz
		name = "ACTIONAME111020B"
		command = { type = stability value = 1 }
		command = { type = relation which = CAS value = 25 }
		command = { type = infantry which = 430 value = 5000 } # Villena’s troops to fight insurrection
	}
}


# Fernando travels to Castile in disguise #
# by Twoflower and Fodoron #
event = {
	id = 111021
	trigger = { exists = CAS }
	random = no
	country = ARG
	name = "EVENTNAME111021"
	desc = "EVENTHIST111021"
	style = 1
	date = { day = 1 month = september year = 1469 }

	action_a ={ # consent
		name = "ACTIONAME111021A"
		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 Isabel’s choice of husband
	}
	action_b ={ # stop it
		name = "ACTIONAME111021B"
		command = { type = stability value = -1 }
		command = { type = relation which = CAS value = 25 }
		command = { type = remove_countryculture which = Iberian } # cultures eventually separate too much
		command = { type = sleepevent which = 142011 } # CAS Wedding at Valladolid
		command = { type = sleepevent which = 142012 } # CAS Isabel and Fernando kings of Castile
		command = { type = sleepevent which = 111022 } # ARG The end of Castilian civil war
	}
}



# The end of the Castilian civil war #
# by Twoflower and Fodoron #
event = {
	id = 111022
	random = no
	country = ARG
	trigger = { ai = no }
	name = "EVENTNAME111022"
	desc = "EVENTHIST111022"
	style = 1
	date = { day = 1 month = december year = 1478 }

	action_a ={ #
		name = "ACTIONAME111022A"
		command = { type = stability value = 1 }
		command = { type = domestic which = centralization value = 1 }
		command = { type = domestic which = aristocracy value = -1 }
		command = { type = sleepevent which = 111023 } # ARG Aragon ready to be inherited
	}
}


# Aragon ready to be inherited #
# by Twoflower and Fodoron #
event = {
	id = 111023
	random = no
	country = ARG
	trigger = {
		OR = { atwar = no 
			year = 1490 }
	}
	name = "EVENTNAME111023"
	desc = "EVENTHIST111023"
	style = 1
	date = { day = 16 month = january year = 1479 }
	offset = 30
	deathdate = { day = 1 month = january year = 1490 }

	action_a ={ #
		name = "ACTIONAME111023A"
		command = { type = trigger which = 142013 } # CAS Isabel and Fernando kings of Aragon
	}
}



# Fernando and Isabel kings of Aragon #
# by Twoflower and Fodoron #
event = {
	id = 111024
	random = no
	country = ARG
	name = "EVENTNAME111024"
	desc = "EVENTHIST111024"
	style = 1

	action_a ={ # Fernando & Isabel
		name = "ACTIONAME111024A"
command = { type = add_countryculture which = berber }
		command = { type = relation which = CAS value = 150 }
		command = { type = relation which = POR value = -50 }
		command = { type = land value = 800 }
command = { type = addcore which = 431 }
command = { type = addcore which = 432 }
command = { type = addcore which = 435 }
command = { type = addcore which = 433 }
command = { type = addcore which = 436 }
command = { type = addcore which = 1414 }
command = { type = addcore which = 1948 }
command = { type = addcore which = 445 }
command = { type = addcore which = 439 }
command = { type = addcore which = 921 }
command = { type = addcore which = 1413 }
command = { type = addcore which = 444 }
command = { type = addcore which = 438 }
command = { type = addcore which = 817 }
command = { type = addcore which = 1412 }
command = { type = addcore which = 991 }
command = { type = badboy value = -10 }
		command = { type = stability value = 2 }
		command = { type = inherit which = CAS }
		command = { type = wakeleader which = 150007 } # Fernando of Aragon
	}
}


# 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
	}
	random = no
	country = ARG
	name = "EVENTNAME111025"
	desc = "EVENTHIST111025"
	style = 1
	date = { day = 16 month = january year = 1479 }
	offset = 15
	deathdate = { day = 30 month = december year = 1490 }

	action_a ={ # Spain is formed
		name = "ACTIONAME111025A"
		command = { type = country which = SPA }
		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 = domestic which = serfdom value = 1 }
		command = { type = sleepevent which = 990100 } # Spanish bpai up to Dec. 1479
		command = { type = sleepevent which = 990101 } # Spanish bpai 1480-1490
	}
}



# Orphan kingdom of Aragon #
# by Twoflower and Fodoron #
event = {
	id = 111026
	trigger = {
		OR = { 
			NOT = { exists = CAS 
				event = 111024 } # CAS missing but not by inheritance
			NOT = { event = 142012 } # CAS Isabel and Fernando kings of Castile (CAS rejected union)
		}
		NOT = { exists = SPA }
	}
	random = no
	country = ARG
	name = "EVENTNAME111026"
	desc = "EVENTHIST111026"
	style = 1
	date = { day = 16 month = january year = 1479 }
	offset = 100
	deathdate = { day = 1 month = december year = 1491 }

	action_a ={ # Become Spain
		name = "ACTIONAME111026A"
command = { type = add_countryculture which = berber }
		command = { type = relation which = CAS value = 150 }
		command = { type = relation which = POR value = -50 }
		command = { type = land value = 800 }
command = { type = addcore which = 431 }
command = { type = addcore which = 432 }
command = { type = addcore which = 435 }
command = { type = addcore which = 433 }
command = { type = addcore which = 436 }
command = { type = addcore which = 1414 }
command = { type = addcore which = 1948 }
command = { type = addcore which = 445 }
command = { type = addcore which = 439 }
command = { type = addcore which = 921 }
command = { type = addcore which = 1413 }
command = { type = addcore which = 444 }
command = { type = addcore which = 438 }
command = { type = addcore which = 817 }
command = { type = addcore which = 1412 }
command = { type = addcore which = 991 }
command = { type = badboy value = -10 }
		command = { type = country which = SPA }
		command = { type = domestic which = centralization value = 1 }
		command = { type = ai which = Spa_time1479.ai } # War of granada
		command = { type = sleepevent which = 990100 } # Spanish bpai up to Dec. 1479
		command = { type = sleepevent which = 990101 } # Spanish bpai 1480-1490
		command = { type = wakeleader which = 150007 } # Fernando of Aragon
	}
	action_b ={ # Keep as Aragon
		name = "ACTIONAME111026B"
		command = { type = stability value = 1 }
	}
}