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

    canalAttachment - Resolved -

    Scheduled Pinned Locked Moved XML Options Browser
    10 Posts 4 Posters 2.7k Views 4 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.
    • MahksM Offline
      Mahks
      last edited by Mahks

      POS2 says "...attached to the connected sea (or land) zones."

      Does this mean you can have a "canal" that connects 2 territories? (non standard map?)

      It also says "...need identical attachments attached to the 2 sea zones involved"
      seeming to indicate they must be sea zones.

      Also :
      excludedUnits: An optional list of all the units that will NOT be validated by the canal.

      Does validated mean cannot use the canal?

      prastleP 1 Reply Last reply Reply Quote 0
      • prastleP Offline
        prastle Lobby Moderators Admin @Mahks
        last edited by

        @mahks A canal could link two sz through a land mass and can have 1 territory to own it or 2 or three or more depending upon how many you wish.

        If we open a quarrel between past and present, we shall find that we have lost the future! Sir Winston Churchill

        1 Reply Last reply Reply Quote 0
        • MahksM Offline
          Mahks
          last edited by

          It seems to say that the attachTo territory may be a territory (not a sz)

          I do understand there must be a territory defined in each attachment (landTerritories value).

          prastleP 1 Reply Last reply Reply Quote 0
          • prastleP Offline
            prastle Lobby Moderators Admin @Mahks
            last edited by prastle

            @mahks the ter defined defines what ter or territories are required to own the canal and use it.

            Example Suez cannot be used if either Egy or Trans Jordan are not both owned by the same country trying to use the canal. On the other hand Panama connects two sz and only needs Panama ownership.

            If we open a quarrel between past and present, we shall find that we have lost the future! Sir Winston Churchill

            1 Reply Last reply Reply Quote 0
            • MahksM Offline
              Mahks
              last edited by Mahks

              That is not what I am asking. I mean the attachTo unit.

              Can that be a territory?

              ie;

              <attachment name='canalAttachmentSuez' attachTo='Land Terr Name' javaClass='CanalAttachment' type='territory'>
              ...
              </attachment>

              as ".Each canal must consist of 2 attachments attached to the connected sea (or land) zones." seems to say

              prastleP General_ZodG 2 Replies Last reply Reply Quote 0
              • prastleP Offline
                prastle Lobby Moderators Admin @Mahks
                last edited by prastle

                @mahks ah yes I believe so since it's been a long time since xml work. So you could create a land canal or "tunnel" from a to b territory as well. Or as @Frostion called them in Dragon War ---> "Magic Gates" 🙂

                If we open a quarrel between past and present, we shall find that we have lost the future! Sir Winston Churchill

                1 Reply Last reply Reply Quote 1
                • MahksM Offline
                  Mahks
                  last edited by Mahks

                  OK, Thanks!

                  What about:

                  excludedUnits: An optional list of all the units that will NOT be validated by the canal.

                  Does validated mean cannot use the canal?

                  prastleP redrumR 2 Replies Last reply Reply Quote 0
                  • prastleP Offline
                    prastle Lobby Moderators Admin @Mahks
                    last edited by

                    @mahks ya as an example you could exclude all units from the "gates" except "heroes" or what ever ya wish is my guess.

                    If we open a quarrel between past and present, we shall find that we have lost the future! Sir Winston Churchill

                    1 Reply Last reply Reply Quote 0
                    • redrumR Offline
                      redrum Admin @Mahks
                      last edited by redrum

                      @mahks For excludedUnits, here is what POS2 XML has:

                      excludedUnits		values: an optional list of all the units that will NOT be validated by the canal. If left blank, then all Air units will not be validated. Can also be set to "NONE" or "ALL".
                      example: <option name="excludedUnits" value="submarine:fighter:bomber:air_transport"/>
                      

                      So excluded units essentially ignore the canal "validation" and can always move between the indicated territories. The simplest example is your standard canals like Panama or Suez, don't "validate" air units so fighters/bombers can always move between the sea zones even if the canal isn't controlled by your alliance. Any units that aren't excluded can only pass between the 2 territories if their alliance has controlled the necessary territories since the begin of the player's turn.

                      TripleA Developer with a Passion for AI: https://forums.triplea-game.org/topic/105/ai-development-discussion-and-feedback

                      1 Reply Last reply Reply Quote 1
                      • General_ZodG Offline
                        General_Zod Lobby Moderators @Mahks
                        last edited by General_Zod

                        @mahks

                        attachTo typically requires the seazone name. But it will accept a land territory as well for nonstandard use.

                        The land portals @prastle refers to are not done via canals but via hard connections.

                        1 Reply Last reply Reply Quote 0

                        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