Kelvin

Occam's Chainsaw
7 Badges
Aug 22, 2002
2.007
2
  • Arsenal of Democracy
  • For The Glory
  • Victoria: Revolutions
  • Victoria 2
  • Victoria 2: A House Divided
  • Victoria 2: Heart of Darkness
  • 500k Club
Did anyone encounter problems using the condition in this example?

Code:
someof = {
	number = 3
	owned = { province = 475 data = -1 } #Trebizond
	owned = { province = 472 data = -1 } #Armenia
	owned = { province = 483 data = -1 } #Kilikia
	owned = { province = 1747 data = -1 } #Kappadokia
	}

I've got the "Unknown tag in trigger" if I use it...
 

Pied-Noir

Future Battle Bishop
On Probation
53 Badges
Sep 6, 2011
2.556
4.806
  • For The Glory
  • Prison Architect
  • War of the Roses
  • Victoria 2
  • 500k Club
  • Europa Universalis IV: Pre-order
  • Crusader Kings II: Way of Life
  • Europa Universalis III Complete
  • Crusader Kings II: Horse Lords
  • Europa Universalis III Complete
  • Crusader Kings III: Royal Edition
  • Crusader Kings II: Conclave
  • Stellaris
  • Hearts of Iron IV: Cadet
  • Hearts of Iron IV: Colonel
  • Europa Universalis IV
  • Crusader Kings II: Reapers Due
  • Tyranny: Archon Edition
  • Hearts of Iron IV: Expansion Pass
  • Crusader Kings II: Monks and Mystics
  • Steel Division: Normandy 44
  • Crusader Kings Complete
  • Hearts of Iron IV: Death or Dishonor
  • Hearts of Iron IV: Expansion Pass
  • Hearts of Iron IV: Expansion Pass
  • Crusader Kings III
  • Hearts of Iron IV: Expansion Pass
  • Sengoku
  • Rome: Vae Victis
  • Europa Universalis III Complete
  • 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
  • Victoria 2: Heart of Darkness
  • Divine Wind
  • Europa Universalis IV: Call to arms event
  • For the Motherland
  • Hearts of Iron III
  • Hearts of Iron III: Their Finest Hour
  • March of the Eagles
  • Rome Gold
  • Semper Fi
  • Crusader Kings II
I'm probably wrong, but try an extra bracket at the end.
 

ConjurerDragon

Generalissimus
63 Badges
Apr 19, 2005
5.317
480
  • Teleglitch: Die More Edition
  • Europa Universalis III Complete
  • Knights of Pen and Paper +1 Edition
  • The Kings Crusade
  • Magicka
  • March of the Eagles
  • Europa Universalis III Complete
  • Europa Universalis IV: Res Publica
  • Victoria: Revolutions
  • Rome Gold
  • Sengoku
  • Ship Simulator Extremes
  • Sword of the Stars
  • Impire
  • Victoria 2
  • Rome: Vae Victis
  • Warlock: Master of the Arcane
  • War of the Roses
  • 500k Club
  • Europa Universalis III: Collection
  • Europa Universalis IV: El Dorado
  • Europa Universalis IV: Pre-order
  • Magicka: Wizard Wars Founder Wizard
  • Pride of Nations
  • Rise of Prussia
  • Shadowrun: Hong Kong
  • East India Company Collection
  • Hearts of Iron Anthology
  • Arsenal of Democracy
  • Hearts of Iron II: Armageddon
  • Crusader Kings II
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: The Old Gods
  • 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
  • Europa Universalis III
  • Europa Universalis III: Chronicles
  • Europa Universalis III Complete
  • 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
  • Hearts of Iron III

Kelvin

Occam's Chainsaw
7 Badges
Aug 22, 2002
2.007
2
  • Arsenal of Democracy
  • For The Glory
  • Victoria: Revolutions
  • Victoria 2
  • Victoria 2: A House Divided
  • Victoria 2: Heart of Darkness
  • 500k Club

Kelvin

Occam's Chainsaw
7 Badges
Aug 22, 2002
2.007
2
  • Arsenal of Democracy
  • For The Glory
  • Victoria: Revolutions
  • Victoria 2
  • Victoria 2: A House Divided
  • Victoria 2: Heart of Darkness
  • 500k Club
What am I doing wrong here?

Code:
trigger = {
	event = 90000
	NOT = {	exists = SER }
	someof = {
		number = 3
		owned = { province = 355 data = -1 } #Syrmia
		owned = { province = 1920 data = -1 }#Serbia
		owned = { province = 1397 data = -1 } #Kosovo
		owned = { province = 1923 data = -1 } #Zeta
		}
	}

	random = NO
	... (the rest of the event)
 

Third Angel

Mad Medievalist
48 Badges
Feb 8, 2005
2.370
16
  • Europa Universalis IV: Call to arms event
  • Europa Universalis IV: Pre-order
  • For The Glory
  • Crusader Kings III: Royal Edition
  • Crusader Kings II: Holy Knight (pre-order)
  • Deus Vult
Maybe a stupid question but the trigger was only added in 1.2 so are you sure you are using that patch? If you are then I cannot see anything wrong with what you posted and I can confirm, like ConjurerDragon, that I do not get any error message when using it in my events.
 

ConjurerDragon

Generalissimus
63 Badges
Apr 19, 2005
5.317
480
  • Teleglitch: Die More Edition
  • Europa Universalis III Complete
  • Knights of Pen and Paper +1 Edition
  • The Kings Crusade
  • Magicka
  • March of the Eagles
  • Europa Universalis III Complete
  • Europa Universalis IV: Res Publica
  • Victoria: Revolutions
  • Rome Gold
  • Sengoku
  • Ship Simulator Extremes
  • Sword of the Stars
  • Impire
  • Victoria 2
  • Rome: Vae Victis
  • Warlock: Master of the Arcane
  • War of the Roses
  • 500k Club
  • Europa Universalis III: Collection
  • Europa Universalis IV: El Dorado
  • Europa Universalis IV: Pre-order
  • Magicka: Wizard Wars Founder Wizard
  • Pride of Nations
  • Rise of Prussia
  • Shadowrun: Hong Kong
  • East India Company Collection
  • Hearts of Iron Anthology
  • Arsenal of Democracy
  • Hearts of Iron II: Armageddon
  • Crusader Kings II
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: The Old Gods
  • 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
  • Europa Universalis III
  • Europa Universalis III: Chronicles
  • Europa Universalis III Complete
  • 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
  • Hearts of Iron III
What am I doing wrong here?

Code:
trigger = {
	event = 90000
	NOT = {	exists = SER }
	someof = {
		number = 3
		owned = { province = 355 data = -1 } #Syrmia
		owned = { province = 1920 data = -1 }#Serbia
		owned = { province = 1397 data = -1 } #Kosovo
		owned = { province = 1923 data = -1 } #Zeta
		}
	}

	random = NO
	... (the rest of the event)

Best post the event as a whole and not always a small part of it. Sometimes the game even reports errors in events because a bracket is missing one event before that event in the file. So is that event the ONLY change you made to the files that can be the cause of the error? Or did you make several changes at once?

90000 is not already used by another event perhaps in another event file?

The province ID´s actually exist in the mod you use?

Does your event use a line "country = whatever" or is provincespecific? If not the game would not know who -1 should be.

Edit: Perhaps the posts about event editing should be moved to the events&scripts subforum so that they don´t flood the commands&triggers thread?
 
Last edited:

Kelvin

Occam's Chainsaw
7 Badges
Aug 22, 2002
2.007
2
  • Arsenal of Democracy
  • For The Glory
  • Victoria: Revolutions
  • Victoria 2
  • Victoria 2: A House Divided
  • Victoria 2: Heart of Darkness
  • 500k Club
Best post the event as a whole and not always a small part of it. Sometimes the game even reports errors in events because a bracket is missing one event before that event in the file. So is that event the ONLY change you made to the files that can be the cause of the error? Or did you make several changes at once?

Just that one, nothing else was changed.


90000 is not already used by another event perhaps in another event file?

Byzantium Renneissance event, used only there, and as a trigger elswhere, and there were no problems whatsoever with it.


The province ID´s actually exist in the mod you use?

Yup, they exist in MyMap.

Does your event use a line "country = whatever" or is provincespecific? If not the game would not know who -1 should be.

It's a BYZ-specific event, and the only thing that I wanted is to shorten the trigger by using someof instead of a longish OR/AND loop, which, by the way, works just fine.


Edit: Perhaps the posts about event editing should be moved to the events&scripts subforum so that they don´t flood the commands&triggers thread?

Agree.
 

Kelvin

Occam's Chainsaw
7 Badges
Aug 22, 2002
2.007
2
  • Arsenal of Democracy
  • For The Glory
  • Victoria: Revolutions
  • Victoria 2
  • Victoria 2: A House Divided
  • Victoria 2: Heart of Darkness
  • 500k Club
Maybe a stupid question but the trigger was only added in 1.2 so are you sure you are using that patch? If you are then I cannot see anything wrong with what you posted and I can confirm, like ConjurerDragon, that I do not get any error message when using it in my events.

I'm such a dumbass... After reinstalling the game I forgot to patch it to 1.2.
BANGHEAD2.jpg


Sorry guys, I can't believe I missed that... :confused:
 

Pied-Noir

Future Battle Bishop
On Probation
53 Badges
Sep 6, 2011
2.556
4.806
  • For The Glory
  • Prison Architect
  • War of the Roses
  • Victoria 2
  • 500k Club
  • Europa Universalis IV: Pre-order
  • Crusader Kings II: Way of Life
  • Europa Universalis III Complete
  • Crusader Kings II: Horse Lords
  • Europa Universalis III Complete
  • Crusader Kings III: Royal Edition
  • Crusader Kings II: Conclave
  • Stellaris
  • Hearts of Iron IV: Cadet
  • Hearts of Iron IV: Colonel
  • Europa Universalis IV
  • Crusader Kings II: Reapers Due
  • Tyranny: Archon Edition
  • Hearts of Iron IV: Expansion Pass
  • Crusader Kings II: Monks and Mystics
  • Steel Division: Normandy 44
  • Crusader Kings Complete
  • Hearts of Iron IV: Death or Dishonor
  • Hearts of Iron IV: Expansion Pass
  • Hearts of Iron IV: Expansion Pass
  • Crusader Kings III
  • Hearts of Iron IV: Expansion Pass
  • Sengoku
  • Rome: Vae Victis
  • Europa Universalis III Complete
  • 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
  • Victoria 2: Heart of Darkness
  • Divine Wind
  • Europa Universalis IV: Call to arms event
  • For the Motherland
  • Hearts of Iron III
  • Hearts of Iron III: Their Finest Hour
  • March of the Eagles
  • Rome Gold
  • Semper Fi
  • Crusader Kings II
Truly heroic stuff. I'm surprised you never noticed given the features and fixes you'd have been without.