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

MattyG

Attention is love.
15 Badges
Mar 23, 2003
3.690
1
  • Crusader Kings II: The Old Gods
  • Deus Vult
  • Diplomacy
  • Europa Universalis III
  • Europa Universalis IV
  • Europa Universalis IV: Art of War
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis III Complete
  • 500k Club
  • Europa Universalis III: Collection
  • Europa Universalis IV: Common Sense
  • Europa Universalis IV: Rights of Man
  • Europa Universalis IV: Rule Britannia
  • Crusader Kings III
  • Europa Universalis 4: Emperor
Here is the guts of the event:
Code:
event = {
	id = 881803
	trigger = {
		flag = crusade_minor
		NOT = { owned = { province = 431 data = CRD }} #Galicia
		NOT = { owned = { province = 432 data = CRD }} #Asturias
		NOT = { owned = { province = 433 data = CRD }} #Cantabria
		NOT = { owned = { province = 435 data = CRD }} #Leon
		NOT = { owned = { province = 428 data = CRD }} #Navarra
		NOT = { owned = { province = 427 data = CRD }} #Gerona
		NOT = { owned = { province = 431 data = MOR }} #Galicia
		NOT = { owned = { province = 432 data = MOR }} #Asturias
		NOT = { owned = { province = 433 data = MOR }} #Cantabria
		NOT = { owned = { province = 435 data = MOR }} #Leon
		NOT = { owned = { province = 428 data = MOR }} #Navarra
		NOT = { owned = { province = 427 data = MOR }} #Gerona
		NOT = { war = { country = BAY country = CRD }}
	}
	random = no
	country = BAY
	name = "Iberia for Christendom!"
	desc = "Doesn't matter"
	date = { day = 1 month = january year = 1447 }
	offset = 30	
	date = { day = 1 month = december year = 1488 }


Bow, I am playing Bavaria.

It is 1452.

I own Cantabria (431), Asturias (432) , Leon (435), Galicia (433) and Aragon (not that it matters).

Navarra owns Navarra (428) and Languedoc owns Gerona (427).

I am not at war.

The save game file indicates that event 881803 has not fired and has not been slept. A check of the Events folder indicates that no event can sleep event 881803.

The save game file records Bavaria as having the flag crusade_minor = yes


But the event doesn't happen. It ought to happen pretty quickly with an offset of 30. But nothing happens in years of waiting.

Any ideas?
 
cool-toxic said:
Try with one single NOT = { } instead of all those all the time. Maybe that will help. When just looking at it that seems like the only thing that might cause it not to fire.

Did you try to trigger it via the console ? Does it work?


I should have mentioned that. Yes, it does force-trigger via F12.

I'll try the single NOT.


EDIT: It didn't work, even when I cut and pasted the event into a separate event file.

This is really weird.
 
Last edited:
cool-toxic said:
Wait I know it.

date = { day = 1 month = december year = 1488 }

should be:

deathdate = { day = 1 month = december year = 1488 }


I love you.

Something so simple. And it has been there for every iteration of these events which have never worked, no matter how much we have simplified and tinkered with the triggers. Looking in the wrong place.

It's a shame that katica can't pick that one up.
 
MattyG said:
It's a shame that katica can't pick that one up.
Try event file parser by Coder. It will catch such error.

In syntax.xml, don't forget to replace:
Code:
			<relation>
				<country value="\w{3}" />
				<[COLOR=Yellow]data[/COLOR] value="-?\d{1,3}" />
			</relation>
And in file selector pop-up, you can select all the files of your mod and check for missing ids. Very useful. :)
 
Code:
date = { day = 1 month = january year = 1447 }
and this startdate i suppose,or does it works also as date?
 
nightmorphis said:
Code:
date = { day = 1 month = january year = 1447 }
and this startdate i suppose,or does it works also as date?

Where did you find startdate ?

I only think it's in the globaldata.

Code:
globaldata = { 
    startdate = { year = 1337 month = january day = 0 }
    enddate = { year = 1913 month = december day = 29 }
 
oh, you're right, i was getting confused, sorry :eek:o