##########################
####  Mataram Events  ####
####     by Crook     ####
##########################

event = { 
	id = 165151 
	random = no 
	country = MTR 
	style = 1 
	date = { day = 1 month = january year = 1447 } 
	offset = 60
	deathdate = { day = 1 month = january year = 1448 }
	name = "Принятие ислама" 
	desc = "EVENTHIST65151"      
	action_a = { 
            name = "Сохранит веру наших предков" 
            	command = { type = provincetax which = 704 value = -1 } 
		command = { type = stability value = 1 }
		command = { type = domestic which = centralization value = -1 }
           } 
	action_b = { 
            name = "Принять ислам" 
            	command = { type = provincetax which = 704 value = 2 } 
		command = { type = religion which = sunni } 
		command = { type = stability value = -3 }
		command = { type = domestic which = centralization value = 1 }
		command = { type = revoltrisk value = 3 }
		command = { type = domestic which = offensive value = 1 }
		command = { type = missionaries value = 2 }
           } 
} 

event = { 
      id = 165152 
      random = no 
      country = MTR 
      style = 1 
      date = { day = 30 month = december year = 1467 } 

      name = "Восстание" 
      desc = "EVENTHIST65152"
      action_a = { 
            name = "Восстание!"  
		command = { type = capital which = 704 } 
                command = { type = province_revoltrisk which = 704 value = 10 }
		command = { type = stability value = -3 }
		command = { type = domestic which = centralization value = -1 }
		command = { type = revoltrisk which = 24 value = 4 }
		command = { type = revolt which = 704 }
		command = { type = revolt which = 1744 }
           }  
} 

event = { 
      id = 165153 
      random = no 
      country = MTR 
      style = 1 
      date = { day = 30 month = december year = 1660 } 
	offset = 200
	deathdate = { day = 1 month = january year = 1664 }

      name = "Некомпетенстность Амангкурата I" 
      desc = "Амангкурат имел репутацию жестокого и непредсказуемого человека. Помимо своего частого вмешательства в экономику, однажды он приказал убить всех учёных в Матараме, взяв их судебные полномочия на себя, тем самым став абсолютным правителем. В 1661 году, группа дворян сделала попытку восстать против своего диктатора, восстание было жестоко подавлено."
      action_a = { 
            name = "Принять дипломатические полномочия"  
		command = { type = stability value = -3 }
		command = { type = trade value = -3000 }
		command = { type = naval value = -3000 }
		command = { type = domestic which = centralization value = 1 }
		command = { type = ADM which = -2 value = 48 }
		command = { type = MIL which = 2 value = 48 }
		command = { type = revoltrisk which = 24 value = 4 }
		command = { type = infra value = -500 }
		command = { type = domestic which = mercantilism value = 1 }
		command = { type = domestic which = serfdom value = 1 }
		command = { type = independence which = U27 }
		command = { type = independence which = U32 }
		command = { type = independence which = U26 }
		command = { type = independence which = U35 }
		command = { type = independence which = U05 }
		command = { type = independence which = SWA }
		command = { type = independence which = U33 }
		command = { type = independence which = U34 }
		command = { type = independence which = ATJ }
		command = { type = independence which = MKS }
		command = { type = independence which = BEI }
		command = { type = independence which = MLC }
command = { type = secedeprovince which = MKS value = 707 }
command = { type = secedeprovince which = MKS value = 709 }
command = { type = secedeprovince which = MKS value = 1756 }
command = { type = secedeprovince which = MKS value = 1761 }
command = { type = secedeprovince which = MLC value = 677 }
command = { type = secedeprovince which = MLC value = 678 }
command = { type = secedeprovince which = MLC value = 676 }
command = { type = secedeprovince which = MLC value = 1765 }
command = { type = secedeprovince which = MLC value = 1766 }
command = { type = secedeprovince which = U05 value = 713 }
command = { type = secedeprovince which = U05 value = 714 }
command = { type = secedeprovince which = U05 value = 715 }
command = { type = secedeprovince which = U05 value = 706 }
command = { type = secedeprovince which = U05 value = 1749 }
command = { type = secedeprovince which = U05 value = 1762 }
command = { type = secedeprovince which = U35 value = 690 }
command = { type = secedeprovince which = U35 value = 691 }
command = { type = secedeprovince which = U35 value = 692 }
command = { type = secedeprovince which = U35 value = 693 }
command = { type = secedeprovince which = U35 value = 694 }
command = { type = secedeprovince which = U35 value = 1823 }
command = { type = secedeprovince which = U35 value = 1824 }
command = { type = secedeprovince which = U35 value = 1741 }
command = { type = secedeprovince which = BEI value = 695 }
command = { type = secedeprovince which = BEI value = 696 }
command = { type = secedeprovince which = BEI value = 697 }
command = { type = secedeprovince which = BEI value = 1757 }
command = { type = secedeprovince which = SWA value = 710 }
command = { type = secedeprovince which = SWA value = 711 }
command = { type = secedeprovince which = SWA value = 1739 }
command = { type = secedeprovince which = SWA value = 1738 }
command = { type = secedeprovince which = U26 value = 698 }
command = { type = secedeprovince which = U26 value = 699 }
command = { type = secedeprovince which = U26 value = 700 }
command = { type = secedeprovince which = U27 value = 1451 }
command = { type = secedeprovince which = U27 value = 1452 }
command = { type = secedeprovince which = U27 value = 1758 }
command = { type = secedeprovince which = U27 value = 1759 }
command = { type = secedeprovince which = U32 value = 1752 }
command = { type = secedeprovince which = U32 value = 681 }
command = { type = secedeprovince which = U32 value = 682 }
command = { type = secedeprovince which = U32 value = 1740 }
command = { type = secedeprovince which = U33 value = 701 }
command = { type = secedeprovince which = U33 value = 702 }
command = { type = secedeprovince which = U33 value = 703 }
command = { type = secedeprovince which = U33 value = 1746 }
command = { type = secedeprovince which = U33 value = 1751 }
command = { type = secedeprovince which = U34 value = 709 }
command = { type = secedeprovince which = U34 value = 1755 }
command = { type = secedeprovince which = U34 value = 1760 }
		command = { type = revolt which = -1 }
		command = { type = revolt which = -1 }
		command = { type = revolt which = -1 }
           }  
	action_b = { 
            name = "Поддержать старую систему"  
		command = { type = stability value = 1 }
		command = { type = ADM which = 2 value = 48 }
		command = { type = MIL which = -2 value = 48 }
		command = { type = domestic which = mercantilism value = -1 }
           }  
}

event = { 
	id = 165154 
	random = no 
	country = MTR 
	style = 3 
	date = { day = 1 month = january year = 1673 } 
	offset = 150
	deathdate = { day = 1 month = january year = 1674 }
	name = "Бедствие 1674 года" 
	desc = "В 1674 году, в Матараме случился голод."
	action_a = { 
		name = "Хреново"  
		command = { type = stability value = -1 }
		command = { type = population which = -2 value = -3000 }
           }  
}

event = { 
	id = 165155 
	random = no 
	country = MTR 
	style = 1 
	date = { day = 22 month = february year = 1719 } 
	offset = 20
	deathdate = { day = 1 month = may year = 1719 }
	name = "Восстание" 
	desc = "После того как, Амангкурат IV пришёл к власти в Матараме, восстания начались почти сразу, мятежники бежали в восточном направлении. Объединённым силам голландской компании и Матарама удалось изловили всех."
	action_a = { 
		name = "Чёртовы мятежники!"  
		command = { type = stability value = -2 }
		command = { type = revoltrisk which = 24 value = 4 }
		command = { type = revolt which = 704 }
		command = { type = revolt which = -1 }
command = { type = revolt which = -1 }
command = { type = revolt which = -1 }
command = { type = revolt which = -1 }
           }  
} 

event = { 
	id = 165156 
	random = no 
	country = MTR 
	style = 2 
	trigger = { religion = sunni }
	date = { day = 1 month = january year = 1525 } 
	offset = 600
	deathdate = { day = 1 month = january year = 1540 }
	name = "Ислам распостроняется по Яве" 
	desc = "EVENTHIST65156"
	action_a = { 
		name = "Направить умы язычников на истинную веру"  
		command = { type = provincereligion which = 703 value = sunni }
		command = { type = provincereligion which = 1746 value = sunni }
		command = { type = provincereligion which = -1 value = sunni } 
		command = { type = independence which = U33 }
		command = { type = stability value = -1 }
		command = { type = provincemanpower which = -3 value = 1 }
		command = { type = missionaries value = 2 }
           } 
	action_b = { 
		name = "Запретить прповедование ислама" 
		command = { type = stability value = -2 }
		command = { type = missionaries value = -3 }
           } 
}
 
#MKJ(?)
event = {
	id = 234000
	trigger = {     owned = { province = 1744 data = -1 }
			OR = { NOT = { control = { province = 704 data = -1 } }			
		               NOT = { religion = sunni } }
			
	}
	country = MTR
	random = no
	name = "Упадок империи Маджапахит"
	desc = "В 1478 году область Даха восстала, что послужило разложение империи Маджапахит и потери фактически всех владений вне острова Явы. На его месте быстро возник султанат Демак. Новые хозяева начали проводить исламизацию по всей своей территории."
	style = 0
	
	date = { day = 1 month = january year = 1478 }
	offset = 30
	deathdate = { day = 1 month = january year = 1820 }
	
	action_a = {
		name = "Теперь султанат Демак будет управлять"
                command = { type = capital which = 1744 } #Demak
		command = { type = population which = 704 value = -3000 } #Remaining Hindus in Daha flee to Bali
                command = { type = province_revoltrisk which = 704 value = -10 }
		command = { type = population which = -1 value = -1000 }
		command = { type = population which = -1 value = -1000 }
		command = { type = religion which = sunni }
                command = { type = remove_countryculture which = malay }
                command = { type = remove_countryculture which = indonesian }
 		command = { type = independence which = U27 }
		command = { type = independence which = U32 }
		command = { type = independence which = U26 }
		command = { type = independence which = U35 }
		command = { type = independence which = U05 }
		command = { type = independence which = SWA }
		command = { type = independence which = U33 }
		command = { type = independence which = U34 }
		command = { type = independence which = ATJ }
		command = { type = independence which = MKS }
		command = { type = independence which = BEI }
		command = { type = independence which = MLC }
command = { type = secedeprovince which = MKS value = 707 }
command = { type = secedeprovince which = MKS value = 709 }
command = { type = secedeprovince which = MKS value = 1756 }
command = { type = secedeprovince which = MKS value = 1761 }
command = { type = secedeprovince which = MLC value = 677 }
command = { type = secedeprovince which = MLC value = 678 }
command = { type = secedeprovince which = MLC value = 676 }
command = { type = secedeprovince which = MLC value = 1765 }
command = { type = secedeprovince which = MLC value = 1766 }
command = { type = secedeprovince which = U05 value = 713 }
command = { type = secedeprovince which = U05 value = 714 }
command = { type = secedeprovince which = U05 value = 715 }
command = { type = secedeprovince which = U05 value = 706 }
command = { type = secedeprovince which = U05 value = 1749 }
command = { type = secedeprovince which = U05 value = 1762 }
command = { type = secedeprovince which = U35 value = 690 }
command = { type = secedeprovince which = U35 value = 691 }
command = { type = secedeprovince which = U35 value = 692 }
command = { type = secedeprovince which = U35 value = 693 }
command = { type = secedeprovince which = U35 value = 694 }
command = { type = secedeprovince which = U35 value = 1823 }
command = { type = secedeprovince which = U35 value = 1824 }
command = { type = secedeprovince which = U35 value = 1741 }
command = { type = secedeprovince which = BEI value = 695 }
command = { type = secedeprovince which = BEI value = 696 }
command = { type = secedeprovince which = BEI value = 697 }
command = { type = secedeprovince which = BEI value = 1757 }
command = { type = secedeprovince which = SWA value = 710 }
command = { type = secedeprovince which = SWA value = 711 }
command = { type = secedeprovince which = SWA value = 1739 }
command = { type = secedeprovince which = SWA value = 1738 }
command = { type = secedeprovince which = U26 value = 698 }
command = { type = secedeprovince which = U26 value = 699 }
command = { type = secedeprovince which = U26 value = 700 }
command = { type = secedeprovince which = U27 value = 1451 }
command = { type = secedeprovince which = U27 value = 1452 }
command = { type = secedeprovince which = U27 value = 1758 }
command = { type = secedeprovince which = U27 value = 1759 }
command = { type = secedeprovince which = U32 value = 1752 }
command = { type = secedeprovince which = U32 value = 681 }
command = { type = secedeprovince which = U32 value = 682 }
command = { type = secedeprovince which = U32 value = 1740 }
command = { type = secedeprovince which = U33 value = 701 }
command = { type = secedeprovince which = U33 value = 702 }
command = { type = secedeprovince which = U33 value = 703 }
command = { type = secedeprovince which = U33 value = 1746 }
command = { type = secedeprovince which = U33 value = 1751 }
command = { type = secedeprovince which = U34 value = 709 }
command = { type = secedeprovince which = U34 value = 1755 }
command = { type = secedeprovince which = U34 value = 1760 }
	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 = trigger which = 80707 } #Bali
		command = { type = trigger which = 80708 } #Palembang
		command = { type = trigger which = 439001 } #Bantam
		command = { type = trigger which = 427000 } #Banjar
		command = { type = trigger which = 426000 } #Kutei
		command = { type = trigger which = 407001 } #Bima
		command = { type = provincereligion which = -2 value = sunni }
		command = { type = provincereligion which = -1 value = sunni }
	}
	action_b = {
		name = "Принять новую религию!"
		command = { type = stability value = -3 }
		command = { type = religion which = sunni }
		command = { type = revoltrisk which = 60 value = 10 }
command = { type = independence which = U27 }
		command = { type = independence which = U32 }
		command = { type = independence which = U26 }
		command = { type = independence which = U35 }
		command = { type = independence which = SWA }
		command = { type = independence which = U33 }
		command = { type = independence which = U34 }
		command = { type = independence which = U05 }
		command = { type = independence which = ATJ }
		command = { type = independence which = MKS }
		command = { type = independence which = BEI }
		command = { type = independence which = MLC }
		command = { type = revolt which = -1 }
		command = { type = revolt which = -1 }
		command = { type = provincereligion which = -1 value = sunni }
	}
	action_c = {
		name = "Нет! Мы должны поддерживать индусскую империю!"
		command = { type = stability value = -6 }
		command = { type = religion which = hinduism }
		command = { type = provincereligion which = -2 value = hinduism }
		command = { type = revoltrisk which = 60 value = 10 }
                command = { type = relation which = ATJ value = -100 }
                command = { type = relation which = MLC value = -100 }
                command = { type = relation which = BEI value = -100 }
		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 = provincereligion which = -1 value = sunni }
	}
}

#Sultan Agung bans the sale of rice to the VOC (Mataram's part)
event = {
id = 234200
trigger = {
    owned = { province = 1744 data = -1 } #Demak
    exists = HOL
    event = 3503
                 }
random = no
country = MTR
style = 3
date = { day = 1 month = december year = 1618 }
offset = 5
deathdate = { day = 1 month = january year = 1619 }
name = "Султан Агунг провоцирует голландцев"
desc = "Султан Агунг запретил продавать рис голландцам и напал на их торговый пост, последние в отместку напали на город Джепару и сожгли его дотла. "

action_a = {
name = "Запретить продажу риса!"
command = { type = relation which = HOL value = -100 }
command = { type = revolt which = 1744 }
command = { type = trade value = -200 }
command = { type = merchants value = -2 }
command = { type = losebuilding which = 1744 value = courthouse }
command = { type = trigger which = 186400 }
}
action_b = {
name = "Продолжить продавать рис"
command = { type = relation which = HOL value = 50 }
command = { type = treasury value = 100 }
}
}

#Jan Pieterszoon Coen burns Jepara (Mataram's part)
event = {
id = 234201
trigger = {
owned = { province = 703 data = -1 } 
exists = HOL
}
random = no
country = MTR
style = 3
date = { day = 1 month = may year = 1619 }
offset = 5
deathdate = { day = 1 month = june year = 1619 }
name = "Бедствие"
desc = "Ян Питерсзун проходя через Джепару, сжёг город до основания, включая находившийся там английский торговый пост."

action_a = {
name = "Проклятые голландцы!"
command = { type = casusbelli which = HOL value = 6 }
command = { type = relation which = HOL value = -50 }
command = { type = provincetax which = 703 value = -1 }
command = { type = population which = 703 value = -500 }
command = { type = trigger which = 164500 }
}
}

#Sultan Agung attacks Batavia for the first time
event = {
id = 234202
trigger = {
owned = { province = 702 data = HOL } #Jakarta
not = { war = { country = MTR country = HOL } }
event = 3503
}
random = no
country = MTR
style = 3
date = { day = 1 month = january year = 1628 }
offset = 30
deathdate = { day = 1 month = january year = 1629 }
name = "Первое нападение на Батавию"
desc = "Султан Агунг послал армию на голландский город Батавию морским путём. В итоге ему так и не удалось прогнать голландцев, из-за их военно-морского потенциала, генералы командующие султанскими армиями были представлены как ‘козлы отпущения’ и казнены."

action_a = {
name = "Атаковать Батавию!"
command = { type = war which = HOL }
command = { type = addcore which = 702 }
command = { type = relation which = HOL value = -200 }
command = { type = INF which = -2 value = 5000 }
command = { type = CAV which = -2 value = 1000 }
command = { type = galleys which = -1 value = 5 }
command = { type = domestic which = offensive value = 1 }
}
action_b = {
name = "Мы не достаточно сильны"
command = { type = stability value = -1 }
command = { type = casusbelli which = HOL value = 12 }
}
}

