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

Järnblomma

Major
96 Badges
Jan 13, 2008
693
33
  • Victoria 2: Heart of Darkness
  • Europa Universalis III Complete
  • Europa Universalis III Complete
  • Europa Universalis IV: Res Publica
  • Victoria: Revolutions
  • Europa Universalis: Rome
  • Sengoku
  • Crusader Kings II: Reapers Due
  • Victoria 2: A House Divided
  • Crusader Kings II
  • Stellaris - Path to Destruction bundle
  • Crusader Kings II: Jade Dragon
  • Europa Universalis IV: Third Rome
  • Europa Universalis IV: Pre-order
  • Stellaris: Galaxy Edition
  • Stellaris: Synthetic Dawn
  • Pillars of Eternity
  • Europa Universalis IV: Mare Nostrum
  • Heir to the Throne
  • 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: Sunset Invasion
  • Crusader Kings II: Sword of Islam
  • Darkest Hour
  • Europa Universalis III
  • Divine Wind
  • Hearts of Iron Anthology
  • Europa Universalis IV: Art of War
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Wealth of Nations
  • For The Glory
  • Crusader Kings II: Conclave
  • Europa Universalis IV: Rights of Man
  • Stellaris
  • Stellaris: Galaxy Edition
  • Hearts of Iron IV: Cadet
  • Hearts of Iron IV: Colonel
  • Europa Universalis IV: Cossacks
  • Crusader Kings II: Horse Lords
  • Europa Universalis IV: Common Sense
  • Hearts of Iron IV: No Step Back
  • Mount & Blade: Warband
  • Europa Universalis IV: El Dorado
  • 500k Club
  • War of the Roses
  • Victoria 2
So, I've begun playing as the german chinese colony and recently went around to make myself the Chinese Republic. In the files there is an election event which would be cool as I like the look of the leftist Kuomintang.
But the event doesn't fire and I wonder if I've missed something. Maybe it doesnät trigger if you do the reform?

Code:
trigger = {
		owned = { province = 1369 data = CHI }
		control = { province = 1369 data = CHI }
                not = { exists = CGX }
                OR = {
			government = democratic
			ideology = paternal_autocrat
		}
		}

I'm not very good at all the triggers but my government is Paternal Autocrat. I have not been able to localize which province 1369 is and that might be the problem, but I assumed it was Guangzhou, Nanjing or maybe Beijing. After a succesful war against the Qing Empire I hae all those provinces.

Someone care to enlighten me?

As I mentioned in the title, I am playing Darkest Hour.

Thanks!
 
Ah, of course! I should have remembered!

Apperantly the 1369 province is Naoming, which at the moment is in German hands. So that was the original problem. A little wierd I find, but oh well.

Thank you!

Edit: No wait, it's Guangzhou as I suspected. Then I am once again confused. Really, doesn't the "OR" specify that I can be either Authoritarian Democrat OR have Guangzhou? Then should I not have gotten the event?
 
Last edited:
Now I used cheats to make the Republic Authoritarian Democrat. The event still doesn't fire. I beleive something is wrong with it. Some help, please?
 
Thank you so much for the assistance. Here is the event in all of its glory.

Code:
}
}
event = {
	id = 630104
	random = no
	country = CHI
	style = 2
        save_date = yes

	trigger = {
		owned = { province = 1369 data = CHI }
		control = { province = 1369 data = CHI }
                not = { exists = CGX }
                OR = {
			government = democratic
			ideology = paternal_autocrat
		}
		}


	name = "The Election of the Six Provinces"
	desc = "The German AOG has been dismantled and the Provisional Republican Government of China has asserted its influence over the six southern Chinese provinces. However, The Revolution is Not Over Yet and the Provisional Government is just that - provisional. Before we can launch any expeditions of unification we need to define which party will lead us and China in the fullfillment of Sun Yat-sen's legacy."
        picture = "mayfourth"

	date = { day = 1 month = april year = 1936 }
	offset = 50
	deathdate = { day = 30 month = april year = 1960 }



        action_a = {
	        ai_chance =  40
	        name = "Soong Ching-ling and Zhou Shuren's Leftist Kuomintang"
		command = { type = dissent value = -3  }  
		command = { type = set_domestic which = democratic value = 7 }
		command = { type = set_domestic which = political_left value = 7 }
		command = { type = set_domestic which = freedom value = 6 }
		command = { type = headofstate which = 183510 } # Soong Ching-ling
		command = { type = headofgovernment which = 183521 } # Zhou Shuren
		command = { type = foreignminister which =  183530 } # Zhang Junmai
		command = { type = armamentminister which = 183513 } # Liao Zhongkai
		command = { type = ministerofsecurity which = 183514 } # Lieu Xiao
		command = { type = ministerofintelligence which = 183516 } # Woo Tsin-hang
                command = { type = domestic which = free_market value = 2 }
                command = { type = set_domestic which = interventionism value = 5 }
                command = { type = domestic which = defense_lobby value = 3 }
                command = { type = setflag which = CHI_KTMDEM }
                command = { type = setflag which = CHI_DEM }
		}
        action_b = {
	        ai_chance =  30
	        name = "Hu Shi's Liberals Secure a Majority!"
		command = { type = dissent value = -2 }  
		command = { type = set_domestic which = democratic value = 7 }
		command = { type = set_domestic which = political_left value = 5 }
                command = { type = set_domestic which = freedom value = 6 }
		command = { type = headofstate which = 183512 } # Hu Shi
		command = { type = headofgovernment which = 183511 } # Wellington Koo
		command = { type = foreignminister which =  183533 } # Zhang Dongsun
		command = { type = armamentminister which = 183525 } # Chen Yinque
		command = { type = ministerofsecurity which = 183527 } # Chao Yuen Ren
		command = { type = ministerofintelligence which = 183520 } # Xian Xinghai
                command = { type = domestic which = free_market value = 5 }
                command = { type = set_domestic which = interventionism value = 4 }
                command = { type = domestic which = defense_lobby value = 3 }
                command = { type = setflag which = CHI_LIBDEM }
                command = { type = setflag which = CHI_DEM }
		}
        action_c = {
	        ai_chance =  20
	        name = "Chen Jiongming will defend the Republic!"
		command = { type = dissent value = 3 }
		command = { type = set_domestic which = democratic value = 7 }
		command = { type = set_domestic which = political_left value = 2 }
		command = { type = set_domestic which = freedom value = 4 }
                command = { type = set_domestic which = free_market value = -1 }
		command = { type = headofstate which = 183562 } # Chen Jiongming
		command = { type = headofgovernment which = 183538 } # Tang Shaoyi
		command = { type = foreignminister which =  52035 } # Lin Wei
		command = { type = armamentminister which = 183539 } # Zhang Qun
		command = { type = ministerofsecurity which = 183535 } # Jiang Tingfu
		command = { type = ministerofintelligence which = 183532 } # Lin Yutang
                command = { type = set_domestic which = interventionism value = 3 }
                command = { type = domestic which = defense_lobby value = 4 }
                command = { type = setflag which = CHI_CONDEM }
                command = { type = setflag which = CHI_DEM }
		}
        action_d = {
	        ai_chance =  10
	        name = "Bah, General Sun Li-Gen dissolves the National Assembly!"
		command = { type = dissent value = 25 }
		command = { type = set_domestic which = democratic value = 3 }
		command = { type = set_domestic which = political_left value = 4 }
		command = { type = set_domestic which = freedom value = 4 }
		command = { type = headofstate which = 183500 } # Huang Xing
		command = { type = headofgovernment which = 183501 } # Sun Li-gen
		command = { type = foreignminister which =  52063 } # Fu Sinian
		command = { type = ministerofsecurity which = 183522 } # Sheng Shicai
                }
		
  
}

I am sure that I both own and control Guangzhou which is province 1369 according to the file province_names which is in Map_1 < map < Darkest Hour.
It's on line 1371, which was what confused me earlier. On line 1369 was Naoming, but Naoming is province 1367.

As I mentioned, I also made the Republic of China into Authoritarian Democrat with cheats for the purpose of testing if the event fired then, which it didn't.

Once again, thank you for the help.
 
Write it like this:

event = {
id = 630104
random = no
country = CHI
style = 2
save_date = yes

decision = { exists = CHI }
decision_trigger = {
owned = { province = 1369 data = CHI }
control = { province = 1369 data = CHI }
not = { exists = CGX }
OR = {
government = democratic
ideology = paternal_autocrat
}
}

trigger = {
owned = { province = 1369 data = CHI }
control = { province = 1369 data = CHI }
not = { exists = CGX }
OR = {
government = democratic
ideology = paternal_autocrat
}
}


name = "The Election of the Six Provinces"
desc = "The German AOG has been dismantled and the Provisional Republican Government of China has asserted its influence over the six southern Chinese provinces. However, The Revolution is Not Over Yet and the Provisional Government is just that - provisional. Before we can launch any expeditions of unification we need to define which party will lead us and China in the fullfillment of Sun Yat-sen's legacy."
picture = "mayfourth"

date = { day = 1 month = april year = 1936 }
offset = 50
deathdate = { day = 30 month = april year = 1960 }



action_a = {
ai_chance = 40
name = "Soong Ching-ling and Zhou Shuren's Leftist Kuomintang"
command = { type = dissent value = -3 }
command = { type = set_domestic which = democratic value = 7 }
command = { type = set_domestic which = political_left value = 7 }
command = { type = set_domestic which = freedom value = 6 }
command = { type = headofstate which = 183510 } # Soong Ching-ling
command = { type = headofgovernment which = 183521 } # Zhou Shuren
command = { type = foreignminister which = 183530 } # Zhang Junmai
command = { type = armamentminister which = 183513 } # Liao Zhongkai
command = { type = ministerofsecurity which = 183514 } # Lieu Xiao
command = { type = ministerofintelligence which = 183516 } # Woo Tsin-hang
command = { type = domestic which = free_market value = 2 }
command = { type = set_domestic which = interventionism value = 5 }
command = { type = domestic which = defense_lobby value = 3 }
command = { type = setflag which = CHI_KTMDEM }
command = { type = setflag which = CHI_DEM }
}
action_b = {
ai_chance = 30
name = "Hu Shi's Liberals Secure a Majority!"
command = { type = dissent value = -2 }
command = { type = set_domestic which = democratic value = 7 }
command = { type = set_domestic which = political_left value = 5 }
command = { type = set_domestic which = freedom value = 6 }
command = { type = headofstate which = 183512 } # Hu Shi
command = { type = headofgovernment which = 183511 } # Wellington Koo
command = { type = foreignminister which = 183533 } # Zhang Dongsun
command = { type = armamentminister which = 183525 } # Chen Yinque
command = { type = ministerofsecurity which = 183527 } # Chao Yuen Ren
command = { type = ministerofintelligence which = 183520 } # Xian Xinghai
command = { type = domestic which = free_market value = 5 }
command = { type = set_domestic which = interventionism value = 4 }
command = { type = domestic which = defense_lobby value = 3 }
command = { type = setflag which = CHI_LIBDEM }
command = { type = setflag which = CHI_DEM }
}
action_c = {
ai_chance = 20
name = "Chen Jiongming will defend the Republic!"
command = { type = dissent value = 3 }
command = { type = set_domestic which = democratic value = 7 }
command = { type = set_domestic which = political_left value = 2 }
command = { type = set_domestic which = freedom value = 4 }
command = { type = set_domestic which = free_market value = -1 }
command = { type = headofstate which = 183562 } # Chen Jiongming
command = { type = headofgovernment which = 183538 } # Tang Shaoyi
command = { type = foreignminister which = 52035 } # Lin Wei
command = { type = armamentminister which = 183539 } # Zhang Qun
command = { type = ministerofsecurity which = 183535 } # Jiang Tingfu
command = { type = ministerofintelligence which = 183532 } # Lin Yutang
command = { type = set_domestic which = interventionism value = 3 }
command = { type = domestic which = defense_lobby value = 4 }
command = { type = setflag which = CHI_CONDEM }
command = { type = setflag which = CHI_DEM }
}
action_d = {
ai_chance = 10
name = "Bah, General Sun Li-Gen dissolves the National Assembly!"
command = { type = dissent value = 25 }
command = { type = set_domestic which = democratic value = 3 }
command = { type = set_domestic which = political_left value = 4 }
command = { type = set_domestic which = freedom value = 4 }
command = { type = headofstate which = 183500 } # Huang Xing
command = { type = headofgovernment which = 183501 } # Sun Li-gen
command = { type = foreignminister which = 52063 } # Fu Sinian
command = { type = ministerofsecurity which = 183522 } # Sheng Shicai
}


}
If turned your event into a decision, so it should appear in the decision list. From there, you can place your mouse over the Red X and a tooltip will appear showing you which conditions are not met.
 
Ooh, sneaky!

It seems to be something wrong with the "OR". As I interpret it should be that you either control and own Guangzhou and the AOG does not exist OR you are an Authoritarian Dictatorship OR you are a democracy. The game seem to interpret it as you have to own Guangzhou AND be either Authoritarian Democrat or a Democracy. This leaves the question of why the event did not fire when I made it Authoritarian Democrat before.
I got the event to fire when I made the Republic Authoritarian Democrat and fired the event as a decision.

Is the event working as intended or is it wrongly coded?
 
You're making a lot of confusion.
The triggers works like this. All the following conditions must be true:
- CHI owns province 1369
- CHI controls province 1369
- AOG does not exists
- either the government is democratic or the ideology is paternal_autocrat (which translates to Authoritarian Democrat in KR).
The OR conditions is only in the last two parameters, that's how it works.

What do you want it to be? Please be precise.
 
I see. I'm sorry, I'm writing in my workplace and have to be brief so my emplyer doesn't notice. ;) I'll try to clarify:

I believed the "OR" in this case meant that you have to EITHER own Guangzhou OR be Authoritarian Democrat OR democratic. But it seems that I have missunderstood.

The reason is that I am surprised that you would have to change your political alignment first. It seems much more sound that you should get an event to arrange an election as soon as you become the Republic of China.

The "sneaky" thing I wrote because I was impressed by the solution. I thought it was a sneaky (i.e cunning) solution. =)

Also, I was surprised that the event didn't fire in a month or two after I made CHI Authoritarian Democrat. It seems that there is something that still eludes me. Is it the "offset = 50" maybe?

I hope I was clearer now. Thank you!
 
The OR = {} is only between the conditions inside the {} so you HAVE to own Guangzhou, AOG must NOT exists and you need to be either Democratic OR Authoritarian Democrat.

The offset = 50 means that event is checked approx. every 50 days afte april 1 1936, so yes, maybe you should have waited longer. Set it to 15 to make the check happen every two weeks if you don't want to waste time.
 
Ah! Now it's all clear! Thank you very much for your time!