• We have updated our Community Code of Conduct. Please read through the new rules for the forum that are an integral part of Paradox Interactive’s User Agreement.
YodaMaster said:
I'm not sure I understand the question. A separate scenario is not a regular option of AGCEEP. You have to install it. See instructions in Readme of the Granada RAR archive provided on the website.

This separate scenario is not compatible with WATK.

Didn't think it was compatible, thats why I was proposing to convert it ;)

And I was asking if it was an option like the "independent wales" or "byz resurgency" ones at the start of a campaign. Guess not then.
 
I have a problem, I don't manage to find neither the monarch.gra file nor the leaders.gra file. Moreover, I notice that there is no DB folder in the zip file for fantasy resurgeant granada, whereas fantasy byzantium got it. So where are those files? thanks
 
The Granada scenario uses default files provided by AGCEEP itself. Only things to do are to decompress archive at the right place in AGCEEP folder and add entries to text.csv.
 
yes, now I found it. I've noticed that in 1.52 Granada does not have any claim on Murcia and Andalucia at the beginning. Whereas, Granada did in 1.52 . Moreover those two provinces have now catholic religion. and in addition I think that with the previous patch you had a monarch almost immediately, while now you don't. It looks much harder now.
 
Version 1.3

Changes:

Code:
#(1460-1520) Revival of Andalusia
event = {
	id = 3000004
	trigger = {
		stability = -2
		owned = { province = 438 data = -1 } #Murcia
		control = { province = 438 data = -1 } #Murcia
		owned = { province = 440 data = -1 } #Estramadura
		control = { province = 440 data = -1 } #Estramadura
		owned = { province = 443 data = -1 } #Andalusia
		control = { province = 443 data = -1 } #Andalusia
		owned = { province = 444 data = -1 } #Granada
		control = { province = 444 data = -1 } #Granada
		owned = { province = 445 data = -1 } #Gibraltar
		control = { province = 445 data = -1 } #Gibraltar
		NOT = {
			vassal = { country = CAS country = GRA }
			vassal = { country = SPA country = GRA }
			vassal = { country = ARG country = GRA }
			vassal = { country = POR country = GRA }
			vassal = { country = NAV country = GRA }
		}
	}
	random = no
	country = GRA
	name = "EVENTNAME3000004" #Revival of Andalusia
	desc = "EVENTHIST3000004"
	#-#

	date = { day = 1 month = june year = 1460 }
	offset = 30
	deathdate = { day = 1 month = january year = 1520 }

	action_a = {
		name = "ACTIONNAME3000004A" #Begin Andalusian Revival!
		command = { type = stability value = 1 }
		command = { type = badboy value = [COLOR=Yellow]5[/COLOR] } [COLOR=Yellow]#was 18[/COLOR]
		command = { type = domestic which = centralization value = 2 }
		command = { type = provincetax which = 438 value = 1 }
		command = { type = provincetax which = 444 value = 2 }
		command = { type = provincetax which = 443 value = 2 }
		command = { type = provincetax which = 445 value = 1 }
		command = { type = provincemanpower which = 2 value = -2 }
		command = { type = addcore which = 427 } #Gerona
		command = { type = addcore which = 428 } #Navarra
		command = { type = addcore which = 429 } #Catalonia
		command = { type = addcore which = 430 } #Aragon
		command = { type = addcore which = 431 } #Cantabria
		command = { type = addcore which = 432 } #Asturias
		command = { type = addcore which = 433 } #Galicia
		command = { type = addcore which = 434 } #Oporto
		command = { type = addcore which = 435 } #Leon
		command = { type = addcore which = 436 } #Castilla
		command = { type = addcore which = 437 } #Valencia
		command = { type = addcore which = 438 } #Murcia
		command = { type = addcore which = 439 } #Toledo
		command = { type = addcore which = 440 } #Estramadura
		command = { type = addcore which = 441 } #Tago
		command = { type = addcore which = 442 } #Algarve
		command = { type = addcore which = 443 } #Andalusia
		command = { type = addcore which = 821 } #The Baleares
		command = { type = relation which = CAS value = -50 }
		command = { type = relation which = SPA value = -50 }
		command = { type = relation which = ARG value = -50 }
		command = { type = relation which = POR value = -50 }
		command = { type = relation which = NAV value = -50 }
		command = { type = relation which = TUR value = -50 }
		command = { type = relation which = U18 value = -25 } #Yemen
		command = { type = relation which = IRA value = -25 }
		command = { type = setflag which = Resurgant_Granada }
		command = { type = trigger which = 3000005 } #Responses from Iberians
		command = { type = trigger which = 3000006 }
		command = { type = trigger which = 3000007 }
		command = { type = trigger which = 3000008 }
		command = { type = trigger which = 3000009 }
	}
}
#-#Having defeated the Christians, and uniting the remnants of Muslims in the southern tip of Iberia, Granada was successful in regaining some of ground lost during the Iberian Christian reconqusita. Having restored the southern Moorish cities to at least a somewhat stable state in the time of the Bani Kiram and the southern Taifas of the 12th century, the Emirs were able to unite the Muslim efforts and make direly needed reforms.

Granada is already hated by Christians at this point but this should not have effect on Muslim world but the relations with Ottomans, Iraq and Yemen.

Code:
#(1460-1560) The Moors control Tago
event = {
	id = 3000010
	trigger = {
		owned = { province = 441 data = POR } #Tago
		control = { province = 441 data = GRA } #Tago
		owned = { province = 434 data = POR } #Oporto
		OR = {
			flag = Caliphate_Granada
			flag = Resurgant_Granada
		}
	}
	province = 441 #Tago
	random = no
	name = "EVENTNAME3000010" #The Moors control Tago
	desc = "EVENTHIST3000010"
	#-#

	date = { day = 1 month = june year = 1460 }
	offset = 30
	deathdate = { day = 1 month = january year = 1560 }

	action_a = {
		name = "ACTIONNAME3000010A" #Move the capital north where its safer
		command = { type = stability value = -1 }
		command = { type = domestic which = land value = 1 }
		command = { type = domestic which = offensive value = -1 }
		command = { type = provincetax which = 441 value = -2 } #Tago
		command = { type = population which = 441 value = -1000 } #Tago
		command = { type = capital which = 434 } #Oporto
		command = { type = provincetax which = 434 value = 1 } #Oporto
		command = { type = population which = 434 value = 500 } #Oporto
		command = { type = fortress which = 434 value = 1 } #Oporto
		command = { type = vp value = -25 }
		[COLOR=Yellow]command = { type = sleepevent which = 600133 } #AI 1468
		command = { type = sleepevent which = 600134 } #AI 1473
		command = { type = sleepevent which = 600135 } #AI 1481
		command = { type = sleepevent which = 600136 } #AI 1500
		command = { type = sleepevent which = 600137 } #AI 1504
		command = { type = sleepevent which = 600138 } #AI 1514
		command = { type = sleepevent which = 600139 } #AI 1521
		command = { type = sleepevent which = 600140 } #AI 1557
		command = { type = sleepevent which = 600141 } #AI 1580
		command = { type = sleepevent which = 18004 } #POR: Royal Charters
		command = { type = ai which = SmallTrade1.ai }[/COLOR]
	}
	action_b = {
		name = "ACTIONNAME3000010B" #We will not be cowed
		command = { type = stability value = -3 }
		command = { type = vp value = -10 }
	}
}
#-#With Granadian power on the rise, the southern lands were no longer safe for Christians. As their Visigoth accentors before them the Christians were forced to retreat to the safer mountainous regions in the north where they hoped to regroup and once again push out the Muslim invaders.

Difficult to continue Sea exploration / Colonization in these conditions...

Code:
#(1419-[COLOR=Yellow]1477[/COLOR]) Our capital is surrounded by Granada
event = {
	id = 3000013
	trigger = {
		atwar = no
		event = 176012 #GRA: al-Andalus belongs to us!
		owned = { province = 435 data = CAS } #Léon
		control = { province = 435 data = -1 } #Léon
		owned = { province = 436 data = GRA } #Castilla
		owned = { province = 438 data = GRA } #Murcia
		owned = { province = 440 data = GRA } #Estramadura
		owned = { province = 443 data = GRA } #Andalusia
		OR = {
			owned = { province = 431 data = CAS } #Cantabria
			owned = { province = 432 data = CAS } #Asturias
			owned = { province = 433 data = CAS } #Galicia
		}
		NOT = { owned = { province = 437 data = CAS } } #Valencia
		OR = {
			flag = Caliphate_Granada
			flag = Resurgant_Granada
		}
	}
	random = no
	country = CAS
	name = "EVENTNAME3000013" #Our capital is surrounded by Granada
	desc = "EVENTHIST3000013"
	#-#

	date = { day = 1 month = january year = 1419 }
	offset = 60
	deathdate = { day = 29 month = december year = [COLOR=Yellow]1477[/COLOR] }

	action_a = {
		name = "ACTIONNAME3000013A" #Let's move our capital
		command = { type = vp value = -50 }
		command = { type = stability value = -3 }
		command = { type = capital which = 435 } #Léon
		command = { type = ADM which = -1 value = 36 }
		command = { type = MIL which = 1 value = 36 }
		command = { type = revolt which = 439 } #Toledo
		command = { type = provincetax which = 439 value = -2 } #Toledo
		command = { type = provincemanpower which = 439 value = -1 } #Toledo
		command = { type = population which = 439 value = -5000 } #Toledo
		command = { type = fortress which = 435 value = 1 } #Léon
		command = { type = provincetax which = 435 value = 2 } #Léon
		command = { type = provincemanpower which = 435 value = 1 } #Léon
		command = { type = population which = 435 value = 5000 } #Léon
		command = { type = domestic which = land value = 2 }
		command = { type = domestic which = offensive value = -2 }
		[COLOR=Yellow]command = { type = sleepevent which = 142015 } #CAS: Aragon and Castile are One
		command = { type = sleepevent which = 142014 } #CAS: Regnum Hispaniorum
		command = { type = sleepevent which = 142016 } #CAS: The Forging of the Spanish Identity
		command = { type = sleepevent which = 111023 } #ARG: Aragon and Castile are One
		command = { type = sleepevent which = 111025 } #ARG: Regnum Hispaniorum
		command = { type = sleepevent which = 3000018 } #GRA: Treaty of Cordoba[/COLOR]
	}
	action_b = {
		name = "ACTIONNAME3000013B" #It shall never fall
		command = { type = vp value = -25 }
		command = { type = stability value = 1 }
		command = { type = MIL which = -1 value = 36 }
		command = { type = relation which = GRA value = -50 }
		command = { type = fortress which = 439 value = 1 } #Toledo
		command = { type = domestic which = land value = 1 }
		command = { type = domestic which = offensive value = -1 }
		command = { type = sleepevent which = 3000015 } #CAS: The treaty of Léon [COLOR=Yellow]-I-[/COLOR]
		[COLOR=Yellow]command = { type = sleepevent which = 3000011 } #CAS: The treaty of Léon -II-
		command = { type = sleepevent which = 142015 } #CAS: Aragon and Castile are One
		command = { type = sleepevent which = 142014 } #CAS: Regnum Hispaniorum
		command = { type = sleepevent which = 142016 } #CAS: The Forging of the Spanish Identity
		command = { type = sleepevent which = 111023 } #ARG: Aragon and Castile are One
		command = { type = sleepevent which = 111025 } #ARG: Regnum Hispaniorum
		command = { type = sleepevent which = 3000018 } #GRA: Treaty of Cordoba[/COLOR]
	}
}
#-#The unthinkable had happened. The muslims had managed to retake the area cutting of the mainland from Toledo. Concerned with the defenses of the country the kings military advisors suggested to relocate the capital to Léon.

Unification of Spain is a dead idea...

Removal of capital relocation events to America (3000011, 3000012 and 3000014) especially if Portugal can't colonize and Spain not formed.

Code:
#(1450-1650) Treaty of Léon [COLOR=Yellow]-I-[/COLOR]
event = {
	id = 3000015
	trigger = {
		atwar = no
		event = 3000013 #CAS: Our capital is surrounded by Granada
		[COLOR=Yellow]OR = {[/COLOR]
			neighbour = FRA
			[COLOR=Yellow]owned = { province = 423 data = FRA } #Guyenne
			owned = { province = 424 data = FRA } #Gascogne
			owned = { province = 425 data = FRA } #Béarn
			owned = { province = 426 data = FRA } #Roussillon
		}[/COLOR]
		neighbour = GRA
		NOT = { alliance = { country = CAS country = FRA } }
		NOT = { vassal = { country = CAS country = GRA } }
		NOT = { vassal = { country = CAS country = FRA } }
		NOT = { vassal = { country = FRA country = CAS } }
		NOT = { countrysize = 10 }
		NOT = { provincereligion = { province = 436 data = catholic } } #Castilla
		NOT = { provincereligion = { province = 438 data = catholic } } #Murcia
		NOT = { provincereligion = { province = 439 data = catholic } } #Toledo
		NOT = { provincereligion = { province = 440 data = catholic } } #Estramandura
		NOT = { provincereligion = { province = 443 data = catholic } } #Andalusia
		[COLOR=Yellow]NOT = { event = 3000011 } #CAS: Treaty of Léon -II-[/COLOR]
	}
	random = no
	country = CAS
	name = "EVENTNAME3000015" #The Treaty of Léon
	desc = "EVENTHIST3000015"
	#-#

	date = { day = 1 month = january year = 1450 }
	offset = 3
	deathdate = { day = 29 month = december year = 1650 }

	action_a = {
		name = "ACTIONNAME3000015A" #Offer the Treaty
		command = { type = revoltrisk which = 60 value = 1 }
		command = { type = domestic which = innovative value = 1 }
		command = { type = domestic which = offensive value = -1 }
		command = { type = relation which = FRA value = -100 }
		command = { type = relation which = PAP value = -50 }
		command = { type = relation which = GRA value = 50 }
		command = { type = trigger which = 3000030 } #GRA: The treaty of Léon
		[COLOR=Yellow]command = { type = sleepevent which = 3000011 } #CAS: Treaty of Léon -II-[/COLOR]
	}
	action_b = {
		name = "ACTIONNAME3000015B" #Ask France for protection instead
		command = { type = MIL which = 3 value = 60 }
		command = { type = DIP which = -3 value = 60 }
		command = { type = domestic which = innovative value = -1 }
		command = { type = domestic which = offensive value = -1 }
		command = { type = relation which = FRA value = 100 }
		command = { type = relation which = PAP value = 50 }
		command = { type = relation which = GRA value = -50 }
		command = { type = trigger which = 3000033 } #FRA: Castile ask for our protection against the infidels
		[COLOR=Yellow]command = { type = sleepevent which = 3000011 } #CAS: Treaty of Léon -II-[/COLOR]
	}
}
#-#In response to the growing power of Granada and France, Castile summoned the Iberian nations to a meeting in Léon. The purpose of the meeting was to settle final borders across the Iberian peninsula, and ensure the survival of Christian Iberia. Here Castile offered to forfeit their claims on the Kingdom of Castile and loyalty to Granada in exchange for safe passage for all Christian Iberians to Castile and a stop for further Granadian expansion in Iberia.

New twin event:
Code:
#(1450-1650) Treaty of Léon -II-
event = {
	id = 3000011
	trigger = {
		atwar = no
		event = 3000013 #CAS: Our capital is surrounded by Granada
		NOT = {
			neighbour = FRA
			owned = { province = 423 data = FRA } #Guyenne
			owned = { province = 424 data = FRA } #Gascogne
			owned = { province = 425 data = FRA } #Béarn
			owned = { province = 426 data = FRA } #Roussillon
		}
		neighbour = GRA
		NOT = { alliance = { country = CAS country = FRA } }
		NOT = { vassal = { country = CAS country = GRA } }
		NOT = { vassal = { country = CAS country = FRA } }
		NOT = { vassal = { country = FRA country = CAS } }
		NOT = { countrysize = 10 }
		NOT = { provincereligion = { province = 436 data = catholic } } #Castilla
		NOT = { provincereligion = { province = 438 data = catholic } } #Murcia
		NOT = { provincereligion = { province = 439 data = catholic } } #Toledo
		NOT = { provincereligion = { province = 440 data = catholic } } #Estramandura
		NOT = { provincereligion = { province = 443 data = catholic } } #Andalusia
		NOT = { event = 3000015 } #CAS: Treaty of Léon -I-
	}
	random = no
	country = CAS
	name = "EVENTNAME3000015" #The Treaty of Léon
	desc = "EVENTHIST3000011"
	#-#

	date = { day = 1 month = january year = 1450 }
	offset = 3
	deathdate = { day = 29 month = december year = 1650 }

	action_a = {
		name = "ACTIONNAME3000015A" #Offer the Treaty
		command = { type = revoltrisk which = 60 value = 1 }
		command = { type = domestic which = innovative value = 1 }
		command = { type = domestic which = offensive value = -1 }
		command = { type = relation which = PAP value = -50 }
		command = { type = relation which = GRA value = 50 }
		command = { type = trigger which = 3000030 } #GRA: The treaty of Léon
		command = { type = sleepevent which = 3000015 } #CAS: Treaty of Léon -I-
	}
}
EVENTHIST3000011;In response to the growing power of Granada, Castile summoned the Iberian nations to a meeting in Léon. The purpose of the meeting was to settle final borders across the Iberian peninsula, and ensure the survival of Christian Iberia. Here Castile offered to forfeit their claims on the Kingdom of Castile and loyalty to Granada in exchange for safe passage for all Christian Iberians to Castile and a stop for further Granadian expansion in Iberia.;;;;;;;;;;

And for same reason, if France is not here to help:
Code:
event = {
	id = 3000032 #triggered by CAS_3000030 B
	[COLOR=Yellow]trigger = {
		OR = {
			neighbour = FRA
			owned = { province = 423 data = FRA } #Guyenne
			owned = { province = 424 data = FRA } #Gascogne
			owned = { province = 425 data = FRA } #Béarn
			owned = { province = 426 data = FRA } #Roussillon
		}
	}[/COLOR]
	random = no
	country = CAS
	name = "EVENTNAME300032" #The Treaty of Léon is rejected
	desc = "EVENTHIST300032"
	#-#

	action_a = {
		name = "DAMN"
		command = { type = stability value = -1 }
		command = { type = domestic which = innovative value = -1 }
		command = { type = domestic which = offensive value = -1 }
		command = { type = relation which = FRA value = 75 }
		command = { type = relation which = PAP value = 25 }
		command = { type = relation which = GRA value = -50 }
		command = { type = trigger which = 3000033 } #FRA: Castile ask for our protection against the infidels
	}
}
#-#Granada has rejected the Treaty of Léon we must appeal to the French for their protection.

Code:
event = {
	id = 3000030 #triggered by CAS_3000015 A / CAS_3000011
	random = no
	country = GRA
	name = "EVENTNAME3000015" #The Treaty of Léon
	desc = "[COLOR=Yellow]EVENTHIST3000011[/COLOR]"
	#-#

	action_a = {
		name = "ACTIONNAME3000018A" #Accept the Treaty
		command = { type = stability value = -1 }
		command = { type = vassal which = CAS }
		command = { type = alliance which = CAS }
		command = { type = secedeprovince which = CAS value = 433 } #Galicia
		command = { type = secedeprovince which = CAS value = 432 } #Astrurias
		command = { type = secedeprovince which = CAS value = 431 } #Cantabria
		command = { type = remove_countryculture which = iberian }
		command = { type = provinceculture which = 436 value = berber } #Castilla
		command = { type = provinceculture which = 438 value = delaware } #Murcia
		command = { type = provinceculture which = 439 value = berber } #Toledo
		command = { type = provinceculture which = 440 value = berber } #Estramandura
		command = { type = provinceculture which = 443 value = delaware } #Andalusia
		command = { type = provinceculture which = 444 value = delaware } #Granada
		command = { type = provinceculture which = 445 value = delaware} #Gibraltar
		command = { type = population which = 436 value = -2000 } #Castilla
		command = { type = population which = 438 value = -2000 } #Murcia
		command = { type = population which = 439 value = -5000 } #Toledo
		command = { type = population which = 440 value = -2000 } #Estramandura
		command = { type = population which = 436 value = -5000 } #Andalusia
		command = { type = domestic which = innovative value = 1 }
		command = { type = domestic which = land value = -1 }
		command = { type = domestic which = offensive value = -1 }
		command = { type = relation which = MOR value = -50 }
		command = { type = relation which = XHO value = -50 }
		command = { type = relation which = TUN value = -50 }
		command = { type = relation which = CAS value = 50 }
		command = { type = relation which = POR value = 50 }
		command = { type = relation which = ARG value = 50 }
		command = { type = trigger which = 3000031 } #CAS: The Treaty of Léon is accepted
	}
	action_b = {
		name = "ACTIONNAME3000018B" #Reject the Treaty
		command = { type = domestic which = innovative value = -1 }
		command = { type = domestic which = offensive value = 1 }
		command = { type = relation which = MOR value = 50 }
		command = { type = relation which = XHO value = 50 }
		command = { type = relation which = TUN value = 50 }
		command = { type = relation which = CAS value = -50 }
		command = { type = relation which = POR value = -50 }
		command = { type = relation which = ARG value = -50 }
		command = { type = trigger which = 3000032 } #CAS: The Treaty of Léon is rejected
	}
}
EVENTHIST3000030 is removed.

Code:
event = {
	id = 3000031 #triggered by GRA_3000030 A
	random = no
	country = CAS
	name = "EVENTNAME3000031" #The Treaty of Léon is accepted
	desc = "EVENTHIST3000031"
	#-#

	action_a = {
		name = "GREAT"
		command = { type = stability value = -1 }
		command = { type = DIP which = 3 value = 60 }
		command = { type = alliance which = GRA }
		command = { type = flagname which = "Leon" }
		command = { type = secedeprovince which = GRA value = 430 } #Aragon
		command = { type = secedeprovince which = GRA value = 436 } #Castilla
		command = { type = secedeprovince which = GRA value = 437 } #Valencia
		command = { type = secedeprovince which = GRA value = 438 } #Murcia
		command = { type = secedeprovince which = GRA value = 439 } #Toledo
		command = { type = secedeprovince which = GRA value = 440 } #Estramandura
		command = { type = secedeprovince which = GRA value = 441 } #Tago
		command = { type = secedeprovince which = GRA value = 442 } #Algarve
		command = { type = secedeprovince which = GRA value = 443 } #Andalusia
		command = { type = secedeprovince which = GRA value = 445 } #Gibraltar
		[COLOR=Yellow]command = { type = secedeprovince which = GRA value = 821 } #The Baleares[/COLOR]
		command = { type = domestic which = innovative value = 1 }
		command = { type = domestic which = offensive value = -1 }
		command = { type = domestic which = land value = -1 }
		command = { type = relation which = GRA value = 200 }
		command = { type = relation which = MOR value = 50 }
		command = { type = relation which = XHO value = 50 }
		command = { type = relation which = TUN value = 50 }
		command = { type = population which = -2 value = 8000 }
		command = { type = population which = -1 value = 4000 }
		command = { type = population which = -1 value = 4000 }
		command = { type = removecore which = 436 } #Castilla
		command = { type = removecore which = 438 } #Murcia
		command = { type = removecore which = 439 } #Toledo
		command = { type = removecore which = 440 } #Estramandura
		command = { type = removecore which = 443 } #Andalusia
		command = { type = removecore which = 444 } #Granada
		command = { type = removecore which = 445 } #Gibraltar
		[COLOR=Yellow]command = { type = sleepevent which = 142017 } #CAS: Second Phase of the War of Granada[/COLOR]
	}
}
#-#Granada has accepted the Treaty of Léon. Christians from their lands are flocking to our nation.

