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

Flavius Contencius

Sergeant
4 Badges
Jul 9, 2018
66
0
  • Europa Universalis IV
  • Hearts of Iron IV: Cadet
  • Hearts of Iron IV: Together for Victory
  • Europa Universalis IV: Mandate of Heaven
Hi,i try for my mod to create events,but the game crash :

##########################################################################
# America in 1936
#########################################################################
event = {
id = 2049010
random = no
country = USA

name = America in 1936
desc = "Since Secession war,the Union try to stay unite from nationalists separatists mouvements like californians;neo-england;or native groups...The economic crisis weaken more the federal states,but the chaiman Roosvelt launch New Deal to rebuilding the nation.The elections are near,and the people is divised to know who will be the new president of United States...."
style = 2
picture = "news_paper"

date = { day = 2 month = january year = 1936 }
offset = 7
deathdate = { day = 8 month = january year = 1936 }

action_a = {
name = "Are we go to an second civil war ?"
}
}


Other problem : which number i must put in ID ?


Thanks for help ?
 
Event name should be in quotes, same as description, action names, etc.

Code:
name = "America in 1936"

That's how it should be.

The ID lies in the range of 0 to 2,147,483,647, it should be unique for each event.

For the future, please consider taking a look into event_commands.txt, located in Modding documentation subfolder of your game folder. Also there's a thread for fixing event problems and another thread for general modding questions.
 
Last edited: