country_event = {

	id = 1003
	
	trigger = {
		NOT = { tag = FRA }		# Basque is a valid culture for both FRA and SPA
		NOT = { exists = SPA }
		NOT = { tag = PAP }
		NOT = { has_country_flag = spanish_nation_declined }
		OR = {
			culture_group = iberian
			primary_culture = basque
		}
		owns = 213	# Barcelona
		owns = 214	# Aragón
		owns = 215	# Castilla La Vieja
		owns = 216	# Salamanca
		owns = 224	# Andalucia
		owns = 219	# Toledo
		war = no
	}
	
	mean_time_to_happen = {
	
		months = 216
		
		modifier = {
			factor = 0.95
			owns = 206	# Galicia
		}		
		modifier = {
			factor = 0.95
			owns = 207	# Asturias
		}
		modifier = {
			factor = 0.95
			owns = 208	# León
		}
		modifier = {
			factor = 0.95
			owns = 209	# Vizcaya
		}
		modifier = {
			factor = 0.95
			owns = 210	# Navarra
		}
		modifier = {
			factor = 0.95
			owns = 211	# Pirineo
		}
		modifier = {
			factor = 0.95
			owns = 217	# Madrid
		}
		modifier = {
			factor = 0.95
			owns = 218	# Badajoz
		}
		modifier = {
			factor = 0.95
			owns = 220	# València
		}
		modifier = {
			factor = 0.95
			owns = 221	# Murcia
		}
		modifier = {
			factor = 0.95
			owns = 222	# Almería
		}
		modifier = {
			factor = 0.95
			owns = 223	# Granada
		}
		modifier = {
			factor = 0.95
			owns = 225	# Córdoba
		}
		modifier = {
			factor = 0.95
			owns = 226	# Gibraltar
		}
		modifier = {
			factor = 0.9
			NOT = {	centralization_decentralization = -1 }
		}
		modifier = {
			factor = 0.9
			NOT = {	centralization_decentralization = -2 }
		}
		modifier = {
			factor = 0.9
			NOT = {	centralization_decentralization = -3 }
		}
		modifier = {
			factor = 1.1
			centralization_decentralization = 2
		}
		modifier = {
			factor = 1.1
			centralization_decentralization = 3
		}
		modifier = {
			factor = 1.1
			centralization_decentralization = 4
		}		
		modifier = {
			factor = 0.8
			idea = bureaucracy
		}
	}
	
	title = "EVTNAME1003"
	desc = "EVTDESC1003"
	
	option = {
		name = "EVTOPTA1003"
		ai_chance = { factor = 75 }
		SPA = {
			add_core = 197		# Roussillon
			add_core = 206		# Galicia
			add_core = 207		# Asturias
			add_core = 208		# León
			add_core = 209		# Vizcaya
			add_core = 210		# Navarra
			add_core = 211		# Pirineo
			add_core = 212		# Girona
			add_core = 213		# Barcelona
			add_core = 214		# Aragon
			add_core = 215		# Castilla la Vieja
			add_core = 216		# Salamanca
			add_core = 217		# Madrid
			add_core = 218		# Badajoz
			add_core = 219		# Toledo
			add_core = 220		# Valencia
			add_core = 221		# Murcia
			add_core = 222		# Almeria
			add_core = 223		# Granada
			add_core = 224		# Andalucia
			add_core = 225		# Córdoba
			add_core = 226		# Gibraltar
			add_core = 333		# The Baleares
			add_core = 366		# The Canarias
		}	
		capital = 217
		centralization_decentralization = -2
		colonists = 1
		random_owned = {
			base_tax = 1
		}
		prestige = 0.05
		change_tag = SPA
	}

	option = {
		name = "EVTOPTB1003"
		ai_chance = { factor = 25 }
		centralization_decentralization = 2
		set_country_flag = spanish_nation_declined
		random_owned = {
			base_tax = -1
		}
	}
}


country_event = {

	id = 6017
	
	trigger = {
		tag = CAS
		NOT = { exists = SPA }
		NOT = { has_country_flag = spanish_nation_declined }
		OR = {
			culture_group = iberian
			primary_culture = basque
		}
		war = no
		year = 1506
		NOT = { year = 1517 }
		ARA = { num_of_unions = 1 }
		CAS = { num_of_unions = 1 }
	}
	
	mean_time_to_happen = {
	
		months = 36
		
		modifier = {
			factor = 0.95
			owns = 206	# Galicia
		}		
		modifier = {
			factor = 0.95
			owns = 207	# Asturias
		}
		modifier = {
			factor = 0.95
			owns = 209	# Vizcaya
		}
		modifier = {
			factor = 0.95
			owns = 210	# Navarra
		}
		modifier = {
			factor = 0.95
			owns = 211	# Pirineo
		}
		modifier = {
			factor = 0.95
			owns = 213	# Barcelona
		}
		modifier = {
			factor = 0.95
			owns = 218	# Badajoz
		}
		modifier = {
			factor = 0.95
			owns = 220	# València
		}
		modifier = {
			factor = 0.95
			owns = 221	# Murcia
		}
		modifier = {
			factor = 0.95
			owns = 222	# Almería
		}
		modifier = {
			factor = 0.95
			owns = 223	# Granada
		}
		modifier = {
			factor = 0.95
			owns = 224	# Andalucía
		}
		modifier = {
			factor = 0.95
			owns = 225	# Córdoba
		}
		modifier = {
			factor = 0.95
			owns = 226	# Gibraltar
		}
		modifier = {
			factor = 0.9
			NOT = {	centralization_decentralization = -1 }
		}
		modifier = {
			factor = 0.9
			NOT = {	centralization_decentralization = -2 }
		}
		modifier = {
			factor = 0.9
			NOT = {	centralization_decentralization = -3 }
		}
		modifier = {
			factor = 1.1
			centralization_decentralization = 2
		}
		modifier = {
			factor = 1.1
			centralization_decentralization = 3
		}
		modifier = {
			factor = 1.1
			centralization_decentralization = 4
		}		
		modifier = {
			factor = 0.8
			idea = bureaucracy
		}
	}
	
	title = "EVTNAME1003"
	desc = "EVTDESC1003"
	
	option = {
		name = "EVTOPTA1003"
		ai_chance = { factor = 75 }		
		SPA = {
			add_core = 197		# Roussillon
			add_core = 206		# Galicia
			add_core = 207		# Asturias
			add_core = 208		# León
			add_core = 209		# Vizcaya
			add_core = 210		# Navarra
			add_core = 211		# Pirineo
			add_core = 212		# Girona
			add_core = 213		# Barcelona
			add_core = 214		# Aragon
			add_core = 215		# Castilla la Vieja
			add_core = 216		# Salamanca
			add_core = 217		# Madrid
			add_core = 218		# Badajoz
			add_core = 219		# Toledo
			add_core = 220		# Valencia
			add_core = 221		# Murcia
			add_core = 222		# Almeria
			add_core = 223		# Granada
			add_core = 224		# Andalucia
			add_core = 225		# Córdoba
			add_core = 226		# Gibraltar
			add_core = 333		# The Baleares
			add_core = 366		# The Canarias
		}	
		capital = 217
		centralization_decentralization = -2
		colonists = 1
		random_owned = {
			base_tax = 1
		}
		prestige = 0.05
		inherit = ARA
		change_tag = SPA
	}

	option = {
		name = "EVTOPTB1003"
		ai_chance = { factor = 25 }
		centralization_decentralization = 2
		set_country_flag = spanish_nation_declined
		random_owned = {
			base_tax = -1
		}
	}
}
