• 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.
Mar 14, 2003
10.029
2
Whats the best way (if even possible) to have one event fire (master event) and have one of four events fire from that one, depending on the date that the master event fired?

Is it even possible, or should I just have four events sleep and activate depending on the date?

Cheers
 

Ayeshteni

Jehanne's Slave
111 Badges
Jul 31, 2002
6.280
108
  • 500k Club
  • Europa Universalis III Complete
  • March of the Eagles
  • Europa Universalis III Complete
  • Penumbra - Black Plague
  • Europa Universalis IV: Res Publica
  • Europa Universalis: Rome
  • Semper Fi
  • Sengoku
  • Victoria 2
  • Victoria 2: A House Divided
  • Rome: Vae Victis
  • 200k Club
  • Heir to the Throne
  • Cities: Skylines
  • Crusader Kings II: Holy Knight (pre-order)
  • Europa Universalis III: Collection
  • Europa Universalis IV: El Dorado
  • Europa Universalis IV: Pre-order
  • Pride of Nations
  • Rise of Prussia
  • Crusader Kings II: Way of Life
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Horse Lords
  • Cities: Skylines - After Dark
  • Hearts of Iron IV: No Step Back
  • Europa Universalis III
  • Hearts of Iron II: Armageddon
  • 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
  • Deus Vult
  • A Game of Dwarves
  • Divine Wind
  • 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 Glory
  • For the Motherland
  • Hearts of Iron III
  • Hearts of Iron III: Their Finest Hour
I do not think it is possible.

There is a year trigger so if you wish to space the master event according to year (rather than months) then you could have four master events (each triggerring a single event) based on what year it was:

by having year = 1937 for the first

year = 1939
NOT = { year = 1937 } for the second etc.

Ayeshteni
 

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

the first event could look like that:

Code:
event = {
	id =[ID of your master event]
	random = no
	country = [TAG of your country]

	trigger = {  your trigger conditions } 


	name = "master event"
	desc = "This will fire a special event depending on the  trigger date of this master event"
	style = 0
	picture = ""

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

	action_a = {
		name = "OK"
		 
	}

}




Now you have to create the 4 other events, which have to have different start and death dates PLUS the trigger condition:

Code:
trigger = { event = [ID of your master event} [/COLOR]

For example event 1 having:

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

event 2:

date = { day = 2 month = december year = 1939 }
offset = 1
deathdate = { day = 1 month = december year = 1943 }


....and so on
trigger condition is the same, but event1 won´t fire if your master event fired after 1st of december 1939...

All right?
 

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
2Coats said:
Thx Black Guardian, that pretty much how I thought Id need to do it. I was actually after a way of having the Master event trigger 4 child events. The child events would not have a trigger. I think Ayeshteni is right, that it cannot be done.


Hmm, i think it could work... why don´t you try? Creating 5 events isn´t that much work.
If the master event has happened, which is the trigger conditions of the other four ones, one of your child events will fire (which one belongs to the period of time in which you play at the moment triggering the master event)

For example your master event fires 1940, the first child event is not active, because the deathdate is before this year. The third one is not active yet, so it won´t fire...
The only problem could be, that the third child-event fires, when the startdate (e.g. 1942) is reached. But it´s no real problem, you can prevent this using the trigger
Code:
"NOT = { event = [your first/second/third/fourth child event]" }

it should work ^^