## Major Events for Dai Viet
#
# Idea and text: Demetrios
# Scripting: Havard & Doomdark
#

#The Vietnamese Rebellion#
event = {
	id = 3904
	random = no
	country = DAI
	name = "EVENTNAME3904"
	desc = "EVENTHIST3904"
	style = 1
	
	date = { day = 1 month = january year = 1419 }
	offset = 30
	deathdate = { day = 1 month = january year = 1432 }
	
	action_a = {     #Overthrow Chinese control!#
		name = "ACTIONNAME3904A"
		command = { type = breakvassal which = CHI }
		command = { type = relation which = CHI value = -200 }
		command = { type = war which = CHI }
		command = { type = INF which = -1 value = 5000 }
		command = { type = INF which = -1 value = 5000 }
		command = { type = CAV which = -1 value = 5000 }
	}
	action_b ={        #Remain a vassal#
		name = "ACTIONNAME3904B"
		command = { type = stability value = 2 }
		command = { type = relation which = CHI value = 100 }
		command = { type = sleepevent which = 3905 } 
	}
}

#The Foundation of the Empire of Dai Viet#
event = {
	id = 3905
	trigger = {
		NOT = {
			war = { country = DAI country = CHI }
		}
	}
	random = no
	country = DAI
	name = "EVENTNAME3905"
	desc = "EVENTHIST3905"
	style = 1
	
	date = { day = 1 month = january year = 1420 }
	offset = 300
	deathdate = { day = 1 month = january year = 1433}
	
	action_a = {     #Found the Empire!#
		name = "ACTIONNAME3905A"
		command = { type = relation which = CHI value = 100 }
		command = { type = domestic which = land value = 1}
		command = { type = domestic which = centralization value = 1 }
		command = { type = land value = 200 }
		command = { type = infra value = 200 }
		command = { type = stability value = -2 }
	}
}

#Le Nghi Dan's Reforms#
event = {
	id = 3906
	random = no
	country = DAI
	name = "EVENTNAME3906"
	desc = "EVENTHIST3906"
	style = 1
	
	date = { day = 1 month = january year = 1460 }
	offset = 3000
	deathdate = { day = 1 month = january year = 1470 }
	
	action_a ={#Go with the reforms#
		name = "ACTIONNAME3906A"
		command = { type = stability value = -2 }
		command = { type = domestic which = centralization 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 = treasury value = -100 }        
	}
	action_b ={#Ignore the reform ideas#
		name = "ACTIONNAME3906B"
		command = { type = stability value = 1 }   
		command = { type = domestic which = innovative value = -2 }
		command = { type = infra value = -200 }
	}
}

#The Rivalry of the Mac and Trinh Families#
event = {
	id = 3907
	random = no
	country = DAI
	name = "EVENTNAME3907"
	desc = "EVENTHIST3907"
	style = 2
	
	date = { day = 1 month = january year = 1525 }
	offset = 300
	deathdate = { day = 1 month = january year = 1526 }
	
	action_a ={#Curse their interminable feuding!#
		name = "ACTIONNAME3907A"
		command = { type = stability value = -5 }
		command = { type = revoltrisk which = 480 value = 2 }
	}
}

#The Revolt of Annam#
event = {
	id = 3908
	trigger = {
		NOT = {
			exists = ANN
		}
	}
	random = no
	country = DAI
	name = "EVENTNAME3908"
	desc = "EVENTHIST3908"
	style = 2
	date = { day = 1 month = january year = 1558 }
	offset = 300
	deathdate = { day = 1 month = january year = 1559 }
	
	action_a ={#Crush the rebels!#
		name = "ACTIONNAME3908A"
		command = { type = stability value = -6 }
		command = { type = revoltrisk value = 8 }
		command = { type = revolt which = 664 }
		command = { type = revolt which = 664 }
		command = { type = revolt which = 665 }
		command = { type = revolt which = 665 }
		command = { type = revolt which = 665 }
                command = { type = revolt which = -1 }
                command = { type = revolt which = -1 }
                command = { type = revolt which = -1 }
	}
	action_b ={#Negotiate a peaceful settlement#
		name = "ACTIONNAME3908B"
		command = { type = stability value = -2 }
		command = { type = independence which = ANN }
		command = { type = domestic which = centralization value = -2 }
	}
}

#The Tay Son Rebellion#
event = {
	id = 3909
	random = no
	country = DAI
	name = "EVENTNAME3909"
	desc = "EVENTHIST3909"
	style = 4
	
	date = { day = 1 month = january year = 1787 }
	offset = 300
	deathdate = { day = 1 month = january year = 1788 }
	
	action_a ={#Crush the rebels!#
		name = "ACTIONNAME3909A"
		command = { type = stability value = -6 }
		command = { type = revoltrisk which = 36 value = 5 }
		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 }
	}
	action_b ={#Negotiate a peaceful settlement#
		name = "ACTIONNAME3909B"
		command = { type = stability value = -2 }
		command = { type = revoltrisk value = 2 }
		command = { type = treasury value = -500 }
		command = { type = domestic which = centralization value = -2 }
	}
}

#The Foundation of the Modern Vietnamese State#
event = {
	id = 3910
	random = no
	country = DAI
	name = "EVENTNAME3910"
	desc = "EVENTHIST3910"
	style = 5
	date = { day = 1 month = january year = 1802 }
	offset = 300
	deathdate = { day = 1 month = january year = 1803 }
	
	action_a ={#We are one nation!#
		name = "ACTIONNAME3910A"
		command = { type = trigger which = 3912 } #Annam event#
		command = { type = domestic which = centralization value = 2 } 
		command = { type = stability value = -2 } 
		command = { type = treasury value = -500 }
	}
	action_b ={#Rule Annam separately#
		name = "ACTIONNAME3910B"
		command = { type = stability value = 2 }
		command = { type = vassal which = ANN }
		command = { type = domestic which = centralization value = -2 }
	}
}

#The Foundation of the Modern Vietnamese State#
event = {
	id = 3911
	random = no
	country = DAI
	name = "EVENTNAME3911"
	desc = "EVENTHIST3911"
	style = 5
	
	#Triggered by ANN 3912A#
	
	action_a ={#Great!#
		name = "ACTIONNAME3911A"
		command = { type = inherit which = ANN }
		command = { type = capital which = 664 } 
	}
}


###################################################
### Dai Viet Events by Chanda "Phillip V" Choun ###
################################################### 

#Destruction of The Kingdom of Champa# 
event = { 
	id = 65146 
	random = no 
	country = DAI 
	trigger = { exists = CHA
			atwar = no }
	name = "EVENTNAME65146" 
	desc = "EVENTHIST65146" 
	style = 1 
	date = { day = 1 month = june year = 1484 } 
	offset = 250
	deathdate = { day = 1 month = june year = 1490 }
	action_a = { 
		name = "ACTIONNAME65146A" 
		command = { type = war which = CHA } 
		command = { type = trigger which = 65136 } 
		} 
	action_b = { 
		name = "ACTIONNAME65146B" 
		command = { type = stability value = 1 } 
		command = { type = casusbelli which = CHA value = 360 } 
		} 
} 

#Cambodia Has Switched Allegiances# 
event = { 
	id = 65147 
	trigger = { exists = CAM } 
	random = no 
	country = DAI 
	name = "EVENTNAME65147" 
	desc = "EVENTHIST65147" 
	style = 3 
	action_a = { 
		name = "ACTIONNAME65147A" 
		command = { type = vassal which = CAM } 
		} 
} 

#Cambodia Has Switched Allegiances II# 
event = { 
	id = 65148 
	random = no 
	trigger = { exists = CAM } 
	country = DAI 
	name = "EVENTNAME65148" 
	desc = "EVENTHIST65148" 
	style = 4 
	date = { day = 1 month = january year = 1767 }
	offset = 100
	deathdate = { day = 1 month = june year = 1785 } 
	action_a = { 
		name = "ACTIONNAME65148A" 
		command = { type = breakvassal which = CAM } 
		command = { type = casusbelli which = AYU value = 240 } 
		command = { type = casusbelli which = CAM value = 240 } 
		command = { type = trigger which = 65145 } 
		} 
}

#Vietnamese Reaction#
event = {
	id = 65111
	random = no
	country = DAI
	name = "EVENTNAME65111"
	desc = "EVENTHIST65111"
	style = 3

	action_a ={
		name = "ACTIONNAME65111A"
		command = { type = relation which = LUA value = -250 }
		command = { type = casusbelli which = LUA value = 48 } 
	}
	action_b ={
		name = "ACTIONNAME65111B"
		command = { type = relation which = LUA value = 50 }
		command = { type = stability value = -1 }
	}
}
