TripleA Logo TripleA Forum
    • TripleA Website
    • Categories
    • Recent
    • Popular
    • Users
    • Groups
    • Tags
    • Register
    • Login

    whenCapturedByGoesTo ???

    Scheduled Pinned Locked Moved Player Help
    4 Posts 3 Posters 1.1k Views 3 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • D Offline
      djggml
      last edited by

      Hi, i am trying to modify Pact_of_Steel to allow the Russians to retain UK territory it Liberates and Not return it to the UK, ie Bolshevization. And like wise for the Americans to retain UK territory it liberates, freeing the colonies.

      <attachment name="territoryAttachment" attachTo="India" javaClass="games.strategy.triplea.attachments.TerritoryAttachment" type="territory">
      <option name="production" value="4"/>
      <option name="victoryCity" value="3"/>
      <option name="whenCapturedByGoesTo" value="Americans:Americans"/>
      <option name="whenCapturedByGoesTo" value="Russians:Russians"/>
      <option name="whenCapturedByGoesTo" value="Chinese:Chinese"/>
      </attachment>
      It does not work - any suggestions - Thanks

      TheDogT 1 Reply Last reply Reply Quote 2
      • TheDogT Offline
        TheDog @djggml
        last edited by

        @djggml
        Welcome to the forums!

        I think you need to do this, find this;
        <option name="givesBackOriginalTerritories" value="true"/>
        change it to false
        <option name="givesBackOriginalTerritories" value="false"/>

        It is found in the Allied block of code
        <attachment name="relationshipTypeAttachment" attachTo="Allied" javaClass="games.strategy.triplea.attachments.RelationshipTypeAttachment" type="relationship">
        <option name="archeType" value="allied"/>
        <option name="givesBackOriginalTerritories" value="true"/>
        </attachment>

        This will effect all Allied relationship not just the ones your interested in.
        So try this
        replace your
        <option name="whenCapturedByGoesTo" value="Americans:Americans"/>

        with
        <option name="whenCapturedByGoesTo" value="Americans:Britain"/>

        This will break all the "givesBackOriginalTerritories" and you will have to manually declare for each teritory what you want.

        There might be a better way, but that is for someone else.

        https://forums.triplea-game.org/tags/thedog
        https://forums.triplea-game.org/topic/3741/curated-best-top-maps-triplea-guides

        1 Reply Last reply Reply Quote 2
        • D Offline
          djggml
          last edited by

          Hey, thanks for getting back to me so quickly. I tried your patch, but it didn't seem to work. If anyone else has any ideas I would be grateful. Thanks

          wc_sumptonW 1 Reply Last reply Reply Quote 1
          • wc_sumptonW Offline
            wc_sumpton @djggml
            last edited by

            @djggml

            If you are using Pack of Steel xml and not PoS2, then you will need to add relationships to override alliances.

            Cheers...

            1 Reply Last reply Reply Quote 2

            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

            With your input, this post could be even better 💗

            Register Login
            • 1 / 1
            • First post
              Last post
            Copyright © 2016-2018 TripleA-Devs | Powered by NodeBB Forums