• 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.

unmerged(2456)

Pure Evil Genius
Mar 29, 2001
11.211
0
www.hero6.com
I will start out with the chinese revolters:
Code:
[color=blue]
U11 = { # Dai Shun
	date = { day = 1 month = january year = 1644 }
	expirydate = { day = 31 month = december year = 1700 }
	minimum = { 1558 }
	extra = { 1559 1556 1563 1566 }
	capital = 1588
	group = china
	ai = "china_conquest.ai"
	}
U12 = { # Dai Xi
	date = { day = 1 month = november year = 1644 }
	expirydate = { day = 31 month = december year = 1700 }
	minimum = { 1563 }
	extra = { 1559 1556 1563 1564 1565 1566 1567 }
	capital = 1563
	group = china
	ai = "china_conquest.ai"
	}
U13 = { # Zhou
	date = { day = 1 month = january year = 1640 }
	expirydate = { day = 31 month = december year = 1688 }
	minimum = { 1556 }
	extra = {  }
	capital = 1556
	group = china
	ai = "china_conquest.ai"
	}
[/color]
 
Code:
[color=blue]
#
# Europa Universalis. French AI
#
 
# 100 = Total warmonger, 0 = absolute pacifist
war = 100

# To determine if we fight to the death or not.
ferocity = yes

# The amount of provinces we try to colonize at the same time
expansion = 0

#Which countries to conquer if possible. (to guide nation historically)
combat = { CHI MCH U11 U12 U13 U14 }

#How important is it to gather troops close to base
base = 1.0

#How important is it to be as close to target position when gathering troops.
front = 1.0

#Evaluation factors for conquer plans 
conquer = 
{ 
	# multiply enemy province value 
	enemy = 2.0 
	# multiplying supply factor 
	supply = 1.0 
	# factor for distance to not owner provinces 
	distance = 1.0 
	# factor for owned provines 
	owner = 2.0 
	# Multiplier for provinces not in supply. 
	notsupply = 1.0 
	# Multiplying the base constant for conquer. 
	base = 5.0 
} 

# Modifiers for garrison plans 
garrison = 
{ 
	fortress = 1.0 
	strategic = 1.0 
	size = 1.0 
	supply = 1.0 
	war = 1.0 
}
[/color]
 
Have you tried this with ferocity =yes? I understand why it's in there, I'm just not sure how well it will work.


Actually we ought to do the same with other revolters - FUC, FPR, PUR, ROY.

Also we probably need to add U11-U14 to the China.ai file.
 
next i will be working on some events for switching China to Southern Ming Tag as soon as the last revolter, Zhou, revolts via event.

I just wish there was a way to make it so you couldn't release them as vassals.
 
yea U11-14 will need to be added.

As far as ferocity = yes, i know what you're saying, but these rebels had nothing left to loose when they broke off. They were after Peking and the Chinese throne, not there own country. If they couldn't claim the throne, they knew there days were numbered.
 
great, nice to see there is progress. i think it's a good idea to continue corresponding both here and through email so we dont bore people with the whole process of working out stuff while allowing them to comment on work that is already somewhat worked out.
Originally posted by Jinnai
next i will be working on some events for switching China to Southern Ming Tag as soon as the last revolter, Zhou, revolts via event.
i m thinking whether this is necessary. the question is how to define when the Manchus has really displaced Ming into southern Ming and gets the CHI tag. the point of having southern ming at all is so that if Manchu has conquered all except a few unimportant provinces owned by China, it still should officially be recognised as having inherited the crown of China. (EDIT: as in my reply to your email, the trigger should be when Manchu gets control of all provinces 649 650 651 652 653 655 1562 1563 1564 1565 1567) Historically, when Zhou revolted, the Manchus had conquered pretty much all of China except some unimportant places held by forces loyal to Ming. So i guess that means the tag switching should occur before Zhoud revolts.

Originally posted by Jinnai
I just wish there was a way to make it so you couldn't release them as vassals.
it would be great if u could do that. the line revolt = no should be added to the Zhou revolt file, since it's not a peasant led rebellion.

as for ferocity = yes, i think there just could be a possibility that if niether forces competing for the crown of China could successfully overcome the others after a prolonged period of time, (say 30 years), there could be a truce resulting in a divided China. total warmonger might be sufficient for that. so ferocity should be no.

i dont really understand the AI settings except the first 4 lines, so cant comment on those.
 
Last edited:
Looks promising this stuff. About ferocity setting, Jinnai has a point about having it set to yes, as we all know this a rather extreme measure. Wouldn't warmonger make them aggressive against all other nations as well, perhaps even declaring new wars? Sun_Zi_36's idea for a change after 30 years (?) might best be implemented in that they change to a more peaceful AI, if they are at peace with China.
 
Originally posted by Jinnai
revolt = no may make it unable to revolt via events also and only be released as a vassal.
really? but thats not what i've heard.

total warmonger isnt that bad, since if China is having internal wars, it is often the case historically that they will lose border areas to neighbouring states, plus sometimes the Chinese states would ally with foreign states to eliminate the internal enemies. switching AI is actually not a bad idea. but even if we switch AI, i dont think the Chinese states should fight to death for 30 years. in fact the Zhou tried to divide China by making a truce with Qing China after only a few years of starting the revolt. but Zhou should be treated differently in any case, coz it wasnt really the intention of the Zhou rulers to overthrown the Qing. Perhaps only Southern Ming should have ferocity set to yes.

well, we r starting to go into complicated stuff, which goes against my original intention that these changes should only be preliminary, coz i dont have enough time to think about specific stuff so as to give ideas to Jinnai about how to simulate them. All the conditions that set the stage for the revolts need to be reworked anyway, (instead of having merely a date trigger), that would be a great change and requires some time to think about. i will probably have more time in a few weeks, but i think we should go ahead with these preliminary changes first, and consider everything else later.

at the moment, i dont think AI switch is necessary, except perhaps for Southern Ming. all conquests should happen within a few years anyway (the Manchu took over China in less than 2 years). i think it's sufficient for the moment to set for all other states warmongering = 95 (?). only set ferocity to yes for southern Ming initially if it's AI is going to switch. if possible, set AI so that it would as likely to assault as possible.
 
Code:
[color=blue]
event = {
	id =
	trigger = {
		control  = { province = 649 data = -1 }
		control  = { province = 650 data = -1 }
		control  = { province = 651 data = -1 }
		control  = { province = 652 data = -1 }
		control  = { province = 653 data = -1 }
		control  = { province = 654 data = -1 }
		control  = { province = 655 data = -1 }
		control  = { province = 1562 data = -1 }
		control  = { province = 1563 data = -1 }
		control  = { province = 1564 data = -1 }
		control  = { province = 1565 data = -1 }
		control  = { province = 1567 data = -1 }
		owned  = { province = 649 data = -1 }
		owned  = { province = 650 data = -1 }
		owned  = { province = 651 data = -1 }
		owned  = { province = 652 data = -1 }
		owned  = { province = 653 data = -1 }
		owned  = { province = 654 data = -1 }
		owned  = { province = 655 data = -1 }
		owned  = { province = 1562 data = -1 }
		owned  = { province = 1563 data = -1 }
		owned  = { province = 1564 data = -1 }
		owned  = { province = 1565 data = -1 }
		owned  = { province = 1567 data = -1 }
		countrysize = 16
		NOT = { exist = CHI }
	}
	random = no
	country = MCH
	name = "Claiming the Imperial Throne"
	description = "With the sucessful capture and control of the core porvinces of mainland China, the monarchy of Manchu nation declares himself the new legitimate Emperor of China."
	style = 2
	
	action_a = {
		name = "Long live the Emperor!"
		command = { type = stability value = 1 }
		command = { type = capital which = 649 }
		command = { type = addcore  which = 649 }
		command = { type = addcore  which = 650 }
		command = { type = addcore  which = 651 }
		command = { type = addcore  which = 652 }
		command = { type = addcore  which = 653 }
		command = { type = addcore  which = 654 }
		command = { type = addcore  which = 655 }
		command = { type = addcore  which = 1562 }
		command = { type = addcore  which = 1563 }
		command = { type = addcore  which = 1564 }
		command = { type = addcore  which = 1565 }
		command = { type = addcore  which = 1567 }
		command = { type = country which = CHI }
		}
	}

event = {
	id =
	trigger = {
		control  = { province = 649 data = -1 }
		control  = { province = 650 data = -1 }
		control  = { province = 651 data = -1 }
		control  = { province = 652 data = -1 }
		control  = { province = 653 data = -1 }
		control  = { province = 654 data = -1 }
		control  = { province = 655 data = -1 }
		control  = { province = 1562 data = -1 }
		control  = { province = 1563 data = -1 }
		control  = { province = 1564 data = -1 }
		control  = { province = 1565 data = -1 }
		control  = { province = 1567 data = -1 }
		owned  = { province = 649 data = -1 }
		owned  = { province = 650 data = -1 }
		owned  = { province = 651 data = -1 }
		owned  = { province = 652 data = -1 }
		owned  = { province = 653 data = -1 }
		owned  = { province = 654 data = -1 }
		owned  = { province = 655 data = -1 }
		owned  = { province = 1562 data = -1 }
		owned  = { province = 1563 data = -1 }
		owned  = { province = 1564 data = -1 }
		owned  = { province = 1565 data = -1 }
		owned  = { province = 1567 data = -1 }
		countrysize = 16
		NOT = { exist = CHI }
	}
	random = no
	country = U11
	name = "Claiming the Imperial Throne"
	description = "With the sucessful capture and control of the core porvinces of mainland China, the monarchy of rebel Dai Shun nation declares himself the new legitimate Emperor of China."
	style = 2
	
	action_a = {
		name = "Long live the Emperor!"
		command = { type = stability value = 1 }
		command = { type = capital which = 649 }
		command = { type = addcore  which = 649 }
		command = { type = addcore  which = 650 }
		command = { type = addcore  which = 651 }
		command = { type = addcore  which = 652 }
		command = { type = addcore  which = 653 }
		command = { type = addcore  which = 654 }
		command = { type = addcore  which = 655 }
		command = { type = addcore  which = 1562 }
		command = { type = addcore  which = 1563 }
		command = { type = addcore  which = 1564 }
		command = { type = addcore  which = 1565 }
		command = { type = addcore  which = 1567 }
		command = { type = country which = CHI }
		}
	}

event = {
	id =
	trigger = {
		control  = { province = 649 data = -1 }
		control  = { province = 650 data = -1 }
		control  = { province = 651 data = -1 }
		control  = { province = 652 data = -1 }
		control  = { province = 653 data = -1 }
		control  = { province = 654 data = -1 }
		control  = { province = 655 data = -1 }
		control  = { province = 1562 data = -1 }
		control  = { province = 1563 data = -1 }
		control  = { province = 1564 data = -1 }
		control  = { province = 1565 data = -1 }
		control  = { province = 1567 data = -1 }
		owned  = { province = 649 data = -1 }
		owned  = { province = 650 data = -1 }
		owned  = { province = 651 data = -1 }
		owned  = { province = 652 data = -1 }
		owned  = { province = 653 data = -1 }
		owned  = { province = 654 data = -1 }
		owned  = { province = 655 data = -1 }
		owned  = { province = 1562 data = -1 }
		owned  = { province = 1563 data = -1 }
		owned  = { province = 1564 data = -1 }
		owned  = { province = 1565 data = -1 }
		owned  = { province = 1567 data = -1 }
		countrysize = 16
		NOT = { exist = CHI }
	}
	random = no
	country = U12
	name = "Claiming the Imperial Throne"
	description = "With the sucessful capture and control of the core porvinces of mainland China, the monarchy of rebel Dai Xi nation declares himself the new legitimate Emperor of China."
	style = 2
	
	action_a = {
		name = "Long live the Emperor!"
		command = { type = stability value = 1 }
		command = { type = capital which = 649 }
		command = { type = addcore  which = 649 }
		command = { type = addcore  which = 650 }
		command = { type = addcore  which = 651 }
		command = { type = addcore  which = 652 }
		command = { type = addcore  which = 653 }
		command = { type = addcore  which = 654 }
		command = { type = addcore  which = 655 }
		command = { type = addcore  which = 1562 }
		command = { type = addcore  which = 1563 }
		command = { type = addcore  which = 1564 }
		command = { type = addcore  which = 1565 }
		command = { type = addcore  which = 1567 }
		command = { type = country which = CHI }
		}
	}

event = {
	id =
	trigger = {
		control  = { province = 649 data = -1 }
		control  = { province = 650 data = -1 }
		control  = { province = 651 data = -1 }
		control  = { province = 652 data = -1 }
		control  = { province = 653 data = -1 }
		control  = { province = 654 data = -1 }
		control  = { province = 655 data = -1 }
		control  = { province = 1562 data = -1 }
		control  = { province = 1563 data = -1 }
		control  = { province = 1564 data = -1 }
		control  = { province = 1565 data = -1 }
		control  = { province = 1567 data = -1 }
		owned  = { province = 649 data = -1 }
		owned  = { province = 650 data = -1 }
		owned  = { province = 651 data = -1 }
		owned  = { province = 652 data = -1 }
		owned  = { province = 653 data = -1 }
		owned  = { province = 654 data = -1 }
		owned  = { province = 655 data = -1 }
		owned  = { province = 1562 data = -1 }
		owned  = { province = 1563 data = -1 }
		owned  = { province = 1564 data = -1 }
		owned  = { province = 1565 data = -1 }
		owned  = { province = 1567 data = -1 }
		countrysize = 16
		NOT = { exist = CHI }
	}
	random = no
	country = U13
	name = "Claiming the Imperial Throne"
	description = "With the sucessful capture and control of the core porvinces of mainland China, the monarchy of rebel Zhou nation declares himself the new legitimate Emperor of China."
	style = 2
	
	action_a = {
		name = "Long live the Emperor!"
		command = { type = stability value = 1 }
		command = { type = capital which = 649 }
		command = { type = addcore  which = 649 }
		command = { type = addcore  which = 650 }
		command = { type = addcore  which = 651 }
		command = { type = addcore  which = 652 }
		command = { type = addcore  which = 653 }
		command = { type = addcore  which = 654 }
		command = { type = addcore  which = 655 }
		command = { type = addcore  which = 1562 }
		command = { type = addcore  which = 1563 }
		command = { type = addcore  which = 1564 }
		command = { type = addcore  which = 1565 }
		command = { type = addcore  which = 1567 }
		command = { type = country which = CHI }
		}
	}

event = {
	id =
	trigger = {
		control  = { province = 649 data = -1 }
		control  = { province = 650 data = -1 }
		control  = { province = 651 data = -1 }
		control  = { province = 652 data = -1 }
		control  = { province = 653 data = -1 }
		control  = { province = 654 data = -1 }
		control  = { province = 655 data = -1 }
		control  = { province = 1562 data = -1 }
		control  = { province = 1563 data = -1 }
		control  = { province = 1564 data = -1 }
		control  = { province = 1565 data = -1 }
		control  = { province = 1567 data = -1 }
		owned  = { province = 649 data = -1 }
		owned  = { province = 650 data = -1 }
		owned  = { province = 651 data = -1 }
		owned  = { province = 652 data = -1 }
		owned  = { province = 653 data = -1 }
		owned  = { province = 654 data = -1 }
		owned  = { province = 655 data = -1 }
		owned  = { province = 1562 data = -1 }
		owned  = { province = 1563 data = -1 }
		owned  = { province = 1564 data = -1 }
		owned  = { province = 1565 data = -1 }
		owned  = { province = 1567 data = -1 }
		countrysize = 16
		NOT = { exist = CHI }
	}
	random = no
	country = U14
	name = "Claiming the Imperial Throne"
	description = "The displaced ruler of the Ming Dynasty through careful warfare, diplomacy and other various means is able to once again claim to be the legitimate Emperor of China."
	style = 2
	
	action_a = {
		name = "Long live the Emperor!"
		command = { type = stability value = 1 }
		command = { type = capital which = 649 }
		command = { type = addcore  which = 649 }
		command = { type = addcore  which = 650 }
		command = { type = addcore  which = 651 }
		command = { type = addcore  which = 652 }
		command = { type = addcore  which = 653 }
		command = { type = addcore  which = 654 }
		command = { type = addcore  which = 655 }
		command = { type = addcore  which = 1562 }
		command = { type = addcore  which = 1563 }
		command = { type = addcore  which = 1564 }
		command = { type = addcore  which = 1565 }
		command = { type = addcore  which = 1567 }
		command = { type = country which = CHI }
		}
	}

event = {
	id =
	trigger = { OR = {
			control { province = 649 data = MCH }
			control { province = 649 data = U11 }
			control { province = 649 data = U12 }
			control { province = 649 data = U13 }
			control { province = 649 data = U14 }
			}
	random = no
	country = CHI
	name = "Fall of Peking"
	desc = "With the fall of the capital of China, both the divinity of the Emperor is in question as well as the security of country as a whole. We must regroup elsewhere or suffer the consiquences."
	style = 2

	action_a = {
		name = "We cannot hold Peking!"
		command = { type = stability value = -3 }
		command = { type = capital which = 1567 }
		command = { type = revoltrisk which = 3 value = 2 }
		command = { type = revolt which = -1 }
		command = { type = revolt which = -1 }
		command = { type = revolt which = -1 }
		command = { type = vp value = -50 }
		}

	action_b = {
		name = "The Imperial Throne will not move!"
		command = { type = stability value = -2 }
		command = { type = revoltrisk which = 18 value = 4 }
		command = { type = province_revoltrisk which = -2 value 3 }
		command = { type = revolt which = -1 }
		command = { type = revolt which = -1 }
		command = { type = revolt which = -1 }
		}
	}
[/color]
Far from final form, but letting you know i'm still working on this and showing you what i got so you can make suggestions.
 
i m not sure about trigger owned. that essentially means that there has to be a concluded peace before the throne is claimed. IMO that should not be necessary. the mere fact that (Ming) China has lost control of all of its most important provinces meant that it would be regarded as having lost the mandate of heaven. so the original China need not be completely eliminated (the exist trigger). IMO, the critical thing is not whether the rebels are claiming the throne (they all would have been claiming even at the start of rebellion), it's whether they have controlled enough of China to be objectively regarded as having obtained legitimacy. that means all the minors except manchuria should already get shields on all of China once they revolt. and the descriptions should be modified somewhat.

if the original China need not be eliminated, it may cause errors trying to switch into the CHI tag immediately. a solution is perhaps to delete that command first, add a command that triggers event for CHI, write an event for CHI displacing it into Southern Ming (or other minors in case of comebacks made by any minor). only when the CHI is displaced should a new event be triggered that switches the minor to CHI tag.

actually, there is another solution that may be more simple. that is, make one event for (Ming) China being displaced into Southern Ming first. the trigger being either minors controlling all those provinces, ie, the list of control triggers for each minor separated by OR, and the command being displacing the tag into Southern Ming. then, all you have to do is add the trigger that "the event that i just mentioned has happened" in the event for each minor that switches them to the CHI tag.
 
the problem with merely using control, is it is easily lost. Therefore we could have contant shifting back and forth between someone declaring themselves Emperor, only to be displaced within a few months, only to regain the need province again.

But my next task, will be the most difficult. I will be setting the framework for the mulitple China's so that if Dai Xi becomes China and looses its status it reverts to Dai Xi, not Ming. This will be a most daunting task. Doable, but very complex so don't expect to hear from me for a few days on this.
 
it is not easily lost. that is bcoz to control all the 12 mandatory provinces plus any 4 other provinces is already a high requirement. the thing you seemed to have overlooked is, once you gained control of those 16 provinces, you do not lose the status of being recognised as China even if you dont control any of the 12 mandatory provinces, provided no one minor is able to control all 12. they need to meet that same requirement in order to displace you, you do not displace yourself by failing that requirement.

Again i stress that it is not a matter of whether someone is declaring themselves emperor. Historically, all the revolters had declared themselves Emperors (Huang Di) with size as little as only one province on the EU map.

i think it'd be better also to add a trigger in the event that stability is 1 or above.

yea, good luck in your next task. i think the easiest way to check which minor to displace back to is to use the trigger checking for the event that previously made the minor China, as i told you in the last email.
 
I think this is turning into a very elegant sequence. Basically what you're proposing is a one-off. If enough minors exist, China changes into a minor, (and should change ai to ferocity=yes) and we have no China until one of the minors emerges from the mess. This can only happen once but I think it's alright.

A nice idea. I'll be interested in how it works.
 
well, it's not really one off. even if the minor successfully becomes China, it could lose that status once again if other minors (even the one that was originally China) made a comeback against it. (thats what Jinnai is working on right now). thats the whole point of "the crown of China" events, each side compete for legitimacy with the mandate of heaven. read the old EEP China thread or the AGC China thread for the original ideas.
 
Code:
[color=blue]
event = {
	id = {147006
	trigger = { OR = {
			control = { province = -1 data = MCH }
			control = { province = -1 data = U11 }
			control = { province = -1 data = U12 }
			control = { province = -1 data = U13 }
			control = { province = -1 data = U14 }
			control = { province = -1 data = REB }
			}
		OR = {
			neighbour = MCH
			neighbour = U11
			neighbour = U12
			neighbour = U13
			neighbour = U14
			}
		NOT = { 
			countrysize = 12
			stability = 2
			}
		event = 14700
		}
	random = no
	country = CHI
	name = "Loss of the Divine Providence"
	desc = "As the war and open rebellion continue within China, the Emperor's legitimacy slowly wears away until only himself and a few loyal members still recognize him as the true ruler of the Middle Kingdom."
	style = 2

	action_a = {
		name = "I am still the true emperor!"
		command = { type = stability value = -1 }
		command = { type = country  which = MCH }
		command = { type = sleepevent which = 147006 }
		}
	}

event = {
	id = {147007
	trigger = { OR = {
			control = { province = -1 data = MCH }
			control = { province = -1 data = U11 }
			control = { province = -1 data = U12 }
			control = { province = -1 data = U13 }
			control = { province = -1 data = U14 }
			control = { province = -1 data = REB }
			}
		OR = {
			neighbour = MCH
			neighbour = U11
			neighbour = U12
			neighbour = U13
			neighbour = U14
			}
		NOT = { 
			countrysize = 12
			stability = 2
			}
		event = 14701
		}
	random = no
	country = CHI
	name = "Loss of the Divine Providence"
	desc = "As the war and open rebellion continue within China, the Emperor's legitimacy slowly wears away until only himself and a few loyal members still recognize him as the true ruler of the Middle Kingdom."
	style = 2

	action_a = {
		name = "I am still the true emperor!"
		command = { type = stability value = -1 }
		command = { type = country  which = U11 }
		command = { type = sleepevent which = 147007 }
		}
	}

event = {
	id = {147008
	trigger = { OR = {
			control = { province = -1 data = MCH }
			control = { province = -1 data = U11 }
			control = { province = -1 data = U12 }
			control = { province = -1 data = U13 }
			control = { province = -1 data = U14 }
			control = { province = -1 data = REB }
			}
		OR = {
			neighbour = MCH
			neighbour = U11
			neighbour = U12
			neighbour = U13
			neighbour = U14
			}
		NOT = { 
			countrysize = 12
			stability = 2
			}
		event = 14702
		}
	random = no
	country = CHI
	name = "Loss of the Divine Providence"
	desc = "As the war and open rebellion continue within China, the Emperor's legitimacy slowly wears away until only himself and a few loyal members still recognize him as the true ruler of the Middle Kingdom."
	style = 2

	action_a = {
		name = "I am still the true emperor!"
		command = { type = stability value = -1 }
		command = { type = country  which = U12 }
		command = { type = sleepevent which = 147008 }
		}
	}

event = {
	id = {147009
	trigger = { OR = {
			control = { province = -1 data = MCH }
			control = { province = -1 data = U11 }
			control = { province = -1 data = U12 }
			control = { province = -1 data = U13 }
			control = { province = -1 data = U14 }
			control = { province = -1 data = REB }
			}
		OR = {
			neighbour = MCH
			neighbour = U11
			neighbour = U12
			neighbour = U13
			neighbour = U14
			}
		NOT = { 
			countrysize = 12
			stability = 2
			}
		event = 14703
		}
	random = no
	country = CHI
	name = "Loss of the Divine Providence"
	desc = "As the war and open rebellion continue within China, the Emperor's legitimacy slowly wears away until only himself and a few loyal members still recognize him as the true ruler of the Middle Kingdom."
	style = 2

	action_a = {
		name = "I am still the true emperor!"
		command = { type = stability value = -1 }
		command = { type = country  which = U13 }
		command = { type = sleepevent which = 147009 }
		}
	}

event = {
	id = {147010
	trigger = { OR = {
			control = { province = -1 data = MCH }
			control = { province = -1 data = U11 }
			control = { province = -1 data = U12 }
			control = { province = -1 data = U13 }
			control = { province = -1 data = U14 }
			control = { province = -1 data = REB }
			}
		OR = {
			neighbour = MCH
			neighbour = U11
			neighbour = U12
			neighbour = U13
			neighbour = U14
			}
		NOT = { 
			countrysize = 12
			stability = 2
			}
		event = 14704
		}
	random = no
	country = CHI
	name = "Loss of the Divine Providence"
	desc = "As the war and open rebellion continue within China, the Emperor's legitimacy slowly wears away until only himself and a few loyal members still recognize him as the true ruler of the Middle Kingdom."
	style = 2

	action_a = {
		name = "I am still the true emperor!"
		command = { type = stability value = -1 }
		command = { type = country  which = U14 }
		command = { type = sleepevent which = 147010 }
		}
	}
[/color]
NOTE TO ALL: THESE EVENTS ARE TEMPLATE EVENTS ONLY.

Ok i've gone and id'd all the events i have using China's reserved event tags. It really is ness as this can become quite confusing.

Anyway what i have right now will allow each country 2 chances to become china. If they fall once, they will have another chance which will make them stay china until the end of there reign.

I can theoretically make multiple events for each of them like those listed which triggers that event X has not happened and that event X has. So 140011 would be a repeat of 140006, except it would have a trigger that 140006 has already happened.

Right now this is the best way i can think of, but there prob is a better way. I'll be working on adding/subtracting core provinces from each nation when they become china and when they loose the throne. Then redoing the dynastical lines.
 
the colour u r using is pretty hard to read (i need to highlight it so it becomes easier to read) could u change to some better colour next time (like silver or firebrick etc)?

comments:
is the bracket in front of the id a mistake? plus, whats the sleepevent command for (they r sleeping themselves)?

lastly, and most importantly, is the triggers and relating the "loss" events with the "gain" events. if we are making a set of events for minors to gain the CHI tag and another set of events for CHI to lose back into a minor, they must not be completely separate and unrelated. if we do not link them with triggers severe problems will arise that will make the situation a complete mess. Some countries may not fall below the trigger for losing the tag when another country has already met the trigger for gaining the tag, therefore there could be multiple countries trying to occupy the CHI tag, making "gain" events fire but completely ineffectively, wasting the limited chances to gain the tag. also, some countries may fall below the losing trigger when no other country has met the trigger to gain the tag, therefore there could be no country who occupy the CHI for long periods of time.

Taking the triggers as they currently are as an example, the first situation will arise if Manchuria successfully conquered most of China, and gains the CHI tag, but then was beaten back by a minor such that the minor controlled the mandatory provinces. the event should fire for the minor to gain the tag. But Manchuria might still have control of more than 12 provinces outside central China, so it does not lose the tag while the event for the minor to gain the tag is firing. since the gain event for the minor has fired (ineffectively), if the minor then loses control of a few provinces (<12), the loss event for the minor could very well fire (loss of legitimacy occurring there was no effective legitimacy to start with). Worse still, if the minor then again gains back those 2 or 3 provinces lost, the 2nd event to gain the tag will again fire ineffectively. all the chances to gain the tag will then be wasted without ever gaining the tag. The second situation is even more common. a minor gains control of central China and the tag, but then was reduced to less than 12 provinces (lost the tag) with different minors controlling central China (noone gains the tag). that situation might continue for a long time.

in addition, there is the historical issue. there should always be one and only one dynasty recognised as legitimate. once recognised as legitimate, its status is solid and supreme, should be very hard to displace. to avoid all the mess, i suggest either impose triggers in the loss events only or in the gain events only. imposing in the loss events only is the most convenient, since the the CHI tag need to be displaced first anyhow. so the trigger for losing the tag should be as follows:
Code:
[color=silver]
	trigger = {
		OR = {
			AND = {
				control  = { province = 649 data = MCH }
				control  = { province = 650 data = MCH }
				control  = { province = 651 data = MCH }
				control  = { province = 652 data = MCH }
				control  = { province = 653 data = MCH }
				control  = { province = 654 data = MCH }
				control  = { province = 655 data = MCH }
				control  = { province = 1562 data = MCH }
				control  = { province = 1563 data = MCH }
				control  = { province = 1564 data = MCH }
				control  = { province = 1565 data = MCH }
				control  = { province = 1567 data = MCH }
			AND = {
				control  = { province = 649 data = U11 }
				control  = { province = 650 data = U11 }
				control  = { province = 651 data = U11 }
				control  = { province = 652 data = U11 }
				control  = { province = 653 data = U11 }
				control  = { province = 654 data = U11 }
				control  = { province = 655 data = U11 }
				control  = { province = 1562 data = U11 }
				control  = { province = 1563 data = U11 }
				control  = { province = 1564 data = U11 }
				control  = { province = 1565 data = U11 }
				control  = { province = 1567 data = U11 }
			AND = {
					.
					.
					.
					.
					.

#continue this trigger pattern (control of cenrtral China provinces)
 for all other minors U12, U13, etc, (of course, except the one u
 are going to be displaced to). it will be a large trigger. in this 
case, a countrysize trigger should not be used. if used, it should 
be very lenient, like countrysize less than 20 provinces. a stability 
trigger would also be good, but also should be lenient, like 
stability is less than 2. then, of course, add in the trigger that the 
event of the previous gaining event for the minor has happened 
(except for the first loss event when Ming fell).

#the triggers for the gain events then, will only need to be that
 the minor has gained control of all mandatory provinces, plus, 
most importantly, any one of the fall events for the other minors 
as happened. any other trigger should not be added. this way, a 
gain event will always happen immediately after a fall event has 
happened, because it is always assessed by one critieria.

#there should also be an event made in case CHI is eliminated 
but no minor has met the criteria. we could think about the
 triggers for that later.[/color]

the most desirable trigger for tag switching to occur is actually to impose a time delay after the minor controlled central China. so the minor must control central China for a set period to displace the tag, which i dunno if it's possible. actually, it might be possible thru the combination of using date, offset and the year trigger, but thats very complicated and revolutionary, i will try and find out more about that.
 
Last edited:
Originally posted by Sun_Zi_36
lastly, and most importantly, is the triggers and relating the "loss" events with the "gain" events. if we are making a set of events for minors to gain the CHI tag and another set of events for CHI to lose back into a minor, they must not be completely separate and unrelated. if we do not link them with triggers severe problems will arise that will make the situation a complete mess. Some countries may not fall below the trigger for losing the tag when another country has already met the trigger for gaining the tag, therefore there could be multiple countries trying to occupy the CHI tag, making "gain" events fire but completely ineffectively, wasting the limited chances to gain the tag. also, some countries may fall below the losing trigger when no other country has met the trigger to gain the tag, therefore there could be no country who occupy the CHI for long periods of time.

Taking the triggers as they currently are as an example, the first situation will arise if Manchuria successfully conquered most of China, and gains the CHI tag, but then was beaten back by a minor such that the minor controlled the mandatory provinces. the event should fire for the minor to gain the tag. But Manchuria might still have control of more than 12 provinces outside central China, so it does not lose the tag while the event for the minor to gain the tag is firing. since the gain event for the minor has fired (ineffectively), if the minor then loses control of a few provinces (<12), the loss event for the minor could very well fire (loss of legitimacy occurring there was no effective legitimacy to start with). Worse still, if the minor then again gains back those 2 or 3 provinces lost, the 2nd event to gain the tag will again fire ineffectively. all the chances to gain the tag will then be wasted without ever gaining the tag. The second situation is even more common. a minor gains control of central China and the tag, but then was reduced to less than 12 provinces (lost the tag) with different minors controlling central China (noone gains the tag). that situation might continue for a long time.
K, read the events...i already took care of that. The events that form China from the rebels require china not exist. If china exists, the event won't fire.

in addition, there is the historical issue. there should always be one and only one dynasty recognised as legitimate. =snip=
Correct. If, any at all. My event trigger Not = { exist = CHI } in the formation of a Chinese nation makes sure of this.
 
the trigger that requires China doesnt exist should be removed. as i said, there could be a long period of time between CHI tag is lost and CHI tag is gained (or it could never occur). this poses problems if all historical events only happen under the CHI tag and all dynastic monarch lines depend on the CHI tag. plus again, the historical issue, there should always be one dynasty recognised as China.
 
dynastical lines don't matter if china was gone for 1 day or 1 century....its just a bunch of wakemonarch/sleepmonarch commands.

Reguardless, events will haveto be redone to take into account that China may not be in existance as a legitimate nation when any of the historical events occur.