• 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.
Alyosha said:
Now, in a province with 10,000 or more inhabitants (rebel armies of 10,000 +) that revolts once a year (maybe more, but one has to consider that it will be overtaken fairly often), that's 1,000,000 rebels over the sequence of one hundred years, for one province alone.

His intention was that it would revolt at least once a year. I do remember that.
 
See post #77:
Sun_Zi_36 said:
I *i playtested 800 RR for vietnam (back in may or thereabouts) to be the suitable RR level.

*gradual reduction amounts were carefully tweaked with the level of difficulty of pacification in mind. reducing RR too large when it is early makes it too easy.

*after pacification, all vietnamese provinces should switch to chinese and there is no need to add vietnamese as state culture.

*once daiviet is independent, all possibility to assimulate annam should be lost forever. this is for sake of simplicity and manageability of the sequence.
What can I say?
 
Prince Ares said:
How about using Birgers correct chinese flag (if he agrees):

flag_chi.bmp
I checked, this version is better than current version (EGUFSM 1.1). Should be submitted ASAP.
 
Kavotruo said:
How about a third option "Rule vietnam as non-chinese region"? 30% RR for 400 yrs and never got Viet culture.
I don't see the benefits of such option gameplay wise and I'm not sure historically speaking. Couldn't releasing Dai Viet as vassal do the trick, then?
 
Le Loi's Lam Son resistance against Ming rule in Vietnam
Code:
event = {
	id = 147001
	trigger = {
		OR = {
			owned = { province = 663 data = -1 } #Tanh Noah
			owned = { province = 662 data = -1 } #Hanoi
			owned = { province = 1554 data = -1 } #Lao Cai
		}
	}
	random = no
	country = CHI
	name = "EVENTNAME147001" #Le Loi's Lam Son resistance in Vietnam
	desc = "EVENTHIST147001"
	#-#The region of An Nam covers northern Vietnam, had been part of China until 939 BC when warlords in An Nam defeated invading warlords from China and established separate rule. However, tributes were payed to China which also granted titles. An Nam expanded aggressively and invaded the Song dynasty to its north, Champa to its south, Laos and affiliated tribes to its west. After the Ming dynasty was founded in China An Nam continued to recognise Chinese overlordship. Through 400 years of independence, the people in An Nam developed a sense of national identity.\n \n In the late 1300s, the ruling Tran dynasty was overthrown and a powerful former minister tried to set up the Ho dynasty by making his son king in 1402 BC. However, a Tran prince had fled to China. Rather than recognising the usurpers China tried to restore the Tran dynasty, but this failed when the prince was murdered. China responded by invading the country in 1406 and made it into a new province, Jiao Zhi.\n \n This led to discontent amongst the local upper class who expected their privileges to be restored along with the Tran dynasty. The Ming administrative and military officials were domineering and insensitive to distinct local cultural practices. They applied the Chinese system of taxation, education, examination, and formal rites on the people abruptly. Rebellion soon spread rapidly. Zhang Fu, now Duke of Ying, was again sent to pacify An Nam twice. By Yong Le year 12 (AD 1414), almost all resistance forces within Jiao Zhi and hiding in neighbouring countries were eliminated. To pacify the people, Zhang Fu actively built up defences, forcefully organised many bandits into agricultural production, and employed surrendered Vietnamese leaders as officials.\n Zhang Fu was later replaced by Li Bin and a eunuch, Ma Qi. He began massively searching and extracting riches and treasures within the area, causing great discontent and immediate rebellion of many surrendered Vietnamese leaders, including the famous Le Loi who began the Lam Son resistance in 1418. Li Bin was forced to pursue Vietnamese leaders from all directions. In Yong Le year 18 (AD 1420), Chen Zhi was sent to assist Li Bin.

	date = { day = 1 month = april year = 1420 }
	offset = 60
	deathdate = { day = 1 month = november year = 1420 }

	action_a = {
		name = "ACTIONNAME147001A" #Send Chen Zhi to assist Li Bin in Jiao Zhi
		command = { type = treasury value = -80 }
		command = { type = INF which = 662 value = 17500 } #Hanoi
		command = { type = wakeleader which = 032308 } #Chen Zhi (CHI)
	}
	action_b = {
		name = "ACTIONNAME147001B" #Raise another army and send Zhang Fu to crush the rebels
		command = { type = MIL which = -3 value = 48 }
		command = { type = ADM which = -2 value = 48 }
		command = { type = treasury value = -400 }
		command = { type = INF which = -2 value = 28000 }
		command = { type = CAV which = -2 value = 10000 }
		command = { type = ART which = -2 value = 20 }
		command = { type = domestic which = offensive value = 1 }
		command = { type = wakeleader which = 032306 } #Zhang Fu (CHI)
		command = { type = revolt which = 662 } #Hanoi
		command = { type = revolt which = 662 } #Hanoi
		command = { type = revolt which = 662 } #Hanoi
		command = { type = revolt which = 663 } #Tanh Noah
		command = { type = revolt which = 663 } #Tanh Noah
		command = { type = revolt which = 663 } #Tanh Noah
		command = { type = revolt which = 1554 } #Lao Cai
		command = { type = revolt which = 1554 } #Lao Cai
		command = { type = revolt which = 1554 } #Lao Cai
	}
	action_c = {
		name = "ACTIONNAME147001C" #Reform the administrative system
		command = { type = setflag which = reformvietnam1 }
		command = { type = domestic which = centralization value = -2 }
		command = { type = revoltrisk which = 72 value = 10 }
		command = { type = stability value = -1 }
		command = { type = MIL which = -2 value = 48 }
		command = { type = treasury value = -180 }
		command = { type = provincetax which = 662 value = -1 } #Hanoi
		command = { type = provincetax which = 663 value = -1 } #Tanh Noah
		command = { type = provincetax which = 1554 value = -1 } #Lao Cai
	}
	action_d = {
		name = "ACTIONNAME147001D" #Listen to Confucian advisors and give up Jiao Zhi
		command = { type = independence which = DAI }
		command = { type = secedeprovince which = DAI value = 662 } #Hanoi
		command = { type = secedeprovince which = DAI value = 663 } #Tanh Noah
		command = { type = secedeprovince which = DAI value = 1554 } #Lao Cai
		command = { type = relation which = DAI value = 100 }
		command = { type = badboy value = -2 }
		command = { type = sleepevent which = 147002 } #CHI: Spread of Le Loi's Lam Son resistance in Vietnam
		command = { type = trigger which = 147004 } #CHI: Failure to pacify An Nam
	}
}
This event needs to be relooked at because of the way the game engine works. Action_b will not cause any revolts if all 3 provinces are controlled by rebels and because of the high RR of the area this already is a very likely scenerio.

So instead i would prefer:
Code:
event = {
	id = 147001
	trigger = {
		OR = {
			owned = { province = 663 data = -1 } #Tanh Noah
			owned = { province = 662 data = -1 } #Hanoi
			owned = { province = 1554 data = -1 } #Lao Cai
		}
	}
	random = no
	country = CHI
	name = "EVENTNAME147001" #Le Loi's Lam Son resistance in Vietnam
	desc = "EVENTHIST147001"
	[COLOR=Red]-snip-[/COLOR]
	date = { day = 1 month = april year = 1420 }
	offset = 60
	deathdate = { day = 1 month = november year = 1420 }

	action_a = {
		name = "ACTIONNAME147001A" #Send Chen Zhi to assist Li Bin in Jiao Zhi
		command = { type = treasury value = -80 }
		command = { type = INF which = 662 value = 17500 } #Hanoi
		command = { type = wakeleader which = 032308 } #Chen Zhi (CHI)
	}
	action_b = {
		name = "ACTIONNAME147001B" #Raise another army and send Zhang Fu to crush the rebels
		command = { type = MIL which = -3 value = 48 }
		command = { type = ADM which = -2 value = 48 }
		command = { type = treasury value = -400 }
		command = { type = INF which = -2 value = 28000 }
		command = { type = CAV which = -2 value = 10000 }
		command = { type = ART which = -2 value = 20 }
		command = { type = domestic which = offensive value = 1 }
		command = { type = wakeleader which = 032306 } #Zhang Fu (CHI)
[COLOR=Yellow]		command = { type = province_revoltrisk which = 662 value = 15 } #Hanoi
		command = { type = province_revoltrisk which = 663  value = 15 } #Tanh Noah
		command = { type = province_revoltrisk which = 1554 value = 15 } #Lao Cai[/COLOR]
	}
	action_c = {
		name = "ACTIONNAME147001C" #Reform the administrative system
		command = { type = setflag which = reformvietnam1 }
		command = { type = domestic which = centralization value = -2 }
		command = { type = revoltrisk which = 72 value = 10 }
		command = { type = stability value = -1 }
		command = { type = MIL which = -2 value = 48 }
		command = { type = treasury value = -180 }
		command = { type = provincetax which = 662 value = -1 } #Hanoi
		command = { type = provincetax which = 663 value = -1 } #Tanh Noah
		command = { type = provincetax which = 1554 value = -1 } #Lao Cai
	}
	action_d = {
		name = "ACTIONNAME147001D" #Listen to Confucian advisors and give up Jiao Zhi
		command = { type = independence which = DAI }
		command = { type = secedeprovince which = DAI value = 662 } #Hanoi
		command = { type = secedeprovince which = DAI value = 663 } #Tanh Noah
		command = { type = secedeprovince which = DAI value = 1554 } #Lao Cai
		command = { type = relation which = DAI value = 100 }
		command = { type = badboy value = -2 }
		command = { type = sleepevent which = 147002 } #CHI: Spread of Le Loi's Lam Son resistance in Vietnam
		command = { type = trigger which = 147004 } #CHI: Failure to pacify An Nam
	}
}
Also i think the entire numbers for RR in the area need to be relooked at. I think they are still based on older use of RR.
 
Sun Zi tested RR in May 2005 => after 1.08 April beta release.

I don't see why action_b should be reworked with higher RR. If provinces are already under rebels control, of course revolt commands won't do anything but if they are not, revolts will happen. Goal of action_b is elsewhere (big army and offensive dp for 400 ducats), revolts are just "flavor".
 
YodaMaster said:
Sun Zi tested RR in May 2005 => after 1.08 April beta release.

I don't see why action_b should be reworked with higher RR. If provinces are already under rebels control, of course revolt commands won't do anything but if they are not, revolts will happen. Goal of action_b is elsewhere (big army and offensive dp for 400 ducats), revolts are just "flavor".
Well the RR needs to be lowered. It is rediciously high. there is at any time a 67.3% chance of a province revolting each month and combine that with the fact that rebels have a high chance of auto-taking the province and the length of time...

Insanely high RR should be used only for specific reason for short period of time, no more than a year or so. 30% is enough to ensure even at +3 stability a province will not give any income. The reason is the player can just leave the provinces in constant rebel hands and never worry about them since none of the events have triggers if controlled by rebels, and even if they did, because of high rate of rebels auto-taking provinces + high rate of rebellions, no human would waste their time if that were the case.

Thus a 30% constant RR would make those extra revolts meaningful while giving the reason for the player to actually station some troops nearby incase of rebellion, instead of just letting rebels control those 3 provinces until the end. Because of the high RR right now its actually in the players interest to let rebels hold them because they get no rebels and it reduces costs for stability and technology (i've tracked numbers for china when any one of those provinces were under control vs. not and it does make a differance).

----

Another thing:
Conversion by the sword (random event) should not affect Confuscian nations. Confuscians should get no conversion events, except historic ones (this is offset largely by no negative religious events except religious uprising event).

----

Events 147023 and 147024.

Centralization should be raised or replaced with aristorcracy. China starts with 9 (and most humans will raise to 10). It's unlikely to be lowered to 7. However aristorcracy is much more variable.

147026 - This event as it stands will amost never fire. Either 147023/4 need to be made to reduce stability, cause RR, cause Heibei RR, or a seperate chain of events depending upon choices made and some outcomes happen. Right now, even for the AI, this event will never fire.

Probably flag situation should be used here for provinces along the path if they revolt it will add extra rebel troops or something.

----

Treasure Fleet Sequence

Events 10044/6 were suppose to be changed with RR scaled so that its higher the first year and lower later on, especially 10046. This was something Sun Zi meant to do, but never got around to.

Also event 10046 should be split into 2. If you do not choice going naval both times the event in 10046 should not have a chance to go naval. This is quite historic as very few argued that the Treasure fleet should be maintained in its entirety because China wasn't a naval power. Thus it would have taken a strong continued push to even have the outward expansion as an option.

Event 10047 should be split as well. If china were to go all naval, the penalties would differ. There would still be a stuggle to eliminate all the ships, but the continued use of the treasure fleet would make those penalties less severe. Personally i think there should be 3 versions, one for each choice possible (if you can chose the 3rd one) in the fate of the treasure fleet. The current would be best for historic route, ie scrapping the fleet.

The treasure fleet events should also affect Japan, Korea, etc, but only after the recommisioning event.

----

Finally i will look at the Japan pirate raids. I'd like those moved outside because i would like more dynamic approach to them, but that might have to wait until the new map.
 
1/2

Propsed changes to China:

1419.inc
Code:
[COLOR=Red]-snip-[/COLOR]
#
# Provinces
#
[COLOR=Red]-snip-[/COLOR]
province = {
    id = 662 #Hanoi
    nationalism = { year = 1419 month = january day = 1 }
    province_revoltrisk = [COLOR=Yellow]20[/COLOR]
}

province = {
    id = 663 #Tanh Noah
    nationalism = { year = 1419 month = january day = 1 }
    province_revoltrisk = [COLOR=Yellow]20[/COLOR]
}

province = {
    id = 1554 #Lao Cai
    nationalism = { year = 1419 month = january day = 1 }
    province_revoltrisk = [COLOR=Yellow]20[/COLOR]
}
[COLOR=Red]-snip-[/COLOR]
AGCEEP_Specific_China.eue
Code:
#-----------------
#"Le Loi" Sequence

#Le Loi's Lam Son resistance against Ming rule in Vietnam#
event = {
	id = 147001
	trigger = {
		OR = {
			owned = { province = 663 data = -1 } #Tanh Noah
			owned = { province = 662 data = -1 } #Hanoi
			owned = { province = 1554 data = -1 } #Lao Cai
		}
		[COLOR=Yellow]NOT = { flag = Failed_Pacify }[/COLOR]
	}
	random = no
	country = CHI
	name = "EVENTNAME147001" #Le Loi's Lam Son resistance in Vietnam
	desc = "EVENTHIST147001"
	[COLOR=Red]-snip-[/COLOR]
	date = { day = 1 month = april year = 1420 }
	offset = [COLOR=Yellow]15[/COLOR]
	deathdate = { day = 1 month = november year = 1420 }
	action_a = {
		name = "ACTIONNAME147001A" #Send Chen Zhi to assist Li Bin in Jiao Zhi
		command = { type = treasury value = -80 }
		command = { type = INF which = 662 value = 17500 } #Hanoi
		command = { type = wakeleader which = 032308 } #Chen Zhi (CHI)
	}
	action_b = {
		name = "ACTIONNAME147001B" #Raise another army and send Zhang Fu to crush the rebels
		command = { type = MIL which = -3 value = 48 }
		command = { type = ADM which = -2 value = 48 }
		command = { type = treasury value = -400 }
		command = { type = INF which = -2 value = 28000 }
		command = { type = CAV which = -2 value = 10000 }
		command = { type = ART which = -2 value = 20 }
		command = { type = domestic which = offensive value = 1 }
		command = { type = wakeleader which = 032306 } #Zhang Fu (CHI)
		command = { type = revolt which = 662 } #Hanoi
		command = { type = revolt which = 662 } #Hanoi
		command = { type = revolt which = 662 } #Hanoi
		command = { type = revolt which = 663 } #Tanh Noah
		command = { type = revolt which = 663 } #Tanh Noah
		command = { type = revolt which = 663 } #Tanh Noah
		command = { type = revolt which = 1554 } #Lao Cai
		command = { type = revolt which = 1554 } #Lao Cai
		command = { type = revolt which = 1554 } #Lao Cai
	}
	action_c = {
		name = "ACTIONNAME147001C" #Reform the administrative system
		command = { type = stability value = -1 }
		command = { type = setflag which = reformvietnam1 }
		command = { type = domestic which = centralization value = -2 }
		[COLOR=Yellow]command = { type = revoltrisk which = 72 value = 5 }
		command = { type = revoltrisk which = 36 value = 5 }
		command = { type = revoltrisk which = 18 value = 5 }[/COLOR]
		command = { type = MIL which = -2 value = 48 }
		command = { type = treasury value = -180 }
		command = { type = provincetax which = 662 value = -1 } #Hanoi
		command = { type = provincetax which = 663 value = -1 } #Tanh Noah
		command = { type = provincetax which = 1554 value = -1 } #Lao Cai
	}
	action_d = {
		name = "ACTIONNAME147001D" #Listen to Confucian advisors and give up Jiao Zhi
		command = { type = independence which = DAI }
		command = { type = secedeprovince which = DAI value = 662 } #Hanoi
		command = { type = secedeprovince which = DAI value = 663 } #Tanh Noah
		command = { type = secedeprovince which = DAI value = 1554 } #Lao Cai
		command = { type = relation which = DAI value = 100 }
		command = { type = badboy value = -2 }
		command = { type = sleepevent which = 147002 } #CHI: Spread of Le Loi's Lam Son resistance in Vietnam
		command = { type = trigger which = 147004 } #CHI: Failure to pacify An Nam
	}
}

## Sources
##http://www.rthk.org.hk/chiculture/fivethousandyears/subpage13.htm
##http://www.geocities.com/Yosemite/7915/VN-Hist.html
##History of Ming (the official chronicle)

#Spread of Le Loi's Lam Son resistance against Ming rule in Vietnam#
event = {
	id = 147002
	trigger = {
		NOT = { exists = DAI }
		[COLOR=Yellow]NOT = { flag = Failed_Pacify }[/COLOR]
	}
	random = no
	country = CHI
	name = "EVENTNAME147002" #Spread of Le Loi's Lam Son resistance in Vietnam
	desc = "EVENTHIST147002"
	[COLOR=Red]-snip-[/COLOR]
	date = { day = 1 month = may year = 1426 }
	offset = 5
	deathdate = { day = 1 month = june year = 1426 }
	action_a = {
		name = "ACTIONNAME147002A" #Send Wang Tong to replace Chen Zhi
		command = { type = treasury value = -80 }
		command = { type = INF which = 662 value = 17500 } #Hanoi
		command = { type = wakeleader which = 032307 } #Wang Tong (CHI)
		command = { type = setflag which = Wang_Tong }
	}
	action_b = {
		name = "ACTIONNAME147002B" #Listen to Confucian advisors and give up Jiao Zhi
		command = { type = independence which = DAI }
		command = { type = secedeprovince which = DAI value = 662 } #Hanoi
		command = { type = secedeprovince which = DAI value = 663 } #Tanh Noah
		command = { type = secedeprovince which = DAI value = 1554 } #Lao Cai
		command = { type = relation which = DAI value = 100 }
		command = { type = badboy value = -1 }
		command = { type = trigger which = 147004 } #CHI: Failure to pacify An Nam
	}
	action_c = {
		name = "ACTIONNAME147002C" #Send Zhang Fu again to lead an army to crush the rebellion
		command = { type = MIL which = -3 value = 72 }
		command = { type = ADM which = -2 value = 72 }
		command = { type = treasury value = -300 }
		command = { type = INF which = -2 value = 23000 }
		command = { type = CAV which = -2 value = 10000 }
		command = { type = ART which = -2 value = 20 }
		command = { type = wakeleader which = 032309 } #Zhang Fu (CHI)
		command = { type = revolt which = 662 } #Hanoi
		command = { type = revolt which = 662 } #Hanoi
		command = { type = revolt which = 662 } #Hanoi
		command = { type = revolt which = 663 } #Tanh Noah
		command = { type = revolt which = 663 } #Tanh Noah
		command = { type = revolt which = 663 } #Tanh Noah
		command = { type = revolt which = 1554 } #Lao Cai
		command = { type = revolt which = 1554 } #Lao Cai
		command = { type = revolt which = 1554 } #Lao Cai
	}
	action_d = {
		name = "ACTIONNAME147002D" #Reform the administrative system
		command = { type = stability value = -1 }
		command = { type = setflag which = reformvietnam2 }
		command = { type = domestic which = centralization value = -1 }
		[COLOR=Yellow]command = { type = revoltrisk which = 72 value = 5 }
		command = { type = revoltrisk which = 36 value = 5 }
		command = { type = revoltrisk which = 18 value = 5 }[/COLOR]
		command = { type = MIL which = -2 value = 72 }
		command = { type = treasury value = -180 }
		command = { type = provincetax which = 662 value = -1 } #Hanoi
		command = { type = provincetax which = 663 value = -1 } #Tanh Noah
		command = { type = provincetax which = 1554 value = -1 } #Lao Cai
	}
}
#Truce with Le Loi#
event = {
	id = 147003
	trigger = {
		flag = Wang_Tong
		[COLOR=Yellow]NOT = { flag = Failed_Pacify }[/COLOR]
		[COLOR=Yellow]NOT = { leader = 32307 } #make sure this doesn't fire while he's alive[/COLOR]
		NOT = { exists = DAI }
		OR = { #for Dai Viet government not to fall too quickly in action_b
			AND = {
				control = { province = 663 data = -1 } #Tanh Noah
				control = { province = 662 data = -1 } #Hanoi
			}
			AND = {
				control = { province = 662 data = -1 } #Hanoi
				control = { province = 1554 data = -1 } #Lao Cai
			}
			AND = {
				control = { province = 663 data = -1 } #Tanh Noah
				control = { province = 1554 data = -1 } #Lao Cai
			}
		}
	}
	random = no
	country = CHI
	name = "EVENTNAME147003" #Truce with Le Loi
	desc = "EVENTHIST147003"
	[COLOR=Red]-snip-[/COLOR]
	date = { day = 1 month = October year = 1427 }
	offset = [COLOR=Yellow]5[/COLOR]
	deathdate = { day = 1 month = january year = 1429 }
	action_a = {
		name = "ACTIONNAME147003A" #Wang Tong betrayal of the Empire cannot be undone
		command = { type = independence which = DAI }
		command = { type = secedeprovince which = DAI value = 662 } #Hanoi
		command = { type = secedeprovince which = DAI value = 663 } #Tanh Noah
		command = { type = secedeprovince which = DAI value = 1554 } #Lao Cai
		command = { type = relation which = DAI value = 100 }
		[COLOR=Yellow]command = { type = clrflag which = Wang_Tong }[/COLOR]
		command = { type = trigger which = 147004 } #CHI: Failure to pacify An Nam
	}
	action_b = {
		name = "ACTIONNAME147003B" #Go to war and teach the rebels a bitter lesson
		command = { type = setflag which = 2ndwarvietnam }
		command = { type = independence which = DAI }
		command = { type = secedeprovince which = DAI value = 662 } #Hanoi
		command = { type = secedeprovince which = DAI value = 663 } #Tanh Noah
		command = { type = secedeprovince which = DAI value = 1554 } #Lao Cai
		command = { type = MIL which = -3 value = 72 }
		command = { type = ADM which = -2 value = 72 }
		command = { type = treasury value = -400 }
		command = { type = INF which = -2 value = 28000 }
		command = { type = CAV which = -2 value = 10000 }
		command = { type = ART which = -2 value = 20 }
		command = { type = wakeleader which = 032309 } #Zhang Fu (CHI)
		command = { type = trigger which = 157012 } #DAI: Le Loi defends 2nd invasion of Dai Viet
		[COLOR=Yellow]command = { type = clrflag which = Wang_Tong }[/COLOR]
		command = { type = sleepevent which = 147004 } #CHI: Failure to pacify An Nam
	}
}
#Failure to pacify An Nam#
event = {
	id = 147004 #also triggered by CHI_147003/147002/147001
	trigger = { exists = DAI }
	random = no
	country = CHI
	name = "EVENTNAME147004" #Failure to pacify An Nam
	desc = "EVENTHIST147004"
	[COLOR=Red]-snip-[/COLOR]
	date = { day = 1 month = October year = 1419 }
	offset = 30
	deathdate = { day = 1 month = October year = 1582 }
	action_a = {
		name = "ACTIONNAME147004A" #We must accept that as truth
		[COLOR=Yellow]command = { type = setflag which = Failed_Pacify }[/COLOR]
		[COLOR=DimGray]command = { type = sleepevent which = 147001 } #CHI: Le Loi's Lam Son resistance in Vietnam
		command = { type = sleepevent which = 147002 } #CHI: Spread of Le Loi's Lam Son resistance in Vietnam
		command = { type = sleepevent which = 147003 } #CHI: Truce with Le Loi
		command = { type = sleepevent which = 147009 } #CHI: Death of Le Loi
		command = { type = sleepevent which = 147010 } #CHI: Gradual Pacification of An Nam
		command = { type = sleepevent which = 147011 } #CHI: Gradual Pacification of An Nam
		command = { type = sleepevent which = 147012 } #CHI: Gradual Pacification of An Nam
		command = { type = sleepevent which = 147013 } #CHI: Gradual Pacification of An Nam
		command = { type = sleepevent which = 147014 } #CHI: Final Pacification of An Nam
		command = { type = sleepevent which = 147015 } #CHI: Death of Le Loi
		command = { type = sleepevent which = 147016 } #CHI: Gradual Pacification of An Nam
		command = { type = sleepevent which = 147017 } #CHI: Gradual Pacification of An Nam
		command = { type = sleepevent which = 147018 } #CHI: Gradual Pacification of An Nam
		command = { type = sleepevent which = 147019 } #CHI: Gradual Pacification of An Nam
		command = { type = sleepevent which = 147020 } #CHI: Final Pacification of An Nam[/COLOR]
		#command = { type = ai which = China_3XuanZong.ai }
	}
}
#Failure to pacify An Nam after 2nd invasion#
event = {
	id = 147005
	trigger = {
		flag = 2ndwarvietnam
 		[COLOR=DimGray]OR = {[/COLOR]
		NOT = { war = { country = CHI country = DAI } }
		[COLOR=DimGray]	year = 1433
		}[/COLOR]
		NOT = {
			vassal = { country = CHI country = DAI }
			[COLOR=Yellow]vassal = { country = DAI country = CHI }#just incase[/COLOR]
		}
	}
	random = no
	country = CHI
	name = "EVENTNAME147005" #Failure to pacify An Nam after 2nd invasion
	desc = "EVENTHIST147005"
	[COLOR=Red]-snip-[/COLOR]
	date = { day = 1 month = October year = 1427 }
	offset = 5
	deathdate = { day = 1 month = april year = 1433 }
	action_a = {
		name = "ACTIONNAME147005A" #We must accept that as truth
		[COLOR=Yellow]command = { type = clrflag which = 2ndwarvietnam }
		command = { type = setflag which = Failed_Pacify }[/COLOR]
		[COLOR=DimGray]command = { type = sleepevent which = 147006 } #CHI: Success of 2nd invasion of An Nam
		command = { type = sleepevent which = 147009 } #CHI: Death of Le Loi
		command = { type = sleepevent which = 147010 } #CHI: Gradual Pacification of An Nam
		command = { type = sleepevent which = 147011 } #CHI: Gradual Pacification of An Nam
		command = { type = sleepevent which = 147012 } #CHI: Gradual Pacification of An Nam
		command = { type = sleepevent which = 147013 } #CHI: Gradual Pacification of An Nam
		command = { type = sleepevent which = 147014 } #CHI: Final Pacification of An Nam
		command = { type = sleepevent which = 147015 } #CHI: Death of Le Loi
		command = { type = sleepevent which = 147016 } #CHI: Gradual Pacification of An Nam
		command = { type = sleepevent which = 147017 } #CHI: Gradual Pacification of An Nam
		command = { type = sleepevent which = 147018 } #CHI: Gradual Pacification of An Nam
		command = { type = sleepevent which = 147019 } #CHI: Gradual Pacification of An Nam
		command = { type = sleepevent which = 147020 } #CHI: Final Pacification of An Nam[/COLOR]
		#command = { type = ai which = China_3XuanZong.ai }
	}
}
#Success of 2nd invasion of An Nam#
event = {
	id = 147006
	trigger = {
		flag = 2ndwarvietnam
		OR = {
			AND = {
				control = { province = 662 data = CHI } #Hanoi
 				control = { province = 663 data = CHI } #Tanh Noah
 				control = { province = 1554 data = CHI } #Lao Cai
			}
			vassal = { country = CHI country = DAI } #if peace with vassalization the day before
		}
	}
	random = no
	country = CHI
	name = "EVENTNAME147006" #Success of 2nd invasion of An Nam
	desc = "EVENTHIST147006"
	[COLOR=Red]-snip-[/COLOR]
	date = { day = 1 month = October year = 1427 }
	offset = [COLOR=Yellow]15[/COLOR]
	deathdate = { day = 1 month = april year = 1433 }
	action_a = {
		name = "ACTIONNAME147006A" #Great
		[COLOR=Yellow]command = { type = clrflag which = 2ndwarvietnam }[/COLOR]
		[COLOR=DimGray]command = { type = sleepevent which = 147005 } #CHI: Failure to pacify An Nam after 2nd invasion[/COLOR]
		command = { type = inherit which = DAI }
		command = { type = setflag which = win2ndwarvietnam }
	}
}
#Success of 2nd invasion of Dai Viet and continued incorporation#
event = {
	id = 147007
	trigger = {
		[COLOR=Yellow]flag = win2ndwarvietnam[/COLOR]
		[COLOR=DimGray]event = 147006[/COLOR]
		owned = { province = 663 data = -1 } #Tanh Noah
		owned = { province = 662 data = -1 } #Hanoi
		owned = { province = 1554 data = -1 } #Lao Cai
	}
	random = no
	country = CHI
	name = "EVENTNAME147007" #Success of 2nd invasion of Dai Viet and continued incorporation
	desc = "EVENTHIST147007"
 	[COLOR=Red]-snip-[/COLOR]
	date = { day = 1 month = november year = 1427 }
	offset = [COLOR=Yellow]5[/COLOR]
	deathdate = { day = 1 month = may year = 1433 }
	action_a = {
		name = "ACTIONNAME147007A" #Incorporate it!
		command = { type = province_revoltrisk which = 662 value = [COLOR=Yellow]20[/COLOR] } #Hanoi
		command = { type = province_revoltrisk which = 663 value = [COLOR=Yellow]20[/COLOR] } #Tanh Noah
		command = { type = province_revoltrisk which = 1554 value = [COLOR=Yellow]20[/COLOR] } #Lao Cai
	}
}
#Continuing the Failure to pacify An Nam#
event = {
	id = 147008
	trigger = {
		flag = win2ndwarvietnam
		exists = DAI
	}
	random = no
	country = CHI
	name = "EVENTNAME147008" #Failure to pacify An Nam
	desc = "EVENTHIST147008"
	[COLOR=Red]-snip-[/COLOR]
	date = { day = 1 month = October year = 1427 }
	offset = 30
	deathdate = { day = 1 month = October year = 1582 }
	action_a = {
		name = "ACTIONNAME147008A" #We must accept that as truth
		[COLOR=Yellow]command = { type = setflag which = Failed_Pacify }[/COLOR]
		[COLOR=DimGray]command = { type = sleepevent which = 147009 } #CHI: Death of Le Loi
		command = { type = sleepevent which = 147010 } #CHI: Gradual Pacification of An Nam
		command = { type = sleepevent which = 147011 } #CHI: Gradual Pacification of An Nam
		command = { type = sleepevent which = 147012 } #CHI: Gradual Pacification of An Nam
		command = { type = sleepevent which = 147013 } #CHI: Gradual Pacification of An Nam
		command = { type = sleepevent which = 147014 } #CHI: Final Pacification of An Nam
		command = { type = sleepevent which = 147015 } #CHI: Death of Le Loi
		command = { type = sleepevent which = 147016 } #CHI: Gradual Pacification of An Nam
		command = { type = sleepevent which = 147017 } #CHI: Gradual Pacification of An Nam
		command = { type = sleepevent which = 147018 } #CHI: Gradual Pacification of An Nam
		command = { type = sleepevent which = 147019 } #CHI: Gradual Pacification of An Nam
		command = { type = sleepevent which = 147020 } #CHI: Final Pacification of An Nam[/COLOR]
		#command = { type = ai which = China_3XuanZong.ai }
	}
}

#Death of Le Loi#
event = {
	id = 147009
	[COLOR=Yellow]trigger = { NOT = { flag = Failed_Pacify } }[/COLOR]
	random = no
	country = CHI
	name = "EVENTNAME147009" #Death of Le Loi
	desc = "EVENTHIST147009"
	[COLOR=Red]-snip-[/COLOR]
	date = { day = 1 month = july year = 1433 }
	offset = [COLOR=Yellow]5[/COLOR]
	deathdate = { day = 1 month = august year = 1433 }
	action_a = {
		name = "ACTIONNAME147009A" #Good
		[COLOR=Yellow]command = setflag which = route1 }[/COLOR]
		[COLOR=DimGray]command = { type = sleepevent which = 147015 } #CHI: Death of Le Loi
		command = { type = sleepevent which = 147016 } #CHI: Gradual Pacification of An Nam
		command = { type = sleepevent which = 147017 } #CHI: Gradual Pacification of An Nam
		command = { type = sleepevent which = 147018 } #CHI: Gradual Pacification of An Nam
		command = { type = sleepevent which = 147019 } #CHI: Gradual Pacification of An Nam
		command = { type = sleepevent which = 147020 } #CHI: Final Pacification of An Nam[/COLOR]
		command = { type = province_revoltrisk which = 662 value = -[COLOR=Yellow]2[/COLOR] } #Hanoi
		command = { type = province_revoltrisk which = 663 value = -[COLOR=Yellow]2[/COLOR] } #Tanh Noah
		command = { type = province_revoltrisk which = 1554 value = -[COLOR=Yellow]2[/COLOR] } #Lao Cai
	}
}
#Gradual Pacification of An Nam#
event = {
	id = 147010
	[COLOR=Yellow]trigger = {
		NOT = { flag = Failed_Pacify }
		flag = route1
	}[/COLOR]
	random = no
	country = CHI
	name = "EVENTNAME147010" #Gradual Pacification of An Nam
	desc = "EVENTHIST147010"
	[COLOR=Red]-snip-[/COLOR]
	date = { day = 1 month = august year = 1463 }
	offset = [COLOR=Yellow]5[/COLOR]
	deathdate = { day = 1 month = november year = 1463 }
	action_a = {
		name = "ACTIONNAME147010A" #Good
		command = { type = province_revoltrisk which = 662 value = -[COLOR=Yellow]3[/COLOR] } #Hanoi
		command = { type = province_revoltrisk which = 663 value = -[COLOR=Yellow]3[/COLOR] } #Tanh Noah
		command = { type = province_revoltrisk which = 1554 value = -[COLOR=Yellow]3[/COLOR] } #Lao Cai
	}
}

#Gradual Pacification of An Nam 2#
event = {
	id = 147011
	[COLOR=Yellow]trigger = {
		NOT = { flag = Failed_Pacify }
		flag = route1
	}[/COLOR]
	random = no
	country = CHI
	name = "EVENTNAME147011" #Gradual Pacification of An Nam
	desc = "EVENTHIST147011"
	[COLOR=Red]-snip-[/COLOR]
	date = { day = 1 month = august year = 1493 }
	offset = [COLOR=Yellow]5[/COLOR]
	deathdate = { day = 1 month = november year = 1493 }
	action_a = {
		name = "ACTIONNAME147011A" #Good
		command = { type = province_revoltrisk which = 662 value = -[COLOR=Yellow]4[/COLOR] } #Hanoi
		command = { type = province_revoltrisk which = 663 value = -[COLOR=Yellow]4[/COLOR] } #Tanh Noah
		command = { type = province_revoltrisk which = 1554 value = -[COLOR=Yellow]4[/COLOR] } #Lao Cai
	}
}
#Gradual Pacification of An Nam 3#
event = {
	id = 147012
	[COLOR=Yellow]trigger = {
		NOT = { flag = Failed_Pacify }
		flag = route1
	}[/COLOR]
	random = no
	country = CHI
	name = "EVENTNAME147012" #Gradual Pacification of An Nam
	desc = "EVENTHIST147012"
	[COLOR=Red]-snip-[/COLOR]
	date = { day = 1 month = august year = 1523 }
	offset = [COLOR=Yellow]5[/COLOR]
	deathdate = { day = 1 month = november year = 1523 }

	action_a = {
		name = "ACTIONNAME147012A" #Good
		command = { type = province_revoltrisk which = 662 value = -[COLOR=Yellow]4[/COLOR] } #Hanoi
		command = { type = province_revoltrisk which = 663 value = -[COLOR=Yellow]4[/COLOR] } #Tanh Noah
		command = { type = province_revoltrisk which = 1554 value = -[COLOR=Yellow]4[/COLOR] } #Lao Cai
	}
}

#Gradual Pacification of An Nam 4#
event = {
	id = 147013
	[COLOR=Yellow]trigger = {
		NOT = { flag = Failed_Pacify }
		flag = route1
	}[/COLOR]
	random = no
	country = CHI
	name = "EVENTNAME147013" #Gradual Pacification of An Nam
	desc = "EVENTHIST147013"
	[COLOR=Red]-snip-[/COLOR]
	date = { day = 1 month = august year = 1553 }
	offset = [COLOR=Yellow]5[/COLOR]
	deathdate = { day = 1 month = november year = 1553 }

	action_a = {
		name = "ACTIONNAME147013A" #Good
		command = { type = province_revoltrisk which = 662 value = -[COLOR=Yellow]3[/COLOR] } #Hanoi
		command = { type = province_revoltrisk which = 663 value = -[COLOR=Yellow]3[/COLOR] } #Tanh Noah
		command = { type = province_revoltrisk which = 1554 value = -[COLOR=Yellow]3[/COLOR] } #Lao Cai
	}
}
#Final Pacification of An Nam#
event = {
	id = 147014
	[COLOR=Yellow]trigger = {
		NOT = { flag = Failed_Pacify }
		flag = route1
	}[/COLOR]
	random = no
	country = CHI
	name = "EVENTNAME147014" #Final Pacification of An Nam
	desc = "EVENTHIST147014"
	[COLOR=Red]-snip-[/COLOR]
	date = { day = 1 month = august year = 1583 }
	offset = [COLOR=Yellow]5[/COLOR]
	deathdate = { day = 1 month = november year = 1583 }
	action_a = {
		name = "ACTIONNAME147014A" #Great
		command = { type = province_revoltrisk which = 662 value = -[COLOR=Yellow]22[/COLOR] } #Hanoi - extra incase RR is doubled by event 14707
		command = { type = province_revoltrisk which = 663 value = -[COLOR=Yellow]22[/COLOR] } #Tanh Noah
		command = { type = province_revoltrisk which = 1554 value = -[COLOR=Yellow]22[/COLOR] } #Lao Cai
		command = { type = addcore which = 662 } #Hanoi
		command = { type = addcore which = 663 } #Tanh Noah
		command = { type = addcore which = 1554 } #Lao Cai
		command = { type = provinceculture which = 662 value = chihan } #Hanoi     - han culture for 1.08
		command = { type = provinceculture which = 663 value = chihan } #Tanh Noah - han culture for 1.08
		command = { type = provinceculture which = 1554 value = chihan } #Lao Cai  - han culture for 1.08
	}
}
#Alternate Death of Le Loi#
event = {
	id = 147015
	trigger = {
		NOT = { domestic = { type = centralization value = 7 } }
		[COLOR=Yellow]NOT = { flag = Failed_Pacify }[/COLOR]
		flag = reformvietnam2
 		flag = reformvietnam1
	}
	random = no
	country = CHI
	name = "EVENTNAME147015" #Death of Le Loi
	desc = "EVENTHIST147015"
	[COLOR=Red]-snip-[/COLOR]
	date = { day = 1 month = july year = 1433 }
	offset = 5
	deathdate = { day = 1 month = august year = 1433 }
	action_a = {
		name = "ACTIONNAME147015A" #Good
		[COLOR=Yellow]command = setflag which = route2 }[/COLOR]
		[COLOR=DimGray]command = { type = sleepevent which = 147009 } #CHI: Death of Le Loi
		command = { type = sleepevent which = 147010 } #CHI: Gradual Pacification of An Nam
		command = { type = sleepevent which = 147011 } #CHI: Gradual Pacification of An Nam
		command = { type = sleepevent which = 147012 } #CHI: Gradual Pacification of An Nam
		command = { type = sleepevent which = 147013 } #CHI: Gradual Pacification of An Nam
		command = { type = sleepevent which = 147014 } #CHI: Final Pacification of An Nam[/COLOR]
		command = { type = province_revoltrisk which = 662 value = -[COLOR=Yellow]4[/COLOR] } #Hanoi
		command = { type = province_revoltrisk which = 663 value = -[COLOR=Yellow]4[/COLOR] } #Tanh Noah
		command = { type = province_revoltrisk which = 1554 value = -[COLOR=Yellow]4[/COLOR] } #Lao Cai
	}
}

#Alternate Gradual Pacification of An Nam#
event = {
	id = 147016
	[COLOR=Yellow]trigger = {
		NOT = { flag = Failed_Pacify }
		flag = route2
	}[/COLOR]
	random = no
	country = CHI
	name = "EVENTNAME147016" #Gradual Pacification of An Nam
	desc = "EVENTHIST147016"
	[COLOR=Red]-snip-[/COLOR]
	date = { day = 1 month = july year = 1453 }
	offset = [COLOR=Yellow]5[/COLOR]
	deathdate = { day = 1 month = october year = 1453 }
	action_a = {
		name = "ACTIONNAME147016A" #Good
		command = { type = province_revoltrisk which = 662 value = -[COLOR=Yellow]5[/COLOR] } #Hanoi
		command = { type = province_revoltrisk which = 663 value = -[COLOR=Yellow]5[/COLOR] } #Tanh Noah
		command = { type = province_revoltrisk which = 1554 value = -[COLOR=Yellow]5[/COLOR] } #Lao Cai
	}
}
#Alternate Gradual Pacification of An Nam 2#
event = {
	id = 147017
	[COLOR=Yellow]trigger = {
		NOT = { flag = Failed_Pacify }
		flag = route2
	}[/COLOR]
	random = no
	country = CHI
	name = "EVENTNAME147017" #Gradual Pacification of An Nam
	desc = "EVENTHIST147017"
	[COLOR=Red]-snip-[/COLOR]
	date = { day = 1 month = july year = 1473 }
	offset = [COLOR=Yellow]5[/COLOR]
	deathdate = { day = 1 month = october year = 1473 }
	action_a = {
		name = "ACTIONNAME147017A" #Good
		command = { type = province_revoltrisk which = 662 value = -[COLOR=Yellow]6[/COLOR] } #Hanoi
		command = { type = province_revoltrisk which = 663 value = -[COLOR=Yellow]6[/COLOR] } #Tanh Noah
		command = { type = province_revoltrisk which = 1554 value = -[COLOR=Yellow]6[/COLOR] } #Lao Cai
	}
}
#Alternate Gradual Pacification of An Nam 3#
event = {
	id = 147018
	[COLOR=Yellow]trigger = {
		NOT = { flag = Failed_Pacify }
		flag = route2
	}[/COLOR]
	random = no
	country = CHI
	name = "EVENTNAME147018" #Gradual Pacification of An Nam
	desc = "EVENTHIST147018"
	[COLOR=Red]-snip-[/COLOR]
	date = { day = 1 month = july year = 1493 }
	offset = [COLOR=Yellow]5[/COLOR]
	deathdate = { day = 1 month = october year = 1493 }
	action_a = {
		name = "ACTIONNAME147018A" #Good
		command = { type = province_revoltrisk which = 662 value = -[COLOR=Yellow]3[/COLOR] } #Hanoi
		command = { type = province_revoltrisk which = 663 value = -[COLOR=Yellow]3[/COLOR] } #Tanh Noah
		command = { type = province_revoltrisk which = 1554 value = -[COLOR=Yellow]3[/COLOR] } #Lao Cai
	}
}

#Alternate Gradual Pacification of An Nam 4#
event = {
	id = 147019
	[COLOR=Yellow]trigger = {
		NOT = { flag = Failed_Pacify }
		flag = route2
	}[/COLOR]
	random = no
	country = CHI
	name = "EVENTNAME147019" #Gradual Pacification of An Nam
	desc = "EVENTHIST147019"
	[COLOR=Red]-snip-[/COLOR]
	date = { day = 1 month = july year = 1513 }
	offset = [COLOR=Yellow]5[/COLOR]
	deathdate = { day = 1 month = october year = 1513 }
	action_a = {
		name = "ACTIONNAME147019A" #Good
		command = { type = province_revoltrisk which = 662 value = -[COLOR=Yellow]1[/COLOR] } #Hanoi
		command = { type = province_revoltrisk which = 663 value = -[COLOR=Yellow]1[/COLOR] } #Tanh Noah
		command = { type = province_revoltrisk which = 1554 value = -[COLOR=Yellow]1[/COLOR] } #Lao Cai
	}
}

#Alternate Final Pacification of An Nam#
event = {
	id = 147020
	[COLOR=Yellow]trigger = {
		NOT = { flag = Failed_Pacify }
		flag = route2
	}[/COLOR]
	random = no
	country = CHI
	name = "EVENTNAME147020" #Final Pacification of An Nam
	desc = "EVENTHIST147020"
	[COLOR=Red]-snip-[/COLOR]
	date = { day = 1 month = july year = 1533 }
	offset = [COLOR=Yellow]5[/COLOR]
	deathdate = { day = 1 month = october year = 1533 }

	action_a = {
		name = "ACTIONNAME147020A" #Great
		command = { type = province_revoltrisk which = 662 value = -[COLOR=Yellow]21[/COLOR] } #Hanoi
		command = { type = province_revoltrisk which = 663 value = -[COLOR=Yellow]21[/COLOR] } #Tanh Noah
		command = { type = province_revoltrisk which = 1554 value = -[COLOR=Yellow]21[/COLOR] } #Lao Cai
		command = { type = addcore which = 662 } #Hanoi
		command = { type = addcore which = 663 } #Tanh Noah
		command = { type = addcore which = 1554 } #Lao Cai
		command = { type = provinceculture which = 662 value = chihan } #Hanoi     - han culture for 1.08
		command = { type = provinceculture which = 663 value = chihan } #Tanh Noah - han culture for 1.08
		command = { type = provinceculture which = 1554 value = chihan } #Lao Cai  - han culture for 1.08
	}
}
#End of "Le Loi" Sequence
#------------------------
Code:
#---------------------------------------
#"Rebellion of the Lord of Han" Sequence

## Sources
##http://bbs.ynet.com/cgi-bin/ReadFile?whichfile=37321&typeid=33
##Chinese History Textbook, book 2, Chiu Ming education, 1986.
##http://www.rthk.org.hk/chiculture/fivethousandyears/subpage13.htm

#Rebellion of the Lord of Han - high centralisation#
event = {
	id = 147023
	trigger = {
		domestic = { type = [COLOR=Yellow]aristocracy[/COLOR] value = 7 }
		owned = { province = 649 data = -1 } #Hebei
		owned = { province = 650 data = -1 } #Shandong
		NOT = { event = 147024 }
	}
	random = no
	country = CHI
	name = "EVENTNAME147023" #Rebellion of the Lord of Han
	desc = "EVENTHIST147023"
	[color=RED]-snip-[/COLOR]
	date = { day = 2 month = may year = 1426 }
	offset = [COLOR=Yellow]5[/COLOR]
	deathdate = { day = 2 month = august year = 1426 }
	action_a = {
		name = "ACTIONNAME147023A" #Bad news
		command = { type = province_revoltrisk which = 650 value = 800 } #Shandong
		command = { type = revolt which = 650 } #Shandong
		command = { type = revolt which = 650 } #Shandong
		command = { type = revolt which = 650 } #Shandong
		command = { type = revolt which = 650 } #Shandong
		command = { type = revolt which = 650 } #Shandong
		command = { type = trigger which = 147025 } #CHI: Response to Lord of Han's Rebellion
		command = { type = sleepevent which = 147024 } #CHI: Rebellion of the Lord of Han
	}
}
#Rebellion of the Lord of Han - if [COLOR=Yellow]aristocracy[/COLOR]  is low the local prince-lords will be much more powerful#
event = {
	id = 147024
	trigger = {
		NOT = { domestic = { type = [COLOR=Yellow]aristocracy[/COLOR] value = 7 } }
		owned = { province = 649 data = -1 } #Hebei
		owned = { province = 650 data = -1 } #Shandong
		NOT = { event = 147023 }
	}
	random = no
	country = CHI
	name = "EVENTNAME147024" #Rebellion of the Lord of Han
	desc = "EVENTHIST147023"
	[color=RED]-snip-[/COLOR]
	date = { day = 2 month = may year = 1426 }
	offset = [COLOR=Yellow]5[/COLOR]
	deathdate = { day = 2 month = august year = 1426 }
	action_a = {
		name = "ACTIONNAME147024A" #Bad news
		command = { type = province_revoltrisk which = 650 value = 800 } #Shandong
		command = { type = revolt which = 650 } #Shandong
		command = { type = revolt which = 650 } #Shandong
		command = { type = revolt which = 650 } #Shandong
		command = { type = revolt which = 650 } #Shandong
		command = { type = revolt which = 650 } #Shandong
		command = { type = revolt which = 650 } #Shandong
		command = { type = revolt which = 650 } #Shandong
		command = { type = revolt which = 650 } #Shandong
		command = { type = revolt which = 650 } #Shandong
		command = { type = trigger which = 147025 } #CHI: Response to Lord of Han's Rebellion
		command = { type = sleepevent which = 147024 } #CHI: Rebellion of the Lord of Han
	}
}
#Rebellion of the Lord of Han - Response#
event = {
	id = 147025 #triggered by CHI147024/147023
	random = no
	country = CHI
	name = "EVENTNAME147025" #Response to Lord of Han's Rebellion
	desc = "EVENTHIST147025"
	[color=RED]-snip-[/COLOR]
	action_a = {
		name = "ACTIONNAME147025A" #Lead an army to crush the rebellion
		command = { type = treasury value = -300 }
		command = { type = INF which = -2 value = 30000 }
		command = { type = CAV which = -2 value = 10000 }
	}
	action_b = {
		name = "ACTIONNAME147025B" #Avoid conflict in the royal family
		[COLOR=Yellow]command = { type = stability value = -1 }[/COLOR]
		[COLOR=DimGray]command = { type = vp value = -5 }[/COLOR]
	}
}
#Rebellion of the Lord of Han - success of rebellion#
event = {
	id = 147026
	trigger = {
		OR = {
			event = 147024
			event = 147023
		}
		NOT = { event = 147027 }
		control = { province = 649 data = REB } #Hebei
	}
	random = no
	country = CHI
	name = "EVENTNAME147026" #The Lord of Han siezed the throne
	desc = "EVENTHIST147026"
	[color=RED]-snip-[/COLOR]
	date = { day = 2 month = may year = 1426 }
	offset = [COLOR=Yellow]5[/COLOR]
	deathdate = { day = 1 month = january year = 1440 }
	action_a = {
		name = "ACTIONNAME147026A" #A new Emperor...
		command = { type = stability value = -2 }
		command = { type = province_revoltrisk which = 650 value = -800 } #Shandong
		command = { type = wakemonarch which = 032030 } #Zhu Gao Yu
		command = { type = wakemonarch which = 032031 } #Zhu Zhan Tan
		command = { type = sleepmonarch which = 032002 } #Xuan Zong
		command = { type = sleepmonarch which = 032003 } #Ying Zong
		command = { type = sleepevent which = 147027 } #CHI: Qingdao under control!
		command = { type = sleepevent which = 147028 } #CHI: The Lord of Han has died
		command = { type = sleepevent which = 147039 } #CHI: Three Yang Counselling Imperial Administration
		command = { type = sleepevent which = 147040 } #CHI: End of Three Yang Counselling
	}
}
#Rebellion of the Lord of Han - failure of rebellion#
event = {
	id = 147027
	trigger = {
		OR = {
			event = 147024
			event = 147023
		}
		NOT = { event = 147027 }
		control = { province = 650 data = -1 } #Shandong
	}
	random = no
	country = CHI
	name = "EVENTNAME147027" #Qingdao under control!
	desc = "EVENTHIST147027"
	[color=RED]-snip-[/COLOR]
	date = { day = 2 month = november year = 1427 }
	offset = [COLOR=Yellow]30[/COLOR]
	deathdate = { day = 1 month = january year = 1440 }
	action_a = {
		name = "OK"
		command = { type = province_revoltrisk which = 650 value = -800 } #Shandong
		command = { type = sleepevent which = 147026 } #CHI: The Lord of Han siezed the throne
		command = { type = sleepevent which = 147028 } #CHI: The Lord of Han has died
	}
}
#Rebellion of the Lord of Han - time limit#
event = {
	id = 147028
	trigger = { monarch = 032003 #Ying Zong }
	random = no
	country = CHI
	name = "EVENTNAME147028" #The Lord of Han has died
	desc = "EVENTHIST147028"
	[color=RED]-snip-[/COLOR]
	date = { day = 1 month = march year = 1440 }
	offset = [COLOR=Yellow]5[/COLOR]
	deathdate = { day = 1 month = may year = 1440 }
	action_a = {
		name = "OK"
		command = { type = province_revoltrisk which = 650 value = -800 } #Shandong
		command = { type = sleepevent which = 147026 } #CHI: The Lord of Han siezed the throne
		command = { type = sleepevent which = 147027 } #CHI: Qingdao under control!
	}
}		
#End of "Rebellion of the Lord of Han" Sequence
#----------------------------------------------
 
2/2

Code:
#------------------------------------------------
#Naval events to replace strategic decision event
#scripted by doktarr, altered by Sun_Zi, discussion in thread 89759

#Treasure Fleet policy debate#
event = {
	id = 10044
	random = no
	country = CHI
	name = "EVENTNAME10044" #Treasure Fleet policy debate
	desc = "EVENTHIST3703"
	[color=RED]-snip-[/COLOR]
	date = { month = September year = 1424 }
	action_a = {
		name = "ACTIONNAME10044A" #Suspend the activities of the fleet
		command = { type = colonists value = -2 }
		command = { type = merchants value = -2 }
		command = { type = diplomats value = -1 }
		command = { type = stability value = 1 }
		command = { type = land value = 2500 }
		command = { type = infra value = 2500 }
		command = { type = naval value = -3500 }
		command = { type = trade value = -1500 }
		command = { type = domestic which = MERCANTILISM value = -1 }
		command = { type = domestic which = LAND value = 1 }
		command = { type = domestic which = OFFENSIVE value = -1 }
		command = { type = clrflag which = treasure_fleet_voyages }
		command = { type = ai which = CHI_1424_RenZong.ai }
	}
	action_b = {
		name = "ACTIONNAME10044B" #Continue our expansion
		command = { type = warships which = -1 value = 10 }
		command = { type = transports which = -3 value = 5 }
		command = { type = colonists value = 2 }
		command = { type = merchants value = 4 }
		command = { type = diplomats value = 2 }
		command = { type = land value = -1500 }
		command = { type = infra value = -1500 }
		command = { type = naval value = 2000 }
		command = { type = trade value = 1000 }
		command = { type = revoltrisk which = 60 value = 8 }
		command = { type = inflation value = 3 }
		command = { type = treasury value = -800 }
		command = { type = ADM which = -2 value = 60 }
		command = { type = DIP which = 2 value = 60 }
		command = { type = setflag which = treasure_fleet_voyages }
		[COLOR=Yellow]command = { type = setflag which = naval_china }[/COLOR]
	}
}

##Sources
##[url]http://apps.mc.maricopa.edu/blogs/asb222/reffland/archives/000438.html[/url]
##[url]http://www.vancouvermaritimemuseum.com/watery/treasure_fleet.htm[/url]
##[url]http://www.mariner.org/educationalad/ageofex/cook.php[/url]
##History of Ming (the official chronicle)

#Recommissioning of Zheng He#
event = {
	id = 10045
	random = no
	country = CHI
	name = "EVENTNAME10045" #Recommissioning of Zheng He
	desc = "EVENTHIST10045"
	[color=RED]-snip-[/COLOR]
	date = { month = April year = 1430 }
	action_a = {
		name = "ACTIONNAME10045A" #Once again for the glory of China
		command = { type = colonists value = 1 }
		command = { type = merchants value = 2 }
		command = { type = diplomats value = 2 }
		command = { type = land value = -1000 }
		command = { type = infra value = -1000 }
		command = { type = naval value = 2000 }
		command = { type = trade value = 1000 }
		command = { type = domestic which = ARISTOCRACY value = -1 }
		command = { type = domestic which = MERCANTILISM value = 1 }
		command = { type = domestic which = LAND value = -1 }
		command = { type = DIP which = 2 value = 60 }
		command = { type = treasury value = -250 }
		command = { type = setflag which = treasure_fleet_voyages }
		[COLOR=Yellow]command = { type = clrflag which = naval_china }[/COLOR]
		command = { type = ai which = CHI_1430_ZengHe.ai }
	}
	action_b = {
		name = "ACTIONNAME10045B" #Zheng He's time has passed
		command = { type = colonists value = -1 }
		command = { type = merchants value = -1 }
		command = { type = diplomats value = -1 }
		command = { type = land value = 1500 }
		command = { type = infra value = 1500 }
		command = { type = naval value = -2500 }
		command = { type = trade value = -1200 }
		command = { type = clrflag which = treasure_fleet_voyages }
	}
}
#Fate of the Treasure Fleet#
event = {
	id = 10046
	[COLOR=Yellow]
		trigger = {
			flag = naval_china
			NOT = { event = XXXX }
	)[/COLOR]
	random = no
	country = CHI
	name = "EVENTNAME10046" #Fate of the Treasure Fleet
	desc = "EVENTHIST10046"
	[color=RED]-snip-[/COLOR]
	date = { day = 1 month = April year = 1436 }
	offset = [COLOR=Yellow]15[/COLOR]
	deathdate = { day = 1 month = october year = 1436 }
	action_a = {
		name = "ACTIONNAME10046A" #Ban all construction
		command = { type = stability value = 1 }
		command = { type = gainmanufactory which = -2 value = luxury }
		command = { type = gainbuilding which = -1 value = bailiff }
		command = { type = losebuilding which = -1 value = shipyard }
		command = { type = colonists value = -4 }
		command = { type = merchants value = -4 }
		command = { type = diplomats value = -2 }
		command = { type = land value = 4500 }
		command = { type = infra value = 4500 }
		command = { type = naval value = -7000 }
		command = { type = trade value = -2000 }
		command = { type = domestic which = ARISTOCRACY value = 1 }
		command = { type = domestic which = INNOVATIVE value = -1 }
		command = { type = domestic which = MERCANTILISM value = 1 }
		command = { type = domestic which = LAND value = 2 }
		command = { type = domestic which = OFFENSIVE value = -1 }
		[COLOR=Yellow]command = { type = clrflag which = naval_china }[/COLOR]
		command = { type = clrflag which = treasure_fleet_voyages }
		command = { type = ai which = CHI_1436_YingZong.ai }
	}
	action_b = {
		name = "ACTIONNAME10046B" #It won't hurt to keep making some cheaper ones
		command = { type = colonists value = -2 }
		command = { type = merchants value = -2 }
		command = { type = diplomats value = -1 }
		command = { type = land value = 2000 }
		command = { type = infra value = 2000 }
		command = { type = naval value = -3000 }
		command = { type = trade value = -1000 }
		command = { type = domestic which = INNOVATIVE value = -1 }
		command = { type = domestic which = LAND value = 1 }
		command = { type = domestic which = OFFENSIVE value = -1 }
		command = { type = ADM which = -2 value = 90 }
		command = { type = DIP which = -2 value = 90 }
		command = { type = inflation value = 1 }
		[COLOR=Yellow]command = { type = clrflag which = naval_china }
		command = { type = setflag which = balanced_china[/COLOR]
		command = { type = clrflag which = treasure_fleet_voyages }
		command = { type = ai which = CHI_1436_YingZong.ai }
	}
	action_c = {
		name = "ACTIONNAME10046C" #We will rule the seas forever!
		command = { type = warships which = -1 value = 10 }
		command = { type = transports which = -3 value = 5 }
		command = { type = gainbuilding which = 653 value = shipyard } #Shanghai
		command = { type = losebuilding which = -1 value = bailiff }
		command = { type = losebuilding which = -1 value = bailiff }
		command = { type = colonists value = 6 }
		command = { type = merchants value = 6 }
		command = { type = diplomats value = 2 }
		command = { type = land value = -4000 }
		command = { type = infra value = -5000 }
		command = { type = naval value = 6000 }
		command = { type = trade value = 3000 }
		command = { type = wakeleader which = 032300 } # New explorer #Wang Jing Hong (CHI)
		command = { type = domestic which = ARISTOCRACY value = -1 }
		command = { type = domestic which = MERCANTILISM value = -2 }
		command = { type = domestic which = LAND value = -2 }
		command = { type = treasury value = -1400 }
		command = { type = revoltrisk which = 180 value = 9 }
		command = { type = revoltrisk which = 120 value = 6 }
		command = { type = revoltrisk which = 60 value = 3 }
		command = { type = inflation value = 4 }
		command = { type = ADM which = -2 value = 180 }
		command = { type = DIP which = 2 value = 180 }
		[COLOR=DimGray]command = { type = setflag which = treasure_fleet_voyages }[/COLOR]
		command = { type = ai which = CHI_1436_expansionist.ai }
		command = { type = sleepevent which = 10047 } #CHI: Dismantling of the fleet
		command = { type = sleepevent which = 10005 } #CHI: Japanese Pirates Attack!
		command = { type = sleepevent which = 10006 } #CHI: Pirates besiege Nanjing
	}
}
#Alternate Fate of the Treasure Fleet#
[COLOR=Yellow]event = {
	id = XXXX
	[COLOR=Yellow]
		trigger = {
			NOT = { flag = naval_china }
			NOT = { event = 10046 }
	)[/COLOR]
	random = no
	country = CHI
	name = "EVENTNAME10046" #Fate of the Treasure Fleet
	desc = "EVENTHIST10046"
	[color=RED]-snip-[/COLOR]
	date = { day = 1 month = April year = 1436 }
	offset = [COLOR=Yellow]15[/COLOR]
	deathdate = { day = 1 month = october year = 1436 }
	action_a = {
		name = "ACTIONNAME10046A" #Ban all construction
		command = { type = gainmanufactory which = -2 value = luxury }
		command = { type = gainbuilding which = -1 value = bailiff }
		command = { type = losebuilding which = -1 value = shipyard }
		command = { type = colonists value = -4 }
		command = { type = merchants value = -4 }
		command = { type = diplomats value = -2 }
		[COLOR=DimGray]command = { type = stability value = 1 }[/COLOR]
		command = { type = land value = 4500 }
		command = { type = infra value = 4500 }
		command = { type = naval value = -7000 }
		command = { type = trade value = -2000 }
		command = { type = domestic which = ARISTOCRACY value = 1 }
		command = { type = domestic which = INNOVATIVE value = -1 }
		command = { type = domestic which = MERCANTILISM value = 1 }
		command = { type = domestic which = LAND value = 2 }
		command = { type = domestic which = OFFENSIVE value = -1 }
		command = { type = clrflag which = treasure_fleet_voyages }
		command = { type = ai which = CHI_1436_YingZong.ai }
	}
	action_b = {
		name = "ACTIONNAME10046B" #It won't hurt to keep making some cheaper ones
		command = { type = colonists value = -2 }
		command = { type = merchants value = -2 }
		command = { type = diplomats value = -1 }
		command = { type = land value = 2000 }
		command = { type = infra value = 2000 }
		command = { type = naval value = -3000 }
		command = { type = trade value = -1000 }
		command = { type = domestic which = INNOVATIVE value = -1 }
		command = { type = domestic which = LAND value = 1 }
		command = { type = domestic which = OFFENSIVE value = -1 }
		command = { type = ADM which = -2 value = 90 }
		command = { type = DIP which = -2 value = 90 }
		[COLOR=Yellow]command = { type = revoltrisk which = 180 value = 4 }
		command = { type = revoltrisk which = 120 value = 2 }
		command = { type = revoltrisk which = 60 value = 1 }[/COLOR]
		command = { type = inflation value = 1 }
		[COLOR=Yellow]command = { type = setflag which = balanced_china[/COLOR]
		command = { type = clrflag which = treasure_fleet_voyages }
		command = { type = ai which = CHI_1436_YingZong.ai }
	}
}[/COLOR]
#Dismantling of the fleet#
event = {
	id = 10047
	[COLOR=Yellow]trigger = {
		NOT = {
			flag = naval_china
			flag = balanced_china
		}
	}[/COLOR]
	random = no
	country = CHI
	name = "EVENTNAME10047" #Dismantling of the fleet
	desc = "EVENTHIST10047"
	[color=RED]-snip-[/COLOR]
	date = { day = 1 month = April year = 1525 }
	offset = [COLOR=Yellow]30[/COLOR]
	deathdate = { day = 1 month = october year = 1525 }
	action_a = {
		name = "ACTIONNAME10047A" #These vessels are nothing but a drain on our budget
		command = { type = gainbuilding which = -2 value = courthouse }
		command = { type = gainbuilding which = -1 value = bailiff }
		command = { type = losebuilding which = -1 value = shipyard }
		command = { type = colonists value = -2 }
		command = { type = merchants value = -2 }
		command = { type = stability value = 1 }
		command = { type = land value = 2000 }
		command = { type = infra value = 4000 }
		command = { type = naval value = -5000 }
		command = { type = trade value = -1000 }
		command = { type = domestic which = MERCANTILISM value = 1 }
		command = { type = domestic which = LAND value = 2 }
		command = { type = domestic which = OFFENSIVE value = -1 }
		command = { type = ADM which = 2 value = 120 }
	}
	action_b = {
		name = "ACTIONNAME10047B" #Not all the ships are useless
		command = { type = land value = 1500 }
		command = { type = infra value = 1500 }
		command = { type = naval value = -2000 }
		command = { type = trade value = -1000 }
		command = { type = domestic which = LAND value = 1 }
		command = { type = domestic which = OFFENSIVE value = -1 }
		command = { type = ADM which = -2 value = 60 }
		command = { type = DIP which = -2 value = 60 }
		command = { type = inflation value = 1 }
	}
	[COLOR=DimGray]action_c = {
		name = "ACTIONNAME10047C" #we need more ships!
		command = { type = warships which = -1 value = 10 }
		command = { type = transports which = -3 value = 5 }
		command = { type = losebuilding which = -1 value = bailiff }
		command = { type = colonists value = 4 }
		command = { type = merchants value = 6 }
		command = { type = diplomats value = 2 }
		command = { type = land value = -4000 }
		command = { type = infra value = -3000 }
		command = { type = naval value = 5000 }
		command = { type = trade value = 2000 }
		command = { type = domestic which = MERCANTILISM value = -1 }
		command = { type = domestic which = LAND value = -1 }
		command = { type = treasury value = -1200 }
		command = { type = revoltrisk which = 120 value = 7 }
		command = { type = revoltrisk which = 80 value = 5 }
		command = { type = revoltrisk which = 40 value = 3 }
		command = { type = inflation value = 2 }
		command = { type = ADM which = -2 value = 120 }
		command = { type = DIP which = 2 value = 120 }
	}
}[/COLOR]
[COLOR=Yellow]#First Alternate Dismantling of the fleet#
event = {
	id = XXXX
	trigger = { flag = balanced_china }
	random = no
	country = CHI
	name = "EVENTNAME10047" #Dismantling of the fleet
	desc = "EVENTHIST10047"
	[color=RED]-snip-[/COLOR]
	date = { day = 1 month = April year = 1525 }
	offset = [COLOR=Yellow]30[/COLOR]
	deathdate = { day = 1 month = october year = 1525 }
	action_a = {
		name = "ACTIONNAME10047A" #These vessels are nothing but a drain on our budget
		command = { type = stability value = 1 }
		command = { type = gainbuilding which = -2 value = courthouse }
		command = { type = gainbuilding which = -1 value = bailiff }
		command = { type = losebuilding which = -1 value = shipyard }
		command = { type = colonists value = -2 }
		command = { type = merchants value = -2 }
		command = { type = land value = 2000 }
		command = { type = infra value = 4000 }
		command = { type = naval value = -6000 }
		command = { type = trade value = -1000 }
		command = { type = domestic which = MERCANTILISM value = 2 }
		command = { type = domestic which = LAND value = 2 }
		command = { type = domestic which = OFFENSIVE value = -1 }
		command = { type = ADM which = 3 value = 120 }
	}
	action_b = {
		name = "ACTIONNAME10047B" #Not all the ships are useless
		command = { type = ADM which = -2 value = 60 }
	}
	action_c = {
		name = "ACTIONNAME10047C" #we need more ships!
		command = { type = warships which = -1 value = 10 }
		command = { type = transports which = -3 value = 5 }
		command = { type = losebuilding which = -1 value = bailiff }
		command = { type = gainbuilding which = 653 value = shipyard } #Shanghai
		command = { type = colonists value = 3 }
		command = { type = merchants value = 6 }
		command = { type = diplomats value = 2 }
		command = { type = land value = -4000 }
		command = { type = infra value = -3000 }
		command = { type = naval value = 5000 }
		command = { type = trade value = 2000 }
		command = { type = domestic which = MERCANTILISM value = -1 }
		command = { type = domestic which = LAND value = -1 }
		command = { type = treasury value = -1000 }
		command = { type = revoltrisk which = 120 value = 7 }
		command = { type = revoltrisk which = 80 value = 5 }
		command = { type = revoltrisk which = 40 value = 3 }
		command = { type = inflation value = 3 }
		command = { type = ADM which = -2 value = 120 }
		command = { type = DIP which = 2 value = 120 }
	}
}
#Second Alternate Dismantling of the fleet#
event = {
	id = XXXX
	trigger = { flag = naval_china }
	random = no
	country = CHI
	name = "EVENTNAME10047" #Dismantling of the fleet
	desc = "EVENTHIST10047"
	[color=RED]-snip-[/COLOR]
	date = { day = 1 month = April year = 1525 }
	offset = [COLOR=Yellow]30[/COLOR]
	deathdate = { day = 1 month = october year = 1525 }
	action_a = {
		name = "ACTIONNAME10047A" #These vessels are nothing but a drain on our budget
		command = { type = stability value = 2 }
		command = { type = gainbuilding which = -2 value = courthouse }
		command = { type = gainbuilding which = -1 value = bailiff }
		command = { type = losebuilding which = -1 value = shipyard }
		command = { type = colonists value = -2 }
		command = { type = merchants value = -2 }
		command = { type = land value = 3000 }
		command = { type = infra value = 8000 }
		command = { type = naval value = -10000 }
		command = { type = trade value = -1000 }
		command = { type = domestic which = MERCANTILISM value = 2 }
		command = { type = domestic which = LAND value = 3 }
		command = { type = domestic which = OFFENSIVE value = -2 }
		command = { type = ADM which = 4 value = 120 }
		command = { type = DIP which = -4 value = 240 }
	}
	action_b = {
		name = "ACTIONNAME10047B" #Not all the ships are useless
		command = { type = land value = 1500 }
		command = { type = infra value = 1500 }
		command = { type = naval value = -2000 }
		command = { type = trade value = -1000 }
		command = { type = domestic which = LAND value = 1 }
		command = { type = domestic which = OFFENSIVE value = -1 }
		command = { type = ADM which = 2 value = 120 }
		command = { type = DIP which = -2 value = 240 }
		command = { type = inflation value = 1 }
	}
	action_c = {
		name = "ACTIONNAME10047C" #we need more ships!
		command = { type = warships which = -1 value = 10 }
		command = { type = transports which = -3 value = 5 }
		command = { type = losebuilding which = -1 value = bailiff }
		command = { type = gainbuilding which = 649 value = shipyard } #Heibei
		command = { type = colonists value = 2 }
		command = { type = merchants value = 3 }
		command = { type = diplomats value = 1 }
		command = { type = land value = -4000 }
		command = { type = infra value = -3000 }
		command = { type = naval value = 5000 }
		command = { type = trade value = 2000 }
		command = { type = domestic which = MERCANTILISM value = -1 }
		command = { type = domestic which = LAND value = -1 }
		command = { type = treasury value = -1000 }
		command = { type = revoltrisk which = 120 value = 9 }
		command = { type = revoltrisk which = 80 value = 7 }
		command = { type = revoltrisk which = 40 value = 5 }
		command = { type = inflation value = 3 }
		command = { type = ADM which = -4 value = 240 }
	}
}[/COLOR]
#Zheng He Treasure Fleet Tribute Receiving Events by Sun_Zi

#Zheng He Treasure Fleet Tribute Receiving Events - Originally known provinces#
[COLOR=Yellow]event = {
	id = XXXX
	trigger = {
		relation = { country = NIP data = 150 }
		flag = treasure_fleet_voyages
	}
	random = no
	country = CHI
	name = "EVENTNAME147064" #Foreign Nations Admire Glorious Treasure Fleet
	desc = "EVENTHIST147064"
	#-#As the Treasure Fleet continued its expedition to display the glory of the Empire, and even after, foreign ambassadors were impressed and eager to pay tribute or gifts to the Ming Empire to establish good relations and trade with the Empire.

	date = { day = 1 month = may year = 1430 }
	offset = 720
	deathdate = { day = 1 month = june year = 1450 }

	action_a = {
		name = "ACTIONNAME147064A" #Tribute Received
		command = { type = treasury value = 10 }
		command = { type = relation which = NIP value = 15 }
	}
}[/COLOR]
[COLOR=Red]-snip-[/COLOR]
#End of "Naval Events"
#---------------------
 
Still need to figure out ids for the extra events. Don't know what is free.

Red = cut out
Yellow = New
Dim Gray = Removed

Le Loi events were reduced in RR because of the length of time at such high rates really makes that sequence not very fun to play. I kept it for the Lord of Han because its a short period of time.

Le Loi i replaced much of sleepevents with flags to reduce filesize for storage/transfer as well as loadtime.

Treasure Fleets i gave alternate paths. The choices vary a bit depending upon the choices they player makes.
 
Sorry, I had no time to answer your last post with needed attention.

Better use red for removal. Grey is very hard to read. Cut out are mostly descriptions (could have been replaced with just #-# since no change here).

In 147003, please use prefixed by 0 leader: 032307 and add #Wang Tong (CHI) at the end of the line.

Why change all offsets? They were fine to me.
For example, in 147006, offset = 1 was really intended. This event should fire ASAP when trigger is met.
In 147010 (but all others are involved), offset = 5 with corresponding trigger says event will fire between 1st and 5th August. With offset = 30, we had more variability: between 1st and 29th.
Events firing the first of the month (or the year) just annoy me when we don't know if date was really the 1st. And alas, too much events like this in EU2 and AGCEEP...

I'm against any change in offsets for all these sequences unless really important for event firing.

For 147005, year = 1433 in trigger is intended and should not be removed. Trigger with OR condition means "if war is too long or peace made for whatever reason, China failed and Vietnamese culture is too strong to be assimilated". This is tied to 147006 and to the "mission" of cultural assimilation. Five years to beat Dai Viet (ie. control the three provinces) is the challenge, not very hard for a player but...

About flag vs. sleepevent commands for gradual Pacification, IMHO, comment of the events was sufficient to understand when they will fire or not and all events are in a row for readibility of the whole sequence. Of course, use of flags makes events easier to read but only when they are not contiguous (and it is not the case here, on purpose).
Don't forget EU2 engine will still have to check if events can fire or not. With sleepevent command, EU2 don't have to because events are over for good.

Remember I'm not the author of +800 and such RR. I have no objection to see it lowered but testing is needed to see effects. Constant warfare against rebels was the goal. I'm not sure it will be enough with +20 "only". IMHO, even under 100, it should be more than +35 (hard to compare with Dutch revolts but, once again, we talk about assimilation and not only ownership and "nationalism"). Anyway "fun" to play or not is a very subjective argument. Some players like it, others don't. Players who don't like it can just release Dai Viet ASAP in 1421 and diplo-annex it later but won't benefit of the culture change. This is not a big deal an it is the almost the same with Dutch revolts after all.

Don't forget about +400 and +200 RR for other revolts ("Ye Zong Liu and Deng Mao Qi's Rebellion" and "Miao people Rebellion"). Consistency is needed then.

For Lord of Han, +800 RR was in order to save a tag.
I'm not sure about aristocracy. This revolt is not about the power of aristocracy but really centralization or decentralization in fact and local power, as I understand in provinces "autonomy". But I can't talk for Sun Zi here.

Nothing to say for Treasure fleet events. Good ideas.

First free id for China is 147051. See at the end of the events file.
 
YodaMaster said:
Why change all offsets? They were fine to me.
For example, in 147006, offset = 1 was really intended. This event should fire ASAP when trigger is met.
In 147010 (but all others are involved), offset = 5 with corresponding trigger says event will fire between 1st and 5th August. With offset = 30, we had more variability: between 1st and 29th.
Events firing the first of the month (or the year) just annoy me when we don't know if date was really the 1st. And alas, too much events like this in EU2 and AGCEEP...

I'm against any change in offsets for all these sequences unless really important for event firing.
Why i changed from 1 to 5 is to reduce cpu load. Many of them had rediculous offsets for only being able to fire once and their timeperiod was quite short.

I reduced the times for the others to bring them in line more-or-less with standards of most AGCEEP. Offset 5 does not mean it will fire between 1st and 5th. It means it will check the status every 5 days. So august 1st, auguest 6th, august 11th...This is why offsets dealing with control of a territory by another, unless there is a reason, have very low offsets.

Also any offset beyond 358 is meaningless. The CPU ignores it so i'm not sure why all the treasure fleet events have 720.
YodaMaster said:
For 147005, year = 1433 in trigger is intended and should not be removed. Trigger with OR condition means "if war is too long or peace made for whatever reason, China failed and Vietnamese culture is too strong to be assimilated". This is tied to 147006 and to the "mission" of cultural assimilation. Five years to beat Dai Viet (ie. control the three provinces) is the challenge, not very hard for a player but...
With such a short deathdate in 1433 its pointless virtually, especially with the high offset that was their earlier. I think if you want it for the war lasting to long either expand the deathdate or make the year 1432.
YodaMaster said:
About flag vs. sleepevent commands for gradual Pacification, IMHO, comment of the events was sufficient to understand when they will fire or not and all events are in a row for readibility of the whole sequence. Of course, use of flags makes events easier to read but only when they are not contiguous (and it is not the case here, on purpose).
Don't forget EU2 engine will still have to check if events can fire or not. With sleepevent command, EU2 don't have to because events are over for good.
not quite. The engine will still check them when loading. It does increase loadtime. As far as i know it will still check those events because they are "in memory" because the game loads up all associated text files.

Finally its not very good coding-wise, when you can reduce the loadtime and there isn't anything i've had confirmed about it not checking slept events (just that it won't let them fire).
YodaMaster said:
Remember I'm not the author of +800 and such RR. I have no objection to see it lowered but testing is needed to see effects. Constant warfare against rebels was the goal. I'm not sure it will be enough with +20 "only". IMHO, even under 100, it should be more than +35 (hard to compare with Dutch revolts but, once again, we talk about assimilation and not only ownership and "nationalism"). Anyway "fun" to play or not is a very subjective argument. Some players like it, others don't. Players who don't like it can just release Dai Viet ASAP in 1421 and diplo-annex it later but won't benefit of the culture change. This is not a big deal an it is the almost the same with Dutch revolts after all.
Constant warfare aginst the rebels might have been the goal, but with the new RR system its pointless. Better to let them stay rebel status. It actually reduces cost because you don't pay stability and you're not gaining income from those provinces even if you own them.
YodaMaster said:
Don't forget about +400 and +200 RR for other revolts ("Ye Zong Liu and Deng Mao Qi's Rebellion" and "Miao people Rebellion"). Consistency is needed then.
Those are short lived revolts. I see no problem there. Infact I am planning to use +1200 for japan in the new map (but only 1 province and only for less than 1 year). For that amount of time or close to there, super high RR is okay, because rebel bashing can actually make a differance to keep them from spawning endlessly and the rebels won't have that insane RR for long which means you can start seiging it so when the RR drops you'll be able to have it under your control.
YodaMaster said:
For Lord of Han, +800 RR was in order to save a tag.
I'm not sure about aristocracy. This revolt is not about the power of aristocracy but really centralization or decentralization in fact and local power, as I understand in provinces "autonomy". But I can't talk for Sun Zi here.
Well, then centralization should be upped to 9 because China starts at 9 already and most humans will move it to 10. There is only 1 event that lowers is (other than random) and that event choice is one few players would chose (the choices in the Le Loi sequence).
YodaMaster said:
First free id for China is 147051. See at the end of the events file.
ok. I'll wait before doing revisions to see what you and others might say.
 
Jinnai said:
Why i changed from 1 to 5 is to reduce cpu load. Many of them had rediculous offsets for only being able to fire once and their timeperiod was quite short.
You're right, players are warned to not make peace in description of first event of the sequence. No need to check every day.

Jinnai said:
I reduced the times for the others to bring them in line more-or-less with standards of most AGCEEP. Offset 5 does not mean it will fire between 1st and 5th. It means it will check the status every 5 days. So august 1st, auguest 6th, august 11th...This is why offsets dealing with control of a territory by another, unless there is a reason, have very low offsets.

Also any offset beyond 358 is meaningless. The CPU ignores it so i'm not sure why all the treasure fleet events have 720.
You forget that if trigger is true when checked, event will fire within offset. 358 and 720 (or higher) ar not ignored at all. Many events with high offset fire the first day when a game is reloaded but they were just with trigger=true and waiting for a random date within offset just before game was previously saved.
Anyway, with flags only being tested, trigger will always be true or false at first check (date) and,without any trigger, only offset will apply. 30 is thus better than 5 to have some flavour variance in Gradual Pacification and 720 (two years variance) is not bad for Treasure fleet.

Jinnai said:
With such a short deathdate in 1433 its pointless virtually, especially with the high offset that was their earlier. I think if you want it for the war lasting to long either expand the deathdate or make the year 1432.
No, if China is always at war with Dai Viet when last check of the trigger is done (offset + deathdate involved) without year condition, event will never fire but it should because China failed. That's why year condition is mandatory in this case. But offset could be raised from 1 to 5.

Jinnai said:
not quite. The engine will still check them when loading. It does increase loadtime. As far as i know it will still check those events because they are "in memory" because the game loads up all associated text files.

Finally its not very good coding-wise, when you can reduce the loadtime and there isn't anything i've had confirmed about it not checking slept events (just that it won't let them fire).
IMHO, it is not efficient to load in memory events marked as slept in savefile. Anyway, I think (but I have no idea) EU2 engine reads entire events files at each reload, slept events or not but slept events should be erased from memory just after. This is how I would have done as programmer.
But, if you're right, I see no difference between slept events and others and you just add lines of code to existing events (+ use of memory for three variables) when sequence was easy to understand as it was. Finally, I don't see the relation with associated text but, once again, you certainly know EU2 inside better than me. I have no idea how it works inside.

Jinnai said:
Constant warfare aginst the rebels might have been the goal, but with the new RR system its pointless. Better to let them stay rebel status. It actually reduces cost because you don't pay stability and you're not gaining income from those provinces even if you own them.
I'm not sure I understand correctly. Do you mean just let provinces rebels controlled with a tiny army on each province to not siege them? This won't prevent Dai Viet from revolting (and failure for China) if provinces are not retaken before it happens but rebels will arise next month a siege is ended. And, most of the time, provinces are rebels controlled.

Jinnai said:
Those are short lived revolts. I see no problem there. Infact I am planning to use +1200 for japan in the new map (but only 1 province and only for less than 1 year). For that amount of time or close to there, super high RR is okay, because rebel bashing can actually make a differance to keep them from spawning endlessly and the rebels won't have that insane RR for long which means you can start seiging it so when the RR drops you'll be able to have it under your control.
Ok and I know it is insane RR but is there other way to model constant warfare in EU2 without it?

Jinnai said:
Well, then centralization should be upped to 9 because China starts at 9 already and most humans will move it to 10. There is only 1 event that lowers is (other than random) and that event choice is one few players would chose (the choices in the Le Loi sequence).
Good point.
 
YodaMaster said:
You forget that if trigger is true when checked, event will fire within offset. 358 and 720 (or higher) ar not ignored at all. Many events with high offset fire the first day when a game is reloaded but they were just with trigger=true and waiting for a random date within offset just before game was previously saved.
Anyway, with flags only being tested, trigger will always be true or false at first check (date) and,without any trigger, only offset will apply. 30 is thus better than 5 to have some flavour variance in Gradual Pacification and 720 (two years variance) is not bad for Treasure fleet.
The engine ignores all numbers beyond 358. This is because the game automatically is set to check at the beginning of each year for multi-year events whatever the offset value. Thus making offsets above 358 (the number of days in an EU2 year) is pointless.

You are correct about the game checking conidtions upon reload. This is the same for many things, like explorers, conquistadors, etc.

And 30 will make it fire the same day on every month, no dates inbetween. This is why its a standardly used offset value. It's good for events that have long periods of time, like 20 years, but if you have 2 years its not quite as good. The only reason you'd have such a high offset would be if you:
  • You want to give rebels a chance to revolt
  • You want the event not to be likely to fire as another parrallel event or at all
  • You are just checking tech level or stability which generally only changes monthly
YodaMaster said:
No, if China is always at war with Dai Viet when last check of the trigger is done (offset + deathdate involved) without year condition, event will never fire but it should because China failed. That's why year condition is mandatory in this case. But offset could be raised from 1 to 5.
Ok so we keep the 1433 but change the offset. I can live with that then.
YodaMaster said:
IMHO, it is not efficient to load in memory events marked as slept in savefile. Anyway, I think (but I have no idea) EU2 engine reads entire events files at each reload, slept events or not but slept events should be erased from memory just after. This is how I would have done as programmer.
But, if you're right, I see no difference between slept events and others and you just add lines of code to existing events (+ use of memory for three variables) when sequence was easy to understand as it was. Finally, I don't see the relation with associated text but, once again, you certainly know EU2 inside better than me. I have no idea how it works inside.
Well it wasn't really all that easy for me. Yes, i understood it, but i was reminded of looking at the old Japanese Onin War files with a bunch of sleepcommands and triggers (the version still used in vanilla which even the author is unsure if it works). Use of flags is so much more easy to read, loads up less into memory, loads quicker (less lines). Tags are useful for things like this.
YodaMaster said:
I'm not sure I understand correctly. Do you mean just let provinces rebels controlled with a tiny army on each province to not siege them? This won't prevent Dai Viet from revolting (and failure for China) if provinces are not retaken before it happens but rebels will arise next month a siege is ended. And, most of the time, provinces are rebels controlled.
No.

It's easier to just pull out of Dai Vet provinces, let them revolt until they are taken over by rebels and stay that way. Less cost to stability and at such a high RR (really anything 30%+) you'll get nothing from the province by trying to keep it. Dai Vet also takes a while to revolt.

Also because of the high centralization of China it will take 42 months (43 if they player maxes out centralization) for them to revolt. That means he can afford to let them control that territory for several years at a time. Even then all he must do is successfully reset the revolts and pull out.
YodaMaster said:
Ok and I know it is insane RR but is there other way to model constant warfare in EU2 without it?
  • New nation
  • desertion events in said province
  • revolts w/o RR
That's it for provinces. constant high RR is no fun for the player. The lack of many (if any) Sengoku Jedai period Japan AARs shows this (all the AARs stop at that point for vanilla).

Either we'll have to completely rethink this scenerio up with an independant dai vet at war with China or we have to change the RR (which in turn makes those events that make multi-revolts more troublesome), or we'll need to make events that fire revolts in said provinces every few months (this would give the constant warfare, but give the player an incentive to station troops because RR wouldn't be enough to offset all the province income).

If we did the latter i'd redo Dai Vet provinces to have nationalism till the appropriate date and then a bunch of revolt events would need to be scripted. Le Loi's revolt would then add extra RR, but not much, because we'd want the main driver of revolts to be events and have the player be able to have some incentive to station troops.
 
YodaMaster said:
You forget that if trigger is true when checked, event will fire within offset. 358 and 720 (or higher) ar not ignored at all. Many events with high offset fire the first day when a game is reloaded but they were just with trigger=true and waiting for a random date within offset just before game was previously saved.

How can you tell? IMO it can not be true, in save file only "history" is noted.

It is true that when you reload some events with long offset fire, however I think that they are "tossed" again (if trigger is met) and they just get offset zero. I have noticed that you can get different set of such events with each reloading. It is especially visible during reformation. Each time you can see several "privince converted to" mesages, and different provinces are hit.
 
Well, it's obvious. If event is not in history (already happened or slept). It will be checked at reload and will eventually fire the first day. To be more precise, if trigger is true at reload, it was true just before saving:
1) true at last check and only waiting for random date within offset
or
2) false at last check and waiting for next check but with trigger becoming true since last check
 
YodaMaster said:
Well, it's obvious. If event is not in history (already happened or slept). It will be checked at reload and will eventually fire the first day. To be more precise, if trigger is true at reload, it was true just before saving:
1) true at last check and only waiting for random date within offset
or
2) false at last check and waiting for next check but with trigger becoming true since last check


:eek:o I was thinking about sth else (trigger was not met during last checkup, but is true when saved)
 
So either of you (or someone else) like my proposal for Dai Vet of removing RR (except nationalism) and just scripting events to fire every few months. When Le Loi comes in we can add a 1-2% additional RR depending on event choices as well.