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

Drew1776

Corporal
51 Badges
May 22, 2009
27
0
  • Crusader Kings II
  • Victoria 2: A House Divided
  • Heir to the Throne
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV
  • Divine Wind
  • Europa Universalis III Complete
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Legacy of Rome
  • Stellaris - Path to Destruction bundle
  • Cities: Skylines - Mass Transit
  • Europa Universalis 4: Emperor
  • Europa Universalis IV: Mandate of Heaven
  • Hearts of Iron IV: Death or Dishonor
  • Age of Wonders III
  • Cities: Skylines - Green Cities
  • Stellaris: Leviathans Story Pack
  • Europa Universalis IV: Cradle of Civilization
  • Hearts of Iron IV: Expansion Pass
  • Europa Universalis IV: Rule Britannia
  • Cities: Skylines - Parklife
  • Stellaris: Distant Stars
  • Europa Universalis IV: Dharma
  • Imperator: Rome
  • Prison Architect
  • Stellaris: Ancient Relics
  • Stellaris: Federations
  • Imperator: Rome - Magna Graecia
  • Crusader Kings III
  • Europa Universalis IV: Rights of Man
  • Europa Universalis III Complete
  • Europa Universalis III Complete
  • Europa Universalis IV: Res Publica
  • Victoria 2
  • 500k Club
  • Cities: Skylines
  • Europa Universalis IV: El Dorado
  • Crusader Kings II: Way of Life
  • Pillars of Eternity
  • Europa Universalis IV: Common Sense
  • Europa Universalis IV: Cossacks
  • Europa Universalis IV: Mare Nostrum
  • Stellaris
  • Hearts of Iron IV: Cadet
  • Stellaris: Digital Anniversary Edition
  • Europa Universalis IV: Pre-order
  • Europa Universalis IV: Third Rome
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Art of War
  • Darkest Hour
First off, I hope this is in the right place!

I really would like owned and controlled provinces to be able to become core provinces over time. While that's not the best option, a stand in could be owned and controlled provinces randomly becoming core. I wrote the following event (it is not random and forced to a certain date for testing)

event = {
id = 100000
trigger = {
owned = { province = 001 data = -1 }
control = { province = 001 data = -1 }
}
random = no

name = "EVENTNAME100000"
desc = "EVENTHIST100000"
style = 0
date = { day = 1 month = january year = 1420 }
action_a = {
name = "OK"
command = { type = addcore which = 001 }
}
}

This event was then duplicated for each individual province. The event works fine but I have a little problem. If I play as FRA all provinces owned and controlled by anyone become core to FRA. The intent of course is only to have provinces owned and controlled by FRA to become core. Any suggestions? Perhaps what I want isn't possible. I realize I could add country = FRA but I would like this to fire for any country I decide to play and not have to expand the event list for every country.

Any help would be greatly appreciated!
 
The problem you are describing is a known bug/feature of EU2. An event that does not specify a country or a province fires for the human player once the trigger is true for any country.

This is how I would write your event:

Code:
event = {
    id = 100000
    trigger = {
        control = { province = 001 data = -1 }
        NOT = { core = 001 data = -1 }
    }
    random = no
    province = 001

    name = "EVENTNAME100000"
    desc = "EVENTHIST100000"

    date = { day = 1 month = january year = 1419 }
    offset = 10800
    deathdate = { year = 1820 }

    action_a = {
        name = "OK"
        command = { type = addcore which = 001 }
    }
}


For your information you should also know that For the Glory's enhanced scripting engine allows one to check for how long a province has been onwed or controlled.