#################################
##### Ayutthaya Major Events#####
#	By Tom Rinschler        #
#  	    Håvard              #
#	    Crook               #
#################################

#Boromo Trailokanat's Reforms#
event = {
	id = 6910
	random = no
	country = AYU
	name = "EVENTNAME6910"
	desc = "EVENTHIST6910"
	style = 1
	
	date = { day = 1 month = january year = 1454 }
	offset = 200
	deathdate = { day = 1 month = january year = 1460 }
	
	action_a ={#Go with the reforms#
		name = "ACTIONNAME6910A"
		command = { type = stability value = -1 }
		command = { type = domestic which = centralization value = 1 }
		command = { type = domestic which = aristocracy value = 1 }
		command = { type = domestic which = serfdom value = 1 }
		command = { type = ADM which = 3 value = 36 }    
		command = { type = MIL which = 3 value = 36 }  
		command = { type = provincetax  which = -1 value = 1 }   
                command = { type = provincetax  which = -1 value = 1 }    
	}
	action_b ={#Ignore the reform ideas#
		name = "ACTIONNAME6910B"
		command = { type = stability value = 3 }                     
		command = { type = domestic which = centralization value = -1 }
		command = { type = infra value = -200 }
		command = { type = provincetax  which = -1 value = -1 }  
                command = { type = provincetax  which = -1 value = -1 } 
	}
}

#Rama T'ibodi's Army Reforms#
event = {
	id = 65118
	random = no
	country = AYU
	name = "EVENTNAME65118"
	desc = "EVENTHIST65118"
	style = 1
	
	date = { day = 1 month = january year = 1491 }
	offset = 1000
	deathdate = { day = 1 month = january year = 1500 }
	
	action_a ={
		name = "ACTIONNAME65118A"
		command = { type = stability value = -1 }
		command = { type = domestic which = land value = 1 }
		command = { type = domestic which = offensive value = 1 }
		command = { type = domestic which = quality value = -1 }
		command = { type = provincemanpower which = -1 value = 1 }  
		command = { type = provincemanpower which = -1 value = 1 }  
                command = { type = provincemanpower which = -1 value = 1 }   
		command = { type = land value = 300 }      
	}
	action_b ={
		name = "ACTIONNAME65118B"
		command = { type = stability value = 3 }                     
		command = { type = domestic which = offensive value = -1 }  
	}
}

#Maha Chakkrap'at's Army Reforms#
event = {
	id = 6911
	random = no
	country = AYU
	trigger = { war = { country = AYU country = TAU } }
	name = "EVENTNAME6911"
	desc = "EVENTHIST16911"
	style = 2
	
	date = { day = 1 month = january year = 1549 }
	offset = 600
	deathdate = { day = 1 month = january year = 1560 }
	
	action_a ={#Go with the reforms#
		name = "ACTIONNAME6911A"
		command = { type = stability value = -2 }
		command = { type = domestic which = land value = 1 }
		command = { type = domestic which = offensive value = 1 }
		command = { type = CAV which = -2 value = 5000 }
		command = { type = cash value = -100}          
	}
	action_b ={#Ignore the reform ideas#
		name = "ACTIONNAME6911B"
		command = { type = stability value = 1 }                     
		command = { type = domestic which = innovative value = -1}
		command = { type = land value = -500 }
	}
}

#Prasat T'ang's Economic Reforms#
event = {
	id = 6912
	random = no
	country = AYU
	name = "EVENTNAME6912"
	desc = "EVENTHIST16912"
	style = 3
	
	date = { day = 1 month = january year = 1630 }
	offset = 3000
	deathdate = { day = 1 month = january year = 1640 }
	
	action_a ={#Go with the reforms#
		name = "ACTIONNAME6912A"
		command = { type = stability value = -1 }
		command = { type = domestic which = mercantilism value = 1 }
		command = { type = merchants value = 5 }
		command = { type = trade value = 350 }
		command = { type = infra value = 350 }
		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 = relation which = -1 value = 50 }
		command = { type = relation which = NIP value = -400 }
	}
	action_b ={#Ignore the reform ideas#
		name = "ACTIONNAME6912B"
		command = { type = stability value = 1 }                     
		command = { type = domestic which = innovative value = -1 }
		command = { type = trade value = -400 }
		command = { type = infra value = -400 }
	}
}

#King Ekit'at's Incompetence#
event = {
	id = 6913
	random = no
	country = AYU
	name = "EVENTNAME6913"
	desc = "EVENTHIST16913"
	style = 4
	
	date = { day = 1 month = january year = 1760 }
	offset = 300
	deathdate = { day = 1 month = january year = 1761 }
	
	action_a ={#Why are we stuck with such a fool?#
		name = "ACTIONNAME6913A"
		command = { type = stability value = -6 }
		command = { type = revoltrisk which = 120 value = 5 }
		command = { type = inflation value = 10 }
		command = { type = relation which =  MYA value = -300 }
		command = { type = relation which =  TAU value = -300 }   
		command = { type = desertion which = -1 value = 7000 }
		command = { type = infra value = -200 } 
	}
}

#The Foundation of the Modern Thai State#
event = {
	id = 3901
	random = no
	country = AYU
	name = "EVENTNAME3901"
	desc = "EVENTHIST13901"
	style = 4
	date = { day = 1 month = january year = 1770 }
	offset = 300
	deathdate = { day = 1 month = january year = 1771 }
	
	action_a ={#It is the beginning of a new era!#
		name = "ACTIONNAME3901A"
		command = { type = stability value = 2 }
		command = { type = domestic which = centralization value = 1 }
		command = { type = provincetax which = 670 value = 1 }
		command = { type = cash value = -300}          
	}
	action_b ={#No, the old ways are the best#
		name = "ACTIONNAME3901B"
		command = { type = stability value = 1 }                     
		command = { type = domestic which = innovative value = -1 }
		command = { type = infra value = -200 }
	}
}

#Capture of Ayutthaya#
event = {
	id = 65122
	random = no
	country = AYU
	trigger = { control = { province = 670 data = TAU } 
		owned = { province = 670 data = -1 }
	}
	name = "EVENTNAME65122"
	desc = "EVENTHIST65122"
	style = 2
	
	date = { day = 1 month = january year = 1550 }
	offset = 2
	deathdate = { day = 1 month = january year = 1605 }
	
	action_a ={
		name = "ACTIONNAME65122A"
		command = { type = relation which = TAU value = -50 }
		command = { type = trade value = -200 }
		command = { type = infra value = -200 }
		command = { type = stability value = -3 }
	}
	action_b ={
		name = "ACTIONNAME65122B"
		command = { type = sleepevent which = 65121 }
		command = { type = relation which = TAU value = -100 }
		command = { type = trade value = -400 }
		command = { type = infra value = -400 }
		command = { type = stability value = -5 }
		command = { type = inf which = -1 value = 5000 }
		command = { type = cav which = -3 value = 5000 }
	}
}

#Peaceful reign of king Ekat'otsarat#
event = {
	id = 65123
	random = no
	country = AYU
	name = "EVENTNAME65123"
	desc = "EVENTHIST65123"
	style = 4
	
	date = { day = 1 month = january year = 1609 }
	offset = 300
	deathdate = { day = 1 month = january year = 1620 }
	
	action_a ={
		name = "ACTIONNAME65123A"
		command = { type = trade value = 300 }
		command = { type = stability value = 2 }
		command = { type = relation which = -1 value = 30 }
		command = { type = relation which = -1 value = 30 }
		command = { type = relation which = -1 value = 30 }   
	}
}

#Prince Ekaracha#
event = {
	id = 65116
	random = no
	country = AYU
	name = "EVENTNAME65116"
	desc = "EVENTHIST65116"
	style = 2
	
	action_a = {  
		name = "ACTIONNAME65116A"
		command = { type = stability value = 1 }
		command = { type = casusbelli which = VIE value = 24 }
	}
	action_b = {  
		name = "ACTIONNAME65116B"
		command = { type = stability value = -1 }
		command = { type = relation which = VIE value = 50 }
	}
}

#Invasion of Cambodia#
event = {

	id = 65140
	random = no
	country = AYU
	trigger = { exists = CAM
			atwar = no }
	name = "EVENTNAME65140"
	desc = "EVENTHIST65140"
	style = 1
	date = { day = 15 month = june year = 1431 }

	action_a = {
		name = "ACTIONNAME65140A"
		command = { type = war which = CAM }
		command = { type = trigger which = 65124 }
		}

	action_b = {
		name = "ACTIONNAME65140B"
		command = { type = stability value = 1 }
		command = { type = casusbelli which = CAM value = 360 }
		}

}

#Angkor is Sacked# 
event = { 
	id = 65141 
	trigger = { event = 65125 } 
	random = no 
	country = AYU 
	name = "EVENTNAME65141" 
	desc = "EVENTHIST65141" 
	style = 1 
	date = { day = 18 month = june year = 1431 } 
	deathdate = { day = 18 month = june year = 1439 } 
	action_a = { 
		name = "ACTIONNAME65141A" 
		command = { type = population which = 670 value = 500 } 
		command = { type = stability value = 1 } 
		command = { type = treasury value = 200 } 
		} 
} 

#Capture of Lovek of 1594# 
event = { 
	id = 65142 
	trigger = { event = 65131 
			exists = CAM
			atwar = no } 
	random = no 
	country = AYU 
	name = "EVENTNAME65142" 
	desc = "EVENTHIST65142" 
	style = 2 
	date = { day = 1 month = january year = 1593 } 
	offset = 320
	deathdate = { day = 1 month = january year = 1599 } 
	action_a = { 
		name = "ACTIONNAME65142A" 
		command = { type = war which = CAM } 
	} 
	action_b = { 
		name = "ACTIONNAME65142B" 
		command = { type = stability value = 1 } 
		command = { type = casusbelli which = CAM value = 360 } 
		} 
} 

#Lovek Is Captured# 
event = { 
	id = 65143 
	trigger = { exists = CAM 
			} 
	random = no 
	country = AYU 
	name = "EVENTNAME65143" 
	desc = "EVENTHIST65143" 
	style = 3 
	action_a = { 
		name = "ACTIONNAME65143A" 
		command = { type = vassal which = CAM } 
		command = { type = stability value = 1 } 
		command = { type = treasury value = 500 } 
	} 
} 

#Cambodia Has Switched Allegiances# 
event = { 
	id = 65144 
	trigger = { exists = CAM } 
	random = no 
	country = AYU 
	name = "EVENTNAME65144" 
	desc = "EVENTHIST65144" 
	style = 3 
	action_a = { 
		name = "ACTIONNAME65144A" 
		command = { type = breakvassal which = CAM } 
		command = { type = casusbelli which = DAI value = 12 } 
		command = { type = casusbelli which = CAM value = 12 } 
		command = { type = trigger which = 65147 } 
		} 
} 

#Cambodia Has Switched Allegiances II# 
event = { 
	id = 65145 
	trigger = { exists = CAM } 
	random = no 
	country = AYU 
	name = "EVENTNAME65145" 
	desc = "EVENTHIST65145" 
	style = 4 
	action_a = { 
		name = "ACTIONNAME65145A" 
		command = { type = vassal which = CAM } 
		command = { type = trigger which = 65138 } 
		} 
}