Code:
#(1500-1820) Treaty of Cordoba
event = {
	id = 3000018
	trigger = {
		flag = Resurgant_Granada
		NOT = { war = { country = GRA country = SPA } }
		NOT = { war = { country = GRA country = POR } }
		owned = { province = 438 data = -1 } #Murcia
		control = { province = 438 data = -1 } #Murcia
		owned = { province = 439 data = -1 } #Murcia
		control = { province = 439 data = -1 } #Murcia
		owned = { province = 443 data = -1 } #Andalusia
		control = { province = 443 data = -1 } #Andalusia
		owned = { province = 444 data = -1 } #Granada
		control = { province = 444 data = -1 } #Granada
		owned = { province = 445 data = -1 } #Gibraltar
		control = { province = 445 data = -1 } #Gibraltar
		countrysize = 6
		[COLOR=Yellow]exists = SPA[/COLOR]
	}
	random = no
	country = GRA
	name = "EVENTNAME3000018" #Treaty of Cordoba
	desc = "EVENTHIST3000018"
	#-#

	date = { year = 1500 }
	offset = 60
	deathdate = { year = 1820 }

	action_a = {
		name = "ACTIONNAME3000018A" #Accept the Treaty
		command = { type = stability value = 1 }
		command = { type = removecore which = 427 }
		command = { type = removecore which = 428 }
		command = { type = removecore which = 429 }
		command = { type = removecore which = 430 }
		command = { type = removecore which = 431 }
		command = { type = removecore which = 432 }
		command = { type = removecore which = 433 }
		command = { type = removecore which = 434 }
		command = { type = removecore which = 435 }
		command = { type = removecore which = 436 }
		command = { type = removecore which = 437 }
		command = { type = removecore which = 440 }
		command = { type = removecore which = 441 }
		command = { type = removecore which = 442 }
		command = { type = DIP which = 2 value = 60 }
		command = { type = vp value = 100 }
		command = { type = trigger which = 3000019 } #SPA: Treaty of Cordoba
		command = { type = sleepevent which = 3000016 } #GRA: Caliphate of Granada
		command = { type = sleepevent which = 3000017 } #GRA: Caliphate of Granada
	}
	action_b = {
		name = "ACTIONNAME3000018B" #Reject the Treaty
		command = { type = stability value = -2 }
		command = { type = DIP which = -2 value = 90 }
		command = { type = vp value = -10 }
	}
}
#-#With Muslim power on the rise in the south, the Christians had moved on to exploration and exploitation of the New World. It had become costly to continue the wars with Granada. Granada was finding itself more and more alienated from the eastern Islamic world for fear of a new western Caliphate being set up. So a treaty was beneficial for both sides. The Iberians would grudgingly recognize Granada's right to exist as an Islamic Iberian state while Granada would end its northern expansion.

Code:
#(1500-1820) Treaty of Cordoba
event = {
	id = 3000019 #triggered by GRA_3000018 A
	random = no
	country = SPA
	name = "EVENTNAME3000018" #Treaty of Cordoba
	desc = "EVENTHIST3000019"
	#-#

	action_a = {
		name = "OK"
		command = { type = stability value = 1 }
		command = { type = removecore which = 438 } #Murcia
		command = { type = removecore which = 439 } #Toledo
		command = { type = removecore which = 443 } #Estramadura
		command = { type = removecore which = 821 } #The Baleares
		[COLOR=Yellow]command = { type = removecore which = 443 } #Andalusia
		command = { type = removecore which = 444 } #Granada
		command = { type = removecore which = 445 } #Gibraltar[/COLOR]
		command = { type = revoltrisk value = 1 }
	}
}
#-#With the signing of the treaty, Spain recognized Granada's existence as a southern Iberian Islamic state so that it could better concentrate on the more profitable exploration and exploitation of the New World. This still had some hard-core fanatics who were quite upset at this development.

