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

TankHunter

First Lieutenant
96 Badges
Sep 10, 2004
217
53
  • Crusader Kings II: Holy Knight (pre-order)
  • Europa Universalis IV: Res Publica
  • Victoria: Revolutions
  • Semper Fi
  • Sengoku
  • Ship Simulator Extremes
  • Victoria 2
  • Victoria 2: A House Divided
  • Victoria 2: Heart of Darkness
  • War of the Roses
  • War of the Vikings
  • 500k Club
  • Cities: Skylines
  • Naval War: Arctic Circle
  • Europa Universalis IV: El Dorado
  • Crusader Kings II: Way of Life
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Horse Lords
  • Cities: Skylines - After Dark
  • Europa Universalis IV: Cossacks
  • Crusader Kings II: Conclave
  • Cities: Skylines - Snowfall
  • Europa Universalis IV: Mare Nostrum
  • Stellaris
  • Hearts of Iron IV: Cadet
  • Hearts of Iron IV: No Step Back
  • Europa Universalis IV
  • 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
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sword of Islam
  • Darkest Hour
  • Europa Universalis III Complete
  • Arsenal of Democracy
  • Europa Universalis IV: Art of War
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Wealth of Nations
  • For The Glory
  • For the Motherland
  • Hearts of Iron III
  • Hearts of Iron III: Their Finest Hour
  • Hearts of Iron III Collection
  • Europa Universalis III Complete
  • March of the Eagles
Ok, I just cant get my head around why these two events just do not trigger. It is liable to be something trivial, but it is still beyond me for some reason.

Code:
event = {
	id = 2090
	random = no
	country = GER
	trigger = {
		exists = DDR
		atwar = no
		NOT = {
			atwar = DDR # DDR is not at war
			alliance = { country = DDR country = SOV }
			alliance = { country = DDR country = ENG }
			alliance = { country = DDR country = GER }

		}
	}
        
	name = "WAR OF THE GERMANIES"
	desc = "Shall we unify Germany?"
	style = 0
	picture = "furios_hitler"

        date = { day = 2 month = january year = 1936 }
	offset = 1

	action_a = {
		name = "YES"
                ai_chance = 97
		command = { type = ai_prepare_war	which = DDR }
		command = { type = ai_prepare_war	which = DFR }
		command = { type =	trigger which = 2037 }
	}
        action_b = {
                name = "NOT NOW"
                ai_chance = 3
}
}

Code:
event = {
	id = 2091
	random = no
	country = GER
	trigger = {
		exists = DDR
		atwar = no
		NOT = {
			atwar = DDR # DDR is not at war
			alliance = { country = DDR country = SOV }
			alliance = { country = DDR country = ENG }
			alliance = { country = DDR country = GER }

		}
	}
        
	name = "WAR OF THE GERMANIES"
	desc = "Shall we invade?"
	style = 0
	picture = "czechs_fight"
        date = { day = 14 month = january year = 1936 }
	offset = 1

	action_a = {
		name = "YES"
                ai_chance = 97
		command = { type = war which = DDR }
		command = { type = ai_prepare_war	which = DFR }
	}
        action_b = {
                name = "NOT NOW"
                ai_chance = 3
}
}
 

HMS Enterprize

On loan to the C.S Navy
26 Badges
Jun 21, 2004
4.903
57
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Nemesis
  • Stellaris: Necroids
  • Stellaris: Federations
  • Stellaris: Lithoids
  • Stellaris: Ancient Relics
  • Stellaris: Megacorp
  • Stellaris: Distant Stars
  • Stellaris: Apocalypse
  • Stellaris: Humanoids Species Pack
  • Stellaris: Synthetic Dawn
  • Stellaris - Path to Destruction bundle
  • Stellaris: Leviathans Story Pack
  • Hearts of Iron II: Armageddon
  • Stellaris: Galaxy Edition
  • Stellaris: Galaxy Edition
  • Stellaris
  • 500k Club
  • Victoria 2
  • Victoria: Revolutions
  • Europa Universalis III Complete
  • Iron Cross
  • Europa Universalis III Complete
  • Hearts of Iron III
  • Europa Universalis III Complete
  • Darkest Hour
add deathdates for the events and even event options that have no effects (your option B's) need- command = { } in them.
 

TankHunter

First Lieutenant
96 Badges
Sep 10, 2004
217
53
  • Crusader Kings II: Holy Knight (pre-order)
  • Europa Universalis IV: Res Publica
  • Victoria: Revolutions
  • Semper Fi
  • Sengoku
  • Ship Simulator Extremes
  • Victoria 2
  • Victoria 2: A House Divided
  • Victoria 2: Heart of Darkness
  • War of the Roses
  • War of the Vikings
  • 500k Club
  • Cities: Skylines
  • Naval War: Arctic Circle
  • Europa Universalis IV: El Dorado
  • Crusader Kings II: Way of Life
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Horse Lords
  • Cities: Skylines - After Dark
  • Europa Universalis IV: Cossacks
  • Crusader Kings II: Conclave
  • Cities: Skylines - Snowfall
  • Europa Universalis IV: Mare Nostrum
  • Stellaris
  • Hearts of Iron IV: Cadet
  • Hearts of Iron IV: No Step Back
  • Europa Universalis IV
  • 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
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sword of Islam
  • Darkest Hour
  • Europa Universalis III Complete
  • Arsenal of Democracy
  • Europa Universalis IV: Art of War
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Wealth of Nations
  • For The Glory
  • For the Motherland
  • Hearts of Iron III
  • Hearts of Iron III: Their Finest Hour
  • Hearts of Iron III Collection
  • Europa Universalis III Complete
  • March of the Eagles
I made the changes and they still seem as if they dont want to trigger.
Just to be safe, the intent is for them to trigger on the desired date if Germany is not a war with DDR and if DDR is not in an alliance with the major players.

Code:
event = {
	id = 2090
	random = no
	country = GER
	trigger = {
		exists = DDR
		atwar = no
		NOT = {
			atwar = DDR # DDR is not at war
			alliance = { country = DDR country = SOV }
			alliance = { country = DDR country = ENG }
			alliance = { country = DDR country = GER }

		}
	}
        
	name = "WAR OF THE GERMANIES"
	desc = "Shall we unify Germany?"
	style = 0
	picture = "furios_hitler"

        date = { day = 2 month = january year = 1936 }
	offset = 1
	deathdate = { day = 2 month = january year = 1937 }

	action_a = {
		name = "YES"
                ai_chance = 97
		command = { type = ai_prepare_war	which = DDR }
		command = { type = ai_prepare_war	which = DFR }
		command = { type =	trigger which = 2091 }
	}
        action_b = {
                name = "NOT NOW"
                ai_chance = 3
		command = { }
}
}

Code:
event = {
	id = 2091
	random = no
	country = GER
	trigger = {
		exists = DDR
		atwar = no
		NOT = {
			atwar = DDR # DDR is not at war
			alliance = { country = DDR country = SOV }
			alliance = { country = DDR country = ENG }
			alliance = { country = DDR country = GER }

		}
	}
        
	name = "WAR OF THE GERMANIES"
	desc = "Shall we invade?"
	style = 0
	picture = "czechs_fight"
        date = { day = 14 month = january year = 1936 }
	offset = 1
	deathdate = { day = 14 month = january year = 1937 }

	action_a = {
		name = "YES"
                ai_chance = 97
		command = { type = war which = DDR }
		command = { type = ai_prepare_war	which = DFR }
	}
        action_b = {
                name = "NOT NOW"
                ai_chance = 3
		command = { }
}
}
 

unmerged(58571)

Field Marshal
Jul 1, 2006
6.288
0
1. I would add an explicit AND or OR in the NOT clauses, as I have encountered some discrepancies with these.
2. ai_prepare_war is a buggy command and should not be used.
3. You could remove the offsets and deathdates completely; the events will then have their triggers checked on January 3 and January 15, respectively.
4. Event 2090 tries to trigger 2091 before 2091's startdate.

By starting the war directly in 2090 and eliminating 2091 you take care of both 2 and 4 and get rid of a great deal of redundant code (which could be further enhanced by removing the style = 0 and random = no statements).
 

TankHunter

First Lieutenant
96 Badges
Sep 10, 2004
217
53
  • Crusader Kings II: Holy Knight (pre-order)
  • Europa Universalis IV: Res Publica
  • Victoria: Revolutions
  • Semper Fi
  • Sengoku
  • Ship Simulator Extremes
  • Victoria 2
  • Victoria 2: A House Divided
  • Victoria 2: Heart of Darkness
  • War of the Roses
  • War of the Vikings
  • 500k Club
  • Cities: Skylines
  • Naval War: Arctic Circle
  • Europa Universalis IV: El Dorado
  • Crusader Kings II: Way of Life
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Horse Lords
  • Cities: Skylines - After Dark
  • Europa Universalis IV: Cossacks
  • Crusader Kings II: Conclave
  • Cities: Skylines - Snowfall
  • Europa Universalis IV: Mare Nostrum
  • Stellaris
  • Hearts of Iron IV: Cadet
  • Hearts of Iron IV: No Step Back
  • Europa Universalis IV
  • 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
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sword of Islam
  • Darkest Hour
  • Europa Universalis III Complete
  • Arsenal of Democracy
  • Europa Universalis IV: Art of War
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Wealth of Nations
  • For The Glory
  • For the Motherland
  • Hearts of Iron III
  • Hearts of Iron III: Their Finest Hour
  • Hearts of Iron III Collection
  • Europa Universalis III Complete
  • March of the Eagles
It is still not firing. This is really getting to be irritating.

Well, thanks guys for the help, but I am not sure where I am screwing up with this one event.
 

Ayeshteni

Jehanne's Slave
111 Badges
Jul 31, 2002
6.280
108
  • 500k Club
  • Europa Universalis III Complete
  • March of the Eagles
  • Europa Universalis III Complete
  • Penumbra - Black Plague
  • Europa Universalis IV: Res Publica
  • Europa Universalis: Rome
  • Semper Fi
  • Sengoku
  • Victoria 2
  • Victoria 2: A House Divided
  • Rome: Vae Victis
  • 200k Club
  • Heir to the Throne
  • Cities: Skylines
  • Crusader Kings II: Holy Knight (pre-order)
  • Europa Universalis III: Collection
  • Europa Universalis IV: El Dorado
  • Europa Universalis IV: Pre-order
  • Pride of Nations
  • Rise of Prussia
  • Crusader Kings II: Way of Life
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Horse Lords
  • Cities: Skylines - After Dark
  • Hearts of Iron IV: No Step Back
  • Europa Universalis III
  • Hearts of Iron II: Armageddon
  • 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
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sword of Islam
  • Darkest Hour
  • Deus Vult
  • A Game of Dwarves
  • Divine Wind
  • Europa Universalis IV
  • Europa Universalis IV: Art of War
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Call to arms event
  • For The Glory
  • For the Motherland
  • Hearts of Iron III
  • Hearts of Iron III: Their Finest Hour
Do you have these in an existing event file or a new event file?

If a new file, you have to add that files name to the event.txt

If a new file and you are in the middle of a scenario, you need to add the new file name to the save file (near the bottom)

Ayeshteni
 

TankHunter

First Lieutenant
96 Badges
Sep 10, 2004
217
53
  • Crusader Kings II: Holy Knight (pre-order)
  • Europa Universalis IV: Res Publica
  • Victoria: Revolutions
  • Semper Fi
  • Sengoku
  • Ship Simulator Extremes
  • Victoria 2
  • Victoria 2: A House Divided
  • Victoria 2: Heart of Darkness
  • War of the Roses
  • War of the Vikings
  • 500k Club
  • Cities: Skylines
  • Naval War: Arctic Circle
  • Europa Universalis IV: El Dorado
  • Crusader Kings II: Way of Life
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Horse Lords
  • Cities: Skylines - After Dark
  • Europa Universalis IV: Cossacks
  • Crusader Kings II: Conclave
  • Cities: Skylines - Snowfall
  • Europa Universalis IV: Mare Nostrum
  • Stellaris
  • Hearts of Iron IV: Cadet
  • Hearts of Iron IV: No Step Back
  • Europa Universalis IV
  • 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
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sword of Islam
  • Darkest Hour
  • Europa Universalis III Complete
  • Arsenal of Democracy
  • Europa Universalis IV: Art of War
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Wealth of Nations
  • For The Glory
  • For the Motherland
  • Hearts of Iron III
  • Hearts of Iron III: Their Finest Hour
  • Hearts of Iron III Collection
  • Europa Universalis III Complete
  • March of the Eagles
They are in an existing file. I just added the events to the Germany event file. Also whenever I test out the event, I start a new game. This one is really beating the crap outa me...
 

Ayeshteni

Jehanne's Slave
111 Badges
Jul 31, 2002
6.280
108
  • 500k Club
  • Europa Universalis III Complete
  • March of the Eagles
  • Europa Universalis III Complete
  • Penumbra - Black Plague
  • Europa Universalis IV: Res Publica
  • Europa Universalis: Rome
  • Semper Fi
  • Sengoku
  • Victoria 2
  • Victoria 2: A House Divided
  • Rome: Vae Victis
  • 200k Club
  • Heir to the Throne
  • Cities: Skylines
  • Crusader Kings II: Holy Knight (pre-order)
  • Europa Universalis III: Collection
  • Europa Universalis IV: El Dorado
  • Europa Universalis IV: Pre-order
  • Pride of Nations
  • Rise of Prussia
  • Crusader Kings II: Way of Life
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Horse Lords
  • Cities: Skylines - After Dark
  • Hearts of Iron IV: No Step Back
  • Europa Universalis III
  • Hearts of Iron II: Armageddon
  • 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
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sword of Islam
  • Darkest Hour
  • Deus Vult
  • A Game of Dwarves
  • Divine Wind
  • Europa Universalis IV
  • Europa Universalis IV: Art of War
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Call to arms event
  • For The Glory
  • For the Motherland
  • Hearts of Iron III
  • Hearts of Iron III: Their Finest Hour
TankHunter said:
They are in an existing file. I just added the events to the Germany event file. Also whenever I test out the event, I start a new game. This one is really beating the crap outa me...

I must confess then, that it is puzzling the bejesus out of me as well then.

Ayeshteni