+ Reply to Thread
Results 1 to 6 of 6

Thread: Sole owner of all provinces in a region?

  1. #1

    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?

  2. #2
    Publicly Certified 17blue17's Avatar
    EU3 Collectors Edition OwnerNapoleonic MarshalEuropa Universalis III: In NomineHeir to the ThroneDivine Wind

    Join Date
    Nov 2003
    Location
    Minnesota
    Posts
    3,464
    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
    Deus Vult!Victoria: RevolutionsEU3 CompleteHearts of Iron IIIHeir to the Throne
    Semper FiVictoria 2Divine WindSword of the StarsDarkest Hour
    Crusader Kings IIFor the MotherlandVictoria II: A House DividedCrusader Kings II Holy Knight

    Join Date
    Dec 2009
    Location
    New Jersey, USA
    Posts
    2,273
    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: ArmageddonEU3 CompleteHearts of Iron IIIHeir to the ThroneSemper Fi
    Victoria 2Divine WindCrusader Kings IIFor the MotherlandSengoku
    Victoria II: A House DividedHOI3: Their Finest HourMarch of the EaglesVictoria 2: Heart of Darkness

    Join Date
    Aug 2010
    Location
    Houston
    Posts
    549
    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
    EU3 CompleteHeir to the ThroneVictoria 2Divine Wind

    Join Date
    Apr 2007
    Location
    St. Louis, USA
    Posts
    3,668
    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
    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!

+ 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