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

lordmackie

Sergeant
66 Badges
Dec 30, 2011
88
1
  • Crusader Kings II: Charlemagne
  • Stellaris - Path to Destruction bundle
  • Supreme Ruler: Cold War
  • Magicka
  • Heir to the Throne
  • Europa Universalis IV: Art of War
  • Europa Universalis IV
  • Divine Wind
  • Europa Universalis III Complete
  • Europa Universalis III: Chronicles
  • Darkest Hour
  • Crusader Kings II: Sword of Islam
  • Europa Universalis III
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: The Republic
  • Crusader Kings II
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Legacy of Rome
  • Europa Universalis IV: Cossacks
  • Crusader Kings II: Conclave
  • Stellaris
  • Stellaris Sign-up
  • 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
  • Hearts of Iron IV: Expansion Pass
  • Cities: Skylines - Mass Transit
  • Europa Universalis IV: Mandate of Heaven
  • Hearts of Iron IV: Death or Dishonor
  • Stellaris: Synthetic Dawn
  • Cities: Skylines - Green Cities
  • 500k Club
  • Stellaris: Apocalypse
  • Stellaris: Humanoids Species Pack
  • Stellaris: Distant Stars
  • Europa Universalis III Complete
  • Europa Universalis III Complete
  • Victoria 2
  • Cities: Skylines - Parklife
  • Stellaris: Necroids
  • Crusader Kings II: Horse Lords
  • Cities: Skylines - Parklife Pre-Order
  • Europa Universalis IV: Rule Britannia
  • Europa Universalis IV: El Dorado
  • Magicka: Wizard Wars Founder Wizard
  • Mount & Blade: With Fire and Sword
  • Crusader Kings II: Way of Life
event = { #PCI Gains Support!
id = 8994012
random = no
country = ITA

trigger = {
AND = {
event = 899010
event = 899011
}
}

style = 2
date = { day = 1 month = september year = 1914 }
offset = 25
deathdate = { day = 30 month = july year = 1915 }
picture = "spread_revolution"
name = "PCI Gains Support!"
desc = "Description goes here."
action = {
name = "Damn"
command = { type = dissent value = 10 }
}
}


Knowing my history with events, it's probably something simple and I just can't see it.
For some reason this event just won't fire.

Both triggers happen and I wait a good two months for this thing to fire and it won't
I get no error message on startup and the debugger shows nothing wrong with it.
 

Faulty

Jail or Medal
103 Badges
Sep 22, 2009
2.946
296
  • Arsenal of Democracy
  • Darkest Hour
  • Crusader Kings II
  • Victoria 2: A House Divided
  • Cities: Skylines
  • Cities: Skylines - Parklife
  • Europa Universalis IV: Mandate of Heaven
  • Surviving Mars: Digital Deluxe Edition
  • Europa Universalis IV: Rule Britannia
  • Stellaris: Apocalypse
  • Stellaris: Humanoids Species Pack
  • Hearts of Iron IV: Expansion Pass
  • Europa Universalis IV: Cradle of Civilization
  • Hearts of Iron IV: Death or Dishonor
  • Surviving Mars
  • Crusader Kings Complete
  • Stellaris: Federations
  • Stellaris: Distant Stars
  • Europa Universalis IV: Dharma
  • Surviving Mars: First Colony Edition
  • Hearts of Iron IV: No Step Back
  • Europa Universalis IV: Golden Century
  • Imperator: Rome
  • Hearts of Iron IV: Expansion Pass
  • Prison Architect
  • Surviving Mars: First Colony Edition
  • Stellaris: Ancient Relics
  • Stellaris: Lithoids
  • Crusader Kings II: Horse Lords
  • Europa Universalis IV
  • Europa Universalis III Complete
  • Europa Universalis III Complete
  • Victoria 2
  • 500k Club
  • Europa Universalis IV: El Dorado
  • Pride of Nations
  • Mount & Blade: Warband
  • Mount & Blade: With Fire and Sword
  • Crusader Kings II: Way of Life
  • Europa Universalis IV: Common Sense
  • Steel Division: Normandy 44
  • Crusader Kings II: Conclave
  • Hearts of Iron IV Sign-up
  • Hearts of Iron IV: Cadet
  • Hearts of Iron IV: Colonel
  • Crusader Kings II: Reapers Due
  • Europa Universalis IV: Rights of Man
  • Tyranny: Archon Edition
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Leviathans Story Pack
Are those event number correct? The event you posted has an extra digit, 8994**** whereas the triggers are 899****
 

lordmackie

Sergeant
66 Badges
Dec 30, 2011
88
1
  • Crusader Kings II: Charlemagne
  • Stellaris - Path to Destruction bundle
  • Supreme Ruler: Cold War
  • Magicka
  • Heir to the Throne
  • Europa Universalis IV: Art of War
  • Europa Universalis IV
  • Divine Wind
  • Europa Universalis III Complete
  • Europa Universalis III: Chronicles
  • Darkest Hour
  • Crusader Kings II: Sword of Islam
  • Europa Universalis III
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: The Republic
  • Crusader Kings II
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Legacy of Rome
  • Europa Universalis IV: Cossacks
  • Crusader Kings II: Conclave
  • Stellaris
  • Stellaris Sign-up
  • 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
  • Hearts of Iron IV: Expansion Pass
  • Cities: Skylines - Mass Transit
  • Europa Universalis IV: Mandate of Heaven
  • Hearts of Iron IV: Death or Dishonor
  • Stellaris: Synthetic Dawn
  • Cities: Skylines - Green Cities
  • 500k Club
  • Stellaris: Apocalypse
  • Stellaris: Humanoids Species Pack
  • Stellaris: Distant Stars
  • Europa Universalis III Complete
  • Europa Universalis III Complete
  • Victoria 2
  • Cities: Skylines - Parklife
  • Stellaris: Necroids
  • Crusader Kings II: Horse Lords
  • Cities: Skylines - Parklife Pre-Order
  • Europa Universalis IV: Rule Britannia
  • Europa Universalis IV: El Dorado
  • Magicka: Wizard Wars Founder Wizard
  • Mount & Blade: With Fire and Sword
  • Crusader Kings II: Way of Life
Surprise surprise, I have another one.

I swear I cross reference these with other similar events..

event = { #Title
id = 8994015
random = no
country = ITA

style = 0
picture = "soviet_reinforcements"
name = "Title"
desc = "Description"
action = {
name = "name"
command = { type = delete_unit which = -1 }
command = { type = delete_unit which = -1 }
command = { type = delete_unit which = -1 }
}
}


The event before it has this command

command = { type = event which = 8994015 where = -1 when = 17 }

The event with that command fires correctly. It even says that the event will fire but it never does.

It should fire exactly 17 days after the event holding the command above.
 

Arcangelus

Major
9 Badges
Apr 8, 2012
753
36
  • Darkest Hour
  • Europa Universalis III Complete
  • Divine Wind
  • Heir to the Throne
  • Crusader Kings II: The Old Gods
  • Europa Universalis III Complete
  • Europa Universalis III Complete
  • 500k Club
  • Victoria 3 Sign Up
Let's call the caller event "1°event" and the non-functional "2°event".
Maybe the country receiver of the 1°event is different from ITA. In that case (and AFAIK) the command is trying to call the 2° event for the TAG of the country that received the 1°event, an event only valid to ITA (so nothing happens).
Try replacing
Code:
command = { type = event which = 8994015 where = -1 when = 17 }
For this
Code:
command = { type = event which = 8994015 where = ITA when = 17 }
 

lordmackie

Sergeant
66 Badges
Dec 30, 2011
88
1
  • Crusader Kings II: Charlemagne
  • Stellaris - Path to Destruction bundle
  • Supreme Ruler: Cold War
  • Magicka
  • Heir to the Throne
  • Europa Universalis IV: Art of War
  • Europa Universalis IV
  • Divine Wind
  • Europa Universalis III Complete
  • Europa Universalis III: Chronicles
  • Darkest Hour
  • Crusader Kings II: Sword of Islam
  • Europa Universalis III
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: The Republic
  • Crusader Kings II
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Legacy of Rome
  • Europa Universalis IV: Cossacks
  • Crusader Kings II: Conclave
  • Stellaris
  • Stellaris Sign-up
  • 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
  • Hearts of Iron IV: Expansion Pass
  • Cities: Skylines - Mass Transit
  • Europa Universalis IV: Mandate of Heaven
  • Hearts of Iron IV: Death or Dishonor
  • Stellaris: Synthetic Dawn
  • Cities: Skylines - Green Cities
  • 500k Club
  • Stellaris: Apocalypse
  • Stellaris: Humanoids Species Pack
  • Stellaris: Distant Stars
  • Europa Universalis III Complete
  • Europa Universalis III Complete
  • Victoria 2
  • Cities: Skylines - Parklife
  • Stellaris: Necroids
  • Crusader Kings II: Horse Lords
  • Cities: Skylines - Parklife Pre-Order
  • Europa Universalis IV: Rule Britannia
  • Europa Universalis IV: El Dorado
  • Magicka: Wizard Wars Founder Wizard
  • Mount & Blade: With Fire and Sword
  • Crusader Kings II: Way of Life
Let's call the caller event "1°event" and the non-functional "2°event".
Maybe the country receiver of the 1°event is different from ITA. In that case (and AFAIK) the command is trying to call the 2° event for the TAG of the country that received the 1°event, an event only valid to ITA (so nothing happens).
Try replacing
Code:
command = { type = event which = 8994015 where = -1 when = 17 }
For this
Code:
command = { type = event which = 8994015 where = ITA when = 17 }

They are both designated for country = ITA
 

Faulty

Jail or Medal
103 Badges
Sep 22, 2009
2.946
296
  • Arsenal of Democracy
  • Darkest Hour
  • Crusader Kings II
  • Victoria 2: A House Divided
  • Cities: Skylines
  • Cities: Skylines - Parklife
  • Europa Universalis IV: Mandate of Heaven
  • Surviving Mars: Digital Deluxe Edition
  • Europa Universalis IV: Rule Britannia
  • Stellaris: Apocalypse
  • Stellaris: Humanoids Species Pack
  • Hearts of Iron IV: Expansion Pass
  • Europa Universalis IV: Cradle of Civilization
  • Hearts of Iron IV: Death or Dishonor
  • Surviving Mars
  • Crusader Kings Complete
  • Stellaris: Federations
  • Stellaris: Distant Stars
  • Europa Universalis IV: Dharma
  • Surviving Mars: First Colony Edition
  • Hearts of Iron IV: No Step Back
  • Europa Universalis IV: Golden Century
  • Imperator: Rome
  • Hearts of Iron IV: Expansion Pass
  • Prison Architect
  • Surviving Mars: First Colony Edition
  • Stellaris: Ancient Relics
  • Stellaris: Lithoids
  • Crusader Kings II: Horse Lords
  • Europa Universalis IV
  • Europa Universalis III Complete
  • Europa Universalis III Complete
  • Victoria 2
  • 500k Club
  • Europa Universalis IV: El Dorado
  • Pride of Nations
  • Mount & Blade: Warband
  • Mount & Blade: With Fire and Sword
  • Crusader Kings II: Way of Life
  • Europa Universalis IV: Common Sense
  • Steel Division: Normandy 44
  • Crusader Kings II: Conclave
  • Hearts of Iron IV Sign-up
  • Hearts of Iron IV: Cadet
  • Hearts of Iron IV: Colonel
  • Crusader Kings II: Reapers Due
  • Europa Universalis IV: Rights of Man
  • Tyranny: Archon Edition
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Leviathans Story Pack
Use save_date = yes on the first event and then have a trigger for the second that includes event = { id = xxxx days = 16 }
With an offset of 1 I think that would make the second fire on midnight 17 days later (test it)
 

Trunyx

Second Lieutenant
38 Badges
Jun 3, 2011
183
5
  • Crusader Kings II: Charlemagne
  • Victoria 2: Heart of Darkness
  • Victoria 2: A House Divided
  • Semper Fi
  • Victoria: Revolutions
  • Europa Universalis IV: Res Publica
  • Hearts of Iron III: Their Finest Hour
  • Hearts of Iron III
  • For the Motherland
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis III: Chronicles
  • Darkest Hour
  • Crusader Kings II: Sword of Islam
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sons of Abraham
  • Europa Universalis IV
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II
  • Hearts of Iron IV Sign-up
  • Crusader Kings III
  • Hearts of Iron IV: Cadet
  • Crusader Kings II: Reapers Due
  • Crusader Kings II: Monks and Mystics
  • Crusader Kings II: Jade Dragon
  • Cities: Skylines - Parklife Pre-Order
  • Cities: Skylines - Parklife
  • Crusader Kings II: Holy Fury
  • Stellaris
  • Crusader Kings II: Conclave
  • Crusader Kings II: Horse Lords
  • Crusader Kings II: Way of Life
  • 500k Club
  • Victoria 2
  • Cities: Skylines
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Republic
I have looked up in different sources but i didn't found out how do add IC to a province? For example if I want to add 2 IC to munich (MapID: 179)...
command = { type = ???....
 

Arcangelus

Major
9 Badges
Apr 8, 2012
753
36
  • Darkest Hour
  • Europa Universalis III Complete
  • Divine Wind
  • Heir to the Throne
  • Crusader Kings II: The Old Gods
  • Europa Universalis III Complete
  • Europa Universalis III Complete
  • 500k Club
  • Victoria 3 Sign Up
I have looked up in different sources but i didn't found out how do add IC to a province? For example if I want to add 2 IC to munich (MapID: 179)...
command = { type = ???....
In your case is:
Code:
command = { type = construct which = IC where = 179 value = 2 }
 

Arcangelus

Major
9 Badges
Apr 8, 2012
753
36
  • Darkest Hour
  • Europa Universalis III Complete
  • Divine Wind
  • Heir to the Throne
  • Crusader Kings II: The Old Gods
  • Europa Universalis III Complete
  • Europa Universalis III Complete
  • 500k Club
  • Victoria 3 Sign Up
I'm starting to thing that is a problem with the commands cause now I have the problem. Trying to use this decision in "The Napoleon Legacy" mod to capture the enemy fleet, nothing happens. But if I manually trigger the event 66700 or 667001 for TRA, it works.
Code:
event = {
	id = 666013
	country = CHL
	random = no
	decision = { control = { province = 2014 } control = { province = 2015 } control = { province = 2017 } war = { country = TRA } }
	trigger = { control = { province = 2014 } control = { province = 2015 } control = { province = 2017 } war = { country = TRA } }

	name = "Capture of enemy fleet"
	desc = "We have captured the Peru-Bolivian fleet. What should we do with it?"
	style = 1

	date = { day = 6 month = january year = 1936 }
	offset = 30
	deathdate = { day = 6 month = january year = 1950 }

	action = {
		name = "Que se una a nuestra armada"
		command = { type = belligerence which = CHL value = 2 }
		command = { type = dissent value = -1 }
		command = { type = trigger which = 667100 }
		}
	action = {
		name = "Desmontenla"
		command = { type = relation which = TRA value = -30 }
		command = { type = money value = 100 }
		command = { type = metalpool value = 1000 }
		command = { type = oilpool value = 200 }
		command = { type = supplies value = 800 }
		command = { type = trigger which = 667101 }
		}
	}

event = {
	id = 667100
	country = TRA
	random = no
	persistent = yes

	name = "Our fleet has been capturated"
	desc = "Our fleet has been capturated by the chilean forces."
	style = 1

	action = {
		name = "Mierda" # What? It was allowed in french. Why not in spanish?
		command = { type = switch_allegiance which = -2 where = CHL }
		command = { type = switch_allegiance which = -2 where = CHL }
		command = { type = switch_allegiance which = -2 where = CHL }
		command = { type = switch_allegiance which = -2 where = CHL }
		command = { type = switch_allegiance which = -2 where = CHL }
		command = { type = switch_allegiance which = -2 where = CHL }
		}
	}

event = {
	id = 667101
	country = TRA
	random = no

	name = "Our fleet has been destroyed"
	desc = "Our fleet has been destroyed by the chilean forces."
	style = 1

	action = {
		name = "Mierda"
		command = { type = delete_unit which = -2 }
		command = { type = delete_unit which = -2 }
		command = { type = delete_unit which = -2 }
		command = { type = delete_unit which = -2 }
		command = { type = delete_unit which = -2 }
		command = { type = delete_unit which = -2 }
		command = { type = delete_unit which = -2 }
		}
	}

EDIT: Add a command = { } at the fist line after the name = "". I will work now.
 
Last edited:

Arcangelus

Major
9 Badges
Apr 8, 2012
753
36
  • Darkest Hour
  • Europa Universalis III Complete
  • Divine Wind
  • Heir to the Throne
  • Crusader Kings II: The Old Gods
  • Europa Universalis III Complete
  • Europa Universalis III Complete
  • 500k Club
  • Victoria 3 Sign Up
@Arcangelus: are you sure you're fulfilling the trigger? An event fires if at least one command of one action is valid, and they look valid.
Pretty sure. Is a decision after all, with the decision and trigger part identical.
I already fix it thought. Just add a "command = { }" as first command, and work. No idea why doesn't work without it.

To clarify, instead of:
Code:
event = {
	id = 667100
	country = TRA
	random = no
	persistent = yes

	name = "Our fleet has been capturated"
	desc = "Our fleet has been capturated by the chilean forces."
	style = 1

	action = {
		name = "Mierda" # What? It was allowed in french. Why not in spanish?
		command = { type = switch_allegiance which = -2 where = CHL }
		command = { type = switch_allegiance which = -2 where = CHL }
		command = { type = switch_allegiance which = -2 where = CHL }
		command = { type = switch_allegiance which = -2 where = CHL }
		command = { type = switch_allegiance which = -2 where = CHL }
		command = { type = switch_allegiance which = -2 where = CHL }
		}
	}

event = {
	id = 667101
	country = TRA
	random = no

	name = "Our fleet has been destroyed"
	desc = "Our fleet has been destroyed by the chilean forces."
	style = 1

	action = {
		name = "Mierda"
		command = { type = delete_unit which = -2 }
		command = { type = delete_unit which = -2 }
		command = { type = delete_unit which = -2 }
		command = { type = delete_unit which = -2 }
		command = { type = delete_unit which = -2 }
		command = { type = delete_unit which = -2 }
		command = { type = delete_unit which = -2 }
		}
	}
It must be used:
Code:
event = {
	id = 667100
	country = TRA
	random = no

	name = "Our fleet has been capturated"
	desc = "Our fleet has been capturated by the chilean forces."
	style = 1

	action = {
		name = "Mierda"
		command = {  } #This was added
		command = { type = switch_allegiance which = -2 where = CHL }
		command = { type = switch_allegiance which = -2 where = CHL }
		command = { type = switch_allegiance which = -2 where = CHL }
		command = { type = switch_allegiance which = -2 where = CHL }
		command = { type = switch_allegiance which = -2 where = CHL }
		command = { type = switch_allegiance which = -2 where = CHL }
		command = { type = switch_allegiance which = -2 where = CHL }
		}
	}

event = {
	id = 667101
	country = TRA
	random = no

	name = "Our fleet has been destroyed"
	desc = "Our fleet has been destroyed by the chilean forces."
	style = 1

	action = {
		name = "Mierda"
		command = {  } #This was added
		command = { type = delete_unit which = -2 }
		command = { type = delete_unit which = -2 }
		command = { type = delete_unit which = -2 }
		command = { type = delete_unit which = -2 }
		command = { type = delete_unit which = -2 }
		command = { type = delete_unit which = -2 }
		command = { type = delete_unit which = -2 }
		}
	}
 
Last edited:

Arcangelus

Major
9 Badges
Apr 8, 2012
753
36
  • Darkest Hour
  • Europa Universalis III Complete
  • Divine Wind
  • Heir to the Throne
  • Crusader Kings II: The Old Gods
  • Europa Universalis III Complete
  • Europa Universalis III Complete
  • 500k Club
  • Victoria 3 Sign Up
I haven't let the IA try. I left the trigger more to contemplate the possibility than to make the IA actually use it. It not so easy to reach that situation without micromanage a little.
I added the persistent part when I was out of ideas. Removed (in my version anyway).

Now the question: Why the event work with a empty command but doesn't without it? A bug?

EDIT: Post 111 :)
 

Arcangelus

Major
9 Badges
Apr 8, 2012
753
36
  • Darkest Hour
  • Europa Universalis III Complete
  • Divine Wind
  • Heir to the Throne
  • Crusader Kings II: The Old Gods
  • Europa Universalis III Complete
  • Europa Universalis III Complete
  • 500k Club
  • Victoria 3 Sign Up
I don't understand what the problem is anymore.
This is what I get for keep answering. My problem was already solved with the inclusion of a command = {}. That I was trying to say: That the problems caused by the commands switch_allegiance and delete_unit are solved with the inclusion of a empty command.
And then I asked why this happen. Thats all.

@lordmackie: Just add a command = { } as the fist command in the event that erase troops and it will work.

EDIT: Now I realize that this answer can be considered insulting. I wasn't my intention being rude. Sorry.
And that I probably should have stopped posting about that event after I found the solution. I was just trying to show the solution if anyone else has the same problem.
 
Last edited: