• We have updated our Community Code of Conduct. Please read through the new rules for the forum that are an integral part of Paradox Interactive’s User Agreement.
Yodamaster from 1.53 bugfix thread said:
Incoherencies in 1.53 events

Missing descriptions:
107003 and 107004 in AGCEEP_Specific_Annam.eue
157001 and 157004 in AGCEEP_Specific_DaiViet.eue

It isn't 157004 but 157007! :D


I found out forgotten event descriptions from a file of Chanda'sEEPSEAsia v1.11, here for anyone who would download it.

Here is what I have found from text.csv about the events of Dai Viet and Annam which are woven each other...I have also provided some changes to the sequences between DAI and ANN for consistency. That is why I post here and not in bugfix thread.

Code:
#(1419-1443) Foundation of the Le Dynasty
event = {
	id = 157001
	random = no
	country = DAI
	name = "EVENTNAME157001" #Foundation of the Le Dynasty
	desc = "EVENTHIST157001"
	#-#EVENTHIST157001

	date = { day = 2 month = january year = 1419 }
	offset = 1
	deathdate = { day = 1 month = january year = 1443 }

	action_a = {
		name = "ACTIONNAME157001A" #Long live the king!
		command = { type = breakvassal which = CHI }
		command = { type = relation which = AYU value = -60 }
		command = { type = relation which = CHA value = -70 }
		command = { type = relation which = AMI value = -45 }
		command = { type = relation which = CAM value = -30 }
		command = { type = domestic which = CENTRALIZATION value = 1 }
		command = { type = domestic which = OFFENSIVE value = -2 }
		command = { type = domestic which = QUALITY value = 2 }
		command = { type = domestic which = ARISTOCRACY value = -1 }
		command = { type = domestic which = INNOVATIVE value = 1 }
		command = { type = CAV which = -2 value = 10000 }
		command = { type = INF which = -2 value = 28000 }
		command = { type = infra value = 500 }
		command = { type = provincetax which = 1554 value = 1 } #Lao Cai
		command = { type = provincetax which = 662 value = 2 } #Hanoi
		command = { type = provincetax which = 663 value = 1 } #Tanh Noah
		command = { type = stability value = 3 }
		command = { type = trigger which = 147000 } #CHI: Japanese Pirate Raids
		command = { type = sleepevent which = 147002 } #CHI: Spread of Le Loi's Lam Son resistance in Vietnam
	}
}

EVENTHIST157001;The Ming administered the country as if it were a province of China and ruled it harshly for the next twenty years. The forced labor of its people was used to exploit Vietnam's mines and forests solely for China's enrichment. Taxes were levied on all products including salt a dietary staple. Under the Ming, Vietnamese cultural traditions, including the chewing of betel nut, were forbidden, men were required to wear their hair long and women to dress in the Chinese style. Vietnamese Buddhism was replaced at court by Ming-sponsored neo-Confucianism, but Ming attempts to supplant popular Vietnamese religious traditions with an officially sponsored form of Buddhism were less successful. Le Loi, one of Vietnam's most celebrated heroes, is credited with rescuing the country from Ming domination in 1428. Born of a wealthy landowning family, he served as a senior scholar-official until the advent of the Ming, whom he refused to serve. The oppressed people found a new leader in the person of Le Loi, a man renowned for his courage and generosity. Under the title Prince of Pacification, he organized a resistance movement from his village and waged a guerrilla war against the enemy. By employing a strategy of surprise attacks targeting his adversary's weakest points, Le Loi managed to further weaken the enemy and at the same time to avoid combat with the superior Chinese forces. His enforcement of strict military discipline ensured that no pillaging was carried out by his troops in the regions under his control, making him a very popular hero. After a decade of gathering a resistance movement around him, Le Loi and his forces finally defeated the Chinese army in 1428. Rather than putting to death the captured Chinese soldiers and administrators, he magnanimously provided ships and supplies to send them back to China. Le Loi then ascended the Vietnamese throne, taking the reign name Le Thai To and establishing the Le dynasty (1428-1788). He renamed the country Dai Viet and immediately began the task of its reconstruction after the devastation caused by war. He reduced his army from 250,000 to 10,000 men and adopted a rotation system that enabled soldiers to return to the countryside to work and help boost food production. The legal system was reorganized and the penal system revised. A new College of National Sons (Quoc Tu Giam) was founded to educate future administrators, with admission based entirely on merit and not on the prior prerequisite of social or family status.;;;;;;;;;;



Code:
#(1773[COLOR=Yellow]-1801)[/COLOR] Tay Son Uprising
event = {
	id = 107002
	random = no
	country = ANN
	name = "EVENTNAME107002" #Tay Son Uprising
	desc = "EVENTHIST107002"
	#-#

	date = { day = 1 month = january year = 1773 }
	[COLOR=Yellow]offset = 60
	deathdate = { day = 29 month = december year = 1801 }[/COLOR]


	action_a = {
		name = "ACTIONNAME107002A" #Good riddance!
		command = { type = revolt which = -1 }
		command = { type = revolt which = -1 }
		command = { type = revolt which = -1 }
		command = { type = revolt which = -1 }
		command = { type = revoltrisk which = 432 value = 5 }
		command = { type = stability value = -6 }
	}
}
#-#The Tay Son Rebellion (1771-1802), which ended the Le and Trinh dynasties, was led by three brothers from the village of Tay Son in Binh Dinh Province. The brothers, who were of the Ho clan (to which Ho Quy Ly had belonged), adopted the name Nguyen. The eldest brother, Nguyen Nhac, began an attack on the ruling Nguyen family by capturing Quang Nam and Binh Dinh provinces in 1772. The chief principle and main slogan of the Tay Son was seize the property of the rich and distribute it to the poor. In each village the Tay Son controlled, oppressive landlords and scholar-officials were punished and their property redistributed. The Tay Son also abolished taxes, burned the tax and land registers, freed prisoners from local jails, and distributed the food from storehouses to the hungry. As the rebellion gathered momentum, it gained the support of army deserters, merchants, scholars, local officials, and bonzes.

Code:
#(1783[COLOR=Yellow]-1785)[/COLOR] Tay Son Uprising
event = {
	id = 157006
	random = no
	country = DAI
	name = "EVENTNAME157006" #Tay Son Uprising
	desc = "EVENTHIST157006"
	#-#

	date = { day = 1 month = january year = 1783 }
	[COLOR=Yellow]offset = 30
	date = { day = 29 month = december year = 1785 }[/COLOR]

	action_a = {
		name = "ACTIONNAME157006A" #Good riddance!
		command = { type = revolt which = -1 }
		command = { type = revolt which = -1 }
		command = { type = revoltrisk which = 432 value = 5 }
		command = { type = stability value = -6 }
	}
}
#-#The Tay Son Rebellion (1771-1802), ended the Le and Trinh dynasties, and was led by three brothers from the village of Tay Son in Binh Dinh Province. The brothers were of the Ho clan (to which Ho Quy Ly had belonged), and adopted the name Nguyen. The eldest brother, Nguyen Nhac, began an attack on the ruling Nguyen family by capturing Quang Nam and Binh Dinh provinces in 1772. The chief principle and main slogan of the Tay Son was 'seize the property of the rich and distribute it to the poor.' In each village the Tay Son controlled, oppressive landlords and scholar-officials were punished and their property redistributed. The Tay Son also abolished taxes, burned the tax and land registers, freed prisoners from local jails, and distributed the food from storehouses to the hungry. As the rebellion gathered momentum, it gained the support of army deserters, merchants, scholars, local officials, and bonzes. By 1786 the Tay Son had overcome the Trinh dynasty and united the country

Code:
#(1788[COLOR=Yellow]-1791)[/COLOR] A New Emperor
event = {
	id = 157007
	random = no
	country = DAI
	name = "EVENTNAME157007" #A New Emperor
	desc = "EVENTHIST157007"
	#-#EVENTHIST157007

	[COLOR=Red]date = { day = 1 month = january year = 1788 }[/COLOR]
	[COLOR=Yellow]date = { day = 15 month = september year = 1788 }
	offset = 10
	deathdate = { day = 29 month = december year = 1791 }[/COLOR]

	action_a = {
		name = "ACTIONNAME157007A" #It is a new era!
		command = { type = capital which = 663 } #Tanh Noah
		command = { type = domestic which = CENTRALIZATION value = 1 }
		command = { type = domestic which = OFFENSIVE value = 2 }
		command = { type = domestic which = QUALITY value = 2 }
		command = { type = land value = 1000 }
		command = { type = trade value = 500 }
		command = { type = infra value = 500 }
		command = { type = provincetax which = -1 value = 1 }
		command = { type = provincetax which = -1 value = 1 }
		command = { type = inf which = -2 value = 10000 }
		command = { type = cav which = -2 value = 5000 }
		command = { type = stability value = 3 }
	}
}
EVENTHIST157007;In 1788 the reigning Le emperor fled north to seek Chinese assistance in defeating the Tay Son. Eager to comply, a Chinese army of the Qing dynasty (1644-1911) invaded Vietnam, seized Thang Long, and invested the Le ruler as King of Annam. To save the nation, the second eldest Tay Son brother, Nguyen Hue, proclaimed himself Emperor Quang Trung in Phu Xuan and overran the Chinese troops in a whirlwind campaign. Marching north with 100,000 men and 100 elephants, Quang Trung attacked Thang Long at night and routed the Chinese army of 200,000, which retreated in disarray. Immediately following his victory, the Tay Son leader sought to reestablish friendly relations with China, requesting recognition of his rule and sending the usual tributary mission. Quang Trung stimulated Vietnam's war-ravaged economy by encouraging trade and crafts, ordering the recultivation of fallow lands, reducing or abolishing taxes on local products, and resettling landless peasants on communal lands in their own villages. Quang Trung also established a new capital at Phu Xuan (near modern Hue), a more central location from which to administer the country. He reorganized the government along military lines, giving key posts to generals, with the result that military officials for the first time outranked civilian officials. Vietnamese was substituted for Chinese as the official national language, and candidates for the bureaucracy were required to submit prose and verse compositions in chu nom rather than in classical Chinese.;;;;;;;;;;


Code:
#(1789[COLOR=Yellow]-1802)[/COLOR] Nguyen Anh
event = {
	id = 107003
	[COLOR=Yellow]trigger = {
		exists = DAI
		OR = {
			event = 107002 #ANN: Tay Son Uprising
			event = 157006 #DAI: Tay Son Uprising
		}
	}[/COLOR]
	random = no
	country = ANN
	name = "EVENTNAME107003" #Nguyen Anh
	desc = "EVENTHIST107003"
	#-#EVENTHIST107003

	date = { day = 1 month = january year = 1789 }
	[COLOR=Yellow]offset = 30
	date = { day = 29 month = may year = 1802 }[/COLOR]
	action_a = {
		name = "ACTIONNAME107003A" #Let it begin!
		command = { type = war which = DAI }
		command = { type = domestic which = CENTRALIZATION value = 2 }
		command = { type = domestic which = INNOVATIVE value = 2 }
		command = { type = domestic which = LAND value = 2 }
		command = { type = domestic which = OFFENSIVE value = 2 }
		command = { type = domestic which = QUALITY value = 2 }
		command = { type = land value = 5000 }
		command = { type = stability value = 2 }
		command = { type = treasury value = 1000 }
	}
	action_b = {
		name = "ACTIONNAME107003B" #We are cowards!
		command = { type = stability value = -1 }
		command = { type = relation which = DAI value = 50 }
		[COLOR=Yellow]command = { type = sleepevent which = 107004 } #ANN: Birth of Vietnam[/COLOR]
	}
}

EVENTHIST107003;In 1773 Nguyen Nhac seized Qui Nhon, which became the Tay Son capital. By 1778 the Tay Son had effective control over the southern part of the country, including Gia Dinh (later Saigon). The ruling Nguyen family were all killed by the Tay Son rebels, with the exception of Nguyen Anh, the sixteen-year-old nephew of the last Nguyen lord, who escaped to the Mekong Delta. There he was able to gather a body of supporters and retake Gia Dinh. The city changed hands several times until 1783, when the Tay Son brothers destroyed Nguyen Anh's fleet and drove him to take refuge on Phu Quoc Island. Soon thereafter, he met with French missionary bishop Pigneau de Behaine and asked him to be his emissary in obtaining French support to defeat the Tay Son. Pigneau de Behaine took Nguyen Anh's five-year-old son, Prince Canh, and departed for Pondichery in French India to plead for support for the restoration of the Nguyen. Finding none there, he went to Paris in 1786 to lobby on Nguyen Anh's behalf. Louis XVI ostensibly agreed to provide four ships, 1,650 men, and supplies in exchange for Nguyen Anh's promise to cede to France the port of Tourane (Da Nang) and the island of Poulo Condore. However, the local French authorities in India, under secret orders from the king, refused to supply the promised ships and men. Determined to see French military intervention in Vietnam, Pigneau de Behaine himself raised funds for two ships and supplies from among the French merchant community in India, hired deserters from the French navy to man them, and sailed back to Vietnam in 1789. When Pigneau de Behaine returned to Vietnam in 1789, Nguyen Anh was in control of Gia Dinh. In the succeeding years, the bishop brought Nguyen Anh a steady flow of ships, arms, and European advisers, who supervised the building of forts, shipyards, cannon foundries and bomb factories, and instructed the Vietnamese in the manufacture and use of modern armaments.;;;;;;;;;;

Code:
#(1789-1820) Birth of Vietnam
event = {
	id = 107004
	trigger = {
		[COLOR=Yellow]event = 107003 #ANN: Nguyen Anh[/COLOR]
		control = { province = 662 data = ANN } [COLOR=Yellow]#Hanoi[/COLOR]
		control = { province = 663 data = ANN } [COLOR=Yellow]#Tanh Noah[/COLOR]
	}
	random = no
	country = ANN
	name = "EVENTNAME107004" #Birth of Vietnam
	desc = "EVENTHIST107004"
	#-#EVENTHIST107004

	date = { day = 1 month = january year = 1789 }
	[COLOR=Yellow]offset = 70[/COLOR]
	deathdate = { year = 1820 }

	action_a = {
		name = "ACTIONNAME107004A" #We are one!
		command = { type = inherit which = DAI }
		[COLOR=Red]command = { type = domestic which = CENTRALIZATION value = 2 }
		command = { type = domestic which = SERFDOM value = 2 }
		command = { type = domestic which = INNOVATIVE value = -2 }
		command = { type = domestic which = ARISTOCRACY value = 1 }
		command = { type = capital which = 663 } #Tanh Noah
		command = { type = provincetax which = 663 value = 2 } #Tanh Noah
		command = { type = population which = 663 value = 2000 } #Tanh Noah
		command = { type = provincetax which = -2 value = 2 }
		command = { type = provincetax which = -1 value = 1 }
		command = { type = provincetax which = -1 value = 1 }
		command = { type = provincetax which = -1 value = 1 }[/COLOR]
		command = { type = stability value = 3 }
		[COLOR=Yellow]command = { type = addcore which = 1554 } #Lao Cai
		command = { type = addcore which = 662 } #Hanoi
		command = { type = addcore which = 663 } #Tanh Noah
		command = { type = sleepevent which = 157008 } #DAI: A power vacuum[/COLOR]
	}
}
EVENTHIST107004;Nguyen's cause was also greatly aided by divisions within the Tay Son leadership, following the death of Quang Trung, and the inability of the new leaders to deal with the problems of famine and natural disasters that wracked the war-torn country. After a steady assault on the north, Nguyen Anh's forces took Phu Xuan in June 1801 and Thang Long a year later. In June 1802, Nguyen Anh adopted the reign name Gia Long to express the unifying of the country--Gia from Gia Dinh (Saigon) and Long from Thang Long (Hanoi). As a symbol of this unity, Gia Long changed the name of the country from Dai Viet to Nam Viet. For the Chinese, however, this was too reminiscent of the wayward General Trieu Da. In conferring investiture on the new government, the Chinese inverted the name to Viet Nam, the first use of that name for the country. Acting as a typical counterrevolutionary government, the Gia Long regime harshly suppressed any forces opposing it or the interests of the bureaucracy and the landowners.;;;;;;;;

Code:
#(1792) A Power Vacuum
event = {
	id = 157008
	[COLOR=Yellow]trigger = {
		NOT = { event = 107004 } #ANN: Birth of Vietnam
	}[/COLOR]
	random = no
	country = DAI
	name = "EVENTNAME157008" #A Power Vacuum
	desc = "EVENTHIST157008"
	#-#

	date = { day = 1 month = january year = 1792 }
	[COLOR=Yellow]offset = 20
	deathdate = { day = 1 month = february year = 1792 }[/COLOR]

	action_a = {
		name = "ACTIONNAME157008A" #How unfortunate!
		command = { type = revoltrisk which = 120 value = 10 }
		command = { type = stability value = -6 }
	}
}
#-#Unfortunately, Quang Trung's promising reign was cut short by his premature death not long after, in 1792. Without leaving a successor strong enough to assume leadership of the country, the usual factionalism ensued. By this time, Nguyen Anh and his supporters had won back much of the south from Nguyen Lu, the youngest and least capable of the Tay Son brothers....


And a new event here:


Code:
#(1789-1820) Gia Long and the Chinese model
event = {
	id = 157013
	trigger = {
		event = 107004 #ANN: Birth of Vietnam
		owned = { province = 663 data = -1 }
		control = { province = 663 data = -1 } #Tanh Noah
	}
	random = no
	country = DAI
	name = "EVENTNAME157013" #Gia Long and the Chinese model
	desc = "EVENTHIST157013"
	#-#

	date = { day = 1 month = january year = 1789 }
	offset = 90
	deathdate = { year = 1820 }

	action_a = {
		name = "OK"
		command = { type = sleepmonarch which = 040530 } #Nguyen Hue
		command = { type = sleepmonarch which = 040531 } #Nguyen Quang Toan 
		command = { type = wakemonarch which = 040532 } #Gia Long
		command = { type = domestic which = CENTRALIZATION value = 2 }
		command = { type = domestic which = SERFDOM value = 2 }
		command = { type = domestic which = INNOVATIVE value = -2 }
		command = { type = domestic which = ARISTOCRACY value = 1 }
		command = { type = capital which = 663 } #Tanh Noah
		command = { type = provincetax which = 663 value = 2 } #Tanh Noah
		command = { type = population which = 663 value = 2000 } #Tanh Noah
		command = { type = provincetax which = -2 value = 2 }
		command = { type = provincetax which = -1 value = 1 }
		command = { type = provincetax which = -1 value = 1 }
		command = { type = provincetax which = -1 value = 1 }
	}
}
EVENTNAME157013;Gia Long and the Chinese model;;;;;;;;;;
EVENTHIST157013;In his drive for control and order, Gia Long adopted the Chinese bureaucratic model to a greater degree than any previous Vietnamese ruler. The new capital at Hue, two kilometers northeast of Phu Xuan, was patterned after the Chinese model in Beijing, complete with a Forbidden City, an Imperial City, and a Capital City. Vietnamese bureaucrats were required to wear Chinese-style gowns and even adopt Chinese-style houses and sedan chairs. Vietnamese women, in turn, were compelled to wear Chinese-style trousers. Gia Long instituted a law code, which followed very closely the Chinese Qing dynasty (1644-1911) model. Under the Gia Long code, severe punishment was meted out for any form of resistance to the absolute power of the government. Buddhism, Taoism, and indigenous religions were forbidden under the Confucianist administration. Traditional Vietnamese laws and customs, such as the provisions of the Hong Duc law code protecting the rights and status of women, were swept away by the new code. Taxes that had been reduced or abolished under the Tay Son were levied again under the restored Nguyen dynasty. These included taxes on mining, forestry, fisheries, crafts, and on various domestic products, such as salt, honey, and incense. Another heavy burden on the peasantry was the increased use of corvee labor to build not only roads, bridges, ports, and irrigation works but also palaces, fortresses, shipyards, and arsenals. All but the privileged classes were required to work on such projects at least sixty days a year, with no pay but a rice ration. The great Mandarin Road, used by couriers and scholar-officials as a link between Gia Dinh, Hue, and Thang Long, was started during this period in order to strengthen the control of the central government. Military service was another burden on the peasantry; in some areas one out of every three men was required to serve in the Vietnamese Imperial Army. Land reforms instituted under the Tay Son were soon lost under the restored Nguyen dynasty, and the proportion of communal lands dwindled to less than 20 percent of the total. Although chu nom was retained as the national script by Gia Long, his son and successor Minh Mang, who gained the throne upon his father's death in 1820, ordered a return to the use of Chinese ideographs.;;;;;;;;;;





And about historical monarchs of Dai Viet (Viet Nam after 1802) I would suggest a couple of corrections. When ANN_107004 fires and soon after also the new event DAI_157013 fires, we would have an event talking about reforms of Gia Long without even having him on the throne of Dai Viet. So I suggest to change deathdate of monarch 040531 with 1820 and anticipate the startdate of 040532 to year 1789. As alternative we would have to change the startdate of event 107004 upt to 1802...

Code:
#Tay Son Dynasty

historicalmonarch = {
	id = { type = 6 id = 040529 }
	startdate = {
		year = 1776
	}
	deathdate = {
		day = 15
		month = september
		year = 1788
	}
	name = "Nguyen Nhac"
	DIP = 4
	ADM = 6
	MIL = 4
	dormant = no
}
historicalmonarch = {
	id = { type = 6 id = 040530 }
	startdate = {
		day = 15
		month = september
		year = 1788
	}
	deathdate = {
		day = 1
		month = june
		year = 1792
	}
	name = "Nguyen Hue"
	DIP = 8
	ADM = 5
	MIL = 8
	dormant = no
}
historicalmonarch = {
	id = { type = 6 id = 040531 }
	startdate = {
		year = 1792
	}
	[COLOR=Red]deathdate = {
		day = 1
		month = june
		year = 1802
	}[/COLOR]
	[COLOR=Yellow]deathdate = {
		year = 1820
	}[/COLOR]
	name = "Nguyen Quang Toan"
	DIP = 4
	ADM = 5
	MIL = 4
	dormant = no
}

#-----------------------------------------------------------------------------------------------
#Nguyen Dynasty

historicalmonarch = {
	id = { type = 6 id = 040532 }
	[COLOR=Yellow]startdate = {
		year = 1789
	}[/COLOR]
	[COLOR=Red]startdate = {
		day = 20
		month = july
		year = 1802
	}[/COLOR]
	deathdate = {
		day = 3
		month = february
		year = 1820
	}
	name = "Gia Long"
	DIP = 8
	ADM = 8
	MIL = 8
	[COLOR=Red]dormant = no[/COLOR]
	[COLOR=Yellow]dormant = yes[/COLOR]
	remark = "Same as Nguyen Phuc Anh for Annam. Conquered Dai Viet and re-united the country."
}




There is also another question concerning DAI and ANN cores. This event here is a potential CTD:

Code:
#(1545) Vietnamese Division
event = {
	id = 157005
	random = no
	country = DAI
	name = "EVENTNAME157005" #Vietnamese Division
	desc = "EVENTHIST157005"
	#-#

	date = { day = 1 month = january year = 1545 }

	action_a = {
		name = "DAMN"
		command = { type = domestic which = ARISTOCRACY value = 1 }
		command = { type = domestic which = CENTRALIZATION value = -1 }
		command = { type = independence which = ANN }
		command = { type = war which = ANN }
		command = { type = stability value = -1 }
	}
}
#-#An attack on the Mac forces led by the Le general Nguyen Kim resulted in the partition of Vietnam in 1545, with the Nguyen family seizing control of the southern part of the country as far north as what is now Thanh Hoa Province. The Nguyen, who took the hereditary title 'chua', continued to profess loyalty to the Le dynasty.



because of those entries in revolt.txt:
Code:
DAI = { #Dai Viet
	date = { day = 1 month = january year = 1421 }
	expirydate = { year = 1820 }
	minimum = { 662 663 1554 }
	extra = { }
	capital = 662
	group = china
	#ai = "daiviet.ai"
	ai = "SmallTrade1.ai"
}
ANN = { #Annam
	date = { day = 1 month = january year = 1592 }
	expirydate = { year = 1820 }
	minimum = { 665 664 663 }
	extra = { }
	capital = 663
	group = china
	#ai = "daiviet.ai"
	ai = "SmallTrade1.ai"
}
CHA = { #Champa
	date = { day = 1 month = january year = 1419 }
	expirydate = { day = 29 month = december year = 1720 }
	minimum = { 665 664 }
	extra = { }
	capital = 665
	group = china
	#ai = "seasian.ai"
	ai = "SmallTrade1.ai"
}
DAI and ANN have 663 as minimal core, a potential CTD, while IMHO CHA should have her expirydate when ANN is releasable as they have almost the same cores. Since we have no CHA event file, while we have ANN starting from 1630s, well...


I would then suggest:


Code:
#(1545) Vietnamese Division
event = {
	id = 157005
	[COLOR=Yellow]trigger = {
		NOT = { exists = ANN }
		NOT = { exists = CHA }
		OR = {
			owned = { province = 664 data = -1 } #Da Nang
			owned = { province = 665 data = -1 } #Da Lat
		}
	}[/COLOR]
	random = no
	country = DAI
	name = "EVENTNAME157005" #Vietnamese Division
	desc = "EVENTHIST157005"
	#-#

	date = { day = 1 month = january year = 1545 }
	[COLOR=Yellow]offset = 90
	deathdate = { day = 29 month = december year = 1591 }[/COLOR]

	action_a = {
		name = "DAMN"
		command = { type = domestic which = ARISTOCRACY value = 1 }
		command = { type = domestic which = CENTRALIZATION value = -1 }
		command = { type = independence which = ANN }
		command = { type = war which = ANN }
		command = { type = stability value = -1 }
	}
}
#-#An attack on the Mac forces led by the Le general Nguyen Kim resulted in the partition of Vietnam in 1545, with the Nguyen family seizing control of the southern part of the country as far north as what is now Thanh Hoa Province. The Nguyen, who took the hereditary title 'chua', continued to profess loyalty to the Le dynasty.



and
Code:
DAI = { #Dai Viet
	date = { day = 1 month = january year = 1421 }
	expirydate = { year = 1820 }
	minimum = { 662 663 1554 }
	extra = { }
	capital = 662
	group = china
	#ai = "daiviet.ai"
	ai = "SmallTrade1.ai"
}
ANN = { #Annam
	[COLOR=Red]date = { day = 1 month = january year = 1592 }[/COLOR]
	[COLOR=Yellow]date = { day = 1 month = january year = 1545 }[/COLOR]
	expirydate = { year = 1820 }
	minimum = { 665 664 [COLOR=Red]663[/COLOR] }
	extra = { }
	capital = [COLOR=Red]663[/COLOR][COLOR=Yellow]664[/COLOR]
	group = china
	#ai = "daiviet.ai"
	ai = "SmallTrade1.ai"
}
CHA = { #Champa
	date = { day = 1 month = january year = 1419 }
	[COLOR=Red]expirydate = { day = 29 month = december year = 1720 }[/COLOR]
	[COLOR=Yellow]expirydate = { day = 29 month = december year = 1544 }[/COLOR]
	minimum = { 665 664 }
	extra = { }
	capital = 665
	group = china
	#ai = "seasian.ai"
	ai = "SmallTrade1.ai"
}

and the trigger here:
Code:
#(1672) Truce Between North and South
event = {
	id = 157010
	[COLOR=Yellow]trigger = {
		OR = {
			event = 157005 #DAI: Vietnamese Division
			event = 157009 #DAI: Ousting of the Macs
		}
		exists = ANN
		NOT = { war = { country = ANN country = DAI } }
	}[/COLOR]
	random = no
	country = DAI
	name = "EVENTNAME157010" #Truce Between North and South
	desc = "EVENTHIST157010"
	#-#

	date = { day = 1 month = january year = 1672 }
	[COLOR=Yellow]offset = 360
	deathdate = { year = 1750 }[/COLOR]

	action_a = {
		name = "ACTIONNAME157010A" #Finally.
		command = { type = stability value = 2 }
		command = { type = relation which = ANN value = 150 }
	}
	action_b = {
		name = "ACTIONNAME157010B" #Nothing is FINAL!
		command = { type = casusbelli which = ANN value = 360 }
		command = { type = stability value = -1 }
	}
}

#-#After major offensives by the Trinh in 1661 and 1672 foundered on the walls built by the Nguyen, a truce in the fighting ensued that lasted nearly 100 years.



I hope not to have forgotten something... ;)

EDIT: added the deathdate in 157008 and anticipated the starting date for the release of ANN and consequently the deathdate of the existance of CHA, both entries in revolt.txt. That's because of event DAI_157005 which originally started from 1545... ;)
 
Last edited:
Many thanks, Bordic! Yes, I was always puzzled about how some of my event descriptions got lost in the transition from EEP to AGC-EEP, but I was too lazy/busy to do anything about it. :D
 
In DAI_157008, I suggest to add some randomness:
Code:
	date = { day = 1 month = january year = 1792 }
	offset = 20
	deathdate = { day = 1 month = february year = 1792 }
Same for 157002:
Code:
	date = { day = 1 month = january year = 1443 }
	offset = 180
	deathdate = { day = 29 month = december year = 1443 }
157003:
Code:
	date = { day = 1 month = january year = 1460 }
	offset = 180
	deathdate = { day = 29 month = december year = 1460 }
157004:
Code:
	date = { day = 1 month = january year = 1527 }
	offset = 20
	deathdate = { day = 1 month = february year = 1527 }
157009:
Code:
	date = { day = 1 month = january year = 1592 }
	offset = 300
	deathdate = { day = 29 month = december year = 1592 }


@Jayavarman: lazy or busy? :D
You have the benefit of the doubt. ;)
 
Last edited:
YodaMaster said:
In DAI_157008, I suggest to add some randomness:
Code:
	date = { day = 1 month = january year = 1792 }
	offset = 20
	deathdate = { day = 1 month = february year = 1792 }
Thanks. I have updated my previous post and made a change in my suggestion of the date in which one can release ANN. I have anticipated it from 1592 to 1545 as there is a DAI event (157005) which fires in that year. Instead of changing the event, having it postponed to 1592 I have preferred to have CHA "dying" in 1544. Check the entries of revolt.txt, ANN should take CHA place in case DAI manages to submit CHA.

Same for 157002:
Code:
	date = { day = 1 month = january year = 1443 }
	offset = 180
	deathdate = { day = 29 month = december year = 1443 }
157003:
Code:
	date = { day = 1 month = january year = 1460 }
	offset = 180
	deathdate = { day = 29 month = december year = 1460 }
157004:
Code:
	date = { day = 1 month = january year = 1527 }
	offset = 20
	deathdate = { day = 1 month = february year = 1527 }
157009:
Code:
	date = { day = 1 month = january year = 1592 }
	offset = 300
	deathdate = { day = 29 month = december year = 1592 }
Yes, I believe we should have this randomness, as several firing-in-one-date-only events are written for minor countries, expecially for mono- or two-province ones. And that may endanger any kind of scripted sequence for those countries.
 
Changes to Ayutthaya (AYU)
Code:
#([COLOR=Yellow]1620-1630[/COLOR]) Cambodia Has Switched Allegiances
event = {
	id = 120004 #[COLOR=Yellow]triggered by CAM_140013[/COLOR]
	[COLOR=Red]trigger = { exists = CAM }[/COLOR]
	random = no
	country = AYU
	name = "EVENTNAME65144" #Cambodia Has Switched Allegiances
	desc = "EVENTHIST65144"
	#-#

	action_a = {
		name = "ACTIONNAME65144A" #We will reassert our domination
		command = { type = casusbelli which = ANN value = 12 }
		command = { type = trigger which = 107000 } #ANN: Cambodia Has Switched Allegiances
		[COLOR=Yellow]command = { }[/COLOR]
	}
}
#-#With the marriage in 1620 of King Chey Chettha II (1618-28) of Cambodia and the daughter of Sai Vuong, one of the Nguyen lords (1558-1778), who ruled southern Vietnam for most of the period of the restored Le dynasty (1428-1788), Cambodia orbited into the Vietnamese sphere of influence.

Changes to Burma (MYA)
Code:
#(1538) Subjugation of the Mon
event = {
	id = 136001
	[COLOR=Yellow]trigger = {
		exists = PEG
		NOT = { vassal = { country = MYA country = PEG } }
	}[/COLOR]
	random = no
	country = MYA
	name = "EVENTNAME136001" #Subjugation of the Mon
	desc = "EVENTHIST136001"
	#-#

	date = { day = 1 month = january year = 1538 }
	[COLOR=Yellow]offset = 300
	deathdate = { day = 29 month = december year = 1538 }[/COLOR]

	action_a = {
		name = "ACTIONNAME136001A" #They shall submit!
		command = { type = relation which = PEG value = -100 }
		command = { type = addcore which = 673 } #Irrawady
		command = { type = addcore which = 674 } #Kwai
		[COLOR=Yellow]command = { type = sleepevent which = 136019 } #MYA: The submission of the Mon[/COLOR]
	}
	action_b = {
		name = "ACTIONNAME136001B" #We are cowards!
		command = { type = relation which = PEG value = 50 }
		command = { type = stability value = 1 }
	}
}
#-#For two hundred years, there was incessant warfare between the Mon and the Burmans, but the Mon managed to retain their independence until 1539, when they came under the domination of Myanmar led by King Tabinshwehti.

Code:
#(1539-1599) Move to Pegu I
event = {
	id = 136008
	trigger = {
		owned = { province = 673 data = -1 } #Irrawady
		[COLOR=Yellow]control = { province = 673 data = -1 } #Irrawady[/COLOR]
	}
	random = no
	country = MYA
	name = "EVENTNAME136008" #Move to Pegu
	desc = "EVENTHIST136008"
	#-#

	date = { day = 1 month = january year = 1539 }
	offset = 30
	deathdate = { day = 1 month = january year = 1599 }

	action_a = {
		name = "ACTIONNAME136008A" #Move to Pegu
		command = { type = capital which = 673 } #Irrawady
		[COLOR=Yellow]command = { type = addcore which = 673 } #Irrawady
		command = { type = addcore which = 674 } #Kwai
		command = { type = setflag which = [Pegu] }
		command = { type = sleepevent which = 136019 } #MYA: The submission of the Mon[/COLOR]
	}
	action_b = {
		name = "ACTIONNAME136008B" #Stay in Ava
		command = { type = sleepevent which = 136009 } #MYA: Leaving Pegu
		command = { type = sleepevent which = 136010 } #MYA: Move to Pegu again
		command = { type = sleepevent which = 136011 } #MYA: Leaving Pegu again
	}
}
#-#Pegu (also known as Bago) was the capital of a united Burman kingdom from 1539-1599.

New event:
Code:
#(1539-1820) The submission of the Mon
event = {
	id = 136019
	trigger = {
		OR = {
			event = 136008 #MYA: Move to Pegu
			AND = {
				NOT = { event = 136008 } #MYA: Move to Pegu
				year = 1600
			}
		}
		OR = {
			AND = {
				OR = {
					owned = { province = 673 data = -1 } #Irrawady
					owned = { province = 674 data = -1 } #Kwai
				}
				NOT = { exists = PEG }
			}
			vassal = { country = MYA country = PEG }
		}
		NOT = {
			core = { province = 673 data = -1 } #Irrawady
			core = { province = 674 data = -1 } #Kwai
		}
	}
	random = no
	country = MYA
	name = "EVENTNAME136019" #The submission of the Mon
	desc = "EVENTHIST136001"
	#-#

	date = { day = 1 month = january year = 1539 }
	offset = 300
	deathdate = { year = 1820 }

	action_a = {
		name = "ACTIONNAME136019A" #The land is ours!
		command = { type = addcore which = 673 } #Irrawady
		command = { type = addcore which = 674 } #Kwai
	}
}
EVENTNAME136019;The submission of the Mon;;;;;;;;;;
ACTIONNAME136019A;The land is ours!;;;;;;;;;;

Code:
#(1551) Subjugation of the Shan
event = {
	id = 136002
	[COLOR=Yellow]trigger = {
		exists = TAU
		NOT = { vassal = { country = MYA country = TAU } }
	}[/COLOR]
	random = no
	country = MYA
	name = "EVENTNAME136002" #Subjugation of the Shan
	desc = "EVENTHIST136002"
	#-#

	date = { day = 1 month = january year = 1551 }
	[COLOR=Yellow]offset = 300
	deathdate = { day = 29 month = december year = 1551 }[/COLOR]

	action_a = {
		name = "ACTIONNAME136002A" #They shall submit!
		command = { type = relation which = TAU value = -100 }
		command = { type = addcore which = 1548 } #Shan
		command = { type = addcore which = 1549 } #Bago
		[COLOR=Yellow]command = { type = sleepevent which = 136020 } #MYA: The submission of the Shan[/COLOR]
	}
	action_b = {
		name = "ACTIONNAME136002B" #We are cowards!
		command = { type = relation which = TAU value = 50 }
		command = { type = stability value = 1 }
	}
}
#-#The Shans ruled this region of northern Burma, called the Shan States, until the 16th century, when King Bayinnaung established Burmese control over all of the Shan States.

New event:
Code:
#(1552-1820) The submission of the Shan
event = {
	id = 136020
	trigger = {
		OR = {
			AND = {
				OR = {
					owned = { province = 1548 data = -1 } #Shan
					owned = { province = 1549 data = -1 } #Bago
				}
				NOT = { exists = TAU }
			}
			vassal = { country = MYA country = TAU }
		}
		NOT = {
			core = { province = 1548 data = -1 } #Shan
			core = { province = 1549 data = -1 } #Bago
		}
	}
	random = no
	country = MYA
	name = "EVENTNAME136020" #The submission of the Shan
	desc = "EVENTHIST136002"
	#-#

	date = { day = 1 month = january year = 1552 }
	offset = 300
	deathdate = { year = 1820 }

	action_a = {
		name = "ACTIONNAME136020A" #The land is ours!
		command = { type = addcore which = 1548 } #Shan
		command = { type = addcore which = 1549 } #Bago
	}
}
EVENTNAME136020;The submission of the Shan;;;;;;;;;;
ACTIONNAME136020A;The land is ours!;;;;;;;;;;

Code:
#(1557) Subjugation of Lan Na
event = {
	id = 136003
	[COLOR=Yellow]trigger = {
		exists = KHM
		NOT = { vassal = { country = MYA country = KHM } }
	}[/COLOR]
	random = no
	country = MYA
	name = "EVENTNAME136003" #Subjugation of Lan Na
	desc = "EVENTHIST136003"
	#-#

	date = { day = 1 month = january year = 1557 }
	[COLOR=Yellow]offset = 300
	deathdate = { day = 29 month = december year = 1557 }[/COLOR]

	action_a = {
		name = "ACTIONNAME136003A" #They shall submit!
		command = { type = relation which = KHM value = -100 }
		command = { type = addcore which = 1550 } #Lampang
		[COLOR=Yellow]command = { type = sleepevent which = 136021 } #MYA: The submission of Lan Na[/COLOR]
	}
	action_b = {
		name = "ACTIONNAME136003B" #We are cowards!
		command = { type = relation which = KHM value = 50 }
		command = { type = stability value = 1 }
	}
}
#-#In 1558 AD Chiang Mai was taken by the Burmese empire. Most of Lan Na remained under Burmese control for over 200 years, although for much of the population the effects were barely noticeable except during the odd small-scale rebellion, when the Burmese would sack a rebellious dukedom as a punishment. There was no direct colonization, but annual tributes to Myanmar had to be paid, and a Burmese prince sat on the throne in Chiang Mai.

New event:
Code:
#(1552-1820) The submission of Lan Na
event = {
	id = 136021
	trigger = {
		OR = {
			AND = {
				owned = { province = 1550 data = -1 } #Lampang
				NOT = { exists = KHM }
			}
			vassal = { country = MYA country = KHM }
		}
		NOT = {
			core = { province = 1550 data = -1 } #Lampang
		}
	}
	random = no
	country = MYA
	name = "EVENTNAME136021" #The submission of Lan Na
	desc = "EVENTHIST136003"
	#-#

	date = { day = 1 month = january year = 1568 }
	offset = 300
	deathdate = { year = 1820 }

	action_a = {
		name = "ACTIONNAME136021A" #The land is ours!
		command = { type = addcore which = 1550 } #Lampang
	}
}
EVENTNAME136021;The submission of Lan Na;;;;;;;;;;
ACTIONNAME136021A;The land is ours!;;;;;;;;;;

Code:
#(1567-1602) Offensive into Ayutthaya
event = {
	id = 65119
	[COLOR=Yellow]trigger = {
		exists = AYU
		NOT = { vassal = { country = MYA country = AYU } }
	}[/COLOR]
	random = no
	country = MYA
	name = "EVENTNAME65119" #Expansionism policies [COLOR=Red]of Tabinshwehti[/COLOR]
	desc = "EVENTHIST65119"
	#-#

	date = { day = 1 month = january year = 1567 }
	[COLOR=Yellow]offset = 30
	deathdate = { day = 29 month = december year = 1602 }[/COLOR]

	action_a = {
		name = "ACTIONNAME65119A" #Expand South
		command = { type = domestic which = land value = 2 }
		command = { type = domestic which = offensive value = 1 }
		command = { type = domestic which = quality value = 1 }
		command = { type = CAV which = -2 value = 7000 }
		command = { type = INF which = -2 value = 20000 }
		command = { type = relation which = AYU value = -100 }
		command = { type = casusbelli which = AYU value = 360 }
		command = { type = land value = 500 }
	}
	action_b = {
		name = "ACTIONNAME65119B" #Expand West
		command = { type = domestic which = land value = 2 }
		command = { type = domestic which = offensive value = 1 }
		command = { type = domestic which = quality value = 1 }
		command = { type = CAV which = -2 value = 5000 }
		command = { type = INF which = -2 value = 15000 }
		command = { type = casusbelli which = AYU value = 120 }
		command = { type = land value = 500 }
		command = { type = casusbelli which = ARK value = 120 }
	}
}
#-#After his ascension to power, king Tabinshwehti conquered and united local Burmese kingdoms. His next target was the kingdom of Ayutthaya. 3 wars were fought starting in 1538, ending in the 1569 with the capture of Ayutthaya and subjugation of the country.

Tabinshwehti is dead in 1567.

Code:
#(1599-1613) Leaving Pegu I
event = {
	id = 136009
	trigger = {
		owned = { province = 1547 data = -1 } [COLOR=Yellow]#Mandalay
		control = { province = 1547 data = -1 } #Mandalay
		flag = [Pegu][/COLOR]
	}
	random = no
	country = MYA
	name = "EVENTNAME136009" #Leaving Pegu
	desc = "EVENTHIST136009"
	#-#The capital was moved back to Ava in 1599.

	date = { day = 2 month = january year = 1599 }
	offset = 30
	deathdate = { day = 1 month = january year = 1613 }

	action_a = {
		name = "ACTIONNAME136009A" #Move back to Ava
		command = { type = capital which = 1547 } #Mandalay
		[COLOR=Yellow]command = { type = clrflag which = [Pegu] }[/COLOR]
	}
	action_b = {
		name = "ACTIONNAME136009B" #Stay in Pegu
		command = { type = sleepevent which = 136010 } #MYA: Move to Pegu again
		command = { type = sleepevent which = 136011 } #MYA: Leaving Pegu again
	}
}

Code:
#(1613-1634) Move to Pegu II
event = {
	id = 136010
	trigger = {
		owned = { province = 673 data = -1 } [COLOR=Yellow]#Irrawady
		control = { province = 673 data = -1 } #Irrawady
		NOT = { flag = [Pegu] }[/COLOR]
	}
	random = no
	country = MYA
	name = "EVENTNAME136010" #Move to Pegu again
	desc = "EVENTHIST136010"
	#-#

	date = { day = 2 month = january year = 1613 }
	offset = 30
	deathdate = { day = 1 month = january year = 1634 }

	action_a = {
		name = "ACTIONNAME136010A" #Move back to Pegu
		command = { type = capital which = 673 } #Irrawady
		[COLOR=Yellow]command = { type = setflag which = [Pegu] }[/COLOR]
	}
	action_b = {
		name = "ACTIONNAME136010B" #Stay in Ava
		command = { type = sleepevent which = 136011 } #MYA: Leaving Pegu again
	}
}
#-#Pegu (also known as Bago) was the capital of a united Burman kingdom from 1613-1634.

Code:
#(1634) Leaving Pegu II
event = {
	id = 136011
	trigger = {
		owned = { province = 1547 data = -1 } [COLOR=Yellow]#Mandalay
		control = { province = 1547 data = -1 } #Mandalay
		flag = [Pegu][/COLOR]
	}
	random = no
	country = MYA
	name = "EVENTNAME136011" #Leaving Pegu again
	desc = "EVENTHIST136011"
	#-#The capital was moved back to Ava in 1634.

	date = { day = 2 month = january year = 1634 }
	offset = 30
	deathdate = { year = 1820 }

	action_a = {
		name = "ACTIONNAME136011A" #Move back to Ava
		command = { type = capital which = 1547 } #Mandalay
		[COLOR=Yellow]command = { type = clrflag which = [Pegu] }[/COLOR]
	}
	action_b = {
		name = "ACTIONNAME136011B" #Stay in Pegu
		command = { }
	}
}

Code:
#(1740) Mon Revolt
event = {
	id = 136012
	[COLOR=Yellow]trigger = {
		OR = {
			AND = {
				OR = {
					owned = { province = 673 data = -1 } #Irrawady
					owned = { province = 674 data = -1 } #Kwai
				}
				NOT = { exists = PEG }
			}
			vassal = { country = MYA country = PEG }
		}
	}[/COLOR]
	random = no
	country = MYA
	name = "EVENTNAME136012" #Mon Revolt
	desc = "EVENTHIST136012"
	#-#

	date = { day = 1 month = january year = 1740 }
	[COLOR=Yellow]offset = 300
	deathdate = { day = 29 month = december year = 1740 }[/COLOR]

	action_a = {
		name = "ACTIONNAME136012A" #It's not worth it
		command = { type = revolt which = -2 }
		command = { type = independence which = PEG }
		command = { type = stability value = -3 }
		command = { type = trigger which = 253000 } #PEG: Mon Independence
	}
	action_b = {
		name = "ACTIONNAME136012B" #They shall submit!
		command = { type = revolt which = -2 }
		command = { type = war which = PEG }
		command = { type = stability value = -5 }
	}
}
#-#Mon refused to recognize our rule and our informers there have sensed that a major revolt is soon to break out! Our army is waiting for our order to crush the rebels, what are we going to do?

Code:
#(1747-1753) Mon Sack of Ava
event = {
	id = 136013
	trigger = {
		owned = { province = 1547 data = -1 } #Mandalay
		control = { province = 1547 data = PEG }
	}
	random = no
	country = MYA
	name = "EVENTNAME136013" #Mon Sack of Ava
	desc = "EVENTHIST136013"
	#-#

	date = { day = 1 month = january year = 1747 }
	offset = 30
	deathdate = { day = 1 month = january year = 1753 }

	action_a = {
		name = "ACTIONNAME136013A" #Crush those cursed Mon!
		command = { type = relation which = PEG value = -100 }
		command = { type = domestic which = land value = 1 }
		command = { type = domestic which = offensive value = 3 }
		command = { type = domestic which = quality value = 1 }
		command = { type = land value = 1000 }
		command = { type = trade value = -250 }
		command = { type = infra value = -250 }
		command = { type = population which = -2 value = -2000 }
		command = { type = stability value = -4 }
		command = { type = inf which = [COLOR=Yellow]-1[/COLOR] [COLOR=Red]1548[/COLOR] value = 25000 } [COLOR=Red]#Shan[/COLOR]
		command = { type = cav which = -3 value = 10000 }
	}
}
#-#Since we have granted tThe people of Mon their independence they continue to give us big troubles, this time they attacked our city in Mandalay. Form a big army and crush those hat ungrateful rebel scumdregs...

Code:
#(1763[COLOR=Yellow]-1769[/COLOR]) Destruction of Ayutthaya
event = {
	id = 136014
	[COLOR=Yellow]trigger = {
		exists = AYU
		NOT = { vassal = { country = MYA country = AYU } }
	}[/COLOR]
	random = no
	country = MYA
	name = "EVENTNAME136014" #Destruction of Ayutthaya
	desc = "EVENTHIST136014"
	#-#

	date = { day = 1 month = [COLOR=Yellow]november[/COLOR] year = 1763 }
	[COLOR=Yellow]offset = 30
	deathdate = { day = 29 month = december year = 1769 }[/COLOR]

	action_a = {
		name = "ACTIONNAME136014A" #Crush those Thai!
		command = { type = domestic which = land value = 1 }
		command = { type = domestic which = offensive value = 1 }
		command = { type = domestic which = quality value = 1 }
		command = { type = CAV which = -2 value = 10000 }
		command = { type = INF which = -2 value = 35000 }
		command = { type = relation which = AYU value = -100 }
		command = { type = casusbelli which = AYU value = 360 }
		command = { type = relation which = KHM value = -100 }
		command = { type = casusbelli which = KHM value = 360 }
		command = { type = relation which = VIE value = -100 }
		command = { type = casusbelli which = VIE value = 360 }
		command = { type = land value = 1000 }
		command = { type = stability value = -1 }
	}
	action_b = {
		name = "ACTIONNAME136014B" #We are cowards!
		command = { type = relation which = AYU value = 50 }
		command = { type = relation which = KHM value = 50 }
		command = { type = relation which = VIE value = 50 }
		command = { type = stability value = 1 }
	}
}
#-#Alaungpaya's last campaign was an invasion of Siam (Thailand). He led an army through the town of Tavoy southward to Tenasserim and then northward to Ayutthaya (Ayuthia), the Siamese capital, which he surrounded in April 1760. During the siege he was wounded, and he died while his army was in retreat to Myanmar. King Hsinbyushin, third king (1763-76) of the Alaungpaya, or Konbaung, dynasty in Myanmar (Myanmar). He pursued a policy of expansion at the expense of practically all his neighbours. Hsinbyushin's most important single project was the subjugation of Siam (now Thailand). In 1764 he campaigned eastward, taking Chiang Mai (Chiengmai) and Vientiane before invading the Chao Phraya River valley. When the Siamese capital of Ayutthaya fell in April 1767, he deported thousands of prisoners to Myanmar. According to the Siamese chronicles, 'the King of Hanthawaddy (Bayinnaung) waged war like a monarch, but the King of Ava (Hsinbyushin) like a robber'.

Code:
#(1784) Subjugation of Arakan
event = {
	id = 136005
	[COLOR=Yellow]trigger = {
		exists = ARK
		NOT = { vassal = { country = MYA country = ARK } }
	}[/COLOR]
	random = no
	country = MYA
	name = "EVENTNAME136005" #Subjugation of Arakan
	desc = "EVENTHIST136005"
	#-#

	date = { day = 1 month = january year = 1784 }
	[COLOR=Yellow]offset = 300
	deathdate = { day = 29 month = december year = 1784 }[/COLOR]

	action_a = {
		name = "ACTIONNAME136005A" #They shall submit!
		command = { type = relation which = ARK value = -100 }
		command = { type = addcore which = 671 } #Chin
		command = { type = addcore which = 672 } #Tarakan
		[COLOR=Yellow]command = { type = sleepevent which = 136022 } #MYA: The submission of the Arakan[/COLOR]
	}
	action_b = {
		name = "ACTIONNAME136005B" #We are cowards!
		command = { type = relation which = ARK value = 50 }
		command = { type = stability value = 1 }
	}
}
#-#In 1784 Burmese king Boddawphaya sent 30,000 soldiers to conquer Arakan at the request of Rakhine noble Nagasandi and returned in February 1785 with the royal family and 20,000 inhabitants as prisoner. Thousand of Arakanese Muslims and Arakanese Buddhists were put to death. The Burmese soldiers destroyed mosques, temples, shrines, seminaries and libraries, including the Mrauk-U Royal Library. As for Arakanese Buddhists, their revered Mahamuni Image of Lord Buddha was taken away to Burma. The fall of Mrauk-U Empire was a mortal blow to the Muslims for every thing that was materially and culturally Islamic was razed to the ground.

New event:
Code:
#(1785-1820) The submission of Arakan
event = {
	id = 136022
	trigger = {
		OR = {
			AND = {
				OR = {
					owned = { province = 671 data = -1 } #Chin
					owned = { province = 672 data = -1 } #Tarakan
				}
				NOT = { exists = ARK }
			}
			vassal = { country = MYA country = ARK }
		}
		NOT = {
			core = { province = 671 data = -1 } #Chin
			core = { province = 672 data = -1 } #Tarakan
		}
	}
	random = no
	country = MYA
	name = "EVENTNAME136022" #The submission of Arakan
	desc = "EVENTHIST136005"
	#-#

	date = { day = 1 month = january year = 1785 }
	offset = 300
	deathdate = { year = 1820 }

	action_a = {
		name = "ACTIONNAME136022A" #The land is ours!
		command = { type = addcore which = 671 } #Chin
		command = { type = addcore which = 672 } #Tarakan
	}
}
EVENTNAME136022;The submission of Arakan;;;;;;;;;;
ACTIONNAME136022A;The land is ours!;;;;;;;;;;


Related changes for other countries:
Code:
#(1568-1605) Capture of Ayutthaya
event = {
	id = 65122
	trigger = {
		control = { province = 670 data = MYA }
		owned = { province = 670 data = -1 }
		event = 65119 #MYA: Expansionism policies
	}
	random = no
	country = AYU
	name = "EVENTNAME65122" #Capture of Ayutthaya
	desc = "EVENTHIST65122"
	#-#

	date = { day = 1 month = january year = 1568 }
	offset = 1
	deathdate = { day = 1 month = january year = 1605 }

	action_a = {
		name = "ACTIONNAME65122A" #Become vassal of Burma
		command = { type = relation which = MYA value = -70 }
		command = { type = domestic which = centralization value = -2 }
		command = { type = trade value = -250 }
		command = { type = infra value = -250 }
		command = { type = population which = -2 value = -2000 }
		command = { type = population which = -1 value = -500 }
		command = { type = stability value = -4 }
		command = { type = trigger which = 65121 } #MYA: Capture of Ayutthaya
	}
	action_b = {
		name = "ACTIONNAME65122B" #Fight on
		[COLOR=Red]command = { type = sleepevent which = 65121 } #MYA: Capture of Ayutthaya[/COLOR]
		command = { type = relation which = MYA 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 }
	}
}
#-#In 1569, Burmese troops under the command of king Bayinnaung overran the Thai troops and captured the capital of Ayutthaya. The occupation lasted only for 15 years, when the future king Naresuan rebelled and expelled Burmese forces from Ayutthaya.

Code:
#(1584) Restoration of Thai Independence
event = {
	id = 120008
	[COLOR=Yellow]trigger = {
		vassal = { country = MYA country = AYU }
	}[/COLOR]
	random = no
	country = AYU
	name = "EVENTNAME120008" #Restoration of Thai Independence
	desc = "EVENTHIST120008"
	#-#

	date = { day = 1 month = january year = 1584 }
	offset = 300
	deathdate = { day = 29 month = december year = 1584 }

	action_a = {
		name = "ACTIONNAME120008A" #Kick out the Burmese
		command = { type = breakvassal which = MYA }
		command = { type = domestic which = land value = 2 }
		command = { type = domestic which = offensive value = -2 }
		command = { type = domestic which = quality value = 2 }
		command = { type = land value = 300 }
		command = { type = CAV which = -2 value = 6000 }
		command = { type = trigger which = 136007 } #MYA: Thai Impudence
	}
	action_b = {
		name = "ACTIONNAME120008B" #Let us still bow down
		command = { type = relation which = MYA value = 50 }
		command = { type = stability value = 1 }
	}
}
#-#Together with his younger brother, Ekatotsarot, Naresuen began to gather armed followers. He had gained an insight into Burmese armed strength and strategies during his formative years. He trained his troops in the art of guerilla warfare and their hit-and-run tactics earned them the nicknames Wild Tigers and Peeping Cats. Naresuen's opportunity to restore Siamese independence came following the death of Bayinnaung, in 1581. Revolts in the Shan states and at Ava were tying young King Nandabayin down at home when Naresuen declared Ayutthaya's freedom, in 1584. During the following nine years, the Burmese made several attempts to resubjugate Siam, but Naresuen had taken thorough defensive measures and repulsed all invasions. On one of these occasions, he killed the Burmese crown prince in single combat, both of them mounted on elephants.

Code:
#(1763-1779) Destruction of Ayutthaya
event = {
	id = 120013
	trigger = {
		control = { province = 670 data = MYA }
		owned = { province = 670 data = -1 }
	}
	random = no
	country = AYU
	name = "EVENTNAME120013" #Destruction of Ayutthaya
	desc = "EVENTHIST120013"
	#-#

	date = { day = 1 month = [COLOR=Yellow]november[/COLOR] year = 1763 }
	offset = 1
	deathdate = { day = 1 month = january year = 1779 }

	action_a = {
		name = "ACTIONNAME120013A" #This is a dark day
		command = { type = relation which = MYA value = -70 }
		command = { type = domestic which = centralization value = -2 }
		command = { type = trade value = -750 }
		command = { type = infra value = -750 }
		command = { type = population which = -2 value = -5000 }
		command = { type = population which = -1 value = -2000 }
		command = { type = stability value = -4 }
		command = { type = trigger which = 120014 } #AYU: Taksin: a Thai Hero
		command = { type = trigger which = 136015 } #MYA: Sack of Ayutthaya
	}
}
#-#The tranquil days proved to be the calm before the storm. Boromakot's son Ekatat ascended to the throne in 1758, after a bitter succession struggle with his brother, and surrounded himself with a female company to ensure his pleasure. Meanwehile, a village headman united the Third Burmese Empire and assumed the royal title Alaungpaya. His invading Burmese armies were repelled in 1760 after Alaungpaya was wounded by his own cannon. But in 1767, a second Burmese invasion, led by Alaungpaya's son Hsinbyushin, succeeded in capturing Ayutthaya after a siege of fourteen months. In their hurry to withdraw from the conquered capital, the Burmese killed, looted and set fire to the whole city, thereby expunging four centuries of Thai civilization. Showing complete disregard for their common religion, the Buddhist Burmese plundered Ayutthaya's rich temples, melting down all the available gold from Buddha's images. Members of the royal family, along with 90,000 captives and the accumulated booty, were removed to Burma.


Offset and deathdate in other events for Burma:
136004:
Code:
	date = { day = 1 month = january year = 1486 }
	offset = 20
	deathdate = { day = 1 month = february year = 1486 }
65120:
Code:
	date = { day = 1 month = january year = 1530 }
	offset = 90
	deathdate = { day = 29 month = december year = 1530 }

Cambodia (CAM) needs some tweakings too and maybe other countries in this area.
 
Last edited:
Since you know of these event files about Ayutthaya and Burma, have you also checked following events if they are not bugged?

AGCEEP_Specific_Ayutthaya.eue
AYU120008 action_a: breakvassal MYA
AYU120014 action_a: breakvassal MYA

AGCEEP_Specific_Burma.eue
MYA65121 action_*: vassal AYU
MYA136015 action_*: vassal AYU
Yes it is the same old story, "brakvassal+vassal bug".

I believe the main problems are always when dealing with events which have the vassal command. First goal should be avoidance of crossed-vassalization and then, if the case, breakvassal bugfixing.
 
YodaMaster said:
All changes I proposed are in the post above and included in beta 4. AYU_120008 is fixed but better check the other ones.
What I mean is that we shouldn't only add the trigger checking if a certain country is vassal of another one or vice versa or not. We need always to verify if a certain event won't stop any given sequence. In this case we need to script twin events to check all given combinations. That is why I asked if you had any idea of them, having reworked a lot of this sequence between AYU and MYA.

I would need to start from zero knowledge instead! :eek:o
 
Bordic said:
I would need to start from zero knowledge instead! :eek:o
And you think it is not the same case for me? :eek:o ;)

Well, I learnt a lot when reworking these events but I can't say if some events with vassal command are necessary or not for some sequences. We have to check one by one and see if involved event is used in trigger of other events...
 
YodaMaster said:
And you think it is not the same case for me? :eek:o ;)

Well, I learnt a lot when reworking these events but I can't say if some events with vassal command are necessary or not for some sequences. We have to check one by one and see if involved event is used in trigger of other events...
Ok, I will give a look at these events and post my suggestions in the dedicated thread: breakvassal+vassal.
 
New sequence for Ayutthaya and France by De-Villars and YodaMaster

Modified event:
Code:
#(1674) The Commissioning of Versailles
event = {
	id = 3125
	trigger = {
		countrysize = 15
	}
	random = no
	country = FRA
	name = "EVENTNAME3125" #The Commissioning of Versailles
	desc = "EVENTHIST3125"
	#-#

	date = { day = 1 month = january year = 1674 }
	offset = 30
	deathdate = { day = 1 month = january year = 1675 }

	action_a = {
		name = "ACTIONNAME3125A" #We need it for the Glory
		command = { type = stability value = -1 }
		command = { type = treasury value = -2000 }
	}
	action_b = {
		name = "ACTIONNAME3125B" #Useless piece of...
		command = { type = stability value = 1 }
		command = { type = sleepevent which = 3126 } #FRA: Versailles stands in Unearthly Glory
		[COLOR=Yellow]command = { type = sleepevent which = 120020 } #AYU: The Siamese Embassy[/COLOR]
	}
}
#-#The major influence which France did exert over the baroque age was one of courtly opulence. In 1669 Louis XIV (1638-1715) decided to convert an old hunting lodge at Versailles into a palace of unprecedented magnificence. It was completed in 1682, and the court moved in 1683. There was not a kingly or princely court in Europe which could match Versailles for the opulence of its gilded interiors, its mirrors and chandeliers, with an appropriately matching flamboyance of courtly ceremony, and there was not a kingly or princely court in Europe which did not, either openly or secretly aspires to match this model.

Code:
#(1680-1684) The Siamese Embassy
event = {
	id = 120020
	trigger = {
		event = 3503 #HOL: Vereenigde Oostindische Compagnie
		[COLOR=Yellow]event = 12075 #FRA: Jean-Baptiste Colbert
		event = 3125 #FRA: The Commissioning of Versailles[/COLOR]
		exists = HOL
		exists = FRA
		NOT = {
			war = { country = FRA country = AYU }
		}
	}
	random = no
	country = AYU
	name = "EVENTNAME120020" #The Siamese Embassy
	desc = "EVENTHIST120020"
	#-#

	date = { day = 1 month = january year = 1680 }
	offset = 20
	deathdate = { day = 29 month = january year = 1684 }

	action_a = {
		name = "ACTIONNAME120020A" #Send the Embassy
		command = { type = relation which = FRA value = 25 }
		command = { type = relation which = HOL value = -25 }
		command = { type = treasury value = -25 }
		command = { type = trigger which = 170236 } #FRA: The Siamese Embassy
	}
	action_b = {
		name = "ACTIONNAME120020B" #Neglect France
		command = { type = relation which = FRA value = -25 }
		command = { type = DIP which = -2 value = 12 }
		command = { type = treasury value = 25 }
	}
}
EVENTNAME120020;The Siamese Embassy;;;;;;;;;;
EVENTHIST120020;With his advisor Constance Phaulkon, The King of Siam, Phra Naraï, hoped that the vicinity of the French would hold in respect the Dutchmen who had already the quasi-monopoly of the traffic in the Far East. Consolidated in his hopes by the Nimègue peace of 1678, relatively openminded man, he treated well the French monks and the tradesmen of the 'Compagnie Française des Indes Orientales' present in his kingdom. As of the end of 1680, he sent an embassy in Europe which carried present and letters to the Pope and Louis XIV. But it sank towards the island of Madagascar with the ship which transported it. In the beginning of 1684, Phra Naraï then sent a new mission in France which reached the court of the Sun King.;;;;;;;;;;
ACTIONNAME120020A;Send the Embassy;;;;;;;;;;
ACTIONNAME120020B;Neglect France;;;;;;;;;;

Code:
#(1680-1684) The Siamese Embassy
event = {
	id = 170236 #triggered by AYU_120020 A
	random = no
	country = FRA
	name = "EVENTNAME120020" #The Siamese Embassy
	desc = "EVENTHIST170236"
	#-#

	action_a = {
		name = "ACTIONNAME170236A" #Accept the alliance
		command = { type = relation which = AYU value = 25 }
		command = { type = relation which = HOL value = -25 }
		command = { type = treasury value = -25 }
		command = { type = trigger which = 120021 } #AYU: France allies with Siam
	}
	action_b = {
		name = "ACTIONNAME170236B" #Send Siamese delegation back
		command = { type = relation which = AYU value = -50 }
		command = { type = treasury value = 25 }
		command = { type = trigger which = 120022 } #AYU: France refuses to ally with Siam
	}
}
EVENTHIST170236;Louis XIV granted to the Siamese delegation the most imposing audience ever granted to ambassadors of all his long reign (1643-1715). To be pleasant with his hosts, The Sun King endeavoured to copy the rites of Siamese ceremony such as they had been brought back by the Knight of Chaumont and his collaborators.;;;;;;;;;;
ACTIONNAME170236A;Accept the alliance;;;;;;;;;;
ACTIONNAME170236B;Send the Siamese delegation back;;;;;;;;;;

Code:
#(1680-1684) France allies with Siam
event = {
 	id = 120021 #triggered by FRA_170236 A
	random = no
	country = AYU
	name = "EVENTNAME120021" #France allies with Siam
	desc = "EVENTHIST120021"
	#-#

	action_a = {
		name = "ACTIONNAME120021A" #Fight the Dutch!
		command = { type = fortress which = -1 value = 1 }
		command = { type = INF which = -1 value = 3000 }
		command = { type = stability value = -1 }
	}
}
EVENTNAME120021;France allies with Siam;;;;;;;;;;
EVENTHIST120021;On March 3, 1685, a French embassy left Brest for Siam, having to its head the knight of Chaumont, accompanied in particular by the abbot of Choisy, the count of Forbin and the Jesuit father Tachard. Arrived in October, Chaumont vainly tried to convert Phra Naraï to Catholicism and refused to sign the political treaty that Siam awaited. Two months later, Chaumont left the country for France, accompanied by a Siamese mission, and leaving Forbin as High Admiral and chief of the Siamese armies. In March 1687, a French embassy, with Simon de la Loubère and Céberet de Boullay as leaders, left on the vessels named 'le Gaillard' et 'l'Oiseau'. 630 infantry men, under the command of Desfarges, embarked on four other ships. The things however did not go for the best, and Forbin knew disgrace because of the loss of several ships. Bangkok and Mergui were nevertheless garrisoned.;;;;;;;;;;
ACTIONNAME120021A;Fight the Dutch!;;;;;;;;;;

Code:
#(1680-1684) France refuses to ally with Siam
event = {
	id = 120022 #triggered by FRA_170236 B
	random = no
	country = AYU
	name = "EVENTNAME120022" #France refuses to ally with Siam
	desc = "EVENTHIST120022"
	#-#

	action_a = {
		name = "ACTIONNAME120022A" #Let the matter fall...
		command = { type = relation which = FRA value = -50 }
		command = { type = treasury value = 25 }
		command = { type = DIP which = -2 value = 12 }
	}
}
EVENTNAME120022;France refuses to ally with Siam;;;;;;;;;;
EVENTHIST120022;France is not in a hurry to give the pressure on such a resistant country as Netherlands.;;;;;;;;;;
ACTIONNAME120022A;Let the matter fall...;;;;;;;;;;

Code:
#(1684-1688) The Siamese Revolution
event = {
	id = 120023
	trigger = {
		event = 120021 #AYU: France allies with Siam
	}
	random = no
	country = AYU
	name = "EVENTNAME120023" #The Siamese Revolution
	desc = "EVENTHIST120023"
	#-#

	date = { day = 1 month = january year = 1684 }
	offset = 20
	deathdate = { day = 29 month = january year = 1688 }

	action_a = {
		name = "ACTIONNAME120023A" #Chase the French!
		command = { type = INF which = -1 value = -3000 }
		command = { type = relation which = FRA value = -100 }
		command = { type = MIL which = 2 value = 12 }
		command = { type = stability value = 1 }
	}
	action_b = {
		name = "ACTIONNAME120023B" #They are useful
		command = { type = relation which = FRA value = 50 }
		command = { type = DIP which = 2 value = 24 }
		command = { type = sleepevent which = 170237 } #FRA: The Siamese Revolution
		command = { type = sleepevent which = 120024 } #AYU: The King settles down
	}
}
#-#EVENTNAME120023;The Siamese Revolution;;;;;;;;;;
EVENTHIST120023;The relations between France and Siam seemed promised to a beautiful future, but in 1689, a revolution burst in Siam. Phaulkon was assassinated in June and Phra Naraï died mysteriously. Pitracha, the instigator of this revolution, became king, whereas French did not move. Bangkok, besieged, had to be evacuated, like Mergui. Desfarges and his troops were folded up on the French tradepost of Pondicherry in India.;;;;;;;;;;
ACTIONNAME120023A;Chase the French!;;;;;;;;;;
ACTIONNAME120023B;They are useful;;;;;;;;;;

Code:
#(1688-1697) The Siamese Revolution
event = {
	id = 170237
	trigger = {
		event = 120023 #AYU: The Siamese Revolution
	}
	random = no
	country = FRA
	name = "EVENTNAME120023" #The Siamese Revolution
	desc = "EVENTHIST120023"
	#-#

	date = { day = 1 month = january year = 1688 }
	offset = 20
	deathdate = { day = 29 month = january year = 1697 }

	action_a = {
		name = "ALAS"
		command = { type = relation which = AYU value = -100 }
		command = { type = casusbelli which = AYU value = 24 }
	}
}

Code:
#(1703-1705) The King settles down
event = {
	id = 120024
	trigger = {
		event = 120023 #AYU: The Siamese Revolution
	}
	random = no
	country = AYU
	name = "EVENTNAME120024" #The King settles down
	desc = "EVENTHIST120024"
	#-#

	date = { day = 1 month = january year = 1703 }
	offset = 20
	deathdate = { day = 29 month = january year = 1705 }

	action_a = {
		name = "ACTIONNAME120024A" #Our error should be repaired
		command = { type = relation which = FRA value = 100 }
		command = { type = DIP which = 2 value = 24 }
		command = { type = treasury value = -25 }
		command = { type = trigger which = 170238 } #FRA: Siam renews its request
	}
	action_b = {
		name = "ACTIONNAME120022B" #Let the matter fall...
		command = { type = relation which = FRA value = -50 }
		command = { type = DIP which = -2 value = 24 }
	}
}
EVENTNAME120024;The King settles down;;;;;;;;;;
EVENTHIST120024;The new king of Siam tried to join again with France only in 1703. But Louis XIV was at war against Europe and did not seize the occasion. France had, consequently, no more influence in Siam and the relations were very reduced.;;;;;;;;;;
ACTIONNAME120024A;Our error should be repaired;;;;;;;;;;

Code:
#(1703-1705) Siam renews its request
event = {
	id = 170238 #triggered by AYU_120024 A
	random = no
	country = FRA
	name = "EVENTNAME170238" #Siam renews its request
	desc = "EVENTHIST120024"
	#-#

	action_a = {
		name = "ACTIONNAME170238A" #Who cares?
		command = { type = relation which = AYU value = -50 }
	}
	action_b = {
		name = "ACTIONNAME170238B" #Say yes but don't move
		command = { type = relation which = AYU value = 25 }
		command = { type = DIP which = 2 value = 6 }
		command = { type = treasury value = -25 }
	}
}
EVENTNAME170238;Siam renews its request;;;;;;;;;;
ACTIONNAME170238A;Who cares?;;;;;;;;;;
ACTIONNAME170238B;Say yes but don't move;;;;;;;;;;


Any comment welcome, especially for descriptions.
 
Last edited:
in the first event I read:"...he treated well the French monks and the tradesmen of the 'Compagnie Française des Indes Orientales' present in his kingdom". Shouldn't a FRA event deal with this before the sequence begin? Or just the Colbert event in the trigger?
 
Bordic said:
in the first event I read:"...he treated well the French monks and the tradesmen of the 'Compagnie Française des Indes Orientales' present in his kingdom". Shouldn't a FRA event deal with this before the sequence begin? Or just the Colbert event in the trigger?
you're right. I have already prepared this event without think of a link with Siam sequence ( :eek:o )

now i just have to find this event in the midst of my AGCEEP stuff :D

Thanks Bordic
 
It is a fact Siam will not send an Embassy to France if Louis XIV is not the powerful monarch we expect him to be. At least, France could own Pondicherry.
 
Last edited:
YodaMaster said:
It is a fact Siam will not send and an Embassy to France if Louis XIV is not the powerful monarch we expect him to be. At least, France could own Pondicherry.
yes, but you know that france never own pondichery. I will post my proposal in few days.
 
Garbon said:
Yea it isn't never, seeing as how there is an event to cede them the province.
Only problem in this event arises when Gingee is in game. Pondicherry can't be seceded in this case because it is the capital province.