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

ddiplock

Lt. General
18 Badges
Jun 2, 2004
1.264
13
  • Hearts of Iron IV: Colonel
  • Battle for Bosporus
  • Crusader Kings III
  • Hearts of Iron IV: La Resistance
  • Hearts of Iron IV: Expansion Pass
  • Hearts of Iron IV: Expansion Pass
  • Hearts of Iron IV: Expansion Pass
  • Hearts of Iron IV: Death or Dishonor
  • Hearts of Iron IV: Together for Victory
  • Arsenal of Democracy
  • Hearts of Iron IV: Cadet
  • 500k Club
  • Victoria 2
  • Semper Fi
  • Hearts of Iron III: Their Finest Hour
  • Hearts of Iron III
  • For the Motherland
  • Europa Universalis IV
I'm presently trying to create my first event. For MDS as a matter of fact.

If i want an event to trigger in say, April 1st 2003, HOW do I do this?

I've tried reading the events thing on HOI2 wiki and some of it I understand, some of it not. :confused:

any help guys?

thanks :cool:
 
May 21, 2005
686
0
This is the blind leading the blind, but I think you need to start off with something like


event = {
id = whatever your event number is
random = no
country = whatever country it is for

name = up to you
desc = up to you
style = 0
picture = only needed if you are having a picture
}

date = { day = 0 month = april year = 2003 }
offset = 1
deathdate = { day = 1 month = april year = 2003 }



day = 0 is the first day of the month, and day = 29 is the 30th :rolleyes: .I guess you are playing with the no time limit mod? Sorry, don't know what MDS is.
 

Black Guardian

Major
25 Badges
Dec 31, 2005
590
25
  • Europa Universalis IV: El Dorado
  • Cities: Skylines - Parklife
  • Cities: Skylines - Parklife Pre-Order
  • Steel Division: Normandy 44 -  Back to Hell
  • Steel Division: Normand 44 - Second Wave
  • Steel Division: Normandy 44
  • Europa Universalis IV: Rights of Man
  • Hearts of Iron IV: Cadet
  • Stellaris Sign-up
  • Hearts of Iron IV Sign-up
  • Europa Universalis IV: Mare Nostrum
  • Europa Universalis IV: Cossacks
  • Europa Universalis IV: Common Sense
  • Cities in Motion
  • Cities: Skylines
  • 500k Club
  • Victoria 2
  • Europa Universalis IV: Res Publica
  • Hearts of Iron III
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Art of War
  • Europa Universalis IV
  • Crusader Kings II
  • Cities in Motion 2
flock said:
This is the blind leading the blind, but I think you need to start off with something like

Code:
event = {
	id = [COLOR=Blue]whatever your event number is[/COLOR]
	random = no
	country = [COLOR=Blue]whatever country it is for[/COLOR]

	name = [COLOR=Blue]up to you[/COLOR]
	desc = [COLOR=Blue]up to you[/COLOR]
	style = 0
	picture = [COLOR=Blue]only needed if you are having a picture[/COLOR]
		}

	date = { day = 0 month = april year = 2003 }
	offset = 1
	deathdate = { day = 1 month = april year = 2003 }


If you do it this way, your event will NEVER occur ^^


Code:
event = {
	id = [COLOR=Blue]whatever your event number is[/COLOR]
	random = no
	country = [COLOR=Blue]whatever country it is for - don´t forget to use only the tag, not the full name ^^[/COLOR] 

trigger = { }  [COLOR=Blue]at the moment your event need no trigger-conditions, to be fired - you can find the possible trigger-conditions in the event-commands.txt - file[/COLOR]
	name = [COLOR=Blue]"example"[/COLOR]
	desc = [COLOR=Blue]"This is a simple example to show you, how to script an event"[/COLOR]
	style = 0
	picture = [COLOR=Blue]only needed if you are having a picture -> if you have, save it into the folder "event pictures" (i think that´s logical)[/COLOR]

	date = { day = 0 month = april year = 2003 } [COLOR=Blue]the date, the check of event-triggers starts. If you want your event to be fired on first of April without any triggers that have to be true, you can use the written example ^^[/COLOR]
	offset = 1    [COLOR=Blue]the amount of days your event-triggers are going to be checked - in this example every day... if you change the number, for example to 15, the game checks only every fifteen days, wether your trigger is true or not [/COLOR]
	deathdate = { day = 1 month = april year = 2003 }[COLOR=Blue]the date, the game will stop checking, wether the triggers are true or not[/COLOR]

[COLOR=Blue]FURTHERMORE you need the following:[/COLOR]

[COLOR=Red]action_a = { name = "Just a little joke - it´s the first of april ^^" 
ai_chance = 50  
command = { type = dissent value = -1 }
}[/COLOR]

[COLOR=Blue]i think it´s quite logical -
if you just have one choice, you don´t need to write  "ai_chance = 100" 
- In my example this first choice would decrease the national dissent by 1
But an event with just one choice is boring, so lets make one more choice ^^ [/COLOR]


[COLOR=Red]action_b = { name = "I don´t like april-jokes... You´ve to be punished X(" 
ai_chance = 50  
command = { type = dissent value = 5 }
}[/COLOR]

[COLOR=Blue]Never make jokes about the head of state  - he´ll punish you XD   So your dissent is increasing by 5, because your people don´t like to be punished because of kiding ;)[/COLOR]


}
 

ddiplock

Lt. General
18 Badges
Jun 2, 2004
1.264
13
  • Hearts of Iron IV: Colonel
  • Battle for Bosporus
  • Crusader Kings III
  • Hearts of Iron IV: La Resistance
  • Hearts of Iron IV: Expansion Pass
  • Hearts of Iron IV: Expansion Pass
  • Hearts of Iron IV: Expansion Pass
  • Hearts of Iron IV: Death or Dishonor
  • Hearts of Iron IV: Together for Victory
  • Arsenal of Democracy
  • Hearts of Iron IV: Cadet
  • 500k Club
  • Victoria 2
  • Semper Fi
  • Hearts of Iron III: Their Finest Hour
  • Hearts of Iron III
  • For the Motherland
  • Europa Universalis IV
Thanks for the tips, I'll give it a go and see how it goes :p

oh, and for clarification: MDS is the Modern Day Scenario Mod for HOI2 that is played in modern times from 2003 onwards :)

Its worth a look i'd say
 

ddiplock

Lt. General
18 Badges
Jun 2, 2004
1.264
13
  • Hearts of Iron IV: Colonel
  • Battle for Bosporus
  • Crusader Kings III
  • Hearts of Iron IV: La Resistance
  • Hearts of Iron IV: Expansion Pass
  • Hearts of Iron IV: Expansion Pass
  • Hearts of Iron IV: Expansion Pass
  • Hearts of Iron IV: Death or Dishonor
  • Hearts of Iron IV: Together for Victory
  • Arsenal of Democracy
  • Hearts of Iron IV: Cadet
  • 500k Club
  • Victoria 2
  • Semper Fi
  • Hearts of Iron III: Their Finest Hour
  • Hearts of Iron III
  • For the Motherland
  • Europa Universalis IV
Ok, I've been trying to get the event going with just one option to click, since making events is new to me. Once I get this event working, I will expand it further. Right now I just want to try and get it working.

What I'm trying to do is write an event for MDS that will radically change the British government from a democratic government, to a fascist one. Not that it would ever happen I know, but I've got some alt history ideas in mind :) . I've been trying to use the US "The Revolution has come" event for HOI2 as a template for this one, and have followed peoples advice, but the event just isn't firing when I want it to.

I'll post the event up here for people to look at and then see if anyone knows where i've gone wrong. cheers guys.


##########################################################
#Fascism comes to Britain-BNP Coup
##########################################################
#event={
# id=4444
# random=no
# country=uk
# name="Fascism comes to Britain-BNP Coup"
# desc="With the present decedant democratic government planning to wage an illegal war in Iraq, the BNP could stand silent no longer. Supported by many of those against the war,and with the majority of British troops preparing to invade Iraq, the BNP seized control of the British government in a bloody coup."
# style=0
#
# trigger= {
# government=democratic
# dissent=0
# }
# date = { day = 0 month = april year = 2003 }
# offset = 0
# deathdate = { day = 1 month = april year = 2003 }
#
# action_a = (name= "British politics have changed forever")
# command = { type = headofgovernment which = 87012 }
#
#
#
#
# }
#}
 
May 21, 2005
686
0
Well, after action a =

you have a ( but I think it has to be a { and then another } afterwards not a )

and you seem to have an extra } at the very end.

Also, you have given every line a # at the start?

# tells the computer to ignore the rest of that line, so of course it won't work. You only need #'s around the title, and infront of any comments you are making. So remove all the other #'s.
 

ddiplock

Lt. General
18 Badges
Jun 2, 2004
1.264
13
  • Hearts of Iron IV: Colonel
  • Battle for Bosporus
  • Crusader Kings III
  • Hearts of Iron IV: La Resistance
  • Hearts of Iron IV: Expansion Pass
  • Hearts of Iron IV: Expansion Pass
  • Hearts of Iron IV: Expansion Pass
  • Hearts of Iron IV: Death or Dishonor
  • Hearts of Iron IV: Together for Victory
  • Arsenal of Democracy
  • Hearts of Iron IV: Cadet
  • 500k Club
  • Victoria 2
  • Semper Fi
  • Hearts of Iron III: Their Finest Hour
  • Hearts of Iron III
  • For the Motherland
  • Europa Universalis IV
Of course :rofl: lol.

i've looked at the otehr events and NOW noticed that where the command lines for the event is, there are no # signs.

Right, i've taken them all out. need to see if it works now. :p

it prob wont, but we'll see ;)
 

ddiplock

Lt. General
18 Badges
Jun 2, 2004
1.264
13
  • Hearts of Iron IV: Colonel
  • Battle for Bosporus
  • Crusader Kings III
  • Hearts of Iron IV: La Resistance
  • Hearts of Iron IV: Expansion Pass
  • Hearts of Iron IV: Expansion Pass
  • Hearts of Iron IV: Expansion Pass
  • Hearts of Iron IV: Death or Dishonor
  • Hearts of Iron IV: Together for Victory
  • Arsenal of Democracy
  • Hearts of Iron IV: Cadet
  • 500k Club
  • Victoria 2
  • Semper Fi
  • Hearts of Iron III: Their Finest Hour
  • Hearts of Iron III
  • For the Motherland
  • Europa Universalis IV
Ok, the event did not fire.

Here is what it looks like after I've removed the # signs and changed the brackets on one of the command lines:


##########################################################
#Fascism comes to Britain-BNP Coup
##########################################################
event={
id=4444
random=no
country=uk
name="Fascism comes to Britain-BNP Coup"
desc="With the present decedant democratic government planning to wage an illegal war in Iraq, the BNP could stand silent no longer. Supported by many of those against the war,and with the majority of British troops preparing to invade Iraq, the BNP seized control of the British government in a bloody coup."
style=0

trigger= {
government=democratic
dissent=0
}
date = { day = 0 month = april year = 2003 }
offset = 0
deathdate = { day = 1 month = april year = 2003 }

action_a = {name= "British politics have changed forever"}
command = { type = headofgovernment which = 87012 }




}
}



Anyone know what else could be wrong?? :confused: cause i'm stumped. lol
 

ddiplock

Lt. General
18 Badges
Jun 2, 2004
1.264
13
  • Hearts of Iron IV: Colonel
  • Battle for Bosporus
  • Crusader Kings III
  • Hearts of Iron IV: La Resistance
  • Hearts of Iron IV: Expansion Pass
  • Hearts of Iron IV: Expansion Pass
  • Hearts of Iron IV: Expansion Pass
  • Hearts of Iron IV: Death or Dishonor
  • Hearts of Iron IV: Together for Victory
  • Arsenal of Democracy
  • Hearts of Iron IV: Cadet
  • 500k Club
  • Victoria 2
  • Semper Fi
  • Hearts of Iron III: Their Finest Hour
  • Hearts of Iron III
  • For the Motherland
  • Europa Universalis IV
anti-commi said:
you need spaces between the words and = signs


I've added in the spaces as you said, but taff it the event still won't fire. It won't even fire when I try to force it using the event cheat.

*sigh* i just don't know what's wrong here.
 

ddiplock

Lt. General
18 Badges
Jun 2, 2004
1.264
13
  • Hearts of Iron IV: Colonel
  • Battle for Bosporus
  • Crusader Kings III
  • Hearts of Iron IV: La Resistance
  • Hearts of Iron IV: Expansion Pass
  • Hearts of Iron IV: Expansion Pass
  • Hearts of Iron IV: Expansion Pass
  • Hearts of Iron IV: Death or Dishonor
  • Hearts of Iron IV: Together for Victory
  • Arsenal of Democracy
  • Hearts of Iron IV: Cadet
  • 500k Club
  • Victoria 2
  • Semper Fi
  • Hearts of Iron III: Their Finest Hour
  • Hearts of Iron III
  • For the Motherland
  • Europa Universalis IV
anti-commi said:
copy an event you know works and change the trigger command and the like


I tried using the HOI2 US "The Revolution has come" event as a template, but its a more complicated event than this one. I'm trying to get this simple event firing and working first, then I'll expand on it some more.
 

JRShield

Generalfeldmarschall
90 Badges
Sep 1, 2005
753
0
  • Europa Universalis IV: Common Sense
  • Europa Universalis IV: Res Publica
  • Victoria: Revolutions
  • Semper Fi
  • Sengoku
  • The Showdown Effect
  • Victoria 2
  • Victoria 2: A House Divided
  • Victoria 2: Heart of Darkness
  • 500k Club
  • Cities: Skylines
  • Europa Universalis IV: El Dorado
  • Crusader Kings II: Way of Life
  • Magicka
  • 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
  • Stellaris: Galaxy Edition
  • Stellaris: Galaxy Edition
  • Hearts of Iron IV: Cadet
  • Hearts of Iron IV: Colonel
  • Victoria 3 Sign Up
  • Divine Wind
  • 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 III: Chronicles
  • Cities in Motion 2
  • 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
  • Hearts of Iron III: Their Finest Hour
  • Heir to the Throne
  • Knights of Pen and Paper +1 Edition
Action a is wrong

action_a = {name= "British politics have changed forever"}
command = { type = headofgovernment which = 87012 }
}

should be:
action_a = { name = ""British politics have changed forever"
command = { type = headofgovernment which = 87012 }
}
 

ddiplock

Lt. General
18 Badges
Jun 2, 2004
1.264
13
  • Hearts of Iron IV: Colonel
  • Battle for Bosporus
  • Crusader Kings III
  • Hearts of Iron IV: La Resistance
  • Hearts of Iron IV: Expansion Pass
  • Hearts of Iron IV: Expansion Pass
  • Hearts of Iron IV: Expansion Pass
  • Hearts of Iron IV: Death or Dishonor
  • Hearts of Iron IV: Together for Victory
  • Arsenal of Democracy
  • Hearts of Iron IV: Cadet
  • 500k Club
  • Victoria 2
  • Semper Fi
  • Hearts of Iron III: Their Finest Hour
  • Hearts of Iron III
  • For the Motherland
  • Europa Universalis IV
JRShield said:
Action a is wrong

action_a = {name= "British politics have changed forever"}
command = { type = headofgovernment which = 87012 }
}

