I can't find a problem with these events (or just the first one), it crashes because of the trigger, which is a copy of an existing and working MAM event. :huh:
Help, anyone? :unsure:
(in case anyone is wandering about the numbers, it's MyMap)
Code:
#Fall of the Mamluk Empire
event = {
id = 900205
trigger = {
war = { country = BYZ country = MAM }
event = 90000
NOT = { countrysize = 45 }
NOT = { control = { province = 485 data = MAM } } #Aleppo
NOT = { control = { province = 490 data = MAM } } #Syria
NOT = { control = { province = 746 data = MAM } } #Cairo
OR = {
control = { province = 491 data = BYZ } #Lebanon
control = { province = 492 data = BYZ } #Antiochaeia
control = { province = 493 data = BYZ } #Palestine
control = { province = 744 data = BYZ } #Alexandria
control = { province = 745 data = BYZ } #Gharbiyah
}
}
random = no
country = MAM
name = "Fall of the Mamluk Empire"
desc = "After the Empire had secured the Aegean seaboard and successfully established its rule over former Ottoman territories in Asia Minor, it turned to its once most populous and richest lands: Egypt. At that time, the Mameluk state already was in a state of anarchy and its armies hopelessly inferior to those of the Empire, and thus the Imperial armies rushed through its defenses at an incredible speed. The Syrian army led by the Sultan himself who got killed in that battle was destroyed near Aleppo, the city of Damaskus fell and the rest of Syria and Palestina was quickly overrun. After wintering in Damaskus, the Imperial Army progressed to Egypt. Soon, the last remaining Mameluk army engaged for the final battle near Radania and was decisively defeated. This battle marked the end of the Mameluk Empire. Constantinople offered vassal status to the last Sultan Tumanbeg, but he proudly refused and preferred being beheaded. Syria, Palestina and Egypt were incorporated into the Roman Empire that now stretched over three continents. For the administration of the new African possessions a Senator with his seat in Kairo was appointed."
style = 2
date = { day = 1 month = january year = 1485 }
offset = 0
deathdate = { day = 31 month = december year = 1566 }
action_a = {
name = "Tumanbeg refuses vassal status and is executed (End Game)"
command = { type = secedeprovince which = BYZ value = 744 }
command = { type = secedeprovince which = BYZ value = 485 }
command = { type = secedeprovince which = BYZ value = 486 }
command = { type = secedeprovince which = BYZ value = 488 }
command = { type = secedeprovince which = BYZ value = 489 }
command = { type = secedeprovince which = BYZ value = 490 }
command = { type = secedeprovince which = BYZ value = 491 }
command = { type = secedeprovince which = BYZ value = 492 }
command = { type = secedeprovince which = BYZ value = 493 }
command = { type = secedeprovince which = BYZ value = 495 }
command = { type = secedeprovince which = BYZ value = 483 }
command = { type = secedeprovince which = BYZ value = 474 }
command = { type = secedeprovince which = BYZ value = 1004 }
command = { type = secedeprovince which = BYZ value = 1734 }
command = { type = secedeprovince which = BYZ value = 1737 }
command = { type = secedeprovince which = BYZ value = 1747 }
command = { type = secedeprovince which = BYZ value = 1722 }
command = { type = secedeprovince which = ARA value = 496 }
command = { type = secedeprovince which = ARA value = 497 }
command = { type = secedeprovince which = ARA value = 498 }
command = { type = secedeprovince which = ARA value = 1732 }
command = { type = secedeprovince which = TRI value = 741 }
command = { type = secedeprovince which = TRI value = 944 }
command = { type = secedeprovince which = TRI value = 1820 }
command = { type = secedeprovince which = TRI value = 1764 }
command = { type = secedeprovince which = NJD value = 1726 }
command = { type = secedeprovince which = NJD value = 1731 }
command = { type = independence which = ARA }
command = { type = independence which = NJD }
command = { type = breakvassal which = ARA }
command = { type = independence which = TRI }
command = { type = independence which = YOR }
command = { type = trigger which = 900206 } #BYZ: Annexation of the Mamluk Empire
}
action_b = {
name = "Tumanbeg accepts vassal status"
command = { type = vp value = -200 }
command = { type = secedeprovince which = BYZ value = 744 }
command = { type = secedeprovince which = BYZ value = 485 }
command = { type = secedeprovince which = BYZ value = 486 }
command = { type = secedeprovince which = BYZ value = 488 }
command = { type = secedeprovince which = BYZ value = 489 }
command = { type = secedeprovince which = BYZ value = 490 }
command = { type = secedeprovince which = BYZ value = 491 }
command = { type = secedeprovince which = BYZ value = 492 }
command = { type = secedeprovince which = BYZ value = 493 }
command = { type = secedeprovince which = BYZ value = 495 }
command = { type = secedeprovince which = BYZ value = 483 }
command = { type = secedeprovince which = BYZ value = 474 }
command = { type = secedeprovince which = BYZ value = 1004 }
command = { type = secedeprovince which = BYZ value = 1734 }
command = { type = secedeprovince which = BYZ value = 1737 }
command = { type = secedeprovince which = BYZ value = 1747 }
command = { type = secedeprovince which = BYZ value = 1722 }
command = { type = secedeprovince which = ARA value = 496 }
command = { type = secedeprovince which = ARA value = 497 }
command = { type = secedeprovince which = ARA value = 498 }
command = { type = secedeprovince which = ARA value = 1732 }
command = { type = secedeprovince which = TRI value = 741 }
command = { type = secedeprovince which = TRI value = 944 }
command = { type = secedeprovince which = TRI value = 1820 }
command = { type = secedeprovince which = TRI value = 1764 }
command = { type = secedeprovince which = NJD value = 1726 }
command = { type = secedeprovince which = NJD value = 1731 }
command = { type = independence which = ARA }
command = { type = independence which = TRI }
command = { type = independence which = NJD }
command = { type = independence which = YOR }
command = { type = breakvassal which = ARA }
command = { type = trigger which = 900207 } #BYZ: Submission of the Mamluk Sultan
}
action_c = {
name = "The Romans have no claim over us!"
command = { type = stability value = -5 }
command = { type = desertion which = -2 value = 15000 }
command = { type = secedeprovince which = BYZ value = 485 }
command = { type = secedeprovince which = BYZ value = 486 }
command = { type = secedeprovince which = BYZ value = 488 }
command = { type = secedeprovince which = BYZ value = 489 }
command = { type = secedeprovince which = BYZ value = 490 }
command = { type = secedeprovince which = BYZ value = 491 }
command = { type = secedeprovince which = BYZ value = 492 }
command = { type = secedeprovince which = BYZ value = 493 }
command = { type = secedeprovince which = BYZ value = 495 }
command = { type = secedeprovince which = BYZ value = 483 }
command = { type = secedeprovince which = BYZ value = 474 }
command = { type = secedeprovince which = BYZ value = 1004 }
command = { type = secedeprovince which = BYZ value = 1734 }
command = { type = secedeprovince which = BYZ value = 1737 }
command = { type = secedeprovince which = BYZ value = 1747 }
command = { type = secedeprovince which = BYZ value = 1722 }
command = { type = secedeprovince which = ARA value = 496 }
command = { type = secedeprovince which = ARA value = 497 }
command = { type = secedeprovince which = ARA value = 1732 }
command = { type = secedeprovince which = TRI value = 741 }
command = { type = secedeprovince which = TRI value = 944 }
command = { type = secedeprovince which = TRI value = 1820 }
command = { type = secedeprovince which = TRI value = 1764 }
command = { type = secedeprovince which = NJD value = 1726 }
command = { type = secedeprovince which = NJD value = 1731 }
command = { type = independence which = ARA }
command = { type = independence which = TRI }
command = { type = independence which = NJD }
command = { type = independence which = YOR }
}
}
#Fall of the Mameluk Empire
event = {
id = 900206
trigger = {
event = 90000
}
random = no
country = BYZ
name = "Annexation of the Mameluk Empire"
desc = "After the Empire had secured the Aegean seaboard and successfully established its rule over former Ottoman territories in Asia Minor, it turned to its once most populous and richest lands: Egypt. At that time, the Mameluk state already was in a state of anarchy and its armies hopelessly inferior to those of the Empire, and thus the Imperial armies rushed through its defenses at an incredible speed. The Syrian army led by the Sultan himself who got killed in that battle was destroyed near Aleppo, the city of Damaskus fell and the rest of Syria and Palestina was quickly overrun. After wintering in Damaskus, the Imperial Army progressed to Egypt. Soon, the last remaining Mameluk army engaged for the final battle near Radania and was decisively defeated. This battle marked the end of the Mameluk Empire. Constantinople offered vassal status to the last Sultan Tumanbeg, but he proudly refused and preferred being beheaded. Syria, Palestina and Egypt were incorporated into the Roman Empire that now stretched over three continents. For the administration of the new African possessions a Senator with his seat in Kairo was appointed."
style = 2
action_a = {
name = "Install a Senator for Africa"
command = { type = inherit which = MAM }
command = { type = domestic which = centralization value = -2 }
command = { type = stability value = 1 }
command = { type = setflag which = ArabicCulture }
}
action_b = {
name = "Administrate Egypt from Constantinople"
command = { type = domestic which = centralization value = 1 }
command = { type = inherit which = MAM }
command = { type = add_countryculture which = arabic }
command = { type = stability value = -1 }
command = { type = setflag which = ArabicCulture }
}
}
event = {
id = 900207
trigger = {
religion = orthodox
}
random = no
country = BYZ
name = "Submission of the Mameluk Sultan"
desc = "After the Empire had secured the Aegean seaboard and successfully established its rule over former Ottoman territories in Asia Minor, it turned to its once most populous and richest lands: Egypt. At that time, the Mameluk state already was in a state of anarchy and its armies hopelessly inferior to those of the Empire, and thus the Imperial armies rushed through its defenses at an incredible speed. The Syrian army led by the Sultan himself who got killed in that battle was destroyed near Aleppo, the city of Damaskus fell and the rest of Syria and Palestina was quickly overrun. After wintering in Damaskus, the Imperial Army progressed to Egypt. Soon, the last remaining Mameluk army engaged for the final battle near Radania and was decisively defeated. This battle marked the end of the Mameluk Empire. Constantinople offered vassal status to the last Sultan Tumanbeg, but he proudly refused and preferred being beheaded. Syria, Palestina and Egypt were incorporated into the Roman Empire that now stretched over three continents. The Emperor offered vassal status to the last Sultan Tumanbeg. The cowardly dog has accepted this humiliation and will now rule Egypt as a subject of the Roman Emperor."
style = 2
action_a = {
name = "Great"
command = { type = vassal which = MAM }
command = { type = badboy value = -5 }
}
}
Help, anyone? :unsure:
(in case anyone is wandering about the numbers, it's MyMap)