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

Benjamin

Second Lieutenant
57 Badges
Jul 27, 2004
122
9
  • Stellaris: Apocalypse
  • Crusader Kings II: Reapers Due
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Leviathans Story Pack
  • Crusader Kings II: Monks and Mystics
  • Stellaris - Path to Destruction bundle
  • Knights of Honor
  • Crusader Kings Complete
  • BATTLETECH
  • Surviving Mars
  • Stellaris: Synthetic Dawn
  • Crusader Kings II: Jade Dragon
  • Stellaris: Humanoids Species Pack
  • Hearts of Iron IV: Cadet
  • Surviving Mars: Digital Deluxe Edition
  • BATTLETECH - Digital Deluxe Edition
  • Stellaris: Distant Stars
  • Surviving Mars: First Colony Edition
  • BATTLETECH: Flashpoint
  • Stellaris: Megacorp
  • Crusader Kings II: Holy Fury
  • Imperator: Rome Deluxe Edition
  • Imperator: Rome
  • Surviving Mars: First Colony Edition
  • Stellaris: Ancient Relics
  • Stellaris: Nemesis
  • Victoria 2: A House Divided
  • 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
  • Europa Universalis IV
  • Hearts of Iron III
  • Victoria 2
  • Cities in Motion
  • 500k Club
  • Crusader Kings II: Holy Knight (pre-order)
  • Europa Universalis IV: Pre-order
  • Mount & Blade: Warband
  • Crusader Kings II: Way of Life
  • Crusader Kings II: Horse Lords
  • Crusader Kings II: Conclave
  • Stellaris
  • Stellaris: Galaxy Edition
  • Stellaris: Galaxy Edition
I thought I'd let Austria have a chance to reforge it's 1914 Empire. I wrote this event for the austria.txt file in the db\events folder: [note: red line is for comment below]

#########################################################################
# Claim the old empire!
#########################################################################
event = {
id = 2101
random = no
country = AUS
trigger = {
atwar = no
NOT = {
OR = {
war = { country = CZE country = GER }
war = { country = HUN country = GER }
war = { country = YUG country = GER }
alliance = { country = CZE country = GER }
alliance = { country = HUN country = GER }
alliance = { country = YUG country = GER }
ispuppet = GER
puppet = { country = CZE country = GER }
puppet = { country = HUN country = GER }
puppet = { country = YUG country = GER } }
}
}
}
name = "EVT_2101_NAME"
desc = "EVT_2101_DESC"
style = 0
picture = "german_marginal_victory2"

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

action_a = {
name = "ACTIONNAME2101A" # Declare reformation of old empire!
ai_chance = 10
command = { type = addcore which = 468 } # Czechoslovak provinces
command = { type = addcore which = 469 }
command = { type = addcore which = 470 }
command = { type = addcore which = 471 }
command = { type = addcore which = 472 }
command = { type = addcore which = 474 }
command = { type = addcore which = 475 }
command = { type = addcore which = 476 }
command = { type = addcore which = 477 }
command = { type = addcore which = 478 }
command = { type = addcore which = 490 }
command = { type = addcore which = 380 } #Yugoslavia provinces
command = { type = addcore which = 381 }
command = { type = addcore which = 382 }
command = { type = addcore which = 383 }
command = { type = addcore which = 384 }
command = { type = addcore which = 385 }
command = { type = addcore which = 386 }
command = { type = addcore which = 387 }
command = { type = addcore which = 388 }
command = { type = addcore which = 454 }
command = { type = addcore which = 455 }
command = { type = addcore which = 459 }
command = { type = addcore which = 493 }
command = { type = addcore which = 456 } #Hungary provinces
command = { type = addcore which = 457 }
command = { type = addcore which = 458 }
command = { type = addcore which = 491 }
command = { type = addcore which = 492 }
command = { type = addcore which = 497 }
command = { type = addcore which = 428 } #Romania provinces
command = { type = addcore which = 496 }
command = { type = addcore which = 498 }
command = { type = addcore which = 479 } #Poland provinces
command = { type = addcore which = 489 }
command = { type = addcore which = 500 }
command = { type = relation which = GER value = -10 }
command = { type = relation which = CZE value = -20 }
command = { type = relation which = HUN value = -20 }
command = { type = relation which = YUG value = -20 }
command = { type = belligerence which = AUS value = 5 }
command = { type = domestic which = interventionism value = 1 }
command = { type = domestic which = defense_lobby value = 1 }
command = { type = dissent value = 8 }
}
action_b = {
name = "ACTIONNAME2101B" # Leave well enough alone
ai_chance = 90
command = { type = relation which = YUG value = 10 }
command = { type = relation which = CZE value = 10 }
command = { type = relation which = HUN value = 10 }
command = { type = relation which = GER value = 10 }
command = { type = belligerence which = AUS value = -1 }
command = { type = dissent value = -2 }
}
}


I then put the following lines in the event_text.csv file of the \config folder:

EVT_2101_NAME;Reforge the Empire;;;;;;;;;;X
EVT_2101_DESC;Proclaim the intent to retake all provinces lost in 1918 and reforge the Austrian Empire.;;;;;;;;;;X
ACTIONNAME2101A;Claim the lost provinces!;;;;;;;;;;X
ACTIONNAME2101B;Never mind...;;;;;;;;;;X


When I try to load Austria 1936, I get the following error:

---Error: (unknown data defined in event database) 'name = 'EVT_NAME_2101' Line = 86 file = db\events\austria.txt ---
Do you want to continue?

The red text line above is line #86 in the austria.txt file.

Did I write something wrong? Did I need to put more info somewhere? Maybe add something to another file? HELP!

I basically just copied over the event for Munich Treaty and adjusted to fit what I wanted. I selected event2101 because it was unused. Thanks for the help!
 

Benjamin

Second Lieutenant
57 Badges
Jul 27, 2004
122
9
  • Stellaris: Apocalypse
  • Crusader Kings II: Reapers Due
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Leviathans Story Pack
  • Crusader Kings II: Monks and Mystics
  • Stellaris - Path to Destruction bundle
  • Knights of Honor
  • Crusader Kings Complete
  • BATTLETECH
  • Surviving Mars
  • Stellaris: Synthetic Dawn
  • Crusader Kings II: Jade Dragon
  • Stellaris: Humanoids Species Pack
  • Hearts of Iron IV: Cadet
  • Surviving Mars: Digital Deluxe Edition
  • BATTLETECH - Digital Deluxe Edition
  • Stellaris: Distant Stars
  • Surviving Mars: First Colony Edition
  • BATTLETECH: Flashpoint
  • Stellaris: Megacorp
  • Crusader Kings II: Holy Fury
  • Imperator: Rome Deluxe Edition
  • Imperator: Rome
  • Surviving Mars: First Colony Edition
  • Stellaris: Ancient Relics
  • Stellaris: Nemesis
  • Victoria 2: A House Divided
  • 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
  • Europa Universalis IV
  • Hearts of Iron III
  • Victoria 2
  • Cities in Motion
  • 500k Club
  • Crusader Kings II: Holy Knight (pre-order)
  • Europa Universalis IV: Pre-order
  • Mount & Blade: Warband
  • Crusader Kings II: Way of Life
  • Crusader Kings II: Horse Lords
  • Crusader Kings II: Conclave
  • Stellaris
  • Stellaris: Galaxy Edition
  • Stellaris: Galaxy Edition
ARGH! I counted those { and } over and over, too. Just shows what staying up until 2 AM too many nights in a row will do to you. Curse you, Paradox for making such an addictive game!!!! ;)
 

baylox

East vs West developer, CORE Air Marshall
25 Badges
Nov 30, 2003
953
0
Visit site
  • Knights of Pen and Paper 2
  • Hearts of Iron IV: La Resistance
  • Hearts of Iron IV: Expansion Pass
  • Shadowrun Returns
  • Hearts of Iron IV: Expansion Pass
  • Cities: Skylines - Parklife
  • Cities: Skylines - Parklife Pre-Order
  • Hearts of Iron IV: Expansion Pass
  • Age of Wonders III
  • Hearts of Iron IV: Death or Dishonor
  • Hearts of Iron IV: Together for Victory
  • Tyranny: Archon Edition
  • Hearts of Iron IV: Cadet
  • Arsenal of Democracy
  • Cities: Skylines
  • 500k Club
  • Knights of Pen and Paper +1 Edition
  • Hearts of Iron III
  • Crusader Kings II: Sword of Islam
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: The Republic
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II
  • Hearts of Iron II: Armageddon
I recommend using Notepad++. With the correct settings (just make sure the file is displayed as a normal text file, I believe) it'll highlight the matching bracket when the cursor is next to or has selected one bracket. That way it's real easy seeing where one is missing or if there is one too much.
You can get it here: http://notepad-plus.sourceforge.net/uk/news.php?lang=uk