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

gossamer

First Lieutenant
79 Badges
Apr 14, 2007
285
0
  • Europa Universalis IV: El Dorado
  • Sword of the Stars II
  • Starvoid
  • The Showdown Effect
  • Victoria 2
  • Victoria 2: A House Divided
  • Victoria 2: Heart of Darkness
  • Warlock: Master of the Arcane
  • Warlock 2: The Exiled
  • War of the Roses
  • War of the Vikings
  • 500k Club
  • Cities: Skylines
  • Sword of the Stars
  • Europa Universalis IV: Pre-order
  • Pillars of Eternity
  • Europa Universalis IV: Common Sense
  • Cities: Skylines - After Dark
  • Europa Universalis IV: Cossacks
  • Cities: Skylines - Snowfall
  • Europa Universalis IV: Mare Nostrum
  • Stellaris
  • Hearts of Iron IV Sign-up
  • Hearts of Iron IV: Cadet
  • Europa Universalis IV: Rights of Man
  • Battle for Bosporus
  • Europa Universalis IV: Conquest of Paradise
  • Arsenal of Democracy
  • Cities in Motion 2
  • Crusader Kings II
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: The Republic
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Sword of Islam
  • Darkest Hour
  • Europa Universalis III
  • Europa Universalis IV
  • Europa Universalis IV: Art of War
  • A Game of Dwarves
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Call to arms event
  • For the Motherland
  • Hearts of Iron III
  • Hearts of Iron III: Their Finest Hour
  • King Arthur II
  • Lead and Gold
  • Magicka
  • Europa Universalis III Complete
  • Europa Universalis IV: Res Publica
Code:
#############################################
###### German Liberation Army # 
#############################################
event = {
        id = 999000
        random = no
        country = DFR
        trigger = {
                exists = DFR

        }
 
        name = "EVT_999000_NAME"
        desc = "EVT_999000_DESC"
        style = 0
        picture = "german_reinforcment_6.bmp"
 
        date = { day = 26 month = january year = 1936 }
        offset = 
 
        action_a = {
                name = "ACTIONNAME999000A"
                command = { type = independence which = DDR value =  when =  }
                command = { type = secedeprovince which = DDR value = 376 }
                command = { type = secedeprovince which = DDR value = 374 }
                command = { type = secedeprovince which = DDR value = 315 }
                command = { type = secedeprovince which = DDR value = 375 }
                command = { type = secedeprovince which = DDR value = 375 }
                command = { type = secedeprovince which = DDR value = 312 } 
                command = { type = secedeprovince which = DDR value = 313 }  
                command = { type = secedeprovince which = DDR value = 314 } 
        }

        action_b = {
                name = "ACTIONNAME999000B"
                command = { type = independence which = DDR value =  when =  }
                command = { type = war which = DDR }
                command = { type = secedeprovince which = DDR value = 376 }
                command = { type = secedeprovince which = DDR value = 374 }
                command = { type = secedeprovince which = DDR value = 315 }
                command = { type = secedeprovince which = DDR value = 375 }
                command = { type = secedeprovince which = DDR value = 375 }
                command = { type = secedeprovince which = DDR value = 312 } 
                command = { type = secedeprovince which = DDR value = 313 }  
                command = { type = secedeprovince which = DDR value = 314 }       
        }

}

It gives an error on line 23.. which is the line where it says

Code:
                command = { type = independence which = DDR value =  when = }

Can somebody help me, this is my first attempt at an event.
 

unmerged(58571)

Field Marshal
Jul 1, 2006
6.288
0
Either remove it completely (and the event will always trigger on January 27, 1936, assuming DFR exists) or set it to the number of days you want to pass between check of the trigger conditions, in which case you also need a deathdate which should be greater than date + offset.
 

Manziel

Lt. General
9 Badges
Feb 25, 2007
1.268
1
  • Deus Vult
  • Europa Universalis III
  • Europa Universalis IV
  • Hearts of Iron III
  • Europa Universalis III Complete
  • Europa Universalis: Rome
  • Semper Fi
  • Rome: Vae Victis
  • 500k Club
depends on what you want to do them.
from the wiki:
type = independence which = [country tag] value = [0/1] when = [0/1]
value 0 - units in the area change allegiance, 1 - they don't. , when 0=normal, 1= force them to be democratic
 

unmerged(58571)

