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

Field Marshal
Jul 1, 2006
6.288
0
Code:
	trigger = {
		war = { country = GER country = DEN }
		OR = {
			control = { province = 91 data = GER } # Kolding
			control = { province = 92 data = GER } # Århus
			control = { province = 292 data = GER } # Aalborg
			control = { province = 293 data = GER } # Odense
			control = { province = 294 data = GER } # Copenhagen
		}
		NOT = { war = { country = POL country = GER } }
	}
Poland has been annexed, Germany has attacked Denmark and occupied Kolding. The trigger conditions should be checked daily, but more than a week has passed without the event triggering.
The worst thing is, I am certain the event has triggered several times in other campaigns since the last time I modified it.

Edit: I can't trigger it from the console either, not even after a save-and-reload. Other events in the same file work.
 
Last edited:

xtfoster

Field Marshal
57 Badges
Feb 8, 2006
5.874
2.209
  • Shadowrun Returns
  • Surviving Mars
  • Hearts of Iron IV: Death or Dishonor
  • Stellaris: Synthetic Dawn
  • Tyranny - Tales from the Tiers
  • Tyranny - Bastards Wound
  • Age of Wonders III
  • Hearts of Iron IV: Expansion Pass
  • Stellaris: Humanoids Species Pack
  • Stellaris: Apocalypse
  • BATTLETECH - Digital Deluxe Edition
  • Hearts of Iron IV: Expansion Pass
  • Stellaris: Distant Stars
  • BATTLETECH
  • Shadowrun: Dragonfall
  • Shadowrun: Hong Kong
  • BATTLETECH: Flashpoint
  • Stellaris: Megacorp
  • Hearts of Iron IV: Expansion Pass
  • Stellaris: Ancient Relics
  • BATTLETECH: Season pass
  • Age of Wonders: Planetfall Sign Up
  • Stellaris: Lithoids
  • BATTLETECH: Heavy Metal
  • Hearts of Iron IV: La Resistance
  • Hearts of Iron IV: No Step Back
  • Stellaris: Galaxy Edition
  • Deus Vult
  • Europa Universalis III
  • For the Motherland
  • Hearts of Iron III
  • Hearts of Iron III: Their Finest Hour
  • Majesty 2
  • Europa Universalis III Complete
  • Semper Fi
  • Supreme Ruler 2020
  • 500k Club
  • Hearts of Iron II: Beta
  • Stellaris
  • Hearts of Iron II: Armageddon
  • Stellaris: Galaxy Edition
  • Hearts of Iron IV Sign-up
  • Stellaris Sign-up
  • Hearts of Iron IV: Cadet
  • Tyranny: Archon Edition
  • Tyranny: Archon Edition
  • Tyranny: Gold Edition
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Leviathans Story Pack
  • Hearts of Iron IV: Expansion Pass
Wobbler said:
Code:
	trigger = {
		war = { country = GER country = DEN }
		OR = {
			control = { province = 91 data = GER } # Kolding
			control = { province = 92 data = GER } # Århus
			control = { province = 292 data = GER } # Aalborg
			control = { province = 293 data = GER } # Odense
			control = { province = 294 data = GER } # Copenhagen
		}
		NOT = { war = { country = POL country = GER } }
	}
Poland has been annexed, Germany has attacked Denmark and occupied Kolding. The trigger conditions should be checked daily, but more than a week has passed without the event triggering.
The worst thing is, I am certain the event has triggered several times in other campaigns since the last time I modified it.

Edit: I can't trigger it from the console either, not even after a save-and-reload. Other events in the same file work.
If you can't manually fire it, it has either fired or been slept.
Open your savegame and check to see if the event has already fired...its possible it fired and the ai took the non-standard choice, and you missed it.
Just open the savegame...
Search for history
Find next
You should see a list of number (events that have fired and aren't persistent)
If your event number is in the list, it has already fired.
If not, check the sleepevent list...some other event might have slept it.
 

unmerged(58571)

Field Marshal
Jul 1, 2006
6.288
0
xtfoster said:
If you can't manually fire it, it has either fired or been slept.
Open your savegame and check to see if the event has already fired...its possible it fired and the ai took the non-standard choice, and you missed it.
Just open the savegame...
Search for history
Find next
You should see a list of number (events that have fired and aren't persistent)
If your event number is in the list, it has already fired.
If not, check the sleepevent list...some other event might have slept it.
I wish I were lucky enough to have made such a silly mistake :(

Here is the complete event chain, which, as far as I recall, I changed about 4 or 5 campaigns ago (when I last played Germany) since it kept causing a CtD...
Code:
event = {
	id = 93
	country = DEN

	name = EVT_93_NAME
	desc = EVT_93_DESC
	picture = "denmark"

	trigger = {
		war = { country = GER country = DEN }
		OR = {
			control = { province = 91 data = GER } # Kolding
			control = { province = 92 data = GER } # Århus
			control = { province = 292 data = GER } # Aalborg
			control = { province = 293 data = GER } # Odense
			control = { province = 294 data = GER } # Copenhagen
		}
		NOT = { war = { country = POL country = GER } }
	}

        date = { year = 1936 }
        offset = 1
	deathdate = { year = 1953 }

	action_a = {
		ai_chance = 100
		name = EVT_93_ACTA
		command = { type = secedeprovince which = ENG value = 800 } # Gothab
		command = { type = secedeprovince which = ENG value = 1 } # Reykjavik
		command = { type = secedeprovince which = ENG value = 2 } # Akureyri
		#command = { type = secedeprovince which = GER value = 91 } # Kolding
		#command = { type = secedeprovince which = GER value = 92 } # 
		#command = { type = secedeprovince which = GER value = 292 } # 
		#command = { type = secedeprovince which = GER value = 293 } # 
		#command = { type = secedeprovince which = GER value = 294 } # 
		#command = { type = secedeprovince which = GER value = 295 } #

		# Starting navy, otherwise trapped in Copenhagen forever
		#command = { type = delete_unit which = 27000 value = 45 }
		#command = { type = delete_unit which = 27000 value = 46 }
		#command = { type = delete_unit which = 27000 value = 47 }
		#command = { type = delete_unit which = 27000 value = 48 }

		command = { type = remove_division which = "HDMS Niels Juel" value = DEN }
		command = { type = remove_division which = "HDMS Peder Skram" value = DEN }
		command = { type = remove_division which = "1. Ubåds Flotille" value = DEN }
		command = { type = remove_division which = "2. Ubåds Flotille" value = DEN }

		command = { type = delete_unit which = -1 }
		command = { type = delete_unit which = -1 }
		command = { type = delete_unit which = -1 }
		command = { type = delete_unit which = -1 }
		command = { type = delete_unit which = -1 }
		command = { type = delete_unit which = -1 }
		command = { type = delete_unit which = -1 }
		command = { type = delete_unit which = -1 }
		command = { type = delete_unit which = -1 }
		command = { type = delete_unit which = -1 }

		command = { type = trigger which = 6193 }
	}
	action_b = {
		ai_chance = 0
		name = EVT_93_ACTB
		command = { type = domestic which = defense_lobby value = 1 }
		command = { type = dissent value = 10 }
	}
}


event = {
	id = 6193
	country = GER

	name = EVT_6193_NAME
	desc = EVT_93_DESC
	picture = "denmark"

	action_a = {
		name = OK
		command = { type = addcore which = 91 }
		command = { type = addcore which = 92 }
		command = { type = addcore which = 292 }
		command = { type = addcore which = 293 }
		command = { type = addcore which = 294 }
		command = { type = addcore which = 295 }
		command = { type = inherit which = DEN }
		command = { type = trigger which = 332067 }
	}
}

event = {
	id = 332067
	country = GER
	name = "Intermediate Event"
	desc = EVT_93_DESC

	action_a = {
		name = "OK"
		command = { type = removecore which = 91 }
		command = { type = removecore which = 92 }
		command = { type = removecore which = 292 }
		command = { type = removecore which = 293 }
		command = { type = removecore which = 294 }
		command = { type = removecore which = 295 }
	}
}
 

unmerged(58571)

Field Marshal
Jul 1, 2006
6.288
0
I figured it out...
It was an error inside a trigger in a previous event in the same file that caused the event parser to stop reading the file, including discarding the event currently being parsed, rather than to give an error message.