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

unmerged(73276)

Second Lieutenant
Apr 1, 2007
160
0
I have tried to make an event but I cant load it are there anyone that can tell me what is wrong?
#############################################
###### Hitler assasinated #
#############################################
event = {
id = 50000
random = no
country = GER
trigger = {


}

name = "Hitler assassinated"
desc = " Our leader Adolf Hitler have been assasinated the communists and the democrates are trying to take the power"
style = 0
picture= "allied_strategic_defeat"

date = { day = 1 month = january year = 1936 }
offset = 0
deathdate = { day = 1 month = january year = 1936 }

action_a = {
name = "Let the communists take the power"
command = { type = set_domestic which = political_left value = 10 }
command = { type = set_domestic which = drafted_army value = 5 }
command = { type = set_domestic which = planned_economy value = 4 }
command = { type = set_domestic which = isolationalism value = 2 }
command = { type = set_domestic which = dove value = 1 }
command = { type = headofstate which = 39 }
command = { type = headofgovernment which = 277 }
command = { type = foreignminister which = 73 }
command = { type = aramentminister which = 105 }
command = { type = ministerofsecurity which = 131 }
command = { type = ministerofintelligence which = 151 }
command = { type = chiefofstaff which = 171 }
command = { type = chiefofarmy which = 190 }
command = { type = chiefofnavy which = 201 }
command = { type = chiefofair which = 208 }
command = { type = dissent value = 30 }
command = { type = relation which = FRA value = -50 }
command = { type = relation which = ENG value = -50 }
command = { type = relation which = USA value = -50 }
command = { type = relation which = SOV value = 50 }

command = { type = sleepminister which = 1 }
command = { type = sleepminister which = 177 }
command = { type = sleepminister which = 276 }

}
action_b = {
name = "Let the democrates take the power"
command = { type = set_domestic which = political_left value = 5 }
command = { type = set_domestic which = free_market value = 5 }
command = { type = set_domestic which = isolationalism value = 4 }
command = { type = set_domestic which = democracy value = 10 }
command = { type = set_domestic which = dove value = 6 }
command = { type = set_domestic which = drafted_army value = 6 }
command = { type = set_domestic which = free_market value = 5 }
command = { type = headofstate which = 38 }
command = { type = headofgoverment which = 274 }
command = { type = foreignminister which = 71 }
command = { type = aramentminister which = 103 }
command = { type = ministerofsecurity which = 129 }
command = { type = ministerofintelligence which = 149 }
command = { type = chiefofstaff which = 170 }
command = { type = chiefofarmy which = 188 }
command = { type = chiefofnavy which = 200 }
command = { type = chiefofair which = 208 }
command = { type = dissent value = 25 }
command = { type = relation which FRA value = 50 }
command = { type = relation which ENG value = 50 }
command = { type = relation which USA value = 50 }
command = { type = relation which SOV value = -10 }

command = { type = sleepminister which = 1 }
command = { type = sleepminister which = 177 }
command = { type = sleepminister which = 276 }

}
action_c = {
name = "we must remain national socialistic"
command = { type = headofstate which = 246 }
command = { type = dissent value = 30 }
command = { type = relation which ENG = -20 }
command = { type = relation which FRA = -80 }
command = { type = relation which USA = -50 }
command = { type = relation which SOV = -80 }
command = { type = set_domestic which = interventionism value = 1 }

command = { type = sleepminister which = 1 }
command = { type = sleepminister which = 177 }
command = { type = sleepminister which = 276 }
 

pluto_cfc

Second Lieutenant
Nov 27, 2006
175
0
check all those brackets, match them, that's all.
Policies:
There's no "dove" only "defense_lobby"
no "drafted army" but "professional_army"
no "planned economy" but "free_market"
no "isolationism" but "interventionism"

And read event command.txt
 

unmerged(73276)

Second Lieutenant
Apr 1, 2007
160
0
ok thanks I know that it was some stupid mistakes that I made but I am only a beginner. And I cant find the command.txt.
 

unmerged(73276)

Second Lieutenant
Apr 1, 2007
160
0
Now I have fixed it but it does still not work now the computer gives me something about aramentminister but I cant see what is wrong.
 

Gen. Skobelev

Werewolf therapist
81 Badges
May 9, 2005
3.387
250
  • Victoria: Revolutions
Germany said:
Now I have fixed it but it does still not work now the computer gives me something about aramentminister but I cant see what is wrong.

Check the spelling. It's armamentminister.
 

unmerged(9599)

Field Marshal
Jun 4, 2002
2.660
2
Visit site
ComradeMar said:
Thanks alot Eagle... I figured it out that I forgot to type the --> } <--- sign at the end of the event...

btw, is it possible to CREATE a new txt file in db\event folder and put the events in it?

Yeah but you need to tell your scenario at the end where it is

something like "event = "db\events\new_file.txt"
 

Gen. Skobelev

Werewolf therapist
81 Badges
May 9, 2005
3.387
250
  • Victoria: Revolutions
The Great Duck said:
No,it is spelled armaments minister.

In event code? No.
 

unmerged(73276)

Second Lieutenant
Apr 1, 2007
160
0
I have fixed that with the armement minister but now the computer gives me something about democracy any idea what is wrong?
 

Gen. Skobelev

Werewolf therapist
81 Badges
May 9, 2005
3.387
250
  • Victoria: Revolutions
Germany said:
I have fixed that with the armement minister but now the computer gives me something about democracy any idea what is wrong?

It should be democratic, not democracy.
 

unmerged(73276)

Second Lieutenant
Apr 1, 2007
160
0
I cant still not get it working now the computer gives me this: (unknown lhs game-event) event={line=103 file=db\events\germany.txt is there anyone that could tell me what that mean?
 

Gen. Skobelev

Werewolf therapist
81 Badges
May 9, 2005
3.387
250
  • Victoria: Revolutions
Have you added the correct brackets as suggested earlier in this thread? It seems there are some missing... could you repost the event?
 

unmerged(72110)

Second Lieutenant
Mar 18, 2007
183
0
Germany said:
I cant still not get it working now the computer gives me this: (unknown lhs game-event) event={line=103 file=db\events\germany.txt is there anyone that could tell me what that mean?

I had the same error once .. and I discovered that I missed a bracket ..

doublecheck the brackets in your event .. maybe you've missed one ...

The error msg gives you the exact line where the error is found.. open MS.Word, and find that line.. then try to fix it ....
 

son of liberty

3%
10 Badges
Oct 3, 2006
7.782
16
  • Arsenal of Democracy
  • Hearts of Iron II: Armageddon
  • Darkest Hour
  • Hearts of Iron III
  • Hearts of Iron III: Their Finest Hour
  • Hearts of Iron III Collection
  • Victoria: Revolutions
  • Supreme Ruler 2020
  • Supreme Ruler: Cold War
  • 500k Club
Can I have an event string where ai germany does a zimmerman letter part two to ai mexico. If germany picks yes, send the letter, usa gets a 1 point int shift and minus to relations with germany. If mexico accepts, they go national socialist, the na pact with usa is cancelled(no dissent to cancel), and usa gets a gearing event(56,57, or 58 which ever is next), and relations between usa/mex take a -100 point hit. Ai mexico also gets cores on southwest usa, while usa gets cores on northern mexico. If mexico declines, usa/mex relations get +100 point shift and both countries get +2 intervention slider. Mexico also gets flag to join allies when usa does. Call it a 50/50 shot for each part of the string. Thanks in advance.
 

Leon_Corona

First Lieutenant
34 Badges
Feb 28, 2006
280
10
  • Age of Wonders III
  • Europa Universalis IV: El Dorado
  • Europa Universalis IV: Common Sense
  • Stellaris
  • Hearts of Iron IV: Cadet
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Leviathans Story Pack
  • Stellaris - Path to Destruction bundle
  • Stellaris: Synthetic Dawn
  • Cities: Skylines
  • Stellaris: Humanoids Species Pack
  • Cities: Skylines - Parklife Pre-Order
  • Cities: Skylines - Parklife
  • Stellaris: Megacorp
  • Stellaris: Ancient Relics
  • Age of Wonders: Planetfall
  • Stellaris: Lithoids
  • Europa Universalis III
  • 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
  • Crusader Kings II
  • Europa Universalis IV
  • Europa Universalis IV: Conquest of Paradise
  • For the Motherland
  • Hearts of Iron III
  • Hearts of Iron III: Their Finest Hour
  • Semper Fi
  • 500k Club
The zimmerman note event would actually be a great idea that i would love to have as well. So heres another person asking for it :p -Leon
P.S.
Does anyone know where i can get the release scandinavia event? I cannot use search function on these forums for some reason. Thanks.
 
Last edited:

Der_Leprechaun

Primarch
80 Badges
Jun 22, 2006
633
29
  • Europa Universalis IV: Mare Nostrum
  • Victoria 2: Heart of Darkness
  • 500k Club
  • Cities: Skylines
  • Cities: Skylines Deluxe Edition
  • Europa Universalis IV: El Dorado
  • 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
  • Victoria 2: A House Divided
  • Stellaris
  • Stellaris: Galaxy Edition
  • 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
  • Europa Universalis 4: Emperor
  • Europa Universalis IV: Art of War
  • 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
  • Europa Universalis III
  • Europa Universalis IV
  • Arsenal of Democracy
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Wealth of Nations
  • For the Motherland
  • Hearts of Iron III
  • Hearts of Iron III: Their Finest Hour
  • Europa Universalis IV: Res Publica
  • Victoria: Revolutions
  • Semper Fi
  • Supreme Ruler 2020
  • Supreme Ruler: Cold War
Here's a basic event I set up. See what you guys think, and if you can see any problems with it.

Code:
##################################################
######### Indochinese Revolt #####################
##################################################


event = {
	id = 25000
	random = no
	country = FRA
	trigger = {
		NOT = {
			exists = IDC
		}

	}

	name = "EVT_25000_NAME"
	desc = "EVT_25000_DESC"
	style = 0
	picture =

	date = { day = 12 month = february year = 1936 }
	offset = 0
	deathdate = { day = 30 month = december year = 1953 }

	action_a = {
		name = "ACTIONNAME25000A"
		command = { type = civil_war which = IDC }
		[color="yellow"]command = { type = war which = IDC }[/color]
		command = { type = secedeprovince which = IDC value = 1328 }
		command = { type = secedeprovince which = IDC value = 1329 }	
		command = { type = secedeprovince which = IDC value = 1308 }
		command = { type = secedeprovince which = IDC value = 1326 }
	}
}
My only question is, is the yellow line redundant?

And here are the files for the event.txt. Another question is, where can I find the event.txt file to put these in?
Code:
EVT_25000_NAME;Indochina Revolts!;;;;;;;;;;x
EVT_25000_DESC;Frustrated by French Rule and inspired by the communists in China, the people of Indochina revolt against France.;;;;;;;;;;x
ACTIONNAME25000A;We Are At War...;;;;;;;;;;x
 

dermeister

AUGUST STORM Developer
70 Badges
Apr 1, 2006
1.075
230
  • Achtung Panzer
  • Semper Fi
  • Supreme Ruler 2020
  • Victoria 2
  • Victoria 2: A House Divided
  • Victoria 2: Heart of Darkness
  • Rome: Vae Victis
  • 200k Club
  • 500k Club
  • Cities: Skylines
  • Crusader Kings II: Way of Life
  • Crusader Kings II: Horse Lords
  • Crusader Kings II: Conclave
  • Europa Universalis: Rome
  • Stellaris
  • Hearts of Iron IV Sign-up
  • Hearts of Iron IV: Cadet
  • Hearts of Iron IV: Colonel
  • Hearts of Iron IV: Field Marshal
  • Crusader Kings II: Reapers Due
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Leviathans Story Pack
  • Crusader Kings II: Monks and Mystics
  • Stellaris - Path to Destruction bundle
  • Cities: Skylines - Mass Transit
  • Hearts of Iron IV: No Step Back
  • East India Company
  • Hearts of Iron II: Armageddon
  • Cities in Motion
  • 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: Sword of Islam
  • Darkest Hour
  • Deus Vult
  • Arsenal of Democracy
  • Europa Universalis III
  • Divine Wind
  • Europa Universalis IV
  • For The Glory
  • For the Motherland
  • Hearts of Iron III
  • Heir to the Throne
  • Europa Universalis III Complete
  • Leviathan: Warships
  • Europa Universalis III Complete
Germany said:
I have tried to make an event but I cant load it are there anyone that can tell me what is wrong?
Just one thing. You'd NEVER have a democracy in the middle of WWII, but a Wehrmacht military dictatorship.