Results 1 to 5 of 5

Thread: Building/Ancillary Issue

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1

    Default Building/Ancillary Issue

    I’ve been having difficulties with the triggers for a few ancillaries I put in the game the other day. Their acquisition is tied to a building tree with a new ancillary for each level of the tree. Each ancillary also excludes the others. Here’s the thing. Each new level that is constructed, the new governor gets the lowest-level ancillary. At times that is the only ancillary he acquires—at others he acquires all the available ancillaries at one time, even though they are mutually exclusive. Here’s my code:

    Code:
     
    ;------------------------------------------
    Trigger sitting_around_town_with_cabildo
        WhenToTest  GovernorBuildingCompleted
        Condition SettlementBuildingFinished >= cabildo
                                        and not Trait Negro >= 1
                                        and not Trait Mestizo >= 1
     
        AcquireAncillary alcalde chance 100
                
                
                
    ;------------------------------------------
    Trigger sitting_around_town_with_cabildo2
        WhenToTest CharacterTurnEnd
        Condition IsGeneral
              and EndedInSettlement
              and CharacterNumTurnsIdle >= 2
                              and not Trait Negro >= 1
                              and not Trait Mestizo >= 1
              and SettlementBuildingExists = cabildo
                              
                AcquireAncillary regidor chance 100
                
    ;------------------------------------------
    Trigger sitting_around_town_with_corregidore
        WhenToTest GovernorBuildingCompleted
                Condition SettlementBuildingFinished >= residence_corregidore
                              and IsGeneral
                  and not Trait Negro >= 1
                              and not Trait Mestizo >= 1
                              
                AcquireAncillary corregidore chance 100
                
    ;------------------------------------------
    Trigger sitting_around_town_with_audiencia
        WhenToTest GovernorBuildingCompleted
                Condition SettlementBuildingFinished >= audiencia_small
                                        and IsGeneral
                                        and not Trait Negro >= 1
                                        and not Trait Mestizo >= 1
                                        
                              
                AcquireAncillary audiencia chance 75
     
    ;------------------------------------------
    Trigger sitting_around_town_with_audiencia2
        WhenToTest GovernorBuildingCompleted
                Condition SettlementBuildingFinished >= audiencia_large
                              and IsGeneral
                              and not Trait Negro >= 1
                              and not Trait Mestizo >= 1
              and not WorldWideAncillaryExists presidente
                             AcquireAncillary presidente chance 50

    Thanks ahead for any help.
    Son of PW

  2. #2

    Default Re: Building/Ancillary Issue

    I'm not 100% sure what the problem is. Is the problem that the Governor is acquiring multiple ancillaries or that he isn't acquiring multiple ancillaries?

    Are all these buildings part of the same tech tree? If so then the way you've set up the ancillaries means that for a high level building it's possible to get all the ancillaries. For example if a Governor builds an audiencia_large this satisfies the conditions for any ancillary requiring an audiencia_small or better. So the Governor could get the audiencia and presidente ancillaries by building an audiencia_large.

    The following code should prevent a Governor getting the presidente ancillary if they lack the audiencia one (I'm unsure if you can require that a Governor possess one ancillary before they can possess another).

    Code:
    Trigger sitting_around_town_with_audiencia2
        WhenToTest GovernorBuildingCompleted
                Condition SettlementBuildingFinished >= audiencia_large
                              and IsGeneral
                              and not Trait Negro >= 1
                              and not Trait Mestizo >= 1
                              and not Trait Mestizo >= 1
                              and not Ancillary audiencia = 1
                             AcquireAncillary audiencia chance 75
    
    Trigger sitting_around_town_with_audiencia3
        WhenToTest GovernorBuildingCompleted
                Condition SettlementBuildingFinished >= audiencia_large
                              and IsGeneral
                              and not Trait Negro >= 1
                              and not Trait Mestizo >= 1
                              and Ancillary audiencia = 1
              and not WorldWideAncillaryExists presidente
                             AcquireAncillary presidente chance 50
    Morning Sun (adds Korea and China to the Shogun 2 map)
    http://www.twcenter.net/forums/forum...28-Morning-Sun

    Expanded Japan mod (97 new regions and 101 new factions)
    http://www.twcenter.net/forums/showt...ew-factions%29

    How to split a region in TWS2
    http://www.twcenter.net/forums/showt...split-a-region

    Eras Total Conquest 2.3 (12 campaigns from 970-1547)

  3. #3

    Default Re: Building/Ancillary Issue

    Quote Originally Posted by uanime5 View Post
    I'm not 100% sure what the problem is. Is the problem that the Governor is acquiring multiple ancillaries or that he isn't acquiring multiple ancillaries?

    Are all these buildings part of the same tech tree? If so then the way you've set up the ancillaries means that for a high level building it's possible to get all the ancillaries. For example if a Governor builds an audiencia_large this satisfies the conditions for any ancillary requiring an audiencia_small or better. So the Governor could get the audiencia and presidente ancillaries by building an audiencia_large.

    The following code should prevent a Governor getting the presidente ancillary if they lack the audiencia one (I'm unsure if you can require that a Governor possess one ancillary before they can possess another).

    Code:
    Trigger sitting_around_town_with_audiencia2
        WhenToTest GovernorBuildingCompleted
                Condition SettlementBuildingFinished >= audiencia_large
                              and IsGeneral
                              and not Trait Negro >= 1
                              and not Trait Mestizo >= 1
                              and not Trait Mestizo >= 1
                              and not Ancillary audiencia = 1
                             AcquireAncillary audiencia chance 75
     
    Trigger sitting_around_town_with_audiencia3
        WhenToTest GovernorBuildingCompleted
                Condition SettlementBuildingFinished >= audiencia_large
                              and IsGeneral
                              and not Trait Negro >= 1
                              and not Trait Mestizo >= 1
                              and Ancillary audiencia = 1
              and not WorldWideAncillaryExists presidente
                             AcquireAncillary presidente chance 50
    It's that he is not acquiring the proper ancillaries and acquiring more than one when they are all set up to mutually exclude the others. In other words, he should get the building-appropriate ancillary--and no others.
    Son of PW

  4. #4
    makanyane's Avatar Praeses
    Content Emeritus

    Join Date
    Feb 2006
    Posts
    9,093
    Blog Entries
    1

    Default Re: Building/Ancillary Issue

    are they all in same tree?

    if so and say
    audiencia_large
    is the top level - then if he's in settlement when that's built he'll also fulfill conditions for

    >= audiencia_small
    >= residence_corregidore
    etc... because you're using greater than as well as equals
    (if its in same tree audiencia_large is greater than audiencia_small)

    what are you doing at the ancillary text level? In RTW you used to be able to set 3 anc's that were definitely mutually exclusive, not sure if that works same way in M2 or not...

  5. #5

    Default Re: Building/Ancillary Issue

    Quote Originally Posted by makanyane View Post
    are they all in same tree?

    if so and say
    audiencia_large
    is the top level - then if he's in settlement when that's built he'll also fulfill conditions for

    >= audiencia_small
    >= residence_corregidore
    etc... because you're using greater than as well as equals
    (if its in same tree audiencia_large is greater than audiencia_small)

    what are you doing at the ancillary text level? In RTW you used to be able to set 3 anc's that were definitely mutually exclusive, not sure if that works same way in M2 or not...
    Ah-hah! So I should just use the = sign? At the ancillary text level I have(for alcalde)
    Code:
    ExcludedAncillaries regidor corregidore audiencia presidente
    Son of PW

Posting Permissions

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