Code:
#(1419-[COLOR=Yellow]1820[/COLOR]) Caliphate of Granada [COLOR=Yellow]-I-[/COLOR]
event = {
	id = 3000016
	trigger = {
		domestic = { type = innovative value = 7 }
		NOT = { domestic = { type = serfdom value = 3 } }
		countrysize = 11
		stability = 3
		religion = sunni
		flag = Resurgant_Granada
		[COLOR=Yellow]OR = {
			NOT = { event = 301030 } #TUR: The Sultan becomes 'Khalifa'
			AND = {
				NOT = { exists = TUR }
				event = 301030 #TUR: The Sultan becomes 'Khalifa'
			}
		}
		NOT = { event = 3000017 } #GRA: Caliphate of Granada -II-[/COLOR]
	}
	random = no
	country = GRA
	name = "EVENTNAME3000016" #Caliphate of Granada
	desc = "EVENTHIST3000016"
	#-#

	date = { year = 1419 }
	offset = 60
	deathdate = { [COLOR=Yellow]year = 1820[/COLOR] }

	action_a = {
		name = "ACTIONNAME3000016A" #We need the title of Khalifah to protect our people
		command = { type = stability value = 1 }
		command = { type = domestic which = innovative value = 1 }
		command = { type = domestic which = serfdom value = -1 }
		command = { type = domestic which = aristocracy value = 1 }
		command = { type = manpower value = 5 }
		command = { type = provincetax which = -2 value = 1 }
		command = { type = provincemanpower which = -3 value = 1 }
		command = { type = provincetax which = -1 value = 1 }
		command = { type = provincemanpower which = -3 value = 1 }
		command = { type = provincetax which = -1 value = 1 }
		command = { type = provincemanpower which = -3 value = 1 }
		[COLOR=Yellow]#Almohads
		command = { type = addcore which = 732 } #Tangiers
		command = { type = addcore which = 733 } #Fez
		command = { type = addcore which = 806 } #Toubkal
		command = { type = addcore which = 805 } #Sahara
		command = { type = addcore which = 1595 } #Anti Atlas
		command = { type = addcore which = 734 } #Orania
		command = { type = addcore which = 735 } #Atlas
		command = { type = addcore which = 736 } #Aures
		command = { type = addcore which = 737 } #Al Djazair
		command = { type = addcore which = 738 } #Kabylia
		command = { type = addcore which = 739 } #Tunisia
		command = { type = addcore which = 740 } #Tripolitania[/COLOR]
		command = { type = flagname which = "Caliphate" }
		command = { type = clrflag which = Resurgant_Granada }
		command = { type = setflag which = Caliphate_Granada }
		[COLOR=Yellow]command = { type = trigger which = 3000048 } #CAS: Caliphate of Granada
		command = { type = trigger which = 3000049 } #POR: Caliphate of Granada
		command = { type = trigger which = 3000050 } #ARG: Caliphate of Granada
		command = { type = trigger which = 3000051 } #NAV: Caliphate of Granada
		command = { type = sleepevent which = 3000017 } #GRA: Caliphate of Granada -II-[/COLOR]
	}
}
#([COLOR=Yellow]1419[/COLOR]-1820) Caliphate of Granada [COLOR=Yellow]-II-[/COLOR]
event = {
	id = 3000017
	trigger = {
		domestic = { type = innovative value = 7 }
		NOT = { domestic = { type = serfdom value = 3 } }
		countrysize = 11
		stability = 3
		religion = sunni
		flag = Resurgant_Granada
		[COLOR=Yellow]AND = {
			exists = TUR
			event = 301030 #TUR: The Sultan becomes 'Khalifa'
		}
		NOT = { event = 3000016 } #GRA: Caliphate of Granada -I-[/COLOR]
	}
	random = no
	country = GRA
	name = "EVENTNAME3000016" #Caliphate of Granada
	desc = "EVENTHIST3000016"
	#-#

	date = { year = [COLOR=Yellow]1419[/COLOR] }
	offset = 60
	deathdate = { year = 1820 }

	action_a = {
		name = "ACTIONNAME3000016A" #We need the title of Khalifah to protect our people
		command = { type = stability value = 1 }
		command = { type = domestic which = innovative value = 1 }
		command = { type = domestic which = serfdom value = -1 }
		command = { type = domestic which = aristocracy value = 1 }
		command = { type = manpower value = 5 }
		command = { type = provincetax which = -2 value = 1 }
		command = { type = provincemanpower which = -3 value = 1 }
		command = { type = provincetax which = -1 value = 1 }
		command = { type = provincemanpower which = -3 value = 1 }
		command = { type = provincetax which = -1 value = 1 }
		command = { type = provincemanpower which = -3 value = 1 }
		[COLOR=Yellow]#Almohads
		command = { type = addcore which = 732 } #Tangiers
		command = { type = addcore which = 733 } #Fez
		command = { type = addcore which = 806 } #Toubkal
		command = { type = addcore which = 805 } #Sahara
		command = { type = addcore which = 1595 } #Anti Atlas
		command = { type = addcore which = 734 } #Orania
		command = { type = addcore which = 735 } #Atlas
		command = { type = addcore which = 736 } #Aures
		command = { type = addcore which = 737 } #Al Djazair
		command = { type = addcore which = 738 } #Kabylia
		command = { type = addcore which = 739 } #Tunisia
		command = { type = addcore which = 740 } #Tripolitania[/COLOR]
		command = { type = breakdynastic which = TUR }
		command = { type = relation which = TUR value = -75 }
		command = { type = flagname which = "Caliphate" }
		command = { type = clrflag which = Resurgant_Granada }
		command = { type = setflag which = Caliphate_Granada }
		[COLOR=Yellow]command = { type = trigger which = 3000048 } #CAS: Caliphate of Granada
		command = { type = trigger which = 3000049 } #POR: Caliphate of Granada
		command = { type = trigger which = 3000050 } #ARG: Caliphate of Granada
		command = { type = trigger which = 3000051 } #NAV: Caliphate of Granada
		command = { type = sleepevent which = 3000016 } #GRA: Caliphate of Granada -I-[/COLOR]
	}
}
EVENTHIST3000016;The resurgence of Granada in the west against the Iberian Christians and the cultural, spiritual, economic and military superiority in the region has not gone unnoticed in the Muslim world. Many other Islamic nations would have that power and those in the East do not condone a Moorish Iberia. Like many other powerful Sunni nations before it, Granada claimed the title of Khalifah in order to help grant more legitimacy to itself against the other forces that might threaten it because of its mostly Berber ethnicities which were often treated as second-class citizens in other Muslim nations. This did not go over well especially in the Ottoman Empire, the other major Islamic powers in the region.;;;;;;;;;;

Modifications in trigger for Caliphate events are tied to 1.52 bugfix #143.


I replaced ACTIONNAME3000027A, ACTIONNAME3000029A, ACTIONNAME3000031A, ACTIONNAME3000032A and ACTIONNAME3000034A with corresponding common entries for "Great!" and "Damn!"

And finally, AI file events if Rebirth of Portugal:
Code:
#AI events if Rebirth of Portuguese trade

