Navigation

    TripleA Logo

    TripleA Forum

    • Register
    • Login
    • Search
    • TripleA Website
    • Categories
    • Recent
    • Popular
    • Users
    • Groups
    • Tags

    How to make a AA Tank?

    Map Making
    4
    11
    1787
    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.
    • C
      CorsairBR last edited by

      Hi.This is my problem.How i can create a AATank?I want him to behave like a tank(Attack,Defense ,Movement and CanBlitz),but when engaging in combat with air units, run as an AA for them.How can I do this(in XML)?

      Hepps redrum 2 Replies Last reply Reply Quote 0
      • Hepps
        Hepps Moderators @CorsairBR last edited by

        @corsairbr Look at the AT Guns in TWW.

        Everything you need is in there.

        1 Reply Last reply Reply Quote 0
        • C
          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

          Hepps 1 Reply Last reply Reply Quote 0
          • Hepps
            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.

            C prastle 2 Replies Last reply Reply Quote 0
            • C
              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

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

                @hepps = DONKEY!

                1 Reply Last reply Reply Quote 0
                • prastle
                  prastle Moderators Admin @CorsairBR last edited by

                  @corsairbr GL Cor 🙂

                  1 Reply Last reply Reply Quote 0
                  • redrum
                    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

                    1 Reply Last reply Reply Quote 0
                    • C
                      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?

                      Hepps 1 Reply Last reply Reply Quote 0
                      • Hepps
                        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.

                        1 Reply Last reply Reply Quote 0
                        • C
                          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
                          • 1 / 1
                          • First post
                            Last post
                          Copyright © 2016-2018 TripleA-Devs | Powered by NodeBB Forums