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

Warlimont

Colonel
34 Badges
Nov 22, 2002
1.032
6
Visit site
  • Imperator: Rome
  • Crusader Kings II: Reapers Due
  • Steel Division: Normandy 44
  • Steel Division: Normandy 44 Deluxe Edition
  • Hearts of Iron IV: Death or Dishonor
  • Steel Division: Normand 44 - Second Wave
  • Hearts of Iron IV: Expansion Pass
  • Steel Division: Normandy 44 -  Back to Hell
  • Imperator: Rome Deluxe Edition
  • Hearts of Iron IV: Field Marshal
  • Hearts of Iron IV: Expansion Pass
  • Prison Architect
  • Hearts of Iron IV: La Resistance
  • Battle for Bosporus
  • Empire of Sin
  • Hearts of Iron IV: By Blood Alone
  • Hearts of Iron IV: No Step Back
  • Rome Gold
  • Crusader Kings II
  • Crusader Kings II: The Old Gods
  • For the Motherland
  • Hearts of Iron III
  • Hearts of Iron III: Their Finest Hour
  • Hearts of Iron III Collection
  • Naval War: Arctic Circle
  • Europa Universalis: Rome
  • Hearts of Iron II: Armageddon
  • Semper Fi
  • Rome: Vae Victis
  • 500k Club
  • Achtung Panzer
  • Hearts of Iron IV Sign-up
  • Hearts of Iron IV: Cadet
  • Hearts of Iron IV: Colonel
I would like to make an info-only event fire at the opening map screen at the launch of the game, but my event won't fire until the second day.

my trigger:

trigger = {
ai = no
}

Date:

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

command:

action_a = {
name = "Call for National Conference"
command = {}

Any help?
 
If you want it to pop up at the opening screen it should be like this:

Event = {
id =xxxx
country = TAG

trigger = { ai = no }

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

name = "Your event name"
desc = "Your event desc here"

action_a = {
name = "Call for national conference"
command = { }
}

}
 
First time since first posting question.
thanks for the reply.
I'm sorry to say your above idea didn't work. It didn't even trigger on jan 2nd.

here's the event with the above changes:

##############################################
# 2051 National Conference
##############################################

event = {
id = 2051
random = no
country = GER

trigger = {
ai = no
}

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

name = "CLASSIFIED"
desc = "To: All agencies, ministries and commands
From: A. Hitler, Fuhrer & Reichskanzler
Conference
Leaders of all government agencies, ministries and senior military commands will convene immediately in the Reichchancellory for a conference with regard to the Nation's future. No technology decisions, military assignments,
transfers or production starts will be made without my expressed orders. Europe-only economic trading may commence immediately.
Signed: A. Hitler"
picture = "blank"

action_a = {
name = " "
command = { }


}
}

I wonder if it has anything to do with the fact that in HOI2 the event popups use a different background, as in the notepad-looking sheet.

w
 
Can you manually trigger it? IE using F12 and typing in the event number?

If not, try adding in the line:
style = 0

below the event desc.
 
JRaup said:
Can you manually trigger it? IE using F12 and typing in the event number?

If not, try adding in the line:
style = 0

below the event desc.

yes, it will manually trigger.

still no fire.

here it is with the style addition:
##############################################
# 2051 National Conference
##############################################

event = {
id = 2051
random = no
country = GER

trigger = {
ai = no
}

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

name = "CLASSIFIED"
desc = "To: All agencies, ministries and commands
From: A. Hitler, Fuhrer & Reichskanzler
Conference
Leaders of all government agencies, ministries and senior military commands will

convene immediately in the Reichchancellory for a conference with regard to the

Nation's future. No technology decisions, military assignments, transfers or

production starts will be made without my expressed orders. Europe-only economic

trading may commence immediately.
Signed: A. Hitler"

style = 0

picture = "blank"

action_a = {
name = " "
command = { }


}
}


originally, I had used the date info from the opening difficulty-choice screen for CORE/HOI. But that didn't work.

Do you know if any of CORE's opening events are firing correctly for the upcoming version?
 
OK, if you can manually trigger it, then it's just a matter of tweaking to get it to fire, no major bugs. Try changing the date setting to day = 1 (should be Jan 2). Otherwise, the engine may be hanging on the ai = no as the only trigger. Try adding in a line for German control of Berlin, control = { province = 300 data = GER }.
 
JRaup said:
OK, if you can manually trigger it, then it's just a matter of tweaking to get it to fire, no major bugs. Try changing the date setting to day = 1 (should be Jan 2). Otherwise, the engine may be hanging on the ai = no as the only trigger. Try adding in a line for German control of Berlin, control = { province = 300 data = GER }.

JRaup,
Still no-go.
But let me ask you a question. Where would the scripting info be found for the scenario popup the triggers every time you launch into the game. That one triggers every time at the opening.

I cant find that info, or even the graphic for that black background that those message scripts (other country info) is on.
 
Just my 2 cents. I've noticed that day = 0 does not work. Therefore you can't have an event firing at Jan 1, 1936. The minimum is Jan 2.
 
Ghost_dk said:
try putting in an action name. Not sure it will do any good, but could be that the engine doesnt recognize the need to make a choice. Even if there is only one option.


It could be something as stupid as that. :confused: It wouldn't be the first time we've seen some sort of strange behavior like that.

Luxor said:
Just my 2 cents. I've noticed that day = 0 does not work. Therefore you can't have an event firing at Jan 1, 1936. The minimum is Jan 2.

I think that this only applies to Jan 1 1936, and not to any other month/year combination. IIRC, there are several events in vanilla which have day = 0 in the date lines, so at the very least, it will recognize it for offset checks. I honestly haven't played much with events having the day = 0 as the only date line, so I'm not 100% sure about that.
 
JRaup said:
I think that this only applies to Jan 1 1936, and not to any other month/year combination. IIRC, there are several events in vanilla which have day = 0 in the date lines, so at the very least, it will recognize it for offset checks. I honestly haven't played much with events having the day = 0 as the only date line, so I'm not 100% sure about that.

That's what I meant. It doesn't work only for Jan 1st 1936.
In all other cases it works as supposed.
 
Ghost_dk said:
try putting in an action name. Not sure it will do any good, but could be that the engine doesnt recognize the need to make a choice. Even if there is only one option.

Ghost, do you mean as in; ACTIONNAME3301A, or;

action_a = { name = "The war broke out at 0435 this day"
 
Warlimont said:
Ghost, do you mean as in; ACTIONNAME3301A, or;

action_a = { name = "The war broke out at 0435 this day"

Either should work. As long as there's something other than name = " ". It could be as Ghost suggests, that the engine isn't seeing an action there, with no name, so it can't create the pop up box.
 
nocigar :(

here's what it looks like now:

##############################################
# 2051 National Conference
##############################################

event = {
id = 2051
random = no
country = GER

trigger = {
ai = no
control = { province = 300 data = GER }
}

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

name = "CLASSIFIED"
desc = "To: All agencies, ministries and commands
From: A. Hitler, Fuhrer & Reichskanzler
Conference
Leaders of all government agencies, ministries and senior military commands will convene immediately in the Reichchancellory for a conference with regard to the Nation's future. No

technology decisions, military assignments, transfers or production starts will be made without my expressed orders. Europe-only economic trading may commence immediately.
Signed: A. Hitler"

style = 0

picture = "blank"

action_a = {
name = "Convene the Conference "
command = { }


}
}
 
I think you may need to change the date to day = 1. As Luxor pointed out, the engine may not recognize day = 0 for January 1936. Try that and see if it fires on Jan 2.
 
JRaup said:
I think you may need to change the date to day = 1. As Luxor pointed out, the engine may not recognize day = 0 for January 1936. Try that and see if it fires on Jan 2.

I'll do the above. But I think I'll set this one aside for now.
But thanks to JRaup and all others who responded!!

I'll wait to see how you CORE guys script that difficulty message, if you use it again.

w