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

Private
Jul 7, 2002
16
0
Visit site
Hi
I was trying to use the 'exists' command as follows (this was a test only). However the game time freezes on Jan 2nd 1936 when playing the single player as the USA (1936 scenario). Any idea what I'm doing wrong?

The following is the code I was using which I added to the end of the USA.txt file in the events folder.

#########################################################################
# Nations are expanding - France elimination
#########################################################################
event = {
id = 3700001
random = no
country = USA

trigger = {
NOT = {
exists = FRA
}
}
date = { day = 1 month = january year = 1936 }
deathdate = { day = 30 month = december year = 1947 }

name = "country FRA Eliminated"
desc = "Country FRA Eliminated"
style = 0

action_a = {
name = "Nations are expanding we may need to take action"
command = { type = warentry value = 1 }
}
}
 

jdrou

Field Marshal
74 Badges
Jun 10, 2002
24.161
461
  • Stellaris: Federations
  • Europa Universalis IV
  • Europa Universalis IV: Common Sense
  • Europa Universalis IV: Rights of Man
  • Hearts of Iron IV: Cadet
  • Stellaris: Galaxy Edition
  • Europa Universalis IV: Mare Nostrum
  • Europa Universalis IV: Cossacks
  • Paradox Order
  • Stellaris: Digital Anniversary Edition
  • Humble Paradox Bundle
  • Europa Universalis IV: Pre-order
  • Europa Universalis IV: El Dorado
  • Europa Universalis III: Collection
  • Europa Universalis III: Chronicles
  • 500k Club
  • 200k Club
  • Europa Universalis IV: Dharma Pre-order
  • Stellaris: Lithoids
  • Stellaris: Ancient Relics
  • Imperator: Rome Deluxe Edition
  • Europa Universalis IV: Golden Century
  • Stellaris: Megacorp
  • Europa Universalis IV: Dharma
  • Stellaris: Distant Stars
  • Stellaris: Apocalypse
  • Stellaris: Humanoids Species Pack
  • Europa Universalis IV: Cradle of Civilization
  • Stellaris: Synthetic Dawn
  • Europa Universalis IV: Third Rome
  • Europa Universalis IV: Mandate of Heaven
  • Stellaris - Path to Destruction bundle
  • Stellaris: Leviathans Story Pack
  • Deus Vult
  • Darkest Hour
  • Crusader Kings II
  • Hearts of Iron II: Armageddon
  • Arsenal of Democracy
  • Hearts of Iron Anthology
  • Victoria 2
  • Rome Gold
  • Victoria: Revolutions
  • Europa Universalis IV: Res Publica
  • Hearts of Iron III
  • For The Glory
  • Europa Universalis IV: Call to arms event
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Art of War
  • Stellaris: Galaxy Edition
The problem is the lack of an 'offset'. Any event with a deathdate must have an offset or the game will freeze. (Offset is how often [in days] the event triggers are checked after the first check of that game session.) This was the cause of the infamous Dec 13, 1941 freeze in the initial 1.05 release.

(I'm not laughing, honest.):)