• 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.
Showing developer posts only. Show all posts in this thread.

Darkrenown

Star marshal
142 Badges
Jan 8, 2002
24.761
16.975
no
  • Leviathan: Warships
  • Europa Universalis IV: Call to arms event
  • For The Glory
  • For the Motherland
  • Gettysburg
  • Hearts of Iron III
  • Hearts of Iron III: Their Finest Hour
  • Hearts of Iron III Collection
  • Heir to the Throne
  • Impire
  • Europa Universalis III Complete
  • King Arthur II
  • Knights of Pen and Paper +1 Edition
  • Europa Universalis IV: Wealth of Nations
  • Lost Empire - Immortals
  • Magicka
  • Majesty 2
  • Majesty 2 Collection
  • March of the Eagles
  • Europa Universalis III Complete
  • Naval War: Arctic Circle
  • Europa Universalis IV: Res Publica
  • Victoria: Revolutions
  • Europa Universalis: Rome
  • Rome Gold
  • Hearts of Iron IV: No Step Back
  • Crusader Kings II: Sunset Invasion
  • Ancient Space
  • Arsenal of Democracy
  • Hearts of Iron II: Armageddon
  • Cities in Motion
  • Cities in Motion 2
  • Crusader Kings II
  • 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
  • A Game of Dwarves
  • Crusader Kings II: Sword of Islam
  • Darkest Hour
  • Deus Vult
  • Dungeonland
  • East India Company
  • Europa Universalis III
  • Europa Universalis III: Chronicles
  • Divine Wind
  • Europa Universalis IV
  • Europa Universalis IV: Art of War
Hi all, I'm updating my unification events to have some of Prussia's events fire for an early-unified Germany, but I'm having problems with the spanish throne event chain.

This event works fine:
Code:
#########################################################################
#  The Spanish Succession Crisis
#########################################################################
event = {
	id = 7705
	random = no
	country = SPA

	picture = 7705

	trigger = {
		OR = {
			AND = {
				exists = GER	
				not = {
					constitution = { country = GER type = democracy }
					}
				}
			
			AND = {
				exists = PRU
				not = {
					constitution = { country = PRU type = democracy }
					}
				}
			}
			
	}

	name = "EVT_4631_NAME"
	desc = "EVT_4631_DESC"
	style = 0

	date = { day = 1 month = june year = 1870 }

	action_a = {
		name = "ACTIONNAME7705A" # Offer the throne to a Hohenzollern
		command = { type = prestige value = 50 }
		command = { type = trigger which = 4631 }
	}
	action_b = {
		name = "ACTIONNAME7705B" # Offer the throne to an Italian
		command = { type = prestige value = -50 }
	}
}

This event's trigger doesn't work so I have commented it out for the meantime, help with it would be nice but does not concern me just yet:
Code:
########################################################################
#  The Spanish Succession Crisis
#########################################################################
event = {
	id = 4631
	random = no
	province = 342 #Berlin

	#Triggered by SPA 7705
	#trigger = {
		#not = {
			#OR = { 
				#constitution = { country = GER type = democracy }
				#constitution = { country = PRU type = democracy }
				#}
			#}
		#}

	name = "EVT_4631_NAME"
	desc = "EVT_4631_DESC"
	style = 0

	action_a = {
		name = "ACCEPT" # Accept
		command = { type = prestige value = 25 }
		command = { type = relation which = FRA value = -200 }
		command = { type = trigger which = 7234 } # FRA
	}
	action_b = {
		name = "DECLINE" # Decline
		command = { type = prestige value = -25 }
		command = { type = relation which = FRA value = -50 }
	}
}

What I don't understand is why this event fires for Prussia :confused::
Code:
#########################################################################
#  A Hohenzollern on the Spanish Throne
#########################################################################
event = {
	id = 7234
	random = no
	country = FRA

	# Triggered by PRU 4631A

	trigger = {
		NOT = {
			peace_treaty = { country = FRA country = PRU }
			peace_treaty = { country = GER country = PRU }
		}
	}

	name = "EVT_7234_NAME"
	desc = "EVT_4631_DESC"
	style = 0

	action_a = {
		name = "ACTIONNAME7234A" # No, this means War
		command = { type = war which = PRU }
		command = { type = war which = GER }
		command = { type = setflag which = flg_Austrian_vengeance }
	}
	action_b = {
		name = "ACTIONNAME7234B" # Who cares about Spain
		command = { type = prestige value = -10 }
	}
}
 
Last edited:

Darkrenown

Star marshal
142 Badges
Jan 8, 2002
24.761
16.975
no
  • Leviathan: Warships
  • Europa Universalis IV: Call to arms event
  • For The Glory
  • For the Motherland
  • Gettysburg
  • Hearts of Iron III
  • Hearts of Iron III: Their Finest Hour
  • Hearts of Iron III Collection
  • Heir to the Throne
  • Impire
  • Europa Universalis III Complete
  • King Arthur II
  • Knights of Pen and Paper +1 Edition
  • Europa Universalis IV: Wealth of Nations
  • Lost Empire - Immortals
  • Magicka
  • Majesty 2
  • Majesty 2 Collection
  • March of the Eagles
  • Europa Universalis III Complete
  • Naval War: Arctic Circle
  • Europa Universalis IV: Res Publica
  • Victoria: Revolutions
  • Europa Universalis: Rome
  • Rome Gold
  • Hearts of Iron IV: No Step Back
  • Crusader Kings II: Sunset Invasion
  • Ancient Space
  • Arsenal of Democracy
  • Hearts of Iron II: Armageddon
  • Cities in Motion
  • Cities in Motion 2
  • Crusader Kings II
  • 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
  • A Game of Dwarves
  • Crusader Kings II: Sword of Islam
  • Darkest Hour
  • Deus Vult
  • Dungeonland
  • East India Company
  • Europa Universalis III
  • Europa Universalis III: Chronicles
  • Divine Wind
  • Europa Universalis IV
  • Europa Universalis IV: Art of War
OHgamer said:
I think your problem is that you have AND and ORs blended in a way that doesn't work. Best bet would I think be to have a separate set of events with PRU triggers separate from th GER ones that should solve the problem.

You've quoted the only event that works right :) That could be why the 2nd event's trigger isn't working, but doesn't explain why PRU gets a FRA event.
 

Darkrenown

Star marshal
142 Badges
Jan 8, 2002
24.761
16.975
no
  • Leviathan: Warships
  • Europa Universalis IV: Call to arms event
  • For The Glory
  • For the Motherland
  • Gettysburg
  • Hearts of Iron III
  • Hearts of Iron III: Their Finest Hour
  • Hearts of Iron III Collection
  • Heir to the Throne
  • Impire
  • Europa Universalis III Complete
  • King Arthur II
  • Knights of Pen and Paper +1 Edition
  • Europa Universalis IV: Wealth of Nations
  • Lost Empire - Immortals
  • Magicka
  • Majesty 2
  • Majesty 2 Collection
  • March of the Eagles
  • Europa Universalis III Complete
  • Naval War: Arctic Circle
  • Europa Universalis IV: Res Publica
  • Victoria: Revolutions
  • Europa Universalis: Rome
  • Rome Gold
  • Hearts of Iron IV: No Step Back
  • Crusader Kings II: Sunset Invasion
  • Ancient Space
  • Arsenal of Democracy
  • Hearts of Iron II: Armageddon
  • Cities in Motion
  • Cities in Motion 2
  • Crusader Kings II
  • 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
  • A Game of Dwarves
  • Crusader Kings II: Sword of Islam
  • Darkest Hour
  • Deus Vult
  • Dungeonland
  • East India Company
  • Europa Universalis III
  • Europa Universalis III: Chronicles
  • Divine Wind
  • Europa Universalis IV
  • Europa Universalis IV: Art of War
tyrel68 said:
Firstly this doesn't make sense, PRU should not exist when GER exists, let alone have warred against each other
peace_treaty = { country = GER country = PRU }

Should have been FRA, not PRU. Fixed now, but doesn't help.

tyrel68 said:
Secondly make sure the version you are modifying is the same one you are using in the events folder. I have worked for an hour not figuring out that the event wasn't firing because the old version was still in the VIP events folder

That's happened to me, but not this time :)

tyrel68 said:
Also, are you 100% sure it is the same event firing for Prussia? There is a spanish succession event in the Prussia.txt folder

Yes, I am sure. The 2nd event fires for PRU like it should (once trigger is commented out) and then the 3rd event fires for PRU too and France gets nothing.
 

Darkrenown

Star marshal
142 Badges
Jan 8, 2002
24.761
16.975
no
  • Leviathan: Warships
  • Europa Universalis IV: Call to arms event
  • For The Glory
  • For the Motherland
  • Gettysburg
  • Hearts of Iron III
  • Hearts of Iron III: Their Finest Hour
  • Hearts of Iron III Collection
  • Heir to the Throne
  • Impire
  • Europa Universalis III Complete
  • King Arthur II
  • Knights of Pen and Paper +1 Edition
  • Europa Universalis IV: Wealth of Nations
  • Lost Empire - Immortals
  • Magicka
  • Majesty 2
  • Majesty 2 Collection
  • March of the Eagles
  • Europa Universalis III Complete
  • Naval War: Arctic Circle
  • Europa Universalis IV: Res Publica
  • Victoria: Revolutions
  • Europa Universalis: Rome
  • Rome Gold
  • Hearts of Iron IV: No Step Back
  • Crusader Kings II: Sunset Invasion
  • Ancient Space
  • Arsenal of Democracy
  • Hearts of Iron II: Armageddon
  • Cities in Motion
  • Cities in Motion 2
  • Crusader Kings II
  • 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
  • A Game of Dwarves
  • Crusader Kings II: Sword of Islam
  • Darkest Hour
  • Deus Vult
  • Dungeonland
  • East India Company
  • Europa Universalis III
  • Europa Universalis III: Chronicles
  • Divine Wind
  • Europa Universalis IV
  • Europa Universalis IV: Art of War
You were Prussia and France's event didn't fire for you? I'm even more baffled as to why it happens to me then. Here's a quote from my history log as Prussia:
"1870-05-01 : June 2, 1870 : Spain went with Offer the throne to a Hohenzollern in The Spanish Succession Crisis.

1870-05-01 : June 2, 1870 : We went with Accept in The Spanish Succession Crisis.

1870-05-01 : June 2, 1870 : We went with No, this means War in A Hohenzollern on the Spanish Throne.

1870-05-04 : June 5, 1870 : Tibet sent 1st Corps as a loan to China.

1870-05-07 : June 8, 1870 : CSA sent 4th Corps as a loan to Texas.

1870-05-12 : June 13, 1870 : The people of Meiningen are revolting! "

I'll have to go through all the event files I've worked on today to see if I've got two copies of that event then.
:confused:
 

Darkrenown

Star marshal
142 Badges
Jan 8, 2002
24.761
16.975
no
  • Leviathan: Warships
  • Europa Universalis IV: Call to arms event
  • For The Glory
  • For the Motherland
  • Gettysburg
  • Hearts of Iron III
  • Hearts of Iron III: Their Finest Hour
  • Hearts of Iron III Collection
  • Heir to the Throne
  • Impire
  • Europa Universalis III Complete
  • King Arthur II
  • Knights of Pen and Paper +1 Edition
  • Europa Universalis IV: Wealth of Nations
  • Lost Empire - Immortals
  • Magicka
  • Majesty 2
  • Majesty 2 Collection
  • March of the Eagles
  • Europa Universalis III Complete
  • Naval War: Arctic Circle
  • Europa Universalis IV: Res Publica
  • Victoria: Revolutions
  • Europa Universalis: Rome
  • Rome Gold
  • Hearts of Iron IV: No Step Back
  • Crusader Kings II: Sunset Invasion
  • Ancient Space
  • Arsenal of Democracy
  • Hearts of Iron II: Armageddon
  • Cities in Motion
  • Cities in Motion 2
  • Crusader Kings II
  • 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
  • A Game of Dwarves
  • Crusader Kings II: Sword of Islam
  • Darkest Hour
  • Deus Vult
  • Dungeonland
  • East India Company
  • Europa Universalis III
  • Europa Universalis III: Chronicles
  • Divine Wind
  • Europa Universalis IV
  • Europa Universalis IV: Art of War
Ok, I have used search to check every file in the victoria folder for "Hohenzollern". It only appears in history, france and spain.txt. I used notepad's find and again looked for "Hohenzollern" and it only appears in the 2 events posted above. It should not be possible for FRA7234 to fire for Prussiam but it does.
 

Darkrenown

Star marshal
142 Badges
Jan 8, 2002
24.761
16.975
no
  • Leviathan: Warships
  • Europa Universalis IV: Call to arms event
  • For The Glory
  • For the Motherland
  • Gettysburg
  • Hearts of Iron III
  • Hearts of Iron III: Their Finest Hour
  • Hearts of Iron III Collection
  • Heir to the Throne
  • Impire
  • Europa Universalis III Complete
  • King Arthur II
  • Knights of Pen and Paper +1 Edition
  • Europa Universalis IV: Wealth of Nations
  • Lost Empire - Immortals
  • Magicka
  • Majesty 2
  • Majesty 2 Collection
  • March of the Eagles
  • Europa Universalis III Complete
  • Naval War: Arctic Circle
  • Europa Universalis IV: Res Publica
  • Victoria: Revolutions
  • Europa Universalis: Rome
  • Rome Gold
  • Hearts of Iron IV: No Step Back
  • Crusader Kings II: Sunset Invasion
  • Ancient Space
  • Arsenal of Democracy
  • Hearts of Iron II: Armageddon
  • Cities in Motion
  • Cities in Motion 2
  • Crusader Kings II
  • 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
  • A Game of Dwarves
  • Crusader Kings II: Sword of Islam
  • Darkest Hour
  • Deus Vult
  • Dungeonland
  • East India Company
  • Europa Universalis III
  • Europa Universalis III: Chronicles
  • Divine Wind
  • Europa Universalis IV
  • Europa Universalis IV: Art of War
tyrel68 said:
The issue is the province = 342
replace it with country = PRU and it works fine
I event got the commented out trigger to work

So it is. Bah, I wonder if all my events need to be copied then. *gets testing*
 

Darkrenown

Star marshal
142 Badges
Jan 8, 2002
24.761
16.975
no
  • Leviathan: Warships
  • Europa Universalis IV: Call to arms event
  • For The Glory
  • For the Motherland
  • Gettysburg
  • Hearts of Iron III
  • Hearts of Iron III: Their Finest Hour
  • Hearts of Iron III Collection
  • Heir to the Throne
  • Impire
  • Europa Universalis III Complete
  • King Arthur II
  • Knights of Pen and Paper +1 Edition
  • Europa Universalis IV: Wealth of Nations
  • Lost Empire - Immortals
  • Magicka
  • Majesty 2
  • Majesty 2 Collection
  • March of the Eagles
  • Europa Universalis III Complete
  • Naval War: Arctic Circle
  • Europa Universalis IV: Res Publica
  • Victoria: Revolutions
  • Europa Universalis: Rome
  • Rome Gold
  • Hearts of Iron IV: No Step Back
  • Crusader Kings II: Sunset Invasion
  • Ancient Space
  • Arsenal of Democracy
  • Hearts of Iron II: Armageddon
  • Cities in Motion
  • Cities in Motion 2
  • Crusader Kings II
  • 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
  • A Game of Dwarves
  • Crusader Kings II: Sword of Islam
  • Darkest Hour
  • Deus Vult
  • Dungeonland
  • East India Company
  • Europa Universalis III
  • Europa Universalis III: Chronicles
  • Divine Wind
  • Europa Universalis IV
  • Europa Universalis IV: Art of War
Darkrenown said:
So it is. Bah, I wonder if all my events need to be copied then. *gets testing*

Sone events work and some don't. For example, The 2nd Oriental Crisis just fired fine with the province = 342 line. Any idea why some work with it andsome don't?
 

Darkrenown

Star marshal
142 Badges
Jan 8, 2002
24.761
16.975
no
  • Leviathan: Warships
  • Europa Universalis IV: Call to arms event
  • For The Glory
  • For the Motherland
  • Gettysburg
  • Hearts of Iron III
  • Hearts of Iron III: Their Finest Hour
  • Hearts of Iron III Collection
  • Heir to the Throne
  • Impire
  • Europa Universalis III Complete
  • King Arthur II
  • Knights of Pen and Paper +1 Edition
  • Europa Universalis IV: Wealth of Nations
  • Lost Empire - Immortals
  • Magicka
  • Majesty 2
  • Majesty 2 Collection
  • March of the Eagles
  • Europa Universalis III Complete
  • Naval War: Arctic Circle
  • Europa Universalis IV: Res Publica
  • Victoria: Revolutions
  • Europa Universalis: Rome
  • Rome Gold
  • Hearts of Iron IV: No Step Back
  • Crusader Kings II: Sunset Invasion
  • Ancient Space
  • Arsenal of Democracy
  • Hearts of Iron II: Armageddon
  • Cities in Motion
  • Cities in Motion 2
  • Crusader Kings II
  • 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
  • A Game of Dwarves
  • Crusader Kings II: Sword of Islam
  • Darkest Hour
  • Deus Vult
  • Dungeonland
  • East India Company
  • Europa Universalis III
  • Europa Universalis III: Chronicles
  • Divine Wind
  • Europa Universalis IV
  • Europa Universalis IV: Art of War
pimparel said:
Chain events only need triggers in the FIRST event, cause the others are cascading in each other.

A lot of offical event don't follow that rule, but for the purpose of keeping it simple while I'm new to modding I'll try to. I've removed some triggers and changed the tag back to berlin and ended up with this:
Code:
#########################################################################
#  The Spanish Succession Crisis
#########################################################################
event = {
	id = 7705
	random = no
	country = SPA

	picture = 7705

	trigger = {
   		OR = {
      			not = {constitution = { country = GER type = democracy }}
      			not = {constitution = { country = PRU type = democracy }}
  			 }
			}

	name = "EVT_4631_NAME"
	desc = "EVT_4631_DESC"
	style = 0

	date = { day = 1 month = june year = 1870 }

	action_a = {
		name = "ACTIONNAME7705A" # Offer the throne to a Hohenzollern
		command = { type = prestige value = 50 }
		command = { type = trigger which = 4631 }
	}
	action_b = {
		name = "ACTIONNAME7705B" # Offer the throne to an Italian
		command = { type = prestige value = -50 }
	}
}

#########################################################################
#  The Spanish Succession Crisis
#########################################################################
event = {
	id = 4631
	random = no
	province = 342

	#Triggered by SPA 7705

	name = "EVT_4631_NAME"
	desc = "EVT_4631_DESC"
	style = 0

	action_a = {
		name = "ACCEPT" # Accept
		command = { type = prestige value = 25 }
		command = { type = relation which = FRA value = -200 }
		command = { type = trigger which = 7234 } # FRA
	}
	action_b = {
		name = "DECLINE" # Decline
		command = { type = prestige value = -25 }
		command = { type = relation which = FRA value = -50 }
	}
}

#########################################################################
#  A Hohenzollern on the Spanish Throne
#########################################################################
event = {
	id = 7234
	random = no
	country = FRA

	# Triggered by PRU 4631A

	trigger = {
		NOT = { peace_treaty = { country = FRA country = PRU } }
		NOT = { peace_treaty = { country = FRA country = GER } }	
	}

	name = "EVT_7234_NAME"
	desc = "EVT_4631_DESC"
	style = 0

	action_a = {
		name = "ACTIONNAME7234A" # No, this means War
		command = { type = war which = PRU }
		command = { type = war which = GER }
		command = { type = setflag which = flg_Austrian_vengeance }
	}
	action_b = {
		name = "ACTIONNAME7234B" # Who cares about Spain
		command = { type = prestige value = -10 }
	}
}

And once again FRA7234 is firing for Prussia. The game does not seem to like using the province = line in events triggering other events. I also changed The Slesvig Question to use the province tag and denmark's "Argh! prussia is attacking" event fires for prussia there too.
 

Darkrenown

Star marshal
142 Badges
Jan 8, 2002
24.761
16.975
no
  • Leviathan: Warships
  • Europa Universalis IV: Call to arms event
  • For The Glory
  • For the Motherland
  • Gettysburg
  • Hearts of Iron III
  • Hearts of Iron III: Their Finest Hour
  • Hearts of Iron III Collection
  • Heir to the Throne
  • Impire
  • Europa Universalis III Complete
  • King Arthur II
  • Knights of Pen and Paper +1 Edition
  • Europa Universalis IV: Wealth of Nations
  • Lost Empire - Immortals
  • Magicka
  • Majesty 2
  • Majesty 2 Collection
  • March of the Eagles
  • Europa Universalis III Complete
  • Naval War: Arctic Circle
  • Europa Universalis IV: Res Publica
  • Victoria: Revolutions
  • Europa Universalis: Rome
  • Rome Gold
  • Hearts of Iron IV: No Step Back
  • Crusader Kings II: Sunset Invasion
  • Ancient Space
  • Arsenal of Democracy
  • Hearts of Iron II: Armageddon
  • Cities in Motion
  • Cities in Motion 2
  • Crusader Kings II
  • 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
  • A Game of Dwarves
  • Crusader Kings II: Sword of Islam
  • Darkest Hour
  • Deus Vult
  • Dungeonland
  • East India Company
  • Europa Universalis III
  • Europa Universalis III: Chronicles
  • Divine Wind
  • Europa Universalis IV
  • Europa Universalis IV: Art of War
Ilkhold said:
It would be interesting to see what happens if you replace the 'country=FRA' by 'province=Paris'.

Why then it works fine (well with province = 657 anyway). It seems using province = will hijack events in the same chain as it from countries using tag =. Thanks, everyone.

Changing "tag = den" to "province = 311" also stops demark's The Slesvig Question event firing for PRU, but it doesn't seem to fire for the AI DEN, although it works fine for a player DEN. Most odd. The only thing changed in The Slesvig Question by me was changing the tag to a province trigger and a not peace GER/DEN (and yes I commented out the trigger to test :) ).