• 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.
A fun little set of event. Basically, like the Mughal sequence I made, this add-on uses MUS to generate a 1-in-5games chance that Jahan Shah didn't die. Since his death was essentially an unexpected fluke, this feels somewhat reasonable. I've also tied up the loose ends on what happens with Persia if the QAR don't go down as per historical. There are a few changes to existing events 266002 & 266003, marked in yellow.

Code:
# approx 20% Jahan Shah lives, 80% chance normal sequence

# Check for Jahan Shah death
event = {
	id = 230204
	random = no
	country = MUS
	name = "AI_EVENT"
	desc = "Jahan Shah"

	date = { year = 1419 }
	deathdate = { year = 1820 }

	action_a = {
		name = "Check again"
		# Cascade to next
		command = { type = trigger which = 230205 } #second death check event
	}
	action_b = {
		name = "Dies in Battle"
		# Dies in Battle
		command = { type = clrflag which = [qar_end] }
	}
	action_c = {
		name = "Survives Battle"
		# Survives Battle
		command = { type = setflag which = [qar_end] }
	}
	action_d = {
		name = "Survives Battle"
		# Survives Battle
		command = { type = setflag which = [qar_end] }
	}
}

# Check for Jahan Shah death, triggered from the previous one
event = {
	id = 230205
	random = no
	country = MUS
	name = "AI_EVENT"
	desc = "Jahan Shah"

	action_a = {
		name = "Dies in Battle"
		# Dies in Battle
		command = { type = clrflag which = [qar_end] }
	}
	action_b = {
		name = "Survives Battle"
		# Survives Battle
		command = { type = setflag which = [qar_end] }
	}
	action_c = {
		name = "Survives Battle"
		# Survives Battle
		command = { type = setflag which = [qar_end] }
	}
}


#Jahan Shah Lives!
event = {
	id = 230206
	trigger = {
		flag = [qar_end]
	}
	random = no
	country = MUS
	name = "AI_EVENT"
	desc = "?"

	date = { day = 0 month = january year = 1419 }
	offset = 10
	deathdate = { day = 12 month = april year = 1819 }

	action_a = {
		name = "OK"
		command = { }
		command = { type = sleepevent which = 266012 } #QAR: The Death of Jahan Shah
		command = { type = sleepevent which = 266013 } #QAR: The Death of Jahan Shah - alternate
	}
}

Code:
event = {
	id = 266002
	trigger = { 
		exists = TIM
		[color=yellow]NOT = { event = 23026 } #MUS: Jahan Shah Lives![/color]
	}
	random = no
	country = QAR
	name = "EVENTNAME266002" #Jahan Shah as rival in Azerbaijan
	desc = "EVENTHIST266002"

	date = { day = 1 month = april year = 1436 }
	offset = 5
	deathdate = { day = 1 month = june year = 1436 }

	action_a = {
		name = "ACTIONNAME266002A" #Look what the Timurids have wrought
		command = { type = revoltrisk which = 30 value = 2 }
		command = { type = stability value = -3 }
		command = { type = desertion which = 487 value = 1000 } #Azerbaijan
	}
}

event = {
	id = 266003
	trigger = {
		monarch = 0114004 #Jahan Shah
		[color=yellow]OR = {[/color]
			event = 266002
		[color=yellow]	event = 266019
		}[/color]
		NOT = { event = 266001 }
	}
	random = no
	country = QAR
	name = "EVENTNAME266003" #Jahan Shah ousts Iskandar
	desc = "EVENTHIST266003"

	date = { day = 1 month = april year = 1436 }
	offset = 10
	deathdate = { day = 29 month = december year = 1440 }

	action_a = {
		name = "ACTIONNAME266003A" #Now for something new
		command = { type = stability value = 1 }
		command = { type = revolt which = -1 }
		command = { type = revolt which = -1 }
		command = { type = trigger which = 296755 } #TIM: New Leadership of the Kara Koyunlu
		command = { type = relation which = IRA value = -200 }
	}
}

