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

goobermaster

Major
17 Badges
Aug 7, 2005
528
110
  • Europa Universalis III Complete
  • Stellaris Sign-up
  • Europa Universalis: Rome Collectors Edition
  • Europa Universalis IV: Pre-order
  • Europa Universalis III: Collection
  • 500k Club
  • Victoria 2
  • Semper Fi
  • Europa Universalis: Rome
  • Hearts of Iron Anthology
  • Hearts of Iron III
  • For the Motherland
  • Europa Universalis IV
  • Europa Universalis III: Chronicles
  • Europa Universalis III
  • Darkest Hour
  • Crusader Kings II
I am creating an event chain that starts with one, than that triggers others etc.. but I do not know what year this will execute, so I do not have a set date for the beginning of the chain.

So my question is this: can I trigger an event from another, but put a delay of a week or so on the actual execution of it?
 

Passivocalia

Major
Nov 24, 2005
537
0
goobermaster said:
I am creating an event chain that starts with one, than that triggers others etc.. but I do not know what year this will execute, so I do not have a set date for the beginning of the chain.

So my question is this: can I trigger an event from another, but put a delay of a week or so on the actual execution of it?

Check out the different intervention events for Spanish Civil War. The starting event doesn't automatically triggerevent them, but the intervention events require that the starting event must have occured before they fire.
 

Luxor

Colonel
13 Badges
Apr 29, 2003
1.153
4
  • Hearts of Iron Anthology
  • Darkest Hour
  • Rome Gold
  • Rome: Vae Victis
  • 500k Club
  • Hearts of Iron II: Beta
  • Hearts of Iron IV Sign-up
  • Stellaris Sign-up
  • Hearts of Iron IV: Cadet
  • Hearts of Iron IV: Together for Victory
  • Hearts of Iron IV: Death or Dishonor
  • Hearts of Iron IV: Expansion Pass
  • Hearts of Iron IV: Expansion Pass
goobermaster said:
So my question is this: can I trigger an event from another, but put a delay of a week or so on the actual execution of it?

You can't have event B to trigger after a given amount of days after event A. This is not how offset works.
 

Sarmatia1871

Field Marshal
56 Badges
Mar 22, 2004
3.889
352
  • Stellaris: Digital Anniversary Edition
  • Europa Universalis IV: Pre-order
  • Crusader Kings II: Way of Life
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Horse Lords
  • Cities: Skylines - After Dark
  • Crusader Kings II: Conclave
  • Cities: Skylines - Snowfall
  • Stellaris
  • Hearts of Iron IV Sign-up
  • Stellaris Sign-up
  • Hearts of Iron IV: Cadet
  • Crusader Kings II: Reapers Due
  • Europa Universalis IV: El Dorado
  • Stellaris: Leviathans Story Pack
  • Crusader Kings II: Monks and Mystics
  • Stellaris - Path to Destruction bundle
  • Stellaris: Synthetic Dawn
  • Stellaris: Humanoids Species Pack
  • Stellaris: Apocalypse
  • Stellaris: Distant Stars
  • Stellaris: Megacorp
  • Imperator: Rome Deluxe Edition
  • Imperator: Rome
  • Stellaris: Ancient Relics
  • Stellaris: Nemesis
  • Europa Universalis IV: Conquest of Paradise
  • 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
  • Deus Vult
  • Europa Universalis III
  • Europa Universalis IV
  • Europa Universalis IV: Art of War
  • Hearts of Iron II: Armageddon
  • Europa Universalis IV: Wealth of Nations
  • Heir to the Throne
  • Europa Universalis IV: Res Publica
  • Victoria: Revolutions
  • Victoria 2
  • Victoria 2: A House Divided
  • Victoria 2: Heart of Darkness
  • 500k Club
  • Cities: Skylines
  • Crusader Kings II: Holy Knight (pre-order)
goobermaster said:
I am creating an event chain that starts with one, than that triggers others etc.. but I do not know what year this will execute, so I do not have a set date for the beginning of the chain.

So my question is this: can I trigger an event from another, but put a delay of a week or so on the actual execution of it?

If you're first event isn't date specific I believe you've got to start using flags and offsets.

So, if you want 'Choice A' of EVENT1 to be the one which triggers the 'EVENT2', add this to the command line:

Code:
command = { type = setflag which = EVENT2  } ## Specific flagname not important!

Then, for EVENT2, you've got have the trigger and date conditions like this:

Code:
[B]	trigger = {
             flag = EVENT2
		}[/B]

	name = "<<Blahblah>>"
	desc = "<<Blahblahblah....>>"

[B]         date = { day = 1 month = january year = 1936 }
	offset = 10
	deathdate = { day = 30 month = december year = 1949  }[/B]

This means EVENT2 will fire sometime in the next 10 days after EVENT1.

There may be an easier way to do this, but this is how I generally make these sorts of events!
 

Luxor

Colonel
13 Badges
Apr 29, 2003
1.153
4
  • Hearts of Iron Anthology
  • Darkest Hour
  • Rome Gold
  • Rome: Vae Victis
  • 500k Club
  • Hearts of Iron II: Beta
  • Hearts of Iron IV Sign-up
  • Stellaris Sign-up
  • Hearts of Iron IV: Cadet
  • Hearts of Iron IV: Together for Victory
  • Hearts of Iron IV: Death or Dishonor
  • Hearts of Iron IV: Expansion Pass
  • Hearts of Iron IV: Expansion Pass
Sarmatia1871 said:
This means EVENT2 will fire sometime in the next 10 days after EVENT1.
But you can't tell EVENT 2 to not fire before x days after EVENT 1, which is what goobermaster asked, if I understood correctly.
Offset gives an upper limit and not a lower one.
 

Sarmatia1871

Field Marshal
56 Badges
Mar 22, 2004
3.889
352
  • Stellaris: Digital Anniversary Edition
  • Europa Universalis IV: Pre-order
  • Crusader Kings II: Way of Life
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Horse Lords
  • Cities: Skylines - After Dark
  • Crusader Kings II: Conclave
  • Cities: Skylines - Snowfall
  • Stellaris
  • Hearts of Iron IV Sign-up
  • Stellaris Sign-up
  • Hearts of Iron IV: Cadet
  • Crusader Kings II: Reapers Due
  • Europa Universalis IV: El Dorado
  • Stellaris: Leviathans Story Pack
  • Crusader Kings II: Monks and Mystics
  • Stellaris - Path to Destruction bundle
  • Stellaris: Synthetic Dawn
  • Stellaris: Humanoids Species Pack
  • Stellaris: Apocalypse
  • Stellaris: Distant Stars
  • Stellaris: Megacorp
  • Imperator: Rome Deluxe Edition
  • Imperator: Rome
  • Stellaris: Ancient Relics
  • Stellaris: Nemesis
  • Europa Universalis IV: Conquest of Paradise
  • 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
  • Deus Vult
  • Europa Universalis III
  • Europa Universalis IV
  • Europa Universalis IV: Art of War
  • Hearts of Iron II: Armageddon
  • Europa Universalis IV: Wealth of Nations
  • Heir to the Throne
  • Europa Universalis IV: Res Publica
  • Victoria: Revolutions
  • Victoria 2
  • Victoria 2: A House Divided
  • Victoria 2: Heart of Darkness
  • 500k Club
  • Cities: Skylines
  • Crusader Kings II: Holy Knight (pre-order)
Luxor said:
But you can't tell EVENT 2 to not fire before x days after EVENT 1, which is what goobermaster asked, if I understood correctly.
Offset gives an upper limit and not a lower one.

No, I don't it is possible to have the event not fire before a specific number of days, without getting unneccessarily complex!

He said he wanted a delay of about 'a week or so', so putting the offset at 10-15 would probably be the best guarantor of this, although you can of course never tell what the random number generator is going to decide...