## 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 = 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 }
	}
	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 }  
	}
	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 } 
	}
}