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

    Limit placement of naval units to certain sea zones

    Scheduled Pinned Locked Moved Map Making
    8 Posts 4 Posters 906 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.
    • VictoryFirstV Offline
      VictoryFirst
      last edited by

      In the game I am working on, AnA North Africa, the players have certain sea zones where they can place naval units without the need of a factory, however placement is only limited to these sea zones. How do I achieve this in TripleA? Right now, I have the following

      <attachment name="rulesAttachment" attachTo="Germans" javaClass="RulesAttachment" type="player">
      	<option name="players" value="Germans:British:Italians:Americans"/>
      	<option name="placementAnySeaZone" value="true"/>
      	<option name="placementAnyTerritory" value="true"/>
      </attachment>
      

      As well as:

      <property name="Placement Restricted By Factory" value="false" editable="false">
        <boolean/>
      </property>
      <property name="Place in Any Territory" value="true" editable="false">
        <boolean/>
      </property>
      

      However, currently I can only place naval units when there is already a naval unit of my own in that sea zone. I cannot place in sea zones that are empty.

      If I could place naval units anywhere, that'd be already a great start. Players could then make sure they place only in the sea zones where they're allowed to. It would be even better if the player could only place in these designated sea zones.

      Any ideas on how to do this?

      B wc_sumptonW 2 Replies Last reply Reply Quote 2
      • B Offline
        beelee @VictoryFirst
        last edited by beelee

        @victoryfirst

        Hmm ... 🤔

        @wc_sumpton @RogerCooper @TheDog any ideas on this one ?

        Edit
        Maybe you can do something with "isConstruction" ?

        Screenshot from 2025-11-02 15-05-52.png

        Idk if that'd dick it up for all TTys though

        TheDogT 1 Reply Last reply Reply Quote 1
        • TheDogT Online
          TheDog @beelee
          last edited by

          @VictoryFirst
          You probably need some invisible factories on the coast of where you need to place shipping.
          With code that only allows ships to placed.

          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 3
          • wc_sumptonW Offline
            wc_sumpton @VictoryFirst
            last edited by wc_sumpton

            @victoryfirst

            For 'placementAnyTerritory' and 'placementAnySeaZone' the territory/sea zone needs to be owed by the player placing those units. Territories are owned by the player that last pass through. Sea Zones are considered Neutral owned, unless units are present. This is why navel units can only be placed in a zone currently occupied by another unit.
            Basically @TheDog has your answer. Use invisible factories and limit placement with 'unitPlacementOnlyAllowedIn' to limit the sea zones. If needed, 'unitPlacementOnlyAllowedIn' values can be changed with triggers.

            Cheers...

            1 Reply Last reply Reply Quote 3
            • B Offline
              beelee
              last edited by beelee

              yea Idk how you can change ownership though. If the Brits have the TTy then the yanks can't use it. Maybe a seperate box for each player and you can place the dudes there. The Box is connected to the SZ.

              It'd still burn a movement point. You could at least edit then. You'd have to edit anyway but it might be easier being able to at least place the units then edit move as needed.

              Or maybe the Box could have a invisible permanent +1 move unit to all units.

              Edit
              The Box is connected to all SZs, so it'd only be one move to go to any of them

              Edit 2
              Hmm if the SZ can be bordered by multiple TTys then you could have multiple Fctrys of different Players using it. Surrounded by water though. Idk. you'd have to make mini TTys that border it.

              Be pretty sloppy. Better to just use edit in that case. Might be able to get some of the TTys though

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

                @beelee

                In the 'North Africa' game, the map has silhouettes where navel units can be placed. The Americans can only deploy the Destroyer in Sea Zone 2. A hidden factory can be placed in their Casablanca Convoy. A hidden factory in Gibraltar for Sea Zone 3 and the Atlantic Ocean Convoy for the British. A hidden factory in Italy for the Italians for Sea Zone 10. For the German Submarine a hidden territory with a factory in Sea Zone 1.
                By resetting 'unitPlacementOnlyAllowedIn' prior to each player's placement phase, navel units can be restricted to those sea zones.

                Cheers...

                P.S. Using hidden factories on hidden land/island territories can also help in the placement of Sea Mines. Prior to placement those territories would change ownership.

                Again.

                Cheers...

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

                  Apon further investigation 'unitPlacementOnlyAllowedIn' cannot be used with triggers because the option is just the inverse of 'unitPlacementRestrictions' which can be changed with triggers.

                  Cheers...

                  1 Reply Last reply Reply Quote 3
                  • VictoryFirstV Offline
                    VictoryFirst
                    last edited by VictoryFirst

                    this post is deleted

                    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