are you saying
1419 to 1479 (marriage of Isabella and Fernando) capital is Toledo
from 1479 to 1561 , capital in Valladolid
1561 and rest of game , capital in madrid
would this suffice
#(1479-1490) The formation of Spain by Castile
#by Twoflower and Fodoron
event = {
id = 142014
trigger = {
event = 142013 #CAS: Isabel and Fernando Kings of Aragon
OR = {
atwar = no
year = 1490
}
NOT = { event = 111025 } #ARG forms Spain
NOT = { exists = SPA }
}
random = no
country = CAS
name = "EVENTNAME142014" #Regnum Hispaniorum
desc = "EVENTHIST142014"
#-#For centuries the Christians in the Iberian Peninsula have dreamed of restoring the Visigothic Kingdom that was destroyed by the Muslim invasion. Many Kings have tried to achieve this union of Christians by force of arms, and have carried the title of Hispaniorum Imperator. Between them Sancho III of Navarre and Alfonso VII of Castile nearly achieved unity. But it was not by force that unity could be imposed, as a strong sense of freedom had been developed by the Iberians in their long struggle against Islam, manifested in an equally long struggle against their Christian neighbors. But the peaceful union under Isabel and Fernando will finally achieve what force could not. Under the fierce independence there was a common layer that Fernando and Isabel will identify and use to unite the new country. It was religion and the concept of blood purity. Now, with the country at peace it was a question of prioritizing the international policies of the new powerful entity. First Granada, Castile's biggest dream, as a crusade was useful to unite the peasants and nobles of the country under the same banner. It was a tremendous task, as the Moorish resistance had concentrated in Granada's roughest terrain and 400 years of defensive works had made it a bastion that will require ten years of continuous assaults. It was soon clear to Europeans that a new political entity had been born, and both Iberians and foreigners started referring to it not as Castile and Aragon, but as Spain.
date = { day = 16 month = january year = 1479 }
offset = 15
deathdate = { day = 29 month = december year = 1490 }
action_a = {
name = "ACTIONNAME142014A" #A new country is born
command = { type = flagname which = "" }
command = { type = country which = SPA }
command = { type = capital which = 435 } #Leon
command = { type = domestic which = aristocracy value = -1 }
#command = { type = AI which = Spa_time1479.ai } #War of granada
#command = { type = sleepevent which = 990100 } #Spanish bpai up to Dec. 1479 #SPA_AI_EVENT
#command = { type = sleepevent which = 990101 } #Spanish bpai 1480-1490 #SPA_AI_EVENT
}
}