# 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
}
}
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 }
}
}
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
}
}
#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 }
}
}
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
}
#
# 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
}
#
# 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
}
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
}
}
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"
}
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 }
}
}
#
# 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
}
#
# 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
}
#(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] }
}
}
#(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] }
}
}
date = { day = 1 month = january year = 1738 }
offset = 51/52/53/54
deathdate = { day = 29 month = december year = 1749 }
date = { day = 1 month = january year = 1738 }
offset = 51/52/53/54
deathdate = { day = 29 month = december year = 1749 }
#(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 }
}
}
#(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 }
}
}
#(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
}
}
Yes. They can apply to any country even if they are intended for the formation of Musha'sha' only.Garbon said:Also, should these events get moved from the Mushasha country event file and be put in the provincespecific file?
#(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 }
}
}
YodaMaster said: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)?
Ok. What about my edit and CAL_139002?Garbon said:Yep, it should.
YodaMaster said:Ok. What about my edit and CAL_139002?