should be:
action_a = { name = ""British politics have changed forever"
command = { type = headofgovernment which = 87012 }
}


Argghhhhh this is driving me insane!!. lol :) The event still isn't firing. And the worst thing is, i bet its a really small mistake that's been left somewhere that's preventing the event from firing. lol
 

Black Guardian

Major
25 Badges
Dec 31, 2005
590
25
  • Europa Universalis IV: El Dorado
  • Cities: Skylines - Parklife
  • Cities: Skylines - Parklife Pre-Order
  • Steel Division: Normandy 44 -  Back to Hell
  • Steel Division: Normand 44 - Second Wave
  • Steel Division: Normandy 44
  • Europa Universalis IV: Rights of Man
  • Hearts of Iron IV: Cadet
  • Stellaris Sign-up
  • Hearts of Iron IV Sign-up
  • Europa Universalis IV: Mare Nostrum
  • Europa Universalis IV: Cossacks
  • Europa Universalis IV: Common Sense
  • Cities in Motion
  • Cities: Skylines
  • 500k Club
  • Victoria 2
  • Europa Universalis IV: Res Publica
  • Hearts of Iron III
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Art of War
  • Europa Universalis IV
  • Crusader Kings II
  • Cities in Motion 2
Code:
event = {
id = 4444
random = no
country = ENG

name = "Fascism comes to Britain-BNP Coup"
desc = "With the present decedant democratic government planning to wage an illegal war in Iraq, the BNP could stand silent no longer. Supported by many of those against the war,and with the majority of British troops preparing to invade Iraq, the BNP seized control of the British government in a bloody coup."
style = 0

trigger = {
government = democratic
dissent = 0
}

date = { day = 0 month = april year = 2003 }
offset = 0
deathdate = { day = 1 month = april year = 2005 }

action_a = {
name= "British politics have changed forever"
command = { type = headofgovernment which = 87012 }
}

}

Try it once again - you used the wrong tag ;)
The country-tag for great britain is noch "Uk" but "ENG"
- like England ;)
 

ddiplock

Lt. General
18 Badges
Jun 2, 2004
1.264
13
  • Hearts of Iron IV: Colonel
  • Battle for Bosporus
  • Crusader Kings III
  • Hearts of Iron IV: La Resistance
  • Hearts of Iron IV: Expansion Pass
  • Hearts of Iron IV: Expansion Pass
  • Hearts of Iron IV: Expansion Pass
  • Hearts of Iron IV: Death or Dishonor
  • Hearts of Iron IV: Together for Victory
  • Arsenal of Democracy
  • Hearts of Iron IV: Cadet
  • 500k Club
  • Victoria 2
  • Semper Fi
  • Hearts of Iron III: Their Finest Hour
  • Hearts of Iron III
  • For the Motherland
  • Europa Universalis IV
And.......its still not working after changing the tag to ENG. lol.

this is only meant to start off as a simple event, i just want to get it working and i can't even do that. lol :)
 

ddiplock

Lt. General
18 Badges
Jun 2, 2004
1.264
13
  • Hearts of Iron IV: Colonel
  • Battle for Bosporus
  • Crusader Kings III
  • Hearts of Iron IV: La Resistance
  • Hearts of Iron IV: Expansion Pass
  • Hearts of Iron IV: Expansion Pass
  • Hearts of Iron IV: Expansion Pass
  • Hearts of Iron IV: Death or Dishonor
  • Hearts of Iron IV: Together for Victory
  • Arsenal of Democracy
  • Hearts of Iron IV: Cadet
  • 500k Club
  • Victoria 2
  • Semper Fi
  • Hearts of Iron III: Their Finest Hour
  • Hearts of Iron III
  • For the Motherland
  • Europa Universalis IV
Ok, I've changed the offset from 0 to 1 to ensure the trigger is checked.

and the event still doesn't fire....even manually when i type in event 4444, nothing happens.

I'm not going to give up on getting this to fire correctly!!!