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

Prinz Wilhelm

Field Marshal
51 Badges
Jul 12, 2006
4.049
88
  • Cities: Skylines - Green Cities
  • Crusader Kings II: Conclave
  • Cities: Skylines - Snowfall
  • Europa Universalis IV: Mare Nostrum
  • Hearts of Iron IV: Cadet
  • Hearts of Iron IV: Colonel
  • Crusader Kings II: Reapers Due
  • Hearts of Iron IV: Together for Victory
  • Crusader Kings II: Monks and Mystics
  • Cities: Skylines - Mass Transit
  • Crusader Kings Complete
  • Europa Universalis IV: Third Rome
  • Hearts of Iron IV: Death or Dishonor
  • Europa Universalis IV: Cossacks
  • Hearts of Iron IV: Expansion Pass
  • Cities: Skylines - Parklife
  • Europa Universalis IV: Dharma
  • Cities: Skylines Industries
  • Crusader Kings II: Holy Fury
  • Europa Universalis IV: Golden Century
  • Hearts of Iron IV: Expansion Pass
  • Prison Architect
  • Cities: Skylines - Campus
  • Hearts of Iron IV: La Resistance
  • Crusader Kings III
  • Europa Universalis 4: Emperor
  • For The Glory
  • Crusader Kings II
  • Crusader Kings II: Charlemagne
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Sword of Islam
  • Europa Universalis III
  • 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
  • Arsenal of Democracy
  • Magicka
  • Europa Universalis IV: Res Publica
  • Victoria 2
  • Victoria 2: A House Divided
  • 500k Club
  • Cities: Skylines
  • Crusader Kings II: Holy Knight (pre-order)
  • Europa Universalis IV: El Dorado
  • Crusader Kings II: Way of Life
  • Europa Universalis IV: Common Sense
Hi y'all! I'm modding the historical events of HoI2 (Marco Polo bridge incident, pearl harbor) and I am wondering, will this make the event fire on the specified date?

Code:
#########################################################################
#  Marco Polo Bridge Incident (Japan, China)
#########################################################################

event = {
	id = 20
	random = no
	country = JAP

	# Historical event July 1937
        # http://ibiblio.org/pha/monos/144/144chap2.html

	name = EVT_20_NAME
	desc = EVT_20_DESC
	style = 0
	picture = "Marco_Polo"

	trigger = {
            exists = CHI
		NOT = {
			war = { country = JAP country = CHI }
			puppet = { country = JAP country = CHI }
			war = { country = JAP country = CSX }
			puppet = { country = JAP country = CSX }
			war = { country = JAP country = CGX }
			puppet = { country = JAP country = CGX }
			alliance = { country = JAP country = CHI }
			alliance = { country = JAP country = CSX }
			alliance = { country = JAP country = CGX }
			alliance = { country = CHI country = SOV }
			alliance = { country = CHI country = USA }
			alliance = { country = CHI country = ENG }
			control = { province = 1205 data = JAP } 
			war = { country = JAP country = SOV }
		}
	}

        date = { day = 7 month = july year = 1937 }

	action_a = {
		name = EVT_20_ACTA
		ai_chance = 100
		command = { type = war which = CHI }
		command = { type = war which = CSX }
		command = { type = war which = CGX }
		command = { type = belligerence which = JAP value = -50 } #The DoWs above is for free
		command = { type = relation which = USA value = -10 }
		command = { type = relation which = ENG value = -10 }
		command = { type = relation which = SOV value = -10 }
		command = { type = relation which = CHI value = -50 }
		command = { type = relation which = CSX value = -50 }
		command = { type = relation which = CGX value = -50 }
		command = { type = dissent value = -10 }
		command = { type = domestic which = interventionism value = 1 }
		command = { type = domestic which = defense_lobby value = 2 }
		command = { type = manpowerpool value = 50 }
		command = { type = trigger which = 21 }

	}
	action_b = {
		ai_chance = 0
		name = EVT_20_ACTB
		command = { type = dissent value = 3 }
		command = { type = belligerence which = JAP value = -50 } #Peace, Love and Understanding
		command = { type = domestic which = interventionism value = -1 }
		command = { type = domestic which = defense_lobby value = -1 }
	}
}

Please help a noob at event making. :)
 

Prinz Wilhelm

Field Marshal
51 Badges
Jul 12, 2006
4.049
88
  • Cities: Skylines - Green Cities
  • Crusader Kings II: Conclave
  • Cities: Skylines - Snowfall
  • Europa Universalis IV: Mare Nostrum
  • Hearts of Iron IV: Cadet
  • Hearts of Iron IV: Colonel
  • Crusader Kings II: Reapers Due
  • Hearts of Iron IV: Together for Victory
  • Crusader Kings II: Monks and Mystics
  • Cities: Skylines - Mass Transit
  • Crusader Kings Complete
  • Europa Universalis IV: Third Rome
  • Hearts of Iron IV: Death or Dishonor
  • Europa Universalis IV: Cossacks
  • Hearts of Iron IV: Expansion Pass
  • Cities: Skylines - Parklife
  • Europa Universalis IV: Dharma
  • Cities: Skylines Industries
  • Crusader Kings II: Holy Fury
  • Europa Universalis IV: Golden Century
  • Hearts of Iron IV: Expansion Pass
  • Prison Architect
  • Cities: Skylines - Campus
  • Hearts of Iron IV: La Resistance
  • Crusader Kings III
  • Europa Universalis 4: Emperor
  • For The Glory
  • Crusader Kings II
  • Crusader Kings II: Charlemagne
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Sword of Islam
  • Europa Universalis III
  • 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
  • Arsenal of Democracy
  • Magicka
  • Europa Universalis IV: Res Publica
  • Victoria 2
  • Victoria 2: A House Divided
  • 500k Club
  • Cities: Skylines
  • Crusader Kings II: Holy Knight (pre-order)
  • Europa Universalis IV: El Dorado
  • Crusader Kings II: Way of Life
  • Europa Universalis IV: Common Sense
Anyone?
 

Kaoru Nagisa

Second Lieutenant
76 Badges
Jun 3, 2006
162
7
  • Semper Fi
  • Lead and Gold
  • Leviathan: Warships
  • The Kings Crusade
  • Magicka
  • Majesty 2
  • Majesty 2 Collection
  • March of the Eagles
  • Europa Universalis III Complete
  • Naval War: Arctic Circle
  • Europa Universalis IV: Res Publica
  • Victoria: Revolutions
  • Rome Gold
  • King Arthur II
  • Ship Simulator Extremes
  • Sword of the Stars
  • Sword of the Stars II
  • Supreme Ruler: Cold War
  • Teleglitch: Die More Edition
  • The Showdown Effect
  • Victoria 2
  • Victoria 2: A House Divided
  • Victoria 2: Heart of Darkness
  • Rome: Vae Victis
  • War of the Roses
  • Crusader Kings III
  • Europa Universalis III Complete
  • 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: Sunset Invasion
  • Crusader Kings II: Sword of Islam
  • Darkest Hour
  • Europa Universalis III
  • Arsenal of Democracy
  • Divine Wind
  • Europa Universalis IV
  • 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
  • Heir to the Throne
Hey!

Hiya, there. Just for your information: The problem with events, as I've been told, is that sometimes the engine doesn't load them up right on the first day they're supposed to go off. That's why most historical events have a period of some fifteen to thirty days when they can be activated, even if they only happened on one, specific day.

So, you might wanna put a 'deathdate' in there for a month later, but beyond that, your event looks pretty solid, to me. You also might wanna plug in an offset - such as 3, say:
Code:
        date = { day = 7 month = july year = 1937 }
        offset = 3
	deathdate = { day = 7 month = august year = 1937 }
Of course, I'm relatively inexperienced with modifying dates and offsets, but beyond that, it looks like you've got things well in hand.
I might've missed something - anyone else wanna give this a shot?
 

Prinz Wilhelm

Field Marshal
51 Badges
Jul 12, 2006
4.049
88
  • Cities: Skylines - Green Cities
  • Crusader Kings II: Conclave
  • Cities: Skylines - Snowfall
  • Europa Universalis IV: Mare Nostrum
  • Hearts of Iron IV: Cadet
  • Hearts of Iron IV: Colonel
  • Crusader Kings II: Reapers Due
  • Hearts of Iron IV: Together for Victory
  • Crusader Kings II: Monks and Mystics
  • Cities: Skylines - Mass Transit
  • Crusader Kings Complete
  • Europa Universalis IV: Third Rome
  • Hearts of Iron IV: Death or Dishonor
  • Europa Universalis IV: Cossacks
  • Hearts of Iron IV: Expansion Pass
  • Cities: Skylines - Parklife
  • Europa Universalis IV: Dharma
  • Cities: Skylines Industries
  • Crusader Kings II: Holy Fury
  • Europa Universalis IV: Golden Century
  • Hearts of Iron IV: Expansion Pass
  • Prison Architect
  • Cities: Skylines - Campus
  • Hearts of Iron IV: La Resistance
  • Crusader Kings III
  • Europa Universalis 4: Emperor
  • For The Glory
  • Crusader Kings II
  • Crusader Kings II: Charlemagne
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Sword of Islam
  • Europa Universalis III
  • 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
  • Arsenal of Democracy
  • Magicka
  • Europa Universalis IV: Res Publica
  • Victoria 2
  • Victoria 2: A House Divided
  • 500k Club
  • Cities: Skylines
  • Crusader Kings II: Holy Knight (pre-order)
  • Europa Universalis IV: El Dorado
  • Crusader Kings II: Way of Life
  • Europa Universalis IV: Common Sense
In Victoria, to make an event happen on a specific date, remove offset and deathdate. If the triggers aren't met on that specific date, the event never happens.
 

Prinz Wilhelm

Field Marshal
51 Badges
Jul 12, 2006
4.049
88
  • Cities: Skylines - Green Cities
  • Crusader Kings II: Conclave
  • Cities: Skylines - Snowfall
  • Europa Universalis IV: Mare Nostrum
  • Hearts of Iron IV: Cadet
  • Hearts of Iron IV: Colonel
  • Crusader Kings II: Reapers Due
  • Hearts of Iron IV: Together for Victory
  • Crusader Kings II: Monks and Mystics
  • Cities: Skylines - Mass Transit
  • Crusader Kings Complete
  • Europa Universalis IV: Third Rome
  • Hearts of Iron IV: Death or Dishonor
  • Europa Universalis IV: Cossacks
  • Hearts of Iron IV: Expansion Pass
  • Cities: Skylines - Parklife
  • Europa Universalis IV: Dharma
  • Cities: Skylines Industries
  • Crusader Kings II: Holy Fury
  • Europa Universalis IV: Golden Century
  • Hearts of Iron IV: Expansion Pass
  • Prison Architect
  • Cities: Skylines - Campus
  • Hearts of Iron IV: La Resistance
  • Crusader Kings III
  • Europa Universalis 4: Emperor
  • For The Glory
  • Crusader Kings II
  • Crusader Kings II: Charlemagne
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Sword of Islam
  • Europa Universalis III
  • 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
  • Arsenal of Democracy
  • Magicka
  • Europa Universalis IV: Res Publica
  • Victoria 2
  • Victoria 2: A House Divided
  • 500k Club
  • Cities: Skylines
  • Crusader Kings II: Holy Knight (pre-order)
  • Europa Universalis IV: El Dorado
  • Crusader Kings II: Way of Life
  • Europa Universalis IV: Common Sense
ADukes said:
Looks good, but day should be 6, so that event triggers on the 7th not on the 8th.

Thank you, forgot about that one. Always comes and haunt you. :D