As some of the oldest events that I ever wrote, I think these were sorely in need of updates.
Code:
#(1472) The Fate of Morocco [color=yellow]-I-[/color]
event = {
id = 232006
random = no
trigger = {
NOT = { event = 232007 } [color=yellow]#The Fate of Morocco -II-[/color]
atwar = no
}
country = MOR
name = "EVENTNAME51000" #The Fate of Morocco
desc = "EVENTHIST51000"
#-#
date = { day = 1 month = january year = 1472 }
[color=yellow]offset = 1
deathdate = { day = 6 month = january year = 1472 }[/color]
action_a = {
name = "ACTIONNAME51000A" #Support the Wattasid dynasty
command = { type = removecore which = 1595 } #Anti Atlas
command = { type = removecore which = 805 } #Sahara
command = { type = colonialrevolt which = -1 }
command = { type = revolt which = -1 }
command = { type = stability value = 2 }
command = { type = revoltrisk which = 120 value = [color=limegreen]5[/color] }
#command = { type = AI which = MOR_wattasid.ai }
command = { type = province_revoltrisk which = 805 value = [color=limegreen]20[/color] } #Sahara
command = { type = province_revoltrisk which = 804 value = [color=limegreen]10[/color] } #Tassaret
command = { type = province_revoltrisk which = 1595 value = [color=limegreen]15[/color] } #Anti Atlas
}
action_b = {
name = "ACTIONNAME51000B" #Anarchy shall prevail!
command = { type = stability value = -4 }
command = { type = removecore which = 732 } #Tangiers
command = { type = removecore which = 733 } #Fez
command = { type = removecore which = 806 } #Toubkal
command = { type = revoltrisk which = 100 value = [color=limegreen]10[/color] }
command = { type = revolt which = -1 }
command = { type = sleepmonarch which = 091005 } #Muhammad al-Shaikh
command = { type = sleepmonarch which = 091006 } #Muhammad II al-Burtuqûlî
command = { type = sleepmonarch which = 091007 } #Abu al-'Abbas Ahmad
command = { type = sleepmonarch which = 091008 } #Bu Hassun
command = { type = wakemonarch which = 091009 } #Anarchy *
command = { type = wakemonarch which = 091010 } #Muhammad I al-Qa'im °
command = { type = wakemonarch which = 091011 } #Ahmad al A'raj °
command = { type = wakemonarch which = 091012 } #Muhammad II al-Shaikh °
command = { type = sleepevent which = 232008 } #MOR: The infirmity of the Wattasid Dynasty
}
}
#(1472) The Fate of Morocco [color=yellow]-II-[/color] [color=red]Alternate[/color]
event = {
id = 232007
random = no
trigger = {
atwar = yes
NOT = { event = 232006 } [color=yellow]#The Fate of Morocco -I- [/color]
}
country = MOR
name = "EVENTNAME51000" #The Fate of Morocco
desc = "EVENTHIST51000"
#-#
date = { day = 1 month = january year = 1472 }
[color=yellow]offset = 2
deathdate = { day = 6 month = january year = 1472 }[/color]
action_a = {
name = "ACTIONNAME51000A" #Support the Wattasid dynasty
command = { type = removecore which = 1595 } #Anti Atlas
command = { type = removecore which = 805 } #Sahara
command = { type = colonialrevolt which = -1 }
command = { type = colonialrevolt which = -1 }
command = { type = revolt which = -1 }
command = { type = stability value = 1 }
command = { type = revoltrisk which = 120 value = [color=limegreen]10[/color] }
#command = { type = AI which = MOR_Wattasid.ai }
command = { type = province_revoltrisk which = 805 value = [color=limegreen]20[/color] } #Sahara
command = { type = province_revoltrisk which = 804 value = [color=limegreen]10[/color] } #Tassaret
command = { type = province_revoltrisk which = 1595 value = [color=limegreen]15[/color] } #Anti Atlas
}
action_b = {
name = "ACTIONNAME51000B" #Anarchy shall prevail!
command = { type = stability value = -3 }
command = { type = removecore which = 732 } #Tangiers
command = { type = removecore which = 733 } #Fez
command = { type = removecore which = 806 } #Toubkal
command = { type = revoltrisk which = 100 value = [color=limegreen]13[/color] }
command = { type = revolt which = -1 }
command = { type = revolt which = -1 }
command = { type = sleepmonarch which = 091005 } #Muhammad al-Shaikh
command = { type = sleepmonarch which = 091006 } #Muhammad II al-Burtuqûlî
command = { type = sleepmonarch which = 091007 } #Abu al-'Abbas Ahmad
command = { type = sleepmonarch which = 091008 } #Bu Hassun
command = { type = wakemonarch which = 091009 } #Anarchy *
command = { type = wakemonarch which = 091010 } #Muhammad I al-Qa'im °
command = { type = wakemonarch which = 091011 } #Ahmad al A'raj °
command = { type = wakemonarch which = 091012 } #Muhammad II al-Shaikh °
command = { type = sleepevent which = 232008 } #MOR: The infirmity of the Wattasid Dynasty
}
}
#(1472) The Infirmity of the Wattasid Dynasty
event = {
id = 232008
random = no
country = MOR
name = "EVENTNAME51013" #The infirmity of the Wattasid Dynasty
desc = "EVENTHIST51013"
#-#
date = { day = 1 month = january year = 1472 }
offset = 200
deathdate = { day = 29 month = december year = 1472 }
action_a = {
name = "ACTIONNAME51013A" #The nation is spiraling out of our control!
[color=yellow]command = { type = stability value = -3 }[/color]
command = { type = diplomats value = -3 }
command = { type = missionaries value = -3 }
command = { type = inflation value = 10 }
command = { type = treasury value = -50 }
command = { type = infra value = -250 }
}
}
#(1500-1545) The Wattasids
event = {
id = 232010
trigger = {
ai = yes
exists = FEZ
}
random = no
country = MOR
name = "EVENTNAME232010" #The Wattasids
desc = "EVENTHIST232010"
#-#
date = { day = 1 month = january year = 1500 }
offset = 30
deathdate = { day = 1 month = january year = 1545 }
action_a = {
name = "ACTIONNAME51007A" #And so we lose control
command = { type = province_revoltrisk which = 805 value = [color=limegreen]-20[/color] } #Sahara
command = { type = province_revoltrisk which = 804 value = [color=limegreen]-10[/color] } #Tassaret
command = { type = province_revoltrisk which = 1595 value = [color=limegreen]-15[/color] } #Anti Atlas
command = { type = secedeprovince which = FEZ value = 1597 } #Azaouad
command = { type = secedeprovince which = FEZ value = 804 } #Tassaret
command = { type = secedeprovince which = FEZ value = 1596 } #Mdennan
command = { type = secedeprovince which = FEZ value = 805 } #Sahara
command = { type = secedeprovince which = FEZ value = 803 } #Nouadibuh
command = { type = secedeprovince which = FEZ value = 802 } #Nouakchott
command = { type = secedeprovince which = FEZ value = 1595 } #Anti Atlas
command = { type = relation which = FEZ value = -100 }
}
}
#(1554-1665) The Sa'di dynasty
#inspired by Greebo
event = {
id = 232009
random = no
trigger = {
NOT = { exists = FEZ }
}
country = MOR
name = "EVENTNAME51003" #The Sa'di dynasty
desc = "EVENTHIST232009"
#-#
date = { day = 1 month = january year = 1554 }
offset = 20
deathdate = { day = 1 month = january year = 1665 }
action_a = {
name = "ACTIONNAME232009A" #We are the Sa'di!
command = { type = addcore which = 1595 } #Anti Atlas
command = { type = addcore which = 805 } #Sahara
command = { type = inflation value = -10 }
command = { type = province_revoltrisk which = 805 value = [color=limegreen]-20[/color] } #Sahara
command = { type = province_revoltrisk which = 804 value = [color=limegreen]-10[/color] } #Tassaret
command = { type = province_revoltrisk which = 1595 value = [color=limegreen]-15[/color] } #Anti Atlas
command = { type = add_countryculture which = berber }
}
}
#(1603-1605) Brother against Brother [color=yellow]-I-[/color]
event = {
id = 232014
trigger = {
NOT = {
monarch = 091017 #Ahmad al-Mansur
exists = FEZ
}
}
random = no
country = MOR
name = "EVENTNAME232014" #Brother against Brother
desc = "EVENTHIST232014"
#-#
date = { day = 1 month = january year = 1603 }
offset = 5[color=limegreen]1[/color]
deathdate = { day = 1 month = january year = 1605 }
action_a = {
name = "ACTIONNAME232014A" #Al-Mansur is dead and chaos reigns!
command = { type = independence which = FEZ }
command = { type = stability value = -2 }
command = { type = trigger which = 166004 } #FEZ: Brother against Brother
command = { type = revoltrisk which = [color=limegreen]84[/color] value = [color=limegreen]10[/color] }
command = { type = sleepevent which = 232015 } #MOR: Brother against Brother [color=yellow]-II-[/color]
}
}
#(1603-1605) Brother against Brother [color=red]alternate[/color] [color=yellow]-II-[/color]
event = {
id = 232015
trigger = {
exists = FEZ
NOT = { monarch = 091017 } #Ahmad al-Mansur
}
random = no
country = MOR
name = "EVENTNAME232015" #Brother against Brother
desc = "EVENTHIST232015"
#-#
date = { day = 1 month = january year = 1603 }
offset = 50
deathdate = { day = 1 month = january year = 1605 }
action_a = {
name = "ACTIONNAME232015A" #Al-Mansur is dead and chaos reigns!
command = { type = stability value = -2 }
command = { type = revoltrisk which = [color=limegreen]84[/color] value = [color=limegreen]10[/color] }
command = { type = sleepevent which = 232014 } #MOR: Brother against Brother [color=yellow]-I-[/color]
command = { type = trigger which = 232017 } #MOR: Death of al-Mansur
}
}
#(1603-1605) Brother against Brother
event = {
id = 166004 #triggered by MOR_232014 / MOR_232017
random = no
country = FEZ
name = "EVENTNAME166004" #Brother against Brother
desc = "EVENTHIST166004"
#-#
action_a = {
name = "ACTIONNAME166004A" #Al-Mansur is dead and chaos reigns!
command = { type = breakvassal which = MOR }
command = { type = relation which = MOR value = -350 }
command = { type = revoltrisk which = [color=limegreen]84[/color] value = [color=limegreen]10[/color] }
[color=yellow]#[/color]command = { type = capital which = 806 } #Toubkal
command = { type = stability value = -3 }
}
}
Last edited: