Two reworked events for vassalization and annexation of Al-Djazaïr by OE:
Code:
#(1525-1554) The Ottoman protection of Al-Djazaïr
event = {
id = 3651
trigger = {
exists = TUR
NOT = {
vassal = { country = XHO country = ALD }
vassal = { country = TUN country = ALD }
vassal = { country = MOR country = ALD }
}
NOT = {
vassal = { country = ALD country = TUR }
}
[COLOR=Yellow]OR = {
owned = { province = 734 data = -1 } #Orania
owned = { province = 737 data = -1 } #Al Djazair
}[/COLOR]
}
random = no
country = ALD
name = "EVENTNAME3651" #The Ottoman protection of Al-Djazaïr
desc = "EVENTHIST3651"
#-#
date = { day = 1 month = january year = 1525 }
offset = 30
deathdate = { day = 29 month = december year = 1554 }
action_a = {
name = "ACTIONNAME3651A" #Accept the protection of the Grand Sultan
command = { type = trigger which = 3372 } #TUR: The Ottoman protection of Al-Djazaïr
command = { type = dynastic which = TUR }
command = { type = treasury value = 200 }
command = { type = relation which = TUR value = 100 }
command = { type = relation which = XHO value = -100 }
command = { type = relation which = TUN value = -100 }
command = { type = relation which = SPA value = -100 }
command = { type = casusbelli which = TUN value = 24 }
command = { type = casusbelli which = XHO value = 24 }
command = { type = casusbelli which = SPA value = 24 }
command = { type = stability value = 1 }
}
action_b = {
name = "ACTIONNAME3651B" #Decline the Sultan's offer
command = { type = relation which = TUR value = -100 }
command = { type = galleys which = -1 value = 15 }
command = { type = transports which = -1 value = 5 }
command = { type = stability value = -2 }
}
}
#-#A Turkish pirate of name Aruj, took over Al-Djazaîr in 1516 when he defeated the Spaniards. He then killed the local pasha and proclaimed himself pasha. He was known as Baba Aruj, or father Aruj. This was translated by the Spaniards as Barbarroja (Barbarossa in Italian, or Red beard). He was driven out of Tlemcen by the Spaniards and killed in 1518. However his brother, Khayr ad-Din Barbarossa, succeeded him. He sought protection from the Ottoman Empire and was appointed beylerbey. Driven out in 1520 by the Hafsids, he returned in 1525, massacring Arabs and Kabyles who resisted him. Under his rule Al-Djazaîr accepted the overlordship of the Ottoman Empire and continued the fight against the Spaniards, the Hafsids of Tunis and the Zayyanids of Tlemcen.
Code:
#(1546-1600) Al-Djazaîr becomes part of the Ottoman empire
#by Fodoron
event = {
id = 105002
trigger = {
vassal = { country = TUR country = ALD }
[COLOR=Yellow]OR = {
owned = { province = 734 data = -1 } #Orania
owned = { province = 737 data = -1 } #Al Djazair
neighbour = TUR
}[/COLOR]
}
random = no
country = ALD
name = "EVENTNAME105002" #Al-Djazaîr becomes part of the Ottoman Empire
desc = "EVENTHIST105002"
#-#
date = { day = 4 month = july year = 1546 }
offset = 50
deathdate = { day = 0 month = january year = 1600 }
action_a = {
name = "ACTIONNAME105002A" #Let the sultan name our ruler (End Game)
command = { type = relation which = TUR value = 50 }
command = { type = trigger which = 50019 } #TUR: Al-Djazaîr becomes part of the Ottoman Empire
}
action_b = {
name = "ACTIONNAME105002B" #We shall decide who rules us
command = { type = relation which = TUR value = -50 }
}
}
#-#At the death of Khayr ad-Din Barbarossa in Istanbul, the sultan named his son Hassan Pasha the new Pasha of Al-Djazaîr. For over a century, the rulers of Al-Djazaîr were chosen by the Porte, incorporating it to the domains of the Ottoman Empire.
Both events are really strange, especially second one when Al-Djazaîr has no acces to the sea and all surrounding provinces not owned by OE.
Other change:
Code:
#(1527-1572) Barbarossa attacks Tunis
#by Fodoron
event = {
id = 105001
trigger = {
exists = TUN
[COLOR=Yellow]exists = TUR[/COLOR]
event = 3372 #TUR: The Ottoman Vassalization of Al-Djazaîr
NOT = {
[COLOR=Yellow]war = { country = TUR country = ALD }[/COLOR]
war = { country = TUN country = ALD }
vassal = { country = TUN country = ALD }
vassal = { country = ALD country = TUN }
}
}
random = no
country = ALD
name = "EVENTNAME105001" #Barbarossa attacks Tunis
desc = "EVENTHIST105001"
#-#
date = { day = 0 month = january year = 1527 }
offset = 100
deathdate = { day = 0 month = january year = 1572 }
action_a = {
name = "ACTIONNAME105001A" #Attack Tunis
command = { type = casusbelli which = TUN value = 24 }
command = { type = relation which = TUN value = -50 }
command = { type = INF which = -1 value = 10000 } #Janissaries
command = { type = CAV which = -1 value = 4000 } #Sipahi
command = { type = trigger which = 300001 } #TUN: Tunis under attack from Barbarossa
}
action_b = {
name = "ACTIONNAME105001B" #Not worth it
command = { type = stability value = 1 }
}
}
#-#Khayr ad-Din Barbarossa was the main Ottoman instrument in North Africa. After obtaining Ottoman support he attacked the Hafsids, conquering Tunis in 1534. The deposed Hafsid pasha, al-Hassan, asked for help from Carlos of Spain, who sent a powerful fleet and recaptured Tunis, restoring al-Hassan as his vassal.