Field Marshal
Jul 1, 2006
6.288
0
Manziel said:
depends on what you want to do them.
Heh, I didn't even look beyond the faulty offset ;)
 

gossamer

First Lieutenant
79 Badges
Apr 14, 2007
285
0
  • Europa Universalis IV: El Dorado
  • Sword of the Stars II
  • Starvoid
  • The Showdown Effect
  • Victoria 2
  • Victoria 2: A House Divided
  • Victoria 2: Heart of Darkness
  • Warlock: Master of the Arcane
  • Warlock 2: The Exiled
  • War of the Roses
  • War of the Vikings
  • 500k Club
  • Cities: Skylines
  • Sword of the Stars
  • Europa Universalis IV: Pre-order
  • Pillars of Eternity
  • Europa Universalis IV: Common Sense
  • Cities: Skylines - After Dark
  • Europa Universalis IV: Cossacks
  • Cities: Skylines - Snowfall
  • Europa Universalis IV: Mare Nostrum
  • Stellaris
  • Hearts of Iron IV Sign-up
  • Hearts of Iron IV: Cadet
  • Europa Universalis IV: Rights of Man
  • Battle for Bosporus
  • Europa Universalis IV: Conquest of Paradise
  • Arsenal of Democracy
  • Cities in Motion 2
  • Crusader Kings II
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: The Republic
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Sword of Islam
  • Darkest Hour
  • Europa Universalis III
  • Europa Universalis IV
  • Europa Universalis IV: Art of War
  • A Game of Dwarves
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Call to arms event
  • For the Motherland
  • Hearts of Iron III
  • Hearts of Iron III: Their Finest Hour
  • King Arthur II
  • Lead and Gold
  • Magicka
  • Europa Universalis III Complete
  • Europa Universalis IV: Res Publica
Ok I have it firing at least, but the war part of the event doesn't work. Both choices just give indepedence. I want the second event to independence then declare war on the newly independent country.
 

xtfoster

Field Marshal
57 Badges
Feb 8, 2006
5.874
2.209
  • Shadowrun Returns
  • Surviving Mars
  • Hearts of Iron IV: Death or Dishonor
  • Stellaris: Synthetic Dawn
  • Tyranny - Tales from the Tiers
  • Tyranny - Bastards Wound
  • Age of Wonders III
  • Hearts of Iron IV: Expansion Pass
  • Stellaris: Humanoids Species Pack
  • Stellaris: Apocalypse
  • BATTLETECH - Digital Deluxe Edition
  • Hearts of Iron IV: Expansion Pass
  • Stellaris: Distant Stars
  • BATTLETECH
  • Shadowrun: Dragonfall
  • Shadowrun: Hong Kong
  • BATTLETECH: Flashpoint
  • Stellaris: Megacorp
  • Hearts of Iron IV: Expansion Pass
  • Stellaris: Ancient Relics
  • BATTLETECH: Season pass
  • Age of Wonders: Planetfall Sign Up
  • Stellaris: Lithoids
  • BATTLETECH: Heavy Metal
  • Hearts of Iron IV: La Resistance
  • Hearts of Iron IV: No Step Back
  • Stellaris: Galaxy Edition
  • Deus Vult
  • Europa Universalis III
  • For the Motherland
  • Hearts of Iron III
  • Hearts of Iron III: Their Finest Hour
  • Majesty 2
  • Europa Universalis III Complete
  • Semper Fi
  • Supreme Ruler 2020
  • 500k Club
  • Hearts of Iron II: Beta
  • Stellaris
  • Hearts of Iron II: Armageddon
  • Stellaris: Galaxy Edition
  • Hearts of Iron IV Sign-up
  • Stellaris Sign-up
  • Hearts of Iron IV: Cadet
  • Tyranny: Archon Edition
  • Tyranny: Archon Edition
  • Tyranny: Gold Edition
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Leviathans Story Pack
  • Hearts of Iron IV: Expansion Pass
gossamer said:
Ok I have it firing at least, but the war part of the event doesn't work. Both choices just give indepedence. I want the second event to independence then declare war on the newly independent country.
Try changing the order of the commands...sometimes the order does matter.

EDIT: Hmm, just looked at your event again.

1) You don't need the trigger...the DFR has to exist for the event to even be checked because of the
Code:
country = DFR
line.

2) You are trying to create a civil war between the DFR and the DDR, so just add
Code:
regular_id = DFR
to the DDR entry in revolt.txt and use
Code:
command = { type = civil_war which = DDR }