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

G-Klav

Lt. General
28 Badges
Jun 1, 2003
1.320
1
Visit site
  • Europa Universalis IV: Res Publica
  • Age of Wonders III
  • Europa Universalis IV: Mandate of Heaven
  • Europa Universalis IV: Rights of Man
  • Europa Universalis IV: Mare Nostrum
  • Europa Universalis IV: Cossacks
  • Europa Universalis IV: Common Sense
  • Europa Universalis IV: Pre-order
  • Europa Universalis IV: El Dorado
  • Europa Universalis III: Collection
  • 500k Club
  • Victoria 2: A House Divided
  • Victoria 2
  • Victoria: Revolutions
  • Hearts of Iron II: Armageddon
  • Europa Universalis III Complete
  • Magicka
  • Europa Universalis III Complete
  • Heir to the Throne
  • Europa Universalis IV: Call to arms event
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Art of War
  • Europa Universalis IV
  • Divine Wind
  • Europa Universalis III
  • Diplomacy
  • Crusader Kings II
  • Cities in Motion 2
I think I've found a bug.

All events triggered by a province owner event will happen to the first province owner.

It's difficult to explain, but take this modified Schleswig event:

Code:
event = {
	id = 4617
	random = no
	province = 342                   #Instead of 'Country = PRU'

	trigger = {
		event = 6600 # SWE
		OR = {  
			NOT = { peace_treaty = { country = PRU country = DAN } }
			NOT = { peace_treaty = { country = GER country = DAN } }
			}
		exists = DAN
	}

	name = "EVT_1513_NAME"
	desc = "EVT_1513_DESC"
	style = 0

	date = { day = 3 month = january year = 1847 }
	offset = 31
	deathdate = { day = 30 month = december year = 1860 }

	action_a = {
		name = "ACTIONNAME1513A" # Go to War over Slesvig
		ai_chance = 55
		command = { type = prestige value = 10 }
		command = { type = trigger which = 6203 } # DAN; this will be triggered for Prussia (or, rather the owner of the province 342)
		command = { type = war which = DAN }
	}
	action_b = {
		name = "ACTIONNAME1101B" # Back down
		ai_chance = 45
		command = { type = prestige value = -50 }
		command = { type = trigger which = 6204 } # DAN; so will this
	}
}

If you copy and paste, I'm sure you will get the same result as I, ie that event 6203 or 6204 will be triggered for Prussia (province owner of #342).
 
Upvote 0
Um...

Province events always happen to the province owner. Surely this is works as designed? What's the problem?
 
Gjerg Kastrioti said:
Um...

Province events always happen to the province owner. Surely this is works as designed? What's the problem?

The problem is that the events that are triggered by the province owner event happens to the nation that got the first event, even though they are supposed to trigger for another nation.

Got it? :)
 
G-Klav said:
The problem is that the events that are triggered by the province owner event happens to the nation that got the first event, even though they are supposed to trigger for another nation.

Got it? :)

No- What are the triggers for the other events? Are you sure the problem is with the province trigger and not with the other events?
 
Gjerg Kastrioti said:
No- What are the triggers for the other events? Are you sure the problem is with the province trigger and not with the other events?

I'm 100% sure it is the province trigger that causes this, because when I changed
Code:
province = 342
to
Code:
country = PRU
it worked perfectly, according to the game log. I even tried the events as Denmark, and as Prussia. They worked :)

And the thing is that the other events doesn't have any triggers, they are to be triggered by the first event...
Don't misunderstand me now, it's supposed to be that way. It isn't the triggered events that causes the error.

Any clearer...? :)