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

    How to make a AA Tank?

    Scheduled Pinned Locked Moved Map Making
    11 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.
    • HeppsH Offline
      Hepps Moderators @CorsairBR
      last edited by

      @corsairbr Look at the AT Guns in TWW.

      Everything you need is in there.

      "A joyous heart sours with the burden of expectation"
      Hepster

      1 Reply Last reply Reply Quote 0
      • C Offline
        CorsairBR
        last edited by

        Sorry, I'm new here, where can I find it? Sorry if I'm typing wrong, my English is not so good

        HeppsH 1 Reply Last reply Reply Quote 0
        • HeppsH Offline
          Hepps Moderators @CorsairBR
          last edited by Hepps

          @corsairbr You're english is is better than some englishmen I know.... (looks at @prastle ). 🤣

          If you download Total World War: December 1941... you will find what you need by looking at the AT Guns in the unit roster.

          "A joyous heart sours with the burden of expectation"
          Hepster

          C prastleP 2 Replies Last reply Reply Quote 0
          • C Offline
            CorsairBR @Hepps
            last edited by

            @hepps Thanks for the help, I really liked the game and wanted to create more units for some maps, some I managed without problems, but in that I failed. I'll take a look at this, thanks again

            prastleP 1 Reply Last reply Reply Quote 1
            • prastleP Offline
              prastle Moderators Admin @Hepps
              last edited by

              @hepps = DONKEY!

              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
              • prastleP Offline
                prastle Moderators Admin @CorsairBR
                last edited by

                @corsairbr GL Cor 🙂

                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 @CorsairBR
                  last edited by redrum

                  @corsairbr As @Hepps mentioned TWW has a good example. Here is the XML snippet:

                      <attachment name="unitAttachment" attachTo="germanAntiTankGun" javaClass="games.strategy.triplea.attachments.UnitAttachment" type="unitType">
                        <option name="attack" value="1"/>
                        <option name="defense" value="1"/>
                        <option name="isAAforCombatOnly" value="true"/>
                        <option name="typeAA" value="AntiTankGun"/>
                        <option name="targetsAA" value="russianMech.Infantry:russianTank:britishMech.Infantry:britishTank:americanMech.Infantry:americanTank:chineseMech.Infantry:chineseTank:spanishTank:swedishTank:turkishTank:brazilianTank"/>
                        <option name="maxAAattacks" value="1"/>
                        <option name="maxRoundsAA" value="-1"/>	  
                        <option name="transportCost" value="2"/>
                        <option name="mayOverStackAA" value="true"/>
                        <option name="movement" value="1"/>
                        <option name="attackAA" value="2"/>
                        <option name="isLandTransportable" value="true"/>
                        <option name="requiresUnits" value="germanFactory"/>
                        <option name="canBeGivenByTerritoryTo" value="Germany"/>
                        <option name="damageableAA" value="true"/>
                        <option name="canInvadeOnlyFrom" value="none"/>
                      </attachment>
                  

                  Also make sure you read through POS2 XML and use that as a reference since it describes all of these unit options: https://github.com/triplea-maps/the_pact_of_steel/blob/master/map/games/pact_of_steel_2.xml

                  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 0
                  • C Offline
                    CorsairBR
                    last edited by

                    @redrum said in How to make a AA Tank?:

                    mentioned TWW has a good example. Here is the XML snippet:

                    Thank you, I'll try to create it now for my case. Any other question, is there any parameter to restrict units to be transported? For example, I made an aircraft carrier, and I want it to carry only one type of helicopter. Is that possible?

                    HeppsH 1 Reply Last reply Reply Quote 0
                    • HeppsH Offline
                      Hepps Moderators @CorsairBR
                      last edited by

                      @corsairbr Yes. If you do not attach a "Carrier cost" to an air unit then it will not be eligible to land on an ACC. There is an example of that as well in the TWW XML as the Naval Fighters land on ACC but the normal Fighters cannot.

                      "A joyous heart sours with the burden of expectation"
                      Hepster

                      1 Reply Last reply Reply Quote 0
                      • C Offline
                        CorsairBR
                        last edited by

                        Very nice,thanks for help,Im playing Cold War 1965,And I have many ideas of new units.

                        1 Reply Last reply Reply Quote 1

                        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