Code:
event = {
	id = 266019
	trigger = { 
		exists = TIM
		event = 23026 #MUS: Jahan Shah Lives!
	}
	random = no
	country = QAR
	name = "EVENTNAME266002" #Jahan Shah as rival in Azerbaijan
	desc = "EVENTHIST266002"

	date = { day = 1 month = april year = 1436 }
	offset = 5
	deathdate = { day = 1 month = june year = 1436 }

	action_a = {
		name = "ACTIONNAME266002A" #Look what the Timurids have wrought
		command = { type = revoltrisk which = 30 value = 2 }
		command = { type = stability value = -3 }
		command = { type = desertion which = 487 value = 1000 } #Azerbaijan
		command = { type = wakemonarch which = 0114006 } #Jahan Shah till 1485
		command = { type = sleepmonarch which = 0114005 } #Hasan Ali
	}
}

Code:
#Safavid Takeover#
event = {
	id = 266018
	trigger = {
		NOT = { exists = PER }
		event = 23026 #MUS: Jahan Shah Lives!
	}
	random = no
	country = QAR
	name = "Safavid Takeover"

	style = 1

	date = { day = 1 month = may year = 1485 }
	offset = 30
	deathdate = { day = 1 month = january year = 1505 }

	action_a ={ 
		name = "He who plays with fire will one day be burnt"
		command = { type = country which = PER }
		command = { type = capital which = 487 }
		command = { type = religion which = shiite }
		command = { type = remove_countryculture which = turkish }
		command = { type = remove_countryculture which = kurdish }
		command = { type = add_countryculture which = persian }
		command = { type = revolt which = -2 }
		command = { type = revolt which = -1 }
		command = { type = revolt which = -1 }
		command = { type = revolt which = -1 }
		command = { type = revolt which = -1 }
		command = { type = revolt which = -1 }
		command = { type = revolt which = -1 }
		command = { type = revolt which = -1 }
		command = { type = revoltrisk which = 60 value = 7 }
		command = { type = stability value = -1 }	
		command = { type = domestic which = centralization value = -3 }
		command = { type = domestic which = aristocracy value = 2 }
	}
}

desc = "Jahan Shah's religious policy was quite lax and subject to change. Jahan Shah typically espoused the religion that would help him the most at a given moment. Such a policy was dangerous as it was inevitable that his followers would tire of his duplicity. As fate would have it the Safavid sect, a sect of shiite priests from Azerbaijan, began gaining popular support in the 1480s. As was his policy, Jahan Shah sought to prevent them from ever be a threat by appearing to pander to their beliefs and invited their leader, Sultan Haidar, to his court. Jahan Shah miscalculated badly, as upon Haidar's arrival in Tabriz, the people of the city took up arms against Jahan Shah and proclaimed Haidar ruler of Persia. While it would be a while before Haidar could consolidate his empire, the time of Kara Koyunlu dominance was over."

And new monarch:

Code:
historicalmonarch = {
	id = { type = 6 id = 0114006 }
	name = "Jahan Shah"
	startdate = {
		day = 21
		month = april
		year = 1438
	}
	deathdate = {
		day = 30
		month = december
		year = 1485
	}
	DIP = 6
	ADM = 4
	MIL = 5
	dormant = yes
}
 
Small change to this AKK AI file. Currently, the AKK is not pushed to conquer the Timurids if QAR fails or is annexed early. That's bad.

Code:
#
# Europa Universalis
#
# Ak Koyunlu AI
# AKK_1456_Usun.ai
region = { }
area = { }
expansion = 0
tradingpost = 50
neighbour = 20
enemies = 0
traders = 20
monopoly = -500
war = 30
ferocity = no
counterreform = no
combat = { TUR IRA QAR GEO [color=yellow]TIM[/color] }
base = 0.5
front = 5.0
conquer = {
	enemy = 5.0
	supply = 0.1
	distance = 3.0
	owner = 1.0
	notsupply = 0.1
	base = 0.3
}
garrison = {
	fortress = 5.0
	strategic = 12.0
	size = 1.0
	supply = 9.0
	war = 8.0
}
 
Also this is a small value for all the conquering that QAR needs to do.

Code:
#
# Qara Koyunlu (Black Sheep Turks) AI
# QAR_1449_Fars.ai

region = { }
area = { }
expansion = 0
tradingpost = 50
neighbour = 20
enemies = 0
traders = 20
monopoly = -500
war = [color=red]20[/color] [color=yellow]40[/color]
ferocity = no
counterreform = no
combat = { U03 TIM U01 IRA BAS }
base = 0.5
front = 5.0
conquer = {
	enemy = 5.0
	supply = 0.1
	distance = 3.0
	owner = 1.0
	notsupply = 0.1
	base = 0.3
}
garrison = {
	fortress = 1.0
	strategic = 3.0
	size = 1.0
	supply = 3.0
	war = 5.0
}
 
New AI for AKK in case they take out QAR ahead of schedule. Basically, it makes them take over the QAR mission as them owning Persia is important for historical flow.

Code:
event = {
	id = 600161
	trigger = { 
		ai = yes 
		NOT = { exists = QAR }
	}
	random = no
	country = AKK
	name = "AI_EVENT"
	desc = "Change to QAR Fars AI"

	date = { day = 1 month = february year = 1445 }

	action_a = {
		name = "Change to QAR Fars AI"
		command = { type = ai which = "QAR_1449_Fars.ai" }
		command = { type = sleepevent which = 600160 } #AI change: AKK_1456_Usun.ai

	}
}
 
Qandahar (1525) should have its primary culture changed to afghani from baluchi. As basically the important capital of the Afghan states in the period (and the capital of our Afghan revolter), it doesn't make much sense for it to be baluchi. Also, if we do this than we can make the following change to our Afghan revolter:

Code:
AFG = { #Afghanistan
	date = { day = 1 month = january year = 1440 }
	expirydate = { year = 1820 }
	minimum = { 1527 1525 1524 }
	extra = { 1526 1528 }
	capital = 1525
	group = muslim
	[color=red]culture = afghani[/color]
	ai = "SmallTrade0.ai"
}
 
Afghanistan AIs!

Code:
event = {
	id = 
	trigger = { ai = yes }
	random = no
	country = AFG
	name = "AI_EVENT"
	desc = "Hotaki AI"

	date = { day = 1 month = january year = 1707 }
	offset = 10
	deathdate = { day = 1 month = december year = 1746 }

	action_a = {
		name = "Change to Hotaki AI"
		command = { type = ai which = AFG_1707_Hotaki.ai }
	}
}

event = {
	id = 
	trigger = { ai = yes }
	random = no
	country = AFG
	name = "AI_EVENT"
	desc = "Durrani AI"

	date = { day = 1 month = january year = 1747 }
	offset = 10
	deathdate = { day = 1 month = december year = 1820 }

	action_a = {
		name = "Change to Durrani AI"
		command = { type = ai which = AFG_1747_Durrani.ai }
	}
}

Code:
#
# Hotaki AI
#
# Garbon 4-27-2008
#
expansion = 0
tradingpost = 20
neighbour = 10
enemies = -1
traders = 100
monopoly = 10 #-500
war = 40
ferocity = no
combat = { PER U01 U03 KUS }
base = 0.1
front = 5.0
conquer =
{
	enemy = 5.0
	supply = 0.1
	distance = 1.0
	owner = 1.0
	notsupply = 1.0
	base = 3.0
}
garrison =
{
	fortress = 1.0
	strategic = 3.0
	size = 1.0
	supply = 2.0
	war = 5.0
}

Code:
#
# Durrani AI
#
# Garbon 4-27-2008
#
expansion = 0
tradingpost = 20
neighbour = 10
enemies = -1
traders = 100
monopoly = 10 #-500
war = 60
ferocity = no
combat = { PER U01 U03 BAL MES KSH KUS MOG MAH }
base = 0.1
front = 5.0
conquer =
{
	enemy = 5.0
	supply = 0.1
	distance = 1.0
	owner = 1.0
	notsupply = 1.0
	base = 3.0
}
garrison =
{
	fortress = 1.0
	strategic = 3.0
	size = 1.0
	supply = 2.0
	war = 5.0
}
 
As a surrogate for the one event that made it likely for Afghanistan to appear. And the beginning of a new sequence...

This sequences necessitates the removal of MOG_6905, PER_6908, and MOG_6906

Code:
#(1707-1714) The Rebellion of Mir Wais
event = {
	id = 
	trigger = {
		countrysize = 2
		NOT = { 
			exists = AFG 
			flag = [Mir_Wais]
		}
	}
	random = no
	province = 1525 #Qandahar
	name = "EVENTNAMExx" #The Rebellion of Mir Wais
	desc = "EVENTHISTxx"
	#-#

	date = { day = 1 month = january year = 1707 }
	offset = 51
	deathdate = { year = 1714 }

	action_a = {
		name = "CURSES"
		command = { type = province_revoltrisk which = 1524 value = 30 } #Quetta
		command = { type = province_revoltrisk which = 1525 value = 30 } #Qandahar
		command = { type = province_revoltrisk which = 1527 value = 30 } #Kabul
		command = { type = province_revoltrisk which = 1528 value = 30 } #Kushka
		command = { type = setflag which = [Mir_Wais] }
	}
}

#(1707-1714) The Rebellion of Mir Wais
event = {
	id = 
	trigger = {
		countrysize = 2
		NOT = { 
			exists = AFG 
			flag = [Mir_Wais]
		}
	}
	random = no
	province = 1524 #Quetta
	name = "EVENTNAMExx" #The Rebellion of Mir Wais
	desc = "EVENTHISTxx"
	#-#

	date = { day = 1 month = january year = 1707 }
	offset = 52
	deathdate = { year = 1714 }

	action_a = {
		name = "CURSES"
		command = { type = province_revoltrisk which = 1524 value = 30 } #Quetta
		command = { type = province_revoltrisk which = 1525 value = 30 } #Qandahar
		command = { type = province_revoltrisk which = 1527 value = 30 } #Kabul
		command = { type = province_revoltrisk which = 1528 value = 30 } #Kushka
		command = { type = setflag which = [Mir_Wais] }
	}
}

#(1707-1714) The Rebellion of Mir Wais
event = {
	id = 
	trigger = {
		countrysize = 2
		NOT = { 
			exists = AFG 
			flag = [Mir_Wais]
		}
	}
	random = no
	province = 1527 #Kabul
	name = "EVENTNAMExx" #The Rebellion of Mir Wais
	desc = "EVENTHISTxx"
	#-#

	date = { day = 1 month = january year = 1707 }
	offset = 53
	deathdate = { year = 1714 }

	action_a = {
		name = "CURSES"
		command = { type = province_revoltrisk which = 1524 value = 30 } #Quetta
		command = { type = province_revoltrisk which = 1525 value = 30 } #Qandahar
		command = { type = province_revoltrisk which = 1527 value = 30 } #Kabul
		command = { type = province_revoltrisk which = 1528 value = 30 } #Kushka
		command = { type = setflag which = [Mir_Wais] }
	}
}

#(1707-1714) The Rebellion of Mir Wais
event = {
	id = 
	trigger = {
		countrysize = 2
		NOT = { 
			exists = AFG 
			flag = [Mir_Wais]
		}
	}
	random = no
	province = 1528 #Kushka
	name = "EVENTNAMExx" #The Rebellion of Mir Wais
	desc = "EVENTHISTxx"
	#-#

	date = { day = 1 month = january year = 1707 }
	offset = 54
	deathdate = { year = 1714 }

	action_a = {
		name = "CURSES"
		command = { type = province_revoltrisk which = 1524 value = 30 } #Quetta
		command = { type = province_revoltrisk which = 1525 value = 30 } #Qandahar
		command = { type = province_revoltrisk which = 1527 value = 30 } #Kabul
		command = { type = province_revoltrisk which = 1528 value = 30 } #Kushka
		command = { type = setflag which = [Mir_Wais] }
	}
}

By the 18th century, the Afghan tribes in the Kandahar area were tired of being lorded over by foreign powers. A slew of rapacious and intolerant governors had done little to smooth relations between the Afghans and their occupiers. Taking advantage of popular sentiment, a tribal leader, Mir Wais, would lead the tribes to form an independent Afghan state.


Code:
#(1738-1750) Afghan rebellions subside
event = {
	id = 
	trigger = {
		flag = [Mir_Wais]
	}
	random = no
	province = 1525 #Qandahar
	name = "EVENTNAMExx" #The Rebellion of Mir Wais
	desc = "EVENTHISTxx"
	#-#

	date = { day = 1 month = january year = 1707 }
	offset = 51
	deathdate = { year = 1714 }

	action_a = {
		name = "AT_LAST"
		command = { type = province_revoltrisk which = 1524 value = -40 } #Quetta
		command = { type = province_revoltrisk which = 1525 value = -40 } #Qandahar
		command = { type = province_revoltrisk which = 1527 value = -40 } #Kabul
		command = { type = province_revoltrisk which = 1528 value = -40 } #Kushka
		command = { type = clrflag which = [Mir_Wais] }
	}
}

#(1738-1750) Afghan rebellions subside
event = {
	id = 
	trigger = {
		flag = [Mir_Wais]
	}
	random = no
	province = 1524 #Quetta
	name = "EVENTNAMExx" #The Rebellion of Mir Wais
	desc = "EVENTHISTxx"
	#-#

	date = { day = 1 month = january year = 1707 }
	offset = 52
	deathdate = { year = 1714 }

	action_a = {
		name = "AT_LAST"
		command = { type = province_revoltrisk which = 1524 value = -40 } #Quetta
		command = { type = province_revoltrisk which = 1525 value = -40 } #Qandahar
		command = { type = province_revoltrisk which = 1527 value = -40 } #Kabul
		command = { type = province_revoltrisk which = 1528 value = -40 } #Kushka
		command = { type = clrflag which = [Mir_Wais] }
	}
}

#(1738-1750) Afghan rebellions subside
event = {
	id = 
	trigger = {
		flag = [Mir_Wais]
	}
	random = no
	province = 1527 #Kabul
	name = "EVENTNAMExx" #The Rebellion of Mir Wais
	desc = "EVENTHISTxx"
	#-#

	date = { day = 1 month = january year = 1707 }
	offset = 53
	deathdate = { year = 1714 }

	action_a = {
		name = "AT_LAST"
		command = { type = province_revoltrisk which = 1524 value = -40 } #Quetta
		command = { type = province_revoltrisk which = 1525 value = -40 } #Qandahar
		command = { type = province_revoltrisk which = 1527 value = -40 } #Kabul
		command = { type = province_revoltrisk which = 1528 value = -40 } #Kushka
		command = { type = clrflag which = [Mir_Wais] }
	}
}

#(1738-1750) Afghan rebellions subside
event = {
	id = 
	trigger = {
		flag = [Mir_Wais]
	}
	random = no
	province = 1528 #Kushka
	name = "EVENTNAMExx" #The Rebellion of Mir Wais
	desc = "EVENTHISTxx"
	#-#

	date = { day = 1 month = january year = 1707 }
	offset = 54
	deathdate = { year = 1714 }

	action_a = {
		name = "AT_LAST"
		command = { type = province_revoltrisk which = 1524 value = -40 } #Quetta
		command = { type = province_revoltrisk which = 1525 value = -40 } #Qandahar
		command = { type = province_revoltrisk which = 1527 value = -40 } #Kabul
		command = { type = province_revoltrisk which = 1528 value = -40 } #Kushka
		command = { type = clrflag which = [Mir_Wais] }
	}
}

By the middle of the 18th century, it was apparent that the Afghans were incapable of taking control of all of Afghanistan.

EDIT:
Code:
	date = { day = 1 month = january year = 1738 }
	offset = 51/52/53/54
	deathdate = { day = 29 month = december year = 1749 }

And disable PER_6907
 
Last edited:
Dates of "Afghan rebellions subside" events don't match 1738-1750.

Proposed change:
Code:
	date = { day = 1 month = january year = 1738 }
	offset = 51/52/53/54
	deathdate = { day = 29 month = december year = 1749 }
I suggest "The end of the rebellion of Mir Wais" as name for these events, just in order to avoid confusion. Better idea?

And there is an eternal RR problem with this event:
Code:
#(1707-1720) Religious Intolerance Under Sultan Husain
event = {
	id = 6907
	trigger = {
		monarch = 0104516 #Sultan Husain I
	}
	random = no
	country = PER
	name = "EVENTNAME6907" #Religious Intolerance Under Sultan Husain
	desc = "EVENTHIST6907"
	#-#

	date = { day = 1 month = january year = 1707 }
	offset = 100
	deathdate = { day = 1 month = january year = 1720 }

	action_a = {
		name = "CURSES"
		command = { type = province_revoltrisk which = 1524 value = 7 } #Quetta
		command = { type = province_revoltrisk which = 1525 value = 7 } #Qandahar
		command = { type = province_revoltrisk which = 1527 value = 7 } #Kabul
		command = { type = province_revoltrisk which = 1528 value = 7 } #Kushka
		command = { type = revoltrisk which = 180 value = 5 }
	}
}
#-#Sultan Husain was a relatively weak monarch, who allowed his religious policy to be determined by Muhammad Baaqir Majlisi, an important mullah. Religious tolerance was revoked and in its place was a new anti-Sunni, pro-Shiite policy. Despite efforts, a great part of the empire had remained sunni and felt threatened by this new policy. The subjects of Afghanistan, staunchy sunni, were most displeased. By 1720, the country was in crisis.

Shouldn't province_revoltrisk commands be removed in this event and/or replaced by revolts in corresponding provinces?
Shouldn't trigger check if PER is shiite?
 
Last edited:
Oops, yea I didn't put the right date for the "Afghan rebellions subside" events.

For less confusion...I'd name them "The failure of Mir Wais"

Actually, I'd disable PER_6907 for the moment (comment out). With these new Afghan events, that event really would only provide general revoltrisk. I still need to put together the latter Safavid events...and with those ahistoric Clan fighting events, Persia already gets enough global revoltrisk.
 
Ok for the name and PER_6907 "disabled". Please amend post #288. No need to edit all the events, just add an EDIT with date to apply + name + PER_6907 in order to have all required informations in a single post for submission.
 
6905 and 6906 are used as conditions for this event:
Code:
#(1748-1760) Afghan Raids of Ahmad Shah Abdali
#by Aylo1
event = {
	id = 230046
	trigger = {
		event = 6903 #MOG: Sikh Rebellions
		[COLOR=DeepSkyBlue]event = 6905 #MOG: Afghan Rebellions
		event = 6906 #MOG: End of Afghan Rebellions[/COLOR]
		war = { country = AFG country = MOG }
		owned = { province = 543 data = -1 } #Delhi
		control = { province = 543 data = AFG } #Delhi
	}
	random = no
	country = MOG
	name = "EVENTNAME230046" #Raids of Ahmad Shah Abdali
	desc = "EVENTHIST230046"
	#-#

	date = { day = 1 month = january year = 1748 }
	offset = 30
	deathdate = { day = 29 month = december year = 1760 }

	action_a = {
		name = "ACTIONNAME230046A" #Peace at all costs!
		command = { type = secedeprovince which = AFG value = 539 } #Indus
		command = { type = secedeprovince which = AFG value = 540 } #Sindh
		command = { type = secedeprovince which = AFG value = 1523 } #Thar
		#IF not already part of Afghanistan
		command = { type = secedeprovince which = AFG value = 1524 } #Quetta
		command = { type = secedeprovince which = AFG value = 1525 } #Qandarhar
		command = { type = secedeprovince which = AFG value = 1527 } #Kabul
		command = { type = revoltrisk which = 36 value = -4 } #Sikhs, Marathas
		command = { type = dynastic which = AFG }
		command = { type = treasury value = -250 } #treasury looted
 		command = { type = land value = -100 } #loss of lands, wealth...
 		command = { type = infra value = -100 }
		command = { type = trade value = -200 }
		command = { type = stability value = 1 }
	}
	action_b = {
		name = "ACTIONNAME230046B" #Resist the invaders!
		command = { type = population which = 543 value = -7539 } #Delhi
		command = { type = provincetax which = 543 value = -1 } #Delhi
		command = { type = population which = 1520 value = -5682 } #Chandiganer
		command = { type = provincetax which = 1520 value = -1 } #Chandiganer
		command = { type = population which = 1521 value = -3517 } #Panjab
		command = { type = provincetax which = 1521 value = -1 } #Panjab
		command = { type = treasury value = -50 }
		command = { type = stability value = -3 }
		command = { type = revolt which = 543 } #raiders
		command = { type = revolt which = 543 }
		command = { type = revolt which = 1520 }
		command = { type = revolt which = 1520 }
		command = { type = revolt which = 1521 }
		command = { type = revolt which = 1521 }
	}
}
#-#In a series of attacks Afghani Ahmad Shah Abdali raided deep into Mughal territory, forcing the Badshah to cede their lands west of the Indus River and marry his daughter to Abdali's son - the future Timur Shah (r.1772-93). Ahmad Shah later returned to pillage Delhi, Mathura, Kashmir and Panjab (1756-7). Interestingly this setback momentarily diverted Sikh and Maratha attention away from Delhi.

What is to be done? Simply remove the conditions or should we set another flag in ProvinceSpec events for the failure and check an OR condition with [Mir_Wais] or this new flag? Or any of all the provincespec events?
 
Similar to the upgrade for the Marathas. Added a comment about what events are in trigger. Also, I removed a requirement from event 139001, as it looks like you could possibly have permanent revoltrisk...if Musha'sha' once revolted (before 139000 triggered) and 139002 fired. That would prevent one from ever getting the revoltrisk lowering event.

Code:
#(1435-1500) Shiites in Musha'sha'
#by Garbon
event = {
	id = 139000
	trigger = {
		NOT = { exists = CAL }
		NOT = { religion = shiite }
	}
	random = no
	province = 532 #Awhaz
	name = "EVENTNAME139000" #Shiites in Musha'sha[color=yellow]'[/color]
	desc = "EVENTHIST139000"
	#-#

	date = { day = 1 month = january year = 1435 }
	offset = 5
	deathdate = { day = 1 month = january year = 1500 }

	action_a = {
		name = "ACTIONNAME139000A" #We do not desire such a headache!
		command = { type = provincereligion which = 532 value = shiite } #in case they weren't #Awhaz
		command = { type = independence which = CAL }
		command = { type = sleepevent which = 139001 } #532: Musha'sha'ids of Khuzistan
		command = { type = relation which = CAL value = -200 }
	}
	action_b = {
		name = "ACTIONNAME139000B" #What a headache
		command = { type = revolt which = 532 } #Awhaz
		command = { type = revolt which = 532 } #Awhaz
		command = { type = revolt which = 532 } #Awhaz
		command = { type = revolt which = 532 } #Awhaz
		command = { type = province_revoltrisk which = 532 value = [color=limegreen]25[/color] } #Awhaz
		command = { type = provincetax which = 532 value = -1 } #Awhaz
		command = { type = provincereligion which = 532 value = shiite } #in case they weren't #Awhaz
	}
}

#(1435-1600) Musha'sha'ids of Khuzistan
#by Garbon
event = {
	id = 139001
	trigger = {
		event = 139000 [color=yellow]#ProvinceSpec*532: Shiites in Musha'sha[/color]
		NOT = {
			exists = CAL
			[color=red]event = 139002[/color] 
		}
		OR = {
			exists = PER
			religion = shiite
		}
	}
	random = no
	province = 532 #Awhaz
	name = "EVENTNAME139001" #Musha'sha'ids of Khuzistan
	desc = "EVENTHIST139001"
	#-#

	date = { day = 1 month = january year = 1435 }
	offset = 5
	deathdate = { day = 1 month = january year = 1600 }

	action_a = {
		name = "ACTIONNAME139001A" #Talk about stagnation
		command = { type = province_revoltrisk which = 532 value = [color=limegreen]-25[/color] } #Awhaz
		command = { type = provincetax which = 532 value = 1 } #Awhaz
	}
}

Also, should these events get moved from the Mushasha country event file and be put in the provincespecific file?
 
Last edited:
Garbon said:
Also, should these events get moved from the Mushasha country event file and be put in the provincespecific file?
Yes. They can apply to any country even if they are intended for the formation of Musha'sha' only.

New ids: 338492 and 338493. All references to the events modified accordingly.

Btw, for the name of the first event, shouldn't it be: Shiites in Musha'sha' (with a quote at the end of the name)?

For this event (with renumbered ids):
Code:
#(1419-1820) Musha'sha'ids of Khuzistan
#by Garbon
event = {
	id = 139002
	trigger = {
		event = 338492 #ProvinceSpec*532: Shiites in Musha'sha[COLOR=Yellow]'[/COLOR]
		NOT = {
			event = 338493 #ProvinceSpec*532: Musha'sha'ids of Khuzistan
		}
	}
	random = no
	country = CAL
	name = "EVENTNAME139002" #Musha'sha'ids of Khuzistan
	desc = "EVENTHIST139002"
	#-#

	date = { day = 1 month = march year = 1419 }
	offset = 30
	deathdate = { year = 1820 }

	action_a = {
		name = "GREAT"
		command = { type = stability value = 1 }
		command = { type = treasury value = 100 }
		[COLOR=Red]command = { type = province_revoltrisk which = 532 value = -10 } #Awhaz[/COLOR]
		command = { type = provincetax which = 532 value = 1 } #Awhaz
		command = { type = relation which = IRA value = 100 }
		command = { type = relation which = QAR value = 100 }
		command = { type = relation which = BAS value = 100 }
		command = { type = add_countryculture which = persian }
	}
}
#-#The Musha'sha'ids were a Shiite movement, who proclaimed themselves to be the Manifestation or Precursor to the Expected One.

There is no need of the province_revoltrisk command. If Musha'sha' forms, province_revoltrisk will go back to 0.

EDIT: province_revoltrisk command removed and Musha'sha => Musha'sha'
 
Last edited: