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

razorbird789

Major
83 Badges
Sep 15, 2009
696
2
  • Arsenal of Democracy
  • Crusader Kings II
  • Victoria: Revolutions
  • Darkest Hour
  • Age of Wonders III
  • Stellaris: Synthetic Dawn
  • Stellaris - Path to Destruction bundle
  • Stellaris: Humanoids Species Pack
  • Europa Universalis IV: Third Rome
  • Crusader Kings II: Way of Life
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Horse Lords
  • Stellaris: Lithoids
  • Europa Universalis IV: Cossacks
  • Crusader Kings II: Conclave
  • Cities: Skylines - Snowfall
  • Victoria 3 Sign Up
  • Stellaris: Galaxy Edition
  • Hearts of Iron IV: Cadet
  • Crusader Kings II: Reapers Due
  • Europa Universalis IV: Rights of Man
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Leviathans Story Pack
  • Cities: Skylines - Natural Disasters
  • Hearts of Iron IV: Together for Victory
  • Crusader Kings II: Monks and Mystics
  • Cities: Skylines - Mass Transit
  • Europa Universalis IV: Mandate of Heaven
  • Cities: Skylines - Parklife
  • Surviving Mars
  • Stellaris: Distant Stars
  • Europa Universalis IV: Dharma
  • Cities: Skylines Industries
  • Crusader Kings II: Holy Fury
  • Europa Universalis IV: Golden Century
  • Imperator: Rome Deluxe Edition
  • Stellaris: Federations
  • Cities: Skylines - Campus
  • Stellaris: Ancient Relics
  • Europa Universalis IV
  • Europa Universalis IV: El Dorado
  • Hearts of Iron IV: La Resistance
  • Stellaris: Apocalypse
  • Europa Universalis III Complete
  • Europa Universalis III Complete
  • Hearts of Iron IV: Death or Dishonor
  • Victoria 2
  • Cities: Skylines - Green Cities
  • 500k Club
  • Battle for Bosporus
i'm new to event making so i thought i'd do something simple. I have made an event that adds the Hoover Dam in for the USA in 1936 but the game wont start saying there is an error in a line somewhere.
Here's the Code:


event = {
id = 1610199
random = no
country = USA
trigger = {
random = 95
}

date = { day = 1 month = march year = 1936 }
offset = 10
deathdate = { day = 30 month = december year = 1936 }
name = "The Hoover Dam is completed"
desc = "The dam named after our previous president is complete, the energy from this dam will be useful for our industry and population."
style = 2
picture = "Autobahn"
action = {
name = "1610199a"
command = { type = dissent value = -5 }
command = { type = industrial_modifier which = total value = 2 }
command = { type = construct which = infrastructure where = 1889 value = 10 }
command = { type = construct which = infrastructure where = 1887 value = 10 }
command = { trigger = { ai = no } type = money value = -700 }
Command = {type = energypool value = 50 where = 1889 }


I haven't completed it yet but i was hoping that the above was in working order at the least. When it works i'll tweak it so its more accurate(no autobahn picture) :)

DH Error.jpeg
 
You need 2 brackets at the end of it.

Also, the last command is wrong. With the yellow changes it should work.

Code:
event = {
id = 1610199
random = no
country = USA
trigger = {
random = 95
}

date = { day = 1 month = march year = 1936 }
offset = 10
deathdate = { day = 30 month = december year = 1936 }
name = "The Hoover Dam is completed"
desc = "The dam named after our previous president is complete, the energy from this dam will be useful for our industry and population."
style = 2
picture = "Autobahn"
action = {
name = "1610199a"
command = { type = dissent value = -5 }
command = { type = industrial_modifier which = total value = 2 }
command = { type = construct which = infrastructure where = 1889 value = 10 }
command = { type = construct which = infrastructure where = 1887 value = 10 }
command = { trigger = { ai = no } type = money value = -700 }
[COLOR="#FFFF00"]command = { type = add_prov_resource which = 1889 value = 50 where = energy }
}}[/COLOR]