• 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(5110)

Field Marshal
Jul 29, 2001
4.432
0
tse.dyndns.org
I'm having trouble to get some events for China to fire. Although they do meet the conditions, the triggers do not activate.

The wierd thing is though, that if you save and quit and reload, the events immediately fire. I am not sure what's wrong. BTW, these events are for AoN, but I haven't been getting much help from there, so I'm posting the event here to see if you guys can help any.

Here are events 16492 and 16495:

Code:
#20 Jan 1841: The Opium War - Convention of Chuanbi# 
event = { 
	id = 16492 
	random = no 
	country = CHI 
	name = "Convention of Chuanbi" 
	desc = "On January 7 1841, the British captured the two forts at the Bogue entrance. Qishan, the Manchu official who replaced Commissioner Lin, who saw that the way was then open to Guangzhou, agreed on January 20 1841 to sign the Convention of Chuanbi. By this convention the island of Hong Kong was to be ceded to the British Crown, though all duties payable there were to belong to China. The convention was also to provide for compensation to be paid for the opium destroyed by Commissioner Lin and there was to be intercourse on an equal footing between Great Britain and the Middle Kingdom. The Emperor was not at all pleased with these terms." 
	style = 1 
	deathdate = { day = 1 month = january year = 1915 }
	trigger = { 
		OR = { 
			control = { province = 659 data = ENG } 
			control = { province = 657 data = ENG } 
		} 
	} 
	action_a = { 
		name = "Sentence Qishan to death! The war is still on!" 
		command = { type = secedeprovince which = ENG value = 657 } 
		command = { type = population which = 657 value = -50000 } 
		command = { type = provincetax which = 657 value = -5000 } 
		command = { type = treasury value = -300 } 
		command = { type = trigger which = 16493 } #Convention of Chuanbi - British response# 
	} 
} 

#20 Jan 1841: The Opium War - Convention of Chuanbi - British response# 
event = { 
	id = 16493 
	random = no 
	country = ENG 
	name = "Convention of Chuanbi" 
	desc = "On January 7 1841, the British captured the two forts at the Bogue entrance. The local Chinese commissioner, who saw that the way was then open to Guangzhou, agreed on January 20 1841 to sign the Convention of Chuanbi. By this convention the island of Hong Kong was to be ceded to the British Crown, though all duties payable there were to belong to China. The convention was also to provide for compensation to be paid for the opium destroyed by Commissioner Lin and there was to be intercourse on an equal footing between Great Britain and the Middle Kingdom. The Crown hoped that Captain Elliot would take more. The compensation for the opium was insufficient, and no income came from Hong Kong."
	trigger = {
		event = 16492
	} 
	style = 1 
	deathdate = { day = 1 month = january year = 1915 }
	action_a = { 
		name = "Results of the Convention - War is still on!" 
		command = { type = treasury value = 300 } 
		command = { type = removecore which = 657 }
		command = { type = removecore which = 659 }
	} 
} 

#29 Aug 1842: The Opium War - Treaty of Nanjing with Britain # 
event = { 
	id = 16495 
	random = no 
	country = CHI 
	name = "Treaty of Nanjing" 
	desc = "Britain has won the first opium war. To further humiliate China, they have set out the following additional terms in their treaty: Guangzhou, Amoy, Fuzhou, Ninbo and Shanghai are to be treaty ports. China should pay 6 million in compensation for the loss of trade profit while the war was proceeding (specifically in opium). The Supplementary Treaty of the Bogue with Britain contained the seeds of extra-territoriality, the practice whereby foreigners resident in China were governed by the officials and laws of their home country, so that the conditions that caused the first opium war would never happen again. The Bogue Treaty also included the hated most-favoured nation clause, which allowed any nation dealing with China the same privileges accorded Britain." 
	style = 1 
	deathdate = { day = 1 month = january year = 1915 }
	trigger = { 
		event = 16490 
		atwar = no 
		OR = { 
			owned = { province = 657 data = ENG } 
			owned = { province = 656 data = ENG } 
			owned = { province = 659 data = ENG } 
			owned = { province = 661 data = ENG } 
			owned = { province = 658 data = ENG } 
			owned = { province = 660 data = ENG } 
			owned = { province = 1566 data = ENG } 
			owned = { province = 657 data = ENG } 
			owned = { province = 1555 data = ENG } 
			owned = { province = 1545 data = ENG } 
			owned = { province = 1544 data = ENG } 
			owned = { province = 1557 data = ENG } 
			owned = { province = 689 data = ENG } 
			owned = { province = 1542 data = ENG } 
			owned = { province = 1540 data = ENG } 
			owned = { province = 1541 data = ENG } 
			owned = { province = 1543 data = ENG } 
			owned = { province = 1539 data = ENG } 
			owned = { province = 641 data = ENG } 
			owned = { province = 635 data = ENG } 
			owned = { province = 645 data = ENG } 
			owned = { province = 643 data = ENG } 
			owned = { province = 646 data = ENG } 
			owned = { province = 1564 data = ENG } 
			owned = { province = 648 data = ENG } 
			owned = { province = 1561 data = ENG } 
			owned = { province = 651 data = ENG } 
			owned = { province = 647 data = ENG } 
			owned = { province = 650 data = ENG } 
			owned = { province = 1562 data = ENG } 
			owned = { province = 1558 data = ENG } 
			owned = { province = 1560 data = ENG } 
			owned = { province = 1563 data = ENG } 
			owned = { province = 1559 data = ENG } 
			owned = { province = 654 data = ENG } 
			owned = { province = 1565 data = ENG } 
			owned = { province = 652 data = ENG } 
			owned = { province = 1567 data = ENG } 
			owned = { province = 653 data = ENG } 
			owned = { province = 655 data = ENG } 
			owned = { province = 1556 data = ENG } 
			owned = { province = 1553 data = ENG } 
		} 
	} 
	action_a = { 
		name = "Grumble..." 
		command = { type = trade value = -40000 } 
		command = { type = treasury value = -500 } 
		command = { type = province_revoltrisk which = 653 value = 1 } 
		command = { type = province_revoltrisk which = 655 value = 1 } 
		command = { type = province_revoltrisk which = 656 value = 1 } 
		command = { type = province_revoltrisk which = 658 value = 1 } 
		command = { type = trigger which = 16496 } 
             command = { type = secedeprovince which = ENG value = 657 }
	} 
}

do you guys have any tips?
 

unmerged(1047)

Commander, US Pacific Fleet
Feb 21, 2001
5.167
1
Perhaps it's the fact that you have no start dates.

Also, just a tip... might want to see if you can change the color of your text. Black on dark blue is kind of hard to read.
 

unmerged(1047)

Commander, US Pacific Fleet
Feb 21, 2001
5.167
1
Actually that's trade research. Would not a huge number like that just knock you down to 0d research on the tech you are already researching?
 

Nikolai II

A bunny with a hat
130 Badges
Nov 18, 2001
9.397
436
www.giantitp.com
  • Hearts of Iron IV: No Step Back
  • Hearts of Iron IV: By Blood Alone
  • Stellaris: Nemesis
  • Stellaris: Necroids
  • Age of Wonders II
  • Stellaris: Galaxy Edition
  • Stellaris: Galaxy Edition
  • Hearts of Iron II: Beta
  • 200k Club
  • 500k Club
  • Europa Universalis IV: Call to arms event
  • BATTLETECH - Backer
  • War of the Roses
  • Lead and Gold
  • Victoria: Revolutions
  • Europa Universalis III Complete
  • Europa Universalis III Complete
  • Europa Universalis IV: Res Publica
  • Magicka
  • Heir to the Throne
  • Europa Universalis 4: Emperor
  • Crusader Kings II: Holy Fury
  • Rome: Vae Victis
  • Divine Wind
  • Europa Universalis III
  • Europa Universalis III: Chronicles
  • Crusader Kings II: Horse Lords
Originally posted by Sheridan
Actually that's trade research. Would not a huge number like that just knock you down to 0d research on the tech you are already researching?

Yeah.. like a localized state bankrupcy.

I'm just wondering (also when compared to other events) if the event would be so completely destructive for all trade evolution in all of China.

Comparing with other events I'd say -5000 trade research should be sufficent (and also the biggest reduction in the event file, AFAIK)
 

unmerged(5110)

Field Marshal
Jul 29, 2001
4.432
0
tse.dyndns.org
ok... i'll try with the start dates and see what that'll do...

but won't that mean the event will start at the start date, and not when then trigger conditions are met?

And about the values, i know they need tweaking, but i'm 100% positive they are not the reason that the events won't fire.

in that time period, basically there was very little the emperor could do to stop the rising inflation corruption and overall weakness of his empire. I'm trying to simulate this by removing any trade advantages he might have, or anything like that.

The events are meant to seriously hurt

About the population thing, this is supposed to be that the british take hong kong, not the entire kowloon region, so the british should have such a huge population boost, and they should have to work it up on their own.
 

Havard

Dark Power
49 Badges
Jun 28, 2001
15.686
170
  • Crusader Kings II: Jade Dragon
  • Crusader Kings II: Conclave
  • Cities: Skylines - Snowfall
  • Europa Universalis IV: Mare Nostrum
  • Crusader Kings II: Reapers Due
  • Europa Universalis IV: Rights of Man
  • Cities: Skylines - Natural Disasters
  • Crusader Kings II: Monks and Mystics
  • Cities: Skylines - Mass Transit
  • Europa Universalis IV: Mandate of Heaven
  • Europa Universalis IV: Third Rome
  • Cities: Skylines - Green Cities
  • Europa Universalis IV: Cradle of Civilization
  • Europa Universalis IV: Cossacks
  • Europa Universalis IV: Rule Britannia
  • Cities: Skylines - Parklife
  • Europa Universalis IV: Dharma
  • Cities: Skylines Industries
  • Crusader Kings II: Holy Fury
  • Europa Universalis IV: Golden Century
  • Imperator: Rome Deluxe Edition
  • Imperator: Rome
  • Cities: Skylines - Campus
  • Crusader Kings III
  • Crusader Kings III: Royal Edition
  • Europa Universalis IV: Wealth of Nations
  • Crusader Kings II: Charlemagne
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Republic
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Sword of Islam
  • Europa Universalis III
  • Europa Universalis IV
  • Europa Universalis IV: Art of War
  • Europa Universalis IV: Conquest of Paradise
  • Crusader Kings II
  • Europa Universalis IV: Call to arms event
  • Europa Universalis IV: Res Publica
  • 500k Club
  • Cities: Skylines
  • Europa Universalis III: Collection
  • Europa Universalis IV: El Dorado
  • Europa Universalis IV: Pre-order
  • Crusader Kings II: Way of Life
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Horse Lords
  • Cities: Skylines - After Dark
Originally posted by XieChengnuo
ok... i'll try with the start dates and see what that'll do...

but won't that mean the event will start at the start date, and not when then trigger conditions are met?
Nope. The event will happend when triggers are met between startdate and deathdate. Without a startdate it don't know when to start looking for triggers, and will never fire.


And about the values, i know they need tweaking, but i'm 100% positive they are not the reason that the events won't fire.

in that time period, basically there was very little the emperor could do to stop the rising inflation corruption and overall weakness of his empire. I'm trying to simulate this by removing any trade advantages he might have, or anything like that.

The events are meant to seriously hurt
Maybe add some inflation too then?