#Magindanao (MND)

#See AGCEEP_Alt_Iberia.txt for Alternative events involving Portugal

#-----------------------------------------------------------------------------------------------

#(1510-1820) Founding of the Sultanate
#MKJ(?)
event = {
	id = 80710
	trigger = {
		NOT = {
			religion = sunni
			religion = eastern_sunni
			religion = shia
			religion = eastern_shia
		}
	}
	country = MND
	random = no
	name = "EVENTNAME80710" #Founding of the Sultanate
	desc = "EVENTHIST80710"
	#-#With the founding of the Sultanate of Magindanao, the area became a Muslim Kingdom.

	date = { day = 1 month = january year = 1510 }
	offset = 2000
	deathdate = { year = 1820 }

	action_a = {
		name = "ACTIONNAME80710A" #Found a great Muslim dynasty
		command = { type = religion which = eastern_sunni }
		command = { type = provincereligion which = -2 value = sunni }
	}
	action_b = {
		name = "ACTIONNAME80710B" #Do not found the sultanate
		command = { type = stability value = -2 }
	}
}

#(1599-1609) Moro wars (II)
#by Fodoron
event = {
	id = 119000
	trigger = {
		event = 285166 #SPA: Moro wars (I)
		atwar = no
		exists = SPA
	}
	random = no
	country = MND
	name = "EVENTNAME119000" #Moro wars (II)
	desc = "EVENTHIST119000"
	#-#The Spaniards were able to get a beachhead in Magindanao and started a program to convert the tribesmen. The attacks on Magindanao weakened and this was used by Magindanao chiefs to launch attacks on the Visayas, the central group of islands, including Samar and Leyte, already under Spanish dominion. The Spaniards responded with new attacks on Sulu and Magindanao.A peace treaty was finally signed in 1609.

	date = { day = 0 month = january year = 1599 }
	offset = 100
	deathdate = { day = 0 month = january year = 1609 }

	action_a = {
		name = "ACTIONNAME119000A" #Attack the invaders
		command = { type = war which = SPA }
		command = { type = stability value = 1 }
		command = { type = trigger which = 285167 } #SPA: Moro wars (II)
	}
	action_b = {
		name = "ACTIONNAME119000B" #Not now
		command = { type = vp value = -5 }
	}
}

#(1627-1737) Moro wars (III)
#by Fodoron
event = {
	id = 119001
	trigger = {
		event = 119000 #MND: Moro wars (II)
		atwar = no
		exists = SPA
	}
	random = no
	country = MND
	name = "EVENTNAME119001" #Moro wars (III)
	desc = "EVENTHIST119001"
	#-#In response to a diplomatic incident in 1627, the Raja of Sulu attacked Camarines Sur and the Central Visayas. The Spaniards invaded Sulu in response. Sulu and Magindanao allied and jointly invaded the Central Visayas in 1634. War waged until 1644, when the Spaniards opted for abandoning Sulu and signed another peace. However Sulu and Magindanao had been weakened. By then Spain had gotten hold of a large part of Magindanao, and strong immigration by Christian Filipinos was changing the demography of the island. Sulu would continue the wars and rebellions into the North American conquest of the Philippines, but Magindanao came under Spanish control except for the occasional rebellion.

	date = { day = 0 month = january year = 1627 }
	offset = 100
	deathdate = { day = 0 month = january year = 1737 }

	action_a = {
		name = "ACTIONNAME119000A" #Attack the invaders
		command = { type = war which = SPA }
		command = { type = stability value = 1 }
		command = { type = trigger which = 285168 } #SPA: Moro wars (III)
	}
	action_b = {
		name = "ACTIONNAME119000B" #Not now
		command = { type = vp value = -5 }
	}
}

#-----------------------------------------------------------------------------------------------

#First free id: 119002