#Sultan Agung attacks Batavia for the second time
event = {
id = 234203
trigger = {
owned = { province = 702 data = HOL } #Jakarta
not = { war = { country = MTR country = HOL } }
}
random = no
country = MTR
style = 3
date = { day = 1 month = january year = 1629 }
offset = 30
deathdate = { day = 20 month = september year = 1629 } #Coen's death
name = "Второе нападение на Батавию"
desc = "Султан Агунг снова атакует Батавию, но как и в первый раз неудачно."

action_a = {
name = "Атаковать Батавию!"
command = { type = war which = HOL }
command = { type = relation which = HOL value = -200 }
command = { type = INF which = -2 value = 5000 }
command = { type = CAV which = -2 value = 1000 }
command = { type = galleys which = -1 value = 5 }
command = { type = domestic which = offensive value = 1 }
}
action_b = {
name = "Мы не достаточно сильны"
command = { type = stability value = -1 }
command = { type = casusbelli which = HOL value = 12 }
}
}

#Refugee from Batavia (Mataram's part)
event = {
id = 234204
trigger = {
owned = { province = 703 data = -1 } #Bandung
owned = { province = 702 data = HOL } #Jakarta
}
random = no
country = MTR
style = 3
date = { day = 1 month = january year = 1637 }
offset = 30
deathdate = { day = 1 month = january year = 1638 }
name = "Батавские беженцы"
desc = "Султан Агунг согласился принять португальцев и католиков из Батавии."

action_a = {
name = "Дать разрешение"
command = { type = domestic which = innovative value = 1 }
command = { type = population which = 703 value = 500 }
command = { type = provincetax which = 703 value = 1 }
command = { type = trigger which = 186403 }
}
}

#Cooperation treaty between VOC and Mataram
event = {
id = 234205
trigger = {
owned = { province = 702 data = HOL } 
event = 3503
}
random = no
country = MTR
style = 3
date = { day = 24 month = september year = 1646 }
offset = 0
deathdate = { day = 25 month = september year = 1646 }
name = "Взаимовыгодное соглашение"
desc = "Ура, было подписано соглашение о сотрудничестве между голландской Ост-Индской компанией и Матарамом, оба партнёра согласились сообща бороться против врагов и злостных задолжником. Теперь суда Матарама могут заходить и торговать с любыми городами компании кроме, Амбона, Тернате и Банды, при этом султанские суда, идущие к Малаккским островам, должны просить право на проход в Батавии."

action_a = {
name = "Подписать соглашение"
command = { type = relation which = HOL value = 50 }
}
action_b = {
name = "Отказаться от соглашения"
command = { type = relation which = HOL value = -50 }
}
}
#Amangkurat I bans the export of rice or timber
event = {
id = 234206
random = no
country = MTR
style = 3
date = { day = 1 month = january year = 1652 }
offset = 30
deathdate = { day = 1 month = january year = 1653 }
name = "Запрет на вывоз некоторых ресурсов"
desc = "Амангкурат I запретил торговлю рисом и древесиной"

action_a = {
name = "Запретить экспорт"
command = { type = domestic which = mercantilism value = 1 }
command = { type = merchants value = -2 }
command = { type = trade value = -200 }
}
action_b = {
name = "Продолжить торговать"
command = { type = domestic which = mercantilism value = -1 }
command = { type = merchants value = 2 }
}
}

#Royal family have been murdered
event = {
id = 234207
random = no
country = MTR
style = 3
date = { day = 1 month = january year = 1659 }
offset = 30
deathdate = { day = 1 month = january year = 1660 }
name = "Королевские убийства"
desc = "Во время правления Амангкурата I насильственной смертью погибло несколько членов султанской семьи, включая мать будущего султана, Амангкурата II."

action_a = {
name = "Это грустный день"
command = { type = stability value = -1 }
}
}

#Rebellion in Mataram
event = {
id = 234208
random = no
country = MTR
style = 3
date = { day = 1 month = january year = 1675 }
offset = 30
deathdate = { day = 1 month = january year = 1676 }
name = "Восстание в Матараме"
desc = "Во главе с Труноджоё, в Матараме вспыхивает восстание. Нажимая на исламских чувства верующих, мятежники подстёгивают на восстание обычных крестьян против Матарама и ненавистных христиан."

action_a = {
name = "Сокрушить мятежников"
command = { type = stability value = -2 }
command = { type = revolt which = -2 }
command = { type = revolt which = 704 }
command = { type = revoltrisk which = 60 value = 3 }
}
}

#Four years of warfare
event = {
id = 234209
random = no
country = MTR
style = 4
date = { day = 1 month = june year = 1705 }
offset = 10
deathdate = { day = 1 month = october year = 1705 }
name = "Четырёхлетняя война"
desc = "При огромной помощи голландцев, армия Паку Бувана отобрала у Матарама город Картасур. Сурия Кусум погиб, другим должностным лицам разрешено сохранить свои посты. Амангкурат III бежал на Сурапату, прихватив с собой все щенные семейные вещи. Четырёхлетняя война началась."

action_a = {
name = "В атаку!"
command = { type = stability value = -2 }
command = { type = revoltrisk which = 48 value = 3 }
}
}

#Mataram becomes VOC's protectorate (Mataram's part)
event = {
id = 234210
trigger = {
owned = { province = 702 data = HOL } #Jakarta
not = {
vassal = { country = HOL country = MTR }
}
event = 3503
}
random = no
country = MTR
style = 4
date = { day = 5 month = october year = 1705 }
offset = 0
deathdate = { day = 6 month = october year = 1705 }
name = "Матарам подпадает под власть компании"
desc = "Голландцем и Паку Буване удалось сломить Матарам. Султанат списал все долги компании, Восточная Мадура подпала под власть компании; Семаранг так же был присоединён к голландцам. Киребон официально считался протекторатом компании, голландцы так же получали обширные торговые полномочия, Матарам обязывался поставлять рис компании, по цене заранее установленной компанией. Кроме того, две стороны договорились, что больше ни кто из европейцев не имеет права создавать на острове Ява торговых факторий и заводов."

action_a = {
name = "Согласиться со всеми требованиями компании"
command = { type = relation which = HOL value = 100 }
command = { type = trade value = -200 }
command = { type = naval value = -200 }
command = { type = secedeprovince which = HOL value = 703 } 
command = { type = secedeprovince which = HOL value = 1746 } 
command = { type = trigger which = 186404 }
}
action_b = {
name = "Ни за что!"
command = { type = relation which = HOL value = -100 }
command = { type = treasury value = -200 } #Mataram debts
}
}

#Jaya Puspita's rebellion
event = {
id = 234211
trigger = {
owned = { province = 704 data = -1 } #Surabaja
vassal = { country = HOL country = MTR }
}
random = no
country = MTR
style = 4
date = { day = 1 month = january year = 1717 }
offset = 30
deathdate = { day = 1 month = january year = 1718 }
name = "Восстание Джая Пуспиты"
desc = "Сын Адипати Сурабая, Джая Пуспита с помощью Бали, возобновил мятеж против Матарама, в областях Сурабая, Кедири, Проболингго, Баламбанган и Мадуры. Компания срочно вооружает военные отряды для противостояния надвигающейся угрозе."

action_a = {
name = "Сокрухить их!"
command = { type = provincetax which = 704 value = -1 }
command = { type = revolt which = 704 }
command = { type = revolt which = 704 }
}
}

#Court intrigue by Pangeran Mangkunegara
event = {
id = 234212
random = no
country = MTR
style = 4
date = { day = 1 month = january year = 1728 }
offset = 30
deathdate = { day = 1 month = january year = 1729 }
name = "Ссылка"
desc = "С помощью местного суда, голландцы авсылают из Картасуры Пангерана Мангкунегара."

action_a = {
name = "Прогнать Мангкунегара!"
command = { type = stability value = -1 }
}
}

#Sunan Kuning's rebellion
event = {
id = 234213
trigger = {
owned = { province = 1743 data = -1 } #Mataram
vassal = { country = HOL country = MTR }
event = 3503
}
random = no
country = MTR
style = 4
date = { day = 1 month = january year = 1742 }
offset = 30
deathdate = { day = 1 month = january year = 1743 }
name = "Восстание Санана Кунинги"
desc = "Сельское восстание под руководством внука Амангкурата III, Санана Кунинги было направлено против Матарама и голландцев. Картасумское восстание длилось четыре месяца; Паку Буване II со своим семейством вынужден был бежать из города."

action_a = {
name = "Сокрушить их!"
command = { type = stability value = -3 }
command = { type = revolt which = 1743 }
command = { type = revolt which = 1743 }
command = { type = province_revoltrisk which = 1743 value = 3 }
}
}

#Paku Buwana II gives VOC East Java
event = {
id = 234214
trigger = {
owned = { province = 705 data = -1 } #Surabaja
vassal = { country = HOL country = MTR }
event = 3503
}
random = no
country = MTR
style = 4
date = { day = 11 month = november year = 1743 }
offset = 0
deathdate = { day = 12 month = november year = 1743 }
name = "Паку Бувана передаёт голландцам восточную часть Явы"
desc = "Паку Бувана II передал компании в обмен на незначительные уступки, Сурабаю, Рембанг и Джепару."

action_a = {
name = "Отдать восточную Яву"
command = { type = secedeprovince which = HOL value = 705 }
command = { type = secedeprovince which = HOL value = 1742 }
command = { type = relation which = HOL value = 100 }
command = { type = domestic which = aristocracy value = -1 }
command = { type = treasury value = 200 }
command = { type = stability value = -2 }
command = { type = revoltrisk which = 24 value = 3 }
}
action_b = {
name = "Это наша земля!"
command = { type = relation which = HOL value = -100 }
command = { type = domestic which = aristocracy value = 1 }
command = { type = stability value = 1 }
}
}

#Mangkubumi's rebellion
event = {
id = 234215
trigger = {
vassal = { country = HOL country = MTR }
event = 3503
}
random = no
country = MTR
style = 4
date = { day = 1 month = january year = 1746 }
offset = 30
deathdate = { day = 1 month = january year = 1747 }
name = "Восстание Мангкубуми"
desc = "Панджеран Мангкубуми, чувствуя неотвратимую победу компании, объявляет крупномасштабное восстание, к нему присоединяется Панджеран Мас Саид."

action_a = {
name = "Да что б их!"
command = { type = stability value = -2 }
command = { type = revoltrisk which = 108 value = 9 }
}
}
#Mangkubumi attacks Surakarta
event = {
id = 234216
trigger = {
event = 9215
owned = { province = 703 data = -1 } #Bandung
}
random = no
country = MTR
style = 4
date = { day = 1 month = january year = 1748 }
offset = 30
deathdate = { day = 1 month = january year = 1749 }
name = "Атака мятежников"
desc = "Мятежники Мангкубуми атакуют Суракатру ."

action_a = {
name = "За что нам эти беды!"
command = { type = revolt which = 703 }
}
}

#Mas Said attacks Surakarta
event = {
id = 234217
trigger = {
event = 9215
owned = { province = 703 data = -1 } #Bandung
}
random = no
country = MTR
style = 4
date = { day = 1 month = january year = 1750 }
offset = 30
deathdate = { day = 1 month = january year = 1751 }
name = "Атака мятежников"
desc = "Мятежники Мас Саида атакуют город Суракатру."

action_a = {
name = "О, нет!"
command = { type = revolt which = 703 }
}
}
#Treaty of Gijanti
event = {
	id = 234218
	trigger = {
		event = 3503 
            	event = 234215 
	}
	random = no
	country = MTR
	name = "Гиджантсоке соглашение"
	desc = "Султан Хаменгку Бувана получил признание и власть от компании. Ёгуакарта и Суракарта были разделены на два княжества. Соглашение требовал, чтобы султан присоединился к голландцам, против Мак Саида."
	style = 4

	date = { day = 13 month = february year = 1755 }
	offset = 0
	deathdate = { day = 14 month = february year = 1755 }

	action_a = {
		name = "Подчиниться компании"
		command = { type = stability value = 1 }
		command = { type = relation which = HOL value = 50 }
	}

	action_b = {
		name = "Мы сильный и независимый султанат"
		command = { type = stability value = -1 }
		command = { type = relation which = HOL value = -100 }
		command = { type = domestic which = CENTRALIZATION value = 2 }
	}
}
#Mas Said becomes Mangku Negara I (part 1)
event = {
id = 234219
trigger = {
monarch = 133054
owned = { province = 703 data = -1 } #Bandung
owned = { province = 1743 data = -1 }
}
random = no
country = MTR
style = 4
date = { day = 1 month = january year = 1758 }
offset = 30
deathdate = { day = 1 month = january year = 1759 }
name = "Мас Саид становится Мангку Негарой I"
desc = "Военные действия, длившиеся несколько долгих лет, между компанией и мятежниками, наконец то подходят к концу. Мас Саид меняет имя на Панджерана Мангку Негара I и становится правителем Суракатры. Компании удалось удержать за собой северные области."

action_a = {
name = "Поддержать Хаменгку Бувана I"
command = { type = stability value = 1 }
command = { type = capital which = 1743 }
command = { type = relation which = HOL value = 50 }
command = { type = secedeprovince which = HOL value = 703 }
command = { type = province_revoltrisk which = 1743 value = -3 }
}
action_b = {
name = "Поддержать Паку Бувана III"
command = { type = stability value = 1 }
command = { type = relation which = HOL value = 50 }
command = { type = province_revoltrisk which = 1743 value = -3 }
command = { type = sleepmonarch which = 133054 }
command = { type = sleepmonarch which = 133055 }
command = { type = wakemonarch which = 11050 }
command = { type = wakemonarch which = 11051 }
}
action_c = {
name = "Поддержать Мангку Негару I"
command = { type = capital which = 1743 }
command = { type = stability value = -1 }
command = { type = relation which = HOL value = 50 }
command = { type = province_revoltrisk which = 1743 value = -3 }
command = { type = sleepmonarch which = 133054 }
command = { type = sleepmonarch which = 133055 }
command = { type = wakemonarch which = 133056 }
command = { type = wakemonarch which = 133057 }
}
}

#Mas Said becomes Mangku Negara I (part 2)
event = {
id = 234220
trigger = {
monarch = 11050
owned = { province = 1743 data = -1 } 
owned = { province = 703 data = -1 } 
event = 3503
}
random = no
country = MTR
style = 4
date = { day = 1 month = january year = 1758 }
offset = 30
deathdate = { day = 1 month = january year = 1759 }
name = "Мас Саид становится Мангку Негарой I"
desc = "Военные действия, длившиеся несколько долгих лет, между компанией и мятежниками, наконец то подходят к концу. Мас Саид меняет имя на Панджерана Мангку Негара I и становится правителем Суракатры. Компании удалось удержать за собой северные области."

action_a = {
name = "Поддержать Паку Бувана III"
command = { type = capital which = 1743 }
command = { type = secedeprovince which = HOL value = 703 }
command = { type = stability value = 1 }
command = { type = relation which = HOL value = 50 }
command = { type = province_revoltrisk which = 1743 value = -3 }
}
action_b = {
name = "Поддержать Хаменгку Бувана I"
command = { type = stability value = -1 }
command = { type = capital which = 1743 }
command = { type = secedeprovince which = HOL value = 703 }
command = { type = relation which = HOL value = 50 }
command = { type = province_revoltrisk which = 1743 value = -3 }
command = { type = sleepmonarch which = 11050 }
command = { type = sleepmonarch which = 11051 }
command = { type = wakemonarch which = 133054 }
command = { type = wakemonarch which = 133055 }
}
action_c = {
name = "Поддержать Мангку Негару I"
command = { type = capital which = 1743 }
command = { type = stability value = -1 }
command = { type = relation which = HOL value = 50 }
command = { type = province_revoltrisk which = 1743 value = -3 }
command = { type = sleepmonarch which = 11050 }
command = { type = sleepmonarch which = 11051 }
command = { type = wakemonarch which = 133056 }
command = { type = wakemonarch which = 133057 }
}
}
#Fortification of Yogyakarta
event = {
id = 234221
trigger = {
monarch = 133054
owned = { province = 1743 data = -1 } #Bandung
}
random = no
country = MTR
style = 4
date = { day = 1 month = january year = 1785 }
offset = 30
deathdate = { day = 1 month = january year = 1786 }
name = "Укрепление Ёгуакарты"
desc = "Будущий султан Хаменгку Бувана II строит укрепления вокруг города Кратона."

action_a = {
name = "Строить укрепления"
command = { type = treasury value = -100 }
command = { type = fortress which = 1743 value = 1 }
}
action_b = {
name = "У нас нет на это денег"
command = { type = vp value = -20 }
}
}

#Paku Buwana IV's plan
event = {
id = 234222
trigger = {
monarch = 11051
owned = { province = 1743 data = -1 } 
event = 3503
}
random = no
country = MTR
style = 4
date = { day = 1 month = january year = 1790 }
offset = 30
deathdate = { day = 1 month = january year = 1791 }
name = "Коварный план Паку Бувана IV"
desc = "Распространение слухов о том, что Паку Бувана IV планирует провести резню голландцев на Яве и подданных султаната Ёгуя сильно встревожило всех. Силы султаната и компании окружают Суракатру. После нескольких судебных дней, голландцы отправляют в изгнание Паку Бувана IV."

action_a = {
name = "Проклятье!"
command = { type = ADM which = -1 value = 120 }
command = { type = relation which = HOL value = -50 }
command = { type = province_revoltrisk which = 1743 value = 3 }
}
}

#Mangku Negara II inherits court
event = {
id = 234223
trigger = {
monarch = 133057
event = 3503
}
random = no
country = MTR
style = 4
date = { day = 1 month = january year = 1796 }
offset = 30
name = "Новый	правитель Мангку Негара II"
desc = "Мангку Негара II унаследовал трон, но большая часть денег из казны было украдено голландским резидентом Суракатры."

action_a = {
name = "Мы обворованы!"
command = { type = treasury value = -100 }
command = { type = relation which = HOL value = -50 }
}
}

#Ki Ageng Pemanahan founds Kota Gede
event = {
id = 234224
trigger = {
owned = { province = 1743 data = -1 } #Bandung
}
random = no
country = MTR
name = "Ки Агенг Пеманахан строит Кота Геде"
desc = "В 1577 году Ки Агенг Пеманахан основал Кота Геде."
style = 2

date = { day = 1 month = january year = 1577 }
offset = 30
deathdate = { day = 1 month = january year = 1578 }

action_a = {
name = "Построить город"
command = { type = population which = 1743 value = 1000 }
command = { type = provincetax which = 1743 value = 1 }
command = { type = provincemanpower which = 1743 value = 1 }
command = { type = treasury value = -100 }
}
action_b = {
name = "We don't have money"
command = { type = vp value = -20 }
}
}

#Kraton Yogyakarta
event = {
id = 234225
trigger = {
monarch = 133054
owned = { province = 1743 data = -1 } #Bandung
}
random = no
country = MTR
style = 4
date = { day = 1 month = january year = 1755 }
offset = 30
deathdate = { day = 1 month = january year = 1756 }
name = "Кратон Ёгуакарты"
desc = "В 1755 году Хаменгку Бувана I строит Кратон в Ёгуакарте."

action_a = {
name = "Построит Кратон"
		command = { type = capital which = 1743 }
command = { type = treasury value = -500 }
command = { type = gainmanufactory which = 1743 value = luxury }
}
action_b = {
name = "У нас нет на это денег"
command = { type = vp value = -50 }
}
}

#The reign of Rajasavardhana (part 1)
event = {
id = 234226
trigger = {
          not = { religion = sunni }
                                   }
random = no
country = MTR
name = "Правление Раджасавардхана" 
desc = "Король Кертавиджая был убит за препятствие распространению ислама в Маджапахите, на его место был посажен Раджасавардхана."
style = 1


date = { day = 1 month = january year = 1451 }
offset = 50
deathdate = { day = 1 month = january year = 1452 }

action_a = { 
name = "Поддержать нашу религию!" 
command = { type = stability value = -1 } 
command = { type = revoltrisk which = 24 value = 2 }
command = { type = domestic which = centralization value = 1 }
command = { type = domestic which = innovative value = -1 }
command = { type = domestic which = serfdom value = 1 }
command = { type = missionaries value = 2 }
command = { type = provincetax which = -1 value = -1 }
} 
action_b = { 
name = "Позволить им распространять новую религию" 
command = { type = provincetax which = -1 value = -1 }
command = { type = domestic which = centralization value = -1 }
command = { type = domestic which = innovative value = 2 }
command = { type = domestic which = serfdom value = -1 }
command = { type = missionaries value = -1 }
command = { type = revoltrisk which = 240 value = 6 }
command = { type = revolt which = -2 }
} 
} 
#The reign of Rajasavardhana (part 2)
event = {
id = 234227
trigger = { religion = sunni }
random = no
country = MTR
name = "Правление Раджасавардхана" 
desc = "Король Кертавиджая был убит за препятствие распространению ислама в Маджапахите, на его место был посажен Раджасавардхана."
style = 1

date = { day = 1 month = january year = 1451 }
offset = 50
deathdate = { day = 1 month = january year = 1452 }

action_a = { 
name = "Мы индусское королевство, а не исламское!" 
command = { type = stability value = -3 }
command = { type = religion which = hinduism }
command = { type = revoltrisk which = 24 value = 3 }
command = { type = revolt which = -1 }
command = { type = revolt which = -1 }
command = { type = domestic which = centralization value = 1 }
command = { type = domestic which = aristocracy value = 1 }
command = { type = domestic which = serfdom value = 1 }
command = { type = domestic which = innovative value = -1 }
command = { type = missionaries value = 2 }
command = { type = provincetax which = -1 value = -1 }
command = { type = provincetax which = -1 value = -1 }
} 
} 
#Demak attacks Portuguese in Malacca
event = {
id = 234228
trigger = {
             not = { war = { country = MTR country = POR } }
             owned = { province = 677 data = POR }
             religion = sunni
                                         }
random = no
country = MTR
name = "Демак атакует португальскую Малакку"
desc = "Юнус, стоявший во главе флота Демака и Киребона против португальцев, был убит ими в сражении под Малаккой."
style = 1

date = { day = 1 month = january year = 1518 }
offset = 50
deathdate = { day = 1 month = january year = 1521 }

action_a = {
name = "Освободить Малакку от неверных!"
command = { type = stability value = 1 }
command = { type = domestic which = offensive value = 1 }
command = { type = INF which = -2 value = 5000 }
command = { type = galleys which = -1 value = 5 }
command = { type = war which = POR }
command = { type = casusbelli which = POR value = 36 }
command = { type = relation which = MLC value = 50 }
command = { type = relation which = u32 value = 50 }
command = { type = relation which = ATJ value = 50 }
}
action_b = {
name = "Мы недостаточно сильны"
command = { type = stability value = -2 }
command = { type = revolt which = -2 }
command = { type = casusbelli which = POR value = 36 }
}
}
#Banten converts to Islam
event = {
id = 234229
trigger = {
              owned = { province = 701 data = -1 }
              NOT = { exists = u33 }
                                           }
random = no
country = MTR
name = "Бантен принемает ислам"
desc = "Гунунгиати, сын Хазанаддина, стал тайным миссионером на Западе Явы, работающий над ослаблением королевства Паджаджарана, союзника португальцев. Местный правитель Бантена, прежде зависящий от Паджаджарана, приняв ислам переходит на сторону Демака."
style = 2

date = { day = 1 month = january year = 1523 }
offset = 50
deathdate = { day = 1 month = january year = 1525 }

action_a = {
name = "принять новую религию"
command = { type = provincereligion which = 701 value = sunni }
command = { type = provincereligion which = 702 value = sunni }
command = { type = provincereligion which = 1751 value = sunni }
command = { type = provincereligion which = 1746 value = sunni }
command = { type = independence which = U33 }
command = { type = relation which = POR value = -50 }
command = { type = province_revoltrisk  which = 701 value = 4 }
}
}

##########################
####  Mataram Events  ####
####     by Crook     ####
##########################

event = { 
	id = 65151 
	random = no 
	country = MTR 
	style = 1 
	date = { day = 1 month = january year = 1447 } 
	offset = 60
	deathdate = { day = 1 month = january year = 1448 }
	name = "EVENTNAME65151" 
	desc = "EVENTHIST65151"      
	action_a = { 
            name = "ACTIONNAME65151A" 
            	command = { type = provincetax which = -1 value = 1 } 
command = { type = provincetax  which = -1 value = 1 }
command = { type = provincetax  which = -1 value = 1 }
command = { type = provincetax  which = -1 value = 1 }
command = { type = provincetax  which = -1 value = 1 }
		command = { type = religion which = sunni } 
		command = { type = stability value = -3 }
		command = { type = domestic which = centralization value = 1 }
		command = { type = revoltrisk value = 3 }
		command = { type = domestic which = offensive value = 1 }
		command = { type = missionaries value = 2 }
           } 
	action_b = { 
            name = "ACTIONNAME65151B" 
            	command = { type = provincetax which = 703 value = -1 } 
		command = { type = stability value = 1 }
		command = { type = domestic which = centralization value = -1 }
           } 
} 

event = { 
      id = 65152 
      random = no 
      country = MTR 
      style = 1 
      date = { day = 30 month = december year = 1467 } 

      name = "EVENTNAME65152" 
      desc = "EVENTHIST65152"
      action_a = { 
            name = "ACTIONNAME65152A"  
		command = { type = stability value = -3 }
		command = { type = domestic which = centralization value = -1 }
		command = { type = revoltrisk which = 24 value = 4 }
		command = { type = revolt which = -1 }
		command = { type = revolt which = -1 }
           }  
} 

event = { 
      id = 65153 
      random = no 
      country = MTR 
      style = 1 
      date = { day = 30 month = december year = 1660 } 
	offset = 200
	deathdate = { day = 1 month = january year = 1664 }

      name = "EVENTNAME65153" 
      desc = "EVENTHIST65153"
      action_a = { 
            name = "ACTIONNAME65153A"  
		command = { type = stability value = -3 }
		command = { type = domestic which = centralization value = 1 }
		command = { type = ADM which = -2 value = 48 }
		command = { type = MIL which = 2 value = 48 }
		command = { type = revoltrisk which = 24 value = 4 }
		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 = infra value = -500 }
		command = { type = domestic which = mercantilism value = 1 }
		command = { type = domestic which = serfdom value = 1 }
           }  
	action_b = { 
            name = "ACTIONNAME65153B"  
		command = { type = stability value = 1 }
		command = { type = ADM which = 2 value = 48 }
		command = { type = MIL which = -2 value = 48 }
		command = { type = domestic which = mercantilism value = -1 }
           }  
}

event = { 
	id = 65154 
	random = no 
	country = MTR 
	style = 3 
	date = { day = 1 month = january year = 1673 } 
	offset = 150
	deathdate = { day = 1 month = january year = 1674 }
	name = "EVENTNAME65154" 
	desc = "EVENTHIST65154"
	action_a = { 
		name = "ACTIONNAME6907A"  
		command = { type = stability value = -1 }
		command = { type = population which = -2 value = -3000 }
           }  
}

event = { 
	id = 65155 
	random = no 
	country = MTR 
	style = 1 
	date = { day = 22 month = february year = 1719 } 
	offset = 20
	deathdate = { day = 1 month = may year = 1719 }
	name = "EVENTNAME65152" 
	desc = "EVENTHIST65152"
	action_a = { 
		name = "ACTIONNAME65152A"  
		command = { type = stability value = -2 }
		command = { type = revoltrisk which = 24 value = 4 }
		command = { type = revolt which = -1 }
		command = { type = revolt which = -1 }
command = { type = revolt which = -1 }
		command = { type = revolt which = -1 }
           }  
} 

event = { 
	id = 65156 
	random = no 
	country = MTR 
	style = 2 
	trigger = { religion = sunni }
	date = { day = 1 month = january year = 1525 } 
	offset = 600
	deathdate = { day = 1 month = january year = 1540 }
	name = "EVENTNAME65156" 
	desc = "EVENTHIST65156"
	action_a = { 
		name = "ACTIONNAME65156A"  
		command = { type = provincereligion which = -1 value = sunni } 
		command = { type = stability value = -1 }
		command = { type = provincemanpower which = -3 value = 1 }
		command = { type = missionaries value = 2 }
command = { type = provincetax  which = -1 value = 1 }  
command = { type = provincetax  which = -1 value = 1 }  
           } 
	action_b = { 
		name = "ACTIONNAME65156B" 
		command = { type = stability value = -2 }
		command = { type = missionaries value = -3 }
           } 
} 