event = {
	id = 3000012
	trigger = {
		ai = yes
		event = 3000029 #POR: Rebirth of Portuguese trade
	}
	random = no
	country = POR
	name = "AI_EVENT"
	desc = "Gaspar and Miguel Corte Real"

	date = { day = 1 month = may year = 1500 }
	offset = 30
	deathdate = { day = 29 month = october year = 1503 }

	action_a = {
		name = "Change to CorteReal AI"
		command = { type = ai which = POR_1500_CorteReal.ai }
	}
}
event = {
	id = 3000014
	trigger = {
		ai = yes
		event = 3000029 #POR: Rebirth of Portuguese trade
	}
	random = no
	country = POR
	name = "AI_EVENT"
	desc = "Manuel A takes the throne"

	date = { day = 1 month = january year = 1504 }
	offset = 30
	deathdate = { day = 29 month = october year = 1513 }

	action_a = {
		name = "Change to Manuel AI"
		command = { type = ai which = POR_1504_Manuel.ai }
	}
}
event = {
	id = 3000044
	trigger = {
		ai = yes
		event = 3000029 #POR: Rebirth of Portuguese trade
	}
	random = no
	country = POR
	name = "AI_EVENT"
	desc = "Manuel B takes the throne"

	date = { day = 1 month = january year = 1514 }
	offset = 30
	deathdate = { day = 29 month = september year = 1521 }

	action_a = {
		name = "Change to 3 explorers AI"
		command = { type = ai which = POR_1514_3explorers.ai }
	}
}
event = {
	id = 3000045
	trigger = {
		ai = yes
		event = 3000029 #POR: Rebirth of Portuguese trade
	}
	random = no
	country = POR
	name = "AI_EVENT"
	desc = "Joao III takes the throne"

	date = { day = 16 month = december year = 1521 }
	offset = 30
	deathdate = { day = 29 month = april year = 1557 }

	action_a = {
		name = "Change to Generic AI"
		command = { type = ai which = POR_1521_JoaoIII.ai }
	}
}
event = {
	id = 3000046
	trigger = {
		ai = yes
		event = 3000029 #POR: Rebirth of Portuguese trade
	}
	random = no
	country = POR
	name = "AI_EVENT"
	desc = "Sebastiano takes the throne"

	date = { day = 12 month = june year = 1557 }
	offset = 30
	deathdate = { day = 29 month = november year = 1579 }

	action_a = {
		name = "Change to Sebastiano AI"
		command = { type = ai which = POR_1557_Sebastiano.ai }
	}
}
event = {
	id = 3000047
	trigger = {
		ai = yes
		event = 3000029 #POR: Rebirth of Portuguese trade
	}
	random = no
	country = POR
	name = "AI_EVENT"
	desc = "Change to vassal AI"

	date = { day = 1 month = february year = 1580 }
	offset = 30
	deathdate = { year = 1820 }

	action_a = {
		name = "Change to vassal AI"
		command = { type = ai which = POR_1580_vassal.ai }
	}
}

EDIT: some tweaks
- unification of Aragon + Castile events slept in CAS_3000013 "Our capital is surrounded by Granada" in order to avoid weird results and problem of countrysize in trigger of Treaty of Léon.
- Baleares (821) as core of Granada seceded by CAS in CAS_3000031 "The Treaty of Léon is accepted"

Bugfix for POR_260041 "Afonso V's Expeditions to North Africa" is required but not mandatory.

"Unified Iberia" option is removed from scenario.

EDIT2:
Almohads lands restituted by Iberian vassals to the Caliphe. See modifications to GRA_3000016, GRA_3000017 and new events in post #86.

EDIT3:
Automatic war with CAS_142017 avoided if Treaty of Léon signed (CAS_3000031) and missing cores in SPA_3000019 and Treaty of Cordoba.
 
Last edited:
The following event, does not fire to me, even if I own those provinces. Which could be the problem?

#(1460-1520) Revival of Andalusia
event = {
id = 3000004
trigger = {
stability = -2
owned = { province = 438 data = -1 } #Murcia
control = { province = 438 data = -1 } #Murcia
owned = { province = 440 data = -1 } #Estramadura
control = { province = 440 data = -1 } #Estramadura
owned = { province = 443 data = -1 } #Andalusia
control = { province = 443 data = -1 } #Andalusia
owned = { province = 444 data = -1 } #Granada
control = { province = 444 data = -1 } #Granada
owned = { province = 445 data = -1 } #Gibraltar
control = { province = 445 data = -1 } #Gibraltar
NOT = {
vassal = { country = CAS country = GRA }
vassal = { country = SPA country = GRA }
vassal = { country = ARG country = GRA }
vassal = { country = POR country = GRA }
vassal = { country = NAV country = GRA }
}
}
random = no
country = GRA
name = "EVENTNAME3000004" #Revival of Andalusia
desc = "EVENTHIST3000004"
#-#Having defeated the Christians, and uniting the remnants of Muslims in the southern tip of Iberia, Granada was successful in regaining some of ground lost during the Iberian Christian reconqusita. Having restored the southern Moorish cities to at least a somewhat stable state in the time of the Bani Kiram and the southern Taifas of the 12th century, the Emirs were able to unite the Muslim efforts and make direly needed reforms.

date = { day = 1 month = june year = 1460 }
offset = 30
deathdate = { day = 1 month = january year = 1520 }
 
Last edited:
Yes, you are right. It works. The problem was stability. I was paying attention only to the provinces required and I haven't noticed that there was a requirement also on stability. Anyway, it fired with the 18BB points, instead of the 5BB of the new version.