Nein

Lt. General
2 Badges
Feb 19, 2013
1.255
766
  • Darkest Hour
  • For The Glory
I made this event to get claims in an specific province once it is adquired, adding "persistent = yes" so that it works any time a different country gets the province:
Code:
#Core in Tangiers
event = { 
	id = 99999999
	trigger = {
		NOT = {
			OR = {
				core_national = { province = 732 data = -1 }
			 	core_claim = { province = 732 data = -1 }
				}
		}
		 ownerchange = { province = 732 days = 1 }
	}
	province = 732 #Tangiers
	name = "Core in Tangiers"
	desc = "Core in Tangiers"
	persistent = yes

	date = { day = 1 month = january year = 1418 }
	offset = 30
	deathdate = { year = 1820 }
	
	action_a = {
		name = "Get core"
		command = { type = addcore_claim which = 732 }
	}
}

The problem is that once it runs I get multiple times (like 20 or so), I assume this is because of the new qualifier.
Since this event simply gives me a claim this problem it is only an annoyance, but in a different situation it could be a serious trouble, so I need to know how to fix this, any ideas?
 

Garbon

Sultan d'Afrique
73 Badges
Feb 1, 2002
9.750
189
www.crystalempiregames.com
  • For The Glory
  • Crusader Kings III
  • Europa Universalis IV
  • Imperator: Rome
  • Cities: Skylines Industries
  • Crusader Kings II
  • Crusader Kings II: Holy Knight (pre-order)
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: Monks and Mystics
  • Crusader Kings II: Charlemagne
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: The Republic
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Conclave
  • Crusader Kings II: Reapers Due
  • Crusader Kings II: Jade Dragon
  • Crusader Kings II: Horse Lords
  • Crusader Kings II: Sword of Islam
  • Crusader Kings II: Holy Fury
  • Crusader Kings II: Way of Life
  • Deus Vult
  • Victoria 2
  • Victoria 2: A House Divided
  • Victoria 2: Heart of Darkness
  • Stellaris
  • Stellaris: Galaxy Edition
  • Stellaris: Galaxy Edition
  • Europa Universalis IV: Pre-order
  • Europa Universalis IV: Call to arms event
  • Europa Universalis IV: Common Sense
  • Europa Universalis IV: Rights of Man
  • Europa Universalis IV: Mare Nostrum
  • Europa Universalis IV: Cossacks
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Third Rome
  • Europa Universalis IV: Mandate of Heaven
  • Europa Universalis IV: Rule Britannia
  • Europa Universalis IV: Cradle of Civilization
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Golden Century
  • Europa Universalis IV: Dharma
  • Europa Universalis IV: Art of War
  • Europa Universalis IV: El Dorado
  • Europa Universalis IV: Res Publica
  • Europa Universalis III
  • Europa Universalis III Complete
  • Europa Universalis III: Chronicles
  • Divine Wind
  • Hearts of Iron IV Sign-up
I'm not sure if it'd be what is causing the problem, but have you tried with that OR bit in the trigger removed? NOT in FtG is really more like "NOR" in that none of the conditions listed in side can be true if you want the event to fire.
 

Nein

Lt. General
2 Badges
Feb 19, 2013
1.255
766
  • Darkest Hour
  • For The Glory
Is this how the event should look like?
Code:
#Core in Tangiers
event = { 
	id = 99999999
	trigger = {
		NOT = {
			core_national = { province = 732 data = -1 }
			core_claim = { province = 732 data = -1 }
		}
		 ownerchange = { province = 732 days = 1 }
	}
	province = 732 #Tangiers
	name = "Core in Tangiers"
	desc = "Core in Tangiers"
	persistent = yes

	date = { day = 1 month = january year = 1418 }
	offset = 30
	deathdate = { year = 1820 }
	
	action_a = {
		name = "Get core"
		command = { type = addcore_claim which = 732 }
	}
}

Same thing happened.
 

ConjurerDragon

Generalissimus
63 Badges
Apr 19, 2005
5.320
481
  • 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
Is this how the event should look like?
...
Same thing happened.

I have no idea what could be the cause of your problem.
However what I would change in the event would be
- to use the controlchange trigger instead of the ownerchange trigger. If a country conquers Tangier but in a war someone else or rebels control it the event would make no sense for me;
- to use a larger period of time than 1 day even if it´s only for testing;
- to use additional restrictions. Does it really make sense that everyone could get that claim? Perhaps restrict it to nations with their capital in Europe or Afrcia?
- have you tried a smaller event number? What is the first free event ID for provincespecific events? 338499?
- are you using the event in the vanilla game or with AGCEEP mod?
- the event does give you the claimcore? So the problem is only that the event fires multiple times?
 

Nein

Lt. General
2 Badges
Feb 19, 2013
1.255
766
  • Darkest Hour
  • For The Glory
Finally solved the problem, the cause was the ownerchange time. Thanks!

Though not really a concern, I added the following trigger:
ownerchange = { province = 732 years = 1 }
Yet the event runs just a few months after I get the province.
 

ConjurerDragon

Generalissimus
63 Badges
Apr 19, 2005
5.320
481
  • 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
Finally solved the problem, the cause was the ownerchange time. Thanks!

Though not really a concern, I added the following trigger:
ownerchange = { province = 732 years = 1 }
Yet the event runs just a few months after I get the province.

What exactly was the cause? That you used "day = 1" and 1 was not enough? Does the "day" counter doesn´t work at all and that´s why you now use years?
 

Nein

Lt. General
2 Badges
Feb 19, 2013
1.255
766
  • Darkest Hour
  • For The Glory
It certainly does work, otherwise the event would never have run at all. And I changed the ownerchange time because you told me to.
Now I changed the trigger to days = 100 and it works perfectly (and also runs close to the correct date).
 

Andrei Gijgorev

Civilian
3 Badges
May 23, 2007
686
64
  • Arsenal of Democracy
  • Darkest Hour
  • For The Glory
Doesn't the "years = x" trigger only check for the year part of the date? So if you conquer Tangiers in Dec 1500, the event could trigger in Jan 1501.

Also, NOT = { OR = { x y } } is identical with NOT = { x y }.