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

manager12390

Corporal
60 Badges
Dec 25, 2007
33
0
  • Crusader Kings II
  • Crusader Kings II: Sword of Islam
  • Europa Universalis IV
  • Europa Universalis IV: Common Sense
  • Europa Universalis IV: Rule Britannia
  • Crusader Kings II: Horse Lords
  • Crusader Kings II: Conclave
  • Shadowrun: Dragonfall
  • Hearts of Iron IV: Cadet
  • Hearts of Iron IV: Colonel
  • Crusader Kings II: Reapers Due
  • Europa Universalis IV: Rights of Man
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Leviathans Story Pack
  • Hearts of Iron IV: Together for Victory
  • Crusader Kings II: Monks and Mystics
  • Shadowrun Returns
  • Europa Universalis IV: Mandate of Heaven
  • Hearts of Iron IV: Death or Dishonor
  • Cities: Skylines - Green Cities
  • Europa Universalis IV: Cradle of Civilization
  • Europa Universalis IV: Dharma
  • Hearts of Iron IV: Expansion Pass
  • Stellaris: Humanoids Species Pack
  • Crusader Kings II: Way of Life
  • Crusader Kings III
  • Cities: Skylines - Campus
  • Hearts of Iron IV: Expansion Pass
  • Victoria 2
  • Europa Universalis IV: Golden Century
  • Cities: Skylines
  • Pillars of Eternity
  • Europa Universalis IV: El Dorado
  • Europa Universalis IV: Art of War
  • Ancient Space
  • 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: Sons of Abraham
  • Europa Universalis IV: Third Rome
  • Darkest Hour
  • Victoria 2: Heart of Darkness
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Wealth of Nations
  • Cities: Skylines - After Dark
  • Europa Universalis IV: Res Publica
  • Victoria: Revolutions
  • Europa Universalis IV: Cossacks
  • Stellaris
Well, for my first attempt at writing an event, I'm trying to create one that a. unifies Argentina and Uruguay a la Anschluss, and b. makes Montevideo one of Argentina's cores. I followed the wiki to the best of my ability, but the game crashes when I try to start it up now (yes I have a backup, I'm not that big of a noob :D ) Anyway, here's what I've come up with:

##### Uruguay joins with Argentina

event = {
id = 5043
random = no
country = ARG
style = 0

name = "EVT_5043_NAME"
desc = "EVT_5043_DESC"
picture = "FIN_give_in"

date = { day = 4 month = january year = 1936 }

action_a = {
name = "Excellent"
command = { type = inherit which = URU }
command = { type = addcore which = 849 }
}
}


Right now I'm not interested in the cosmetic part of the event, I'm just trying to give it the minimum for it to work. If somebody would be so kind as to point out what I'm doing wrong and how I can fix it, you would be forever in my gratitude. In the future I'll see about adding a declination option (kinda pointless since I will never decline it, but just for completion's sake) and getting the names and descriptions right. Right now, however, I just want it to work. Thanks in advance.
 

Kyronea

Second Lieutenant
33 Badges
Mar 14, 2006
106
0
  • Teleglitch: Die More Edition
  • Hearts of Iron III: Their Finest Hour
  • Hearts of Iron III Collection
  • Heir to the Throne
  • Europa Universalis III Complete
  • Magicka
  • Europa Universalis III Complete
  • Europa Universalis IV: Res Publica
  • Semper Fi
  • Hearts of Iron III
  • Victoria 2
  • Victoria 2: A House Divided
  • Victoria 2: Heart of Darkness
  • 500k Club
  • Mount & Blade: With Fire and Sword
  • Crusader Kings Complete
  • Prison Architect
  • Cities in Motion
  • For the Motherland
  • Europa Universalis IV: Call to arms event
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV
  • Divine Wind
  • Europa Universalis III Complete
  • Europa Universalis III: Chronicles
  • Europa Universalis III
  • Darkest Hour
  • Crusader Kings II: Sword of Islam
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: The Republic
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II
You have two possible problems:

1. Your event ID is a duplicate of another event.

2. You don't need that date entry. Without a trigger, the date is unnecessary.
 

unmerged(90249)

Colonel
6 Badges
Jan 2, 2008
819
1
  • Crusader Kings II
  • Darkest Hour
  • Hearts of Iron III
  • March of the Eagles
  • Semper Fi
  • Victoria 2: A House Divided
I think you should do as the anschluss event :

1) wirte an event for Uruguay that will end the game for it, and then trigger the second event

2) the second event will be the one your already did

hope it help

P.S. the best being to duplicate the events for the anschluss, and just change the countries TAG, and the ID
 

unmerged(58571)

Field Marshal
Jul 1, 2006
6.288
0
Kyronea said:
2. You don't need that date entry. Without a trigger, the date is unnecessary.
Er? Without a date statement the game engine won't know when the event is supposed to fire.
 

Kyronea

Second Lieutenant
33 Badges
Mar 14, 2006
106
0
  • Teleglitch: Die More Edition
  • Hearts of Iron III: Their Finest Hour
  • Hearts of Iron III Collection
  • Heir to the Throne
  • Europa Universalis III Complete
  • Magicka
  • Europa Universalis III Complete
  • Europa Universalis IV: Res Publica
  • Semper Fi
  • Hearts of Iron III
  • Victoria 2
  • Victoria 2: A House Divided
  • Victoria 2: Heart of Darkness
  • 500k Club
  • Mount & Blade: With Fire and Sword
  • Crusader Kings Complete
  • Prison Architect
  • Cities in Motion
  • For the Motherland
  • Europa Universalis IV: Call to arms event
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV
  • Divine Wind
  • Europa Universalis III Complete
  • Europa Universalis III: Chronicles
  • Europa Universalis III
  • Darkest Hour
  • Crusader Kings II: Sword of Islam
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: The Republic
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II
Yes it will, if it's set to be triggered by another event.

I assumed such an event for Uruguay would have already been written by the original poster. My apologies.
 

BritNavFan

Lt. General
92 Badges
Mar 14, 2005
1.592
146
  • Europa Universalis IV: El Dorado
  • Europa Universalis IV: Res Publica
  • Europa Universalis: Rome
  • Semper Fi
  • Sword of the Stars
  • Victoria 2
  • Victoria 2: A House Divided
  • Rome: Vae Victis
  • Warlock: Master of the Arcane
  • Warlock 2: The Exiled
  • 500k Club
  • Cities: Skylines
  • Cities: Skylines Deluxe Edition
  • Europa Universalis III Complete
  • Europa Universalis IV: Pre-order
  • 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
  • Stellaris: Nemesis
  • Europa Universalis III
  • Arsenal of Democracy
  • 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
  • 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 Motherland
  • Hearts of Iron III
  • Heir to the Throne
  • Europa Universalis III Complete
Manager: I copied and pasted your event into my game, and it worked fine (other than the event name being EVT_5043_NAME). So it's possibly a bug elsewhere? (In my coding, this is typically unclosed {} or the like in the other events in the same text file.)