• 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
38 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
  • Cities: Skylines - Parklife Pre-Order
  • Europa Universalis IV: Rule Britannia
  • Cities: Skylines - Parklife
  • Cities: Skylines - Green Cities
  • Age of Wonders III
  • Cities: Skylines - Mass Transit
  • Europa Universalis IV: Dharma
  • Stellaris - Path to Destruction bundle
  • Stellaris: Leviathans Story Pack
  • Stellaris: Digital Anniversary Edition
  • Europa Universalis IV: Rights of Man
  • Stellaris
  • Europa Universalis IV: Mare Nostrum
  • Europa Universalis IV: Cossacks
  • Europa Universalis IV: Common Sense
  • Pillars of Eternity
  • Crusader Kings II: Way of Life
  • Europa Universalis IV: El Dorado
  • Cities: Skylines
  • 500k Club
  • Victoria 2
  • Europa Universalis III Complete
  • Europa Universalis III Complete
  • Europa Universalis IV: Pre-order
  • Europa Universalis IV: Third Rome
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Art of War
  • Darkest Hour
  • Crusader Kings II: The Republic
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.