+ Reply to Thread
Results 1 to 6 of 6

Thread: Sole owner of all provinces in a region?

  1. #1
    Field Marshal AKronblad's Avatar
    Crusader Kings IIDeus VultDivine WindHeir to the ThroneEuropa Universalis III: In Nomine
    EU3 Napoleon's AmbitionSengokuVictoria 2Rome: Vae VictisRise of Prussia
    Europa Universalis IV: Pre-order

    Join Date
    Jun 2008
    Posts
    3,616
    Blog Entries
    2

    Sole owner of all provinces in a region?

    How would you script a condition in an Event Trigger that a country needs to own all provinces in a region?

    I have tried:

    Code:
    trigger = {        
        NOT = { any_country = { not = { tag = THIS } owns = { region = aquitaine } } }
    }
    Code:
    trigger = {        
        NOT = { any_province = { region = aquitaine not = { owned_by = THIS }  } }
    }
    But neither seems to work....

    EDIT: This one actually seems to work though!

    Code:
    trigger = {  
    not = { aquitaine = { not = { owned_by = THIS } } }
    }

    Makes sense?
    Last edited by AKronblad; 04-05-2012 at 23:32.
    check out my 399AD mod (now for DW5.2!)
    WiP: AURORA UNIVERSALIS, a mod for EU4: "Come the first millennium BC, chaos erupted and old order was in shatters as new tribes and peoples entered the scene in their search for glory, land, and riches. Ancient empires were brought to their knees..."

  2. #2
    Publicly Certified 17blue17's Avatar
    Crusader Kings IIDivine WindHeir to the ThroneEuropa Universalis III: In NomineEU3 Napoleon's Ambition
    Victoria: RevolutionsVictoria 2Victoria II: A House DividedVictoria II: Heart of DarknessEU3 Collectors Edition
    500k clubEuropa Universalis IV: Pre-order

    Join Date
    Nov 2003
    Location
    Minnesota
    Posts
    3,833
    Quote Originally Posted by AKronblad View Post
    How would you script a condition in an Event Trigger that a country needs to own all provinces in a region?



    EDIT: This one actually seems to work though!

    Code:
    trigger = {  
    not = { aquitaine = { not = { owned_by = THIS } } }
    }

    Makes sense?
    yes that is correct.

  3. #3
    Modding Victoria 2 ZomgK3tchup's Avatar
    Crusader Kings IIDarkest HourDeus VultEU3 CompleteDivine Wind
    For the MotherlandHearts of Iron IIIHeir to the ThroneVictoria: RevolutionsSemper Fi
    Sword of the StarsVictoria 2Victoria II: A House DividedCK2: Holy Knight500k club
    Europa Universalis IV: Pre-order

    Join Date
    Dec 2009
    Location
    New Jersey, USA
    Posts
    2,344
    Blog Entries
    1
    The last one makes sense but uses a double negative. Just use:

    trigger = { aquitaine = { owned_by = THIS } }

  4. #4
    Major impspy's Avatar
    Hearts of Iron 2: ArmageddonCrusader Kings IIEU3 CompleteDivine WindFor the Motherland
    Hearts of Iron IIIHOI3: Their Finest HourHeir to the ThroneMarch of the EaglesSemper Fi
    SengokuVictoria 2Victoria II: A House DividedVictoria II: Heart of Darkness500k club
    Europa Universalis IV: Pre-order

    Join Date
    Aug 2010
    Location
    Houston
    Posts
    566
    Quote Originally Posted by ZomgK3tchup View Post
    The last one makes sense but uses a double negative. Just use:

    trigger = { aquitaine = { owned_by = THIS } }
    I think that the double negative is neccesary, for some reason.
    The Historical Plausibility Project

    "Oh Lord Shiva, protect us from the fang of the cobra, the claw of the tiger, and the vengeance of the Afghan" -old Hindu prayer

  5. #5
    Field Marshal Dafool's Avatar
    Crusader Kings IIEU3 CompleteDivine WindHeir to the ThroneVictoria 2
    500k clubEuropa Universalis IV: Pre-order

    Join Date
    Apr 2007
    Location
    St. Louis, USA
    Posts
    3,984
    Quote Originally Posted by impspy View Post
    I think that the double negative is neccesary, for some reason.
    Correct. The double negative checks that there is no province in that region which is not owned by you. One without negatives will simply check that you own a province in that region iirc.

  6. #6
    Field Marshal AKronblad's Avatar
    Crusader Kings IIDeus VultDivine WindHeir to the ThroneEuropa Universalis III: In Nomine
    EU3 Napoleon's AmbitionSengokuVictoria 2Rome: Vae VictisRise of Prussia
    Europa Universalis IV: Pre-order

    Join Date
    Jun 2008
    Posts
    3,616
    Blog Entries
    2
    Quote Originally Posted by Dafool View Post
    Correct. The double negative checks that there is no province in that region which is not owned by you. One without negatives will simply check that you own a province in that region iirc.
    Yep, that is the way it is. And the latest script worked!
    check out my 399AD mod (now for DW5.2!)
    WiP: AURORA UNIVERSALIS, a mod for EU4: "Come the first millennium BC, chaos erupted and old order was in shatters as new tribes and peoples entered the scene in their search for glory, land, and riches. Ancient empires were brought to their knees..."

+ Reply to Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts