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

Smileyfax

Sergeant
84 Badges
Jan 18, 2008
57
0
  • For The Glory
  • Warlock: Master of the Arcane
  • Rome: Vae Victis
  • Victoria 2: Heart of Darkness
  • Victoria 2: A House Divided
  • Rome Gold
  • Victoria: Revolutions
  • Magicka
  • Knights of Pen and Paper +1 Edition
  • Heir to the Throne
  • Europa Universalis IV: Mare Nostrum
  • Hearts of Iron Anthology
  • Divine Wind
  • Europa Universalis III Complete
  • Europa Universalis III: Chronicles
  • Darkest Hour
  • Arsenal of Democracy
  • Cities in Motion
  • Cities in Motion 2
  • 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
  • Europa Universalis III
  • Crusader Kings II: Horse Lords
  • Knights of Pen and Paper 2
  • Europa Universalis IV: Common Sense
  • Europa Universalis IV: Cossacks
  • Pillars of Eternity
  • Crusader Kings II: Conclave
  • Crusader Kings II: Way of Life
  • Europa Universalis IV: El Dorado
  • Cities: Skylines
  • Stellaris
  • 500k Club
  • Victoria 2
  • Teleglitch: Die More Edition
  • Hearts of Iron IV Sign-up
  • Europa Universalis III Complete
  • Hearts of Iron IV: Cadet
  • Europa Universalis III Complete
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Federations
  • Crusader Kings II: Reapers Due
  • Europa Universalis IV: Rights of Man
Okay, so I've decided to try my hand at making new events. Playing as Mexico, it's supposed to give me cores on California, Arizona, New Mexico, Nevada, Utah, and Texas if I'm at war with the United States, but it doesn't do so. Any help?


Code:
event = {
	id = 102
	random = no
	country = MEX
	trigger = {

		war = { country = MEX country = USA }
		}

	name = "Mexifest Destiny!"
	desc = "After the beginning of hostilities with the United States, Mexico issued a proclamation, entitled Mexifest Destiny, that stated it intended to take back all of its territorial holdings the United States had stolen from them over the years -- California, Nevada, Utah, Arizona, New Mexico, and Texas."
	style = 0
	picture = "politician"

	date = { day = 0 month = january year = 1936 }
	offset = 1
	deathdate = { day = 30 month = december year = 1963 }

	action_a = {

		name = "Okay."
		ai_chance = 100
		command = { type = addcore which = 715 } #Dallas
		command = { type = addcore which = 716 } #Houston
		command = { type = addcore which = 717 } #San Antonio
		command = { type = addcore which = 718 } #El Paso
		command = { type = addcore which = 719 } #Abilene
		command = { type = addcore which = 720 } #Amarillo
		command = { type = addcore which = 721 } #Lubbock
		command = { type = addcore which = 722 } #Roswell
		command = { type = addcore which = 723 } #Las Cruces
		command = { type = addcore which = 724 } #Albuquerque
		command = { type = addcore which = 725 } #Santa Fe
		command = { type = addcore which = 726 } #Los Alamos
		command = { type = addcore which = 727 } #Silver City
		command = { type = addcore which = 728 } #Tucson
		command = { type = addcore which = 729 } #Yuma
		command = { type = addcore which = 730 } #Phoenix
		command = { type = addcore which = 731 } #Delano Park
		command = { type = addcore which = 732 } #Provo
		command = { type = addcore which = 733 } #Salt Lake City
		command = { type = addcore which = 734 } #Las Vegas
		command = { type = addcore which = 735 } #Mojave Desert
		command = { type = addcore which = 736 } #Imperial Valley
		command = { type = addcore which = 746 } #Midland
		command = { type = addcore which = 748 } #Corpus Christi
		command = { type = addcore which = 761 } #San Diego
		command = { type = addcore which = 762 } #Los Angeles
		command = { type = addcore which = 763 } #Fresno
		command = { type = addcore which = 764 } #Sacramento
		command = { type = addcore which = 765 } #San Francisco
		command = { type = addcore which = 766 } #Redding
		command = { type = addcore which = 767 } #Sierra Nevada
		command = { type = addcore which = 768 } #Reno

		}

}
 

unmerged(58571)

Field Marshal
Jul 1, 2006
6.288
0
The date range should not be a problem, as December 31 will be interpreted as December 30.
It may be that the description text is longer than the parser can handle.
 

DeathDemon

First Lieutenant
82 Badges
May 3, 2006
282
0
  • Cities: Skylines - After Dark
  • Victoria 2
  • Victoria 2: A House Divided
  • Victoria 2: Heart of Darkness
  • 500k Club
  • Cities: Skylines
  • Europa Universalis IV: El Dorado
  • Mount & Blade: Warband
  • Crusader Kings II: Way of Life
  • Pillars of Eternity
  • Magicka 2
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Horse Lords
  • Supreme Ruler: Cold War
  • Europa Universalis IV: Cossacks
  • Crusader Kings II: Conclave
  • Cities: Skylines - Snowfall
  • Europa Universalis IV: Mare Nostrum
  • Stellaris
  • Hearts of Iron IV: Cadet
  • Crusader Kings II: Reapers Due
  • Europa Universalis IV: Rights of Man
  • Stellaris: Leviathans Story Pack
  • Hearts of Iron IV: Together for Victory
  • Crusader Kings II: Monks and Mystics
  • Europa Universalis 4: Emperor
  • Europa Universalis IV: Art of War
  • 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: Sword of Islam
  • Darkest Hour
  • Europa Universalis III
  • Europa Universalis IV
  • Arsenal of Democracy
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Wealth of Nations
  • Hearts of Iron III
  • Heir to the Throne
  • Europa Universalis III Complete
  • Magicka
  • Europa Universalis III Complete
  • Europa Universalis IV: Res Publica
  • Victoria: Revolutions
  • Rome Gold
Wobbler said:
The date range should not be a problem, as December 31 will be interpreted as December 30.
It may be that the description text is longer than the parser can handle.
That could be it, but in my experience, if the description text is too long, there will be an error message when trying to load the scenario.
 

Smileyfax

Sergeant
84 Badges
Jan 18, 2008
57
0
  • For The Glory
  • Warlock: Master of the Arcane
  • Rome: Vae Victis
  • Victoria 2: Heart of Darkness
  • Victoria 2: A House Divided
  • Rome Gold
  • Victoria: Revolutions
  • Magicka
  • Knights of Pen and Paper +1 Edition
  • Heir to the Throne
  • Europa Universalis IV: Mare Nostrum
  • Hearts of Iron Anthology
  • Divine Wind
  • Europa Universalis III Complete
  • Europa Universalis III: Chronicles
  • Darkest Hour
  • Arsenal of Democracy
  • Cities in Motion
  • Cities in Motion 2
  • 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
  • Europa Universalis III
  • Crusader Kings II: Horse Lords
  • Knights of Pen and Paper 2
  • Europa Universalis IV: Common Sense
  • Europa Universalis IV: Cossacks
  • Pillars of Eternity
  • Crusader Kings II: Conclave
  • Crusader Kings II: Way of Life
  • Europa Universalis IV: El Dorado
  • Cities: Skylines
  • Stellaris
  • 500k Club
  • Victoria 2
  • Teleglitch: Die More Edition
  • Hearts of Iron IV Sign-up
  • Europa Universalis III Complete
  • Hearts of Iron IV: Cadet
  • Europa Universalis III Complete
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Federations
  • Crusader Kings II: Reapers Due
  • Europa Universalis IV: Rights of Man
Well, I actually originally had the description text put into event_text.csv in the config folder, but pasted it directly into the event after it didn't work the first time. I also fiddled with the dates a bit, but that was also unsuccessful.

Could it be that another event has the same ID number? The page on the wiki which lists all the occupied event ID numbers seemed to be for the vanilla game, whereas I have Doomsday and Armageddon.

Also: I have the event in its own text file. Would it work if I put it into Mexico's events folder?
 

unmerged(58571)

Field Marshal
Jul 1, 2006
6.288
0
Smileyfax said:
Could it be that another event has the same ID number?
The event parser will give a warning if there are multiple events with the same ID.

Also: I have the event in its own text file. Would it work if I put it into Mexico's events folder?
Did you remember to add a reference to that file in the scenario definition?
 

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
Wobbler said:
The event parser will give a warning if there are multiple events with the same ID.

Did you remember to add a reference to that file in the scenario definition?

Very likely the event file wasn't included in event.txt.

Ayeshteni