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

    How to place units in allied or major/minor territory?

    Scheduled Pinned Locked Moved Map Making
    11 Posts 4 Posters 2.2k 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.
    • N Offline
      Numetalfan @Unternehmer
      last edited by

      @unternehmer

      set <property name="maxFactoriesPerTerritory" value="2"/>

      create a special factory type

      <attachment name="unitAttachment" attachTo="special_UK_Factory" javaClass="games.strategy.triplea.attachments.UnitAttachment" type="unitType">
      <option name="isFactory" value="true"/>
      <option name="isAAforBombingThisUnitOnly" value="true"/>
      </attachment>

      then define those special units

      <attachment name="unitAttachment" attachTo="special_UK_unit" javaClass="games.strategy.triplea.attachments.UnitAttachment" type="unitType">
      ...
      <option name="requiresUnits" value="special_UK_Factory"/>
      </attachment>

      all those units have to be in the unit list of course

      then place those special_UK_Factory in India in the initial setup and you can produce your units there as UK. there might be a second factory for all other units that the Indian nation may produce

      try it

      B U 2 Replies Last reply Reply Quote 1
      • B Online
        beelee @Numetalfan
        last edited by

        @numetalfan have you tried this with success ? I've never got it to work myself

        N 1 Reply Last reply Reply Quote 0
        • N Offline
          Numetalfan @beelee
          last edited by

          @beelee

          tried - did not work 😞

          N 1 Reply Last reply Reply Quote 1
          • N Offline
            Numetalfan @Numetalfan
            last edited by

            @numetalfan

            then there will be only a complex solution with triggers

            UK will buy

            ...special_India_unit..

            then place it in London

            a condition will check if there is such a unit in London

            another trigger will remove it in London and place it India

            B 1 Reply Last reply Reply Quote 1
            • B Online
              beelee @Numetalfan
              last edited by

              @numetalfan yea idk worth a shot. The Player whose turn it is would have to place or check for the special unit and that would trigger a placement for the non turn player maybe ?

              I've messed around with it and it'd be cool to do but never got it to work

              1 Reply Last reply Reply Quote 0
              • U Offline
                Unternehmer @Numetalfan
                last edited by

                @numetalfan said in How to place units in allied or major/minor territory?:

                @unternehmer

                set <property name="maxFactoriesPerTerritory" value="2"/>

                create a special factory type

                <attachment name="unitAttachment" attachTo="special_UK_Factory" javaClass="games.strategy.triplea.attachments.UnitAttachment" type="unitType">
                <option name="isFactory" value="true"/>
                <option name="isAAforBombingThisUnitOnly" value="true"/>
                </attachment>

                then define those special units

                <attachment name="unitAttachment" attachTo="special_UK_unit" javaClass="games.strategy.triplea.attachments.UnitAttachment" type="unitType">
                ...
                <option name="requiresUnits" value="special_UK_Factory"/>
                </attachment>

                all those units have to be in the unit list of course

                then place those special_UK_Factory in India in the initial setup and you can produce your units there as UK. there might be a second factory for all other units that the Indian nation may produce

                try it

                And in the end of this you get a unit produced by Indian faction from the Indian factory located in India?

                N 1 Reply Last reply Reply Quote 0
                • N Offline
                  Numetalfan @Unternehmer
                  last edited by

                  @unternehmer

                  My idea was more an Indian factory for Indian units

                  and a second factory

                  A British one, also located in India, to produce British units there

                  But it seems this does not work.

                  Therefore triggers seem more promising

                  TheDogT B 2 Replies Last reply Reply Quote 0
                  • TheDogT Offline
                    TheDog @Numetalfan
                    last edited by TheDog

                    I would try creating more units, the indian units will need to end with say;
                    Indian units
                    Infantry_in
                    Tanks_in
                    factory_in

                    These units must specify the factory they can be produced from with
                    <option name="requiresUnits" value="factory_in/>

                    British units
                    Tanks_br
                    Fighter_br
                    factory_br

                    These units must specify the factory they can be produced from with
                    <option name="requiresUnits" value="factory_br"/>

                    Then the two factories can produce only their national units.

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

                    U 1 Reply Last reply Reply Quote 0
                    • B Online
                      beelee @Numetalfan
                      last edited by

                      @numetalfan said in How to place units in allied or major/minor territory?:

                      @unternehmer

                      My idea was more an Indian factory for Indian units

                      and a second factory

                      A British one, also located in India, to produce British units there

                      But it seems this does not work.

                      Therefore triggers seem more promising

                      yea i tried having two differently owned factories in same territory and it didn't work either

                      1 Reply Last reply Reply Quote 0
                      • U Offline
                        Unternehmer @TheDog
                        last edited by

                        @thedog said in How to place units in allied or major/minor territory?:

                        I would try creating more units, the indian units will need to end with say;
                        Indian units
                        Infantry_in
                        Tanks_in
                        factory_in

                        These units must specify the factory they can be produced from with
                        <option name="requiresUnits" value="factory_in/>

                        British units
                        Tanks_br
                        Fighter_br
                        factory_br

                        These units must specify the factory they can be produced from with
                        <option name="requiresUnits" value="factory_br"/>

                        Then the two factories can produce only their national units.

                        In your idea you will get units produced by the faction on its own factory located in its own territory?
                        If "yes", then, sorry, your idea is not relevant to this topic.

                        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