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

    Changing AA Value Against Strategic Bombers

    Scheduled Pinned Locked Moved Map Making
    23 Posts 4 Posters 86 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.
    • TheDogT Online
      TheDog @beelee
      last edited by

      @beelee
      Not sure what you are after, this might be helpful ?
      I hope the text is correct.

      <option name="isAAforCombatOnly" value="true"/>			<!-- if false = it will defend against strategic bombing raids -->
      <option name="isAAforBombingThisUnitOnly" value="true"/>        <!-- true = can only be used during SBR attack might need to be false -->
      	<option name="offensiveAttackAA" value="2"/>		<!-- sets the value the AA will attack at -->
      	<option name="attackAA" value="2"/>			<!-- misnomer, this applies to defense -->
      	<option name="maxAAattacks" value="-1"/>			<!-- -1 = Infinite Number of attacks = number of air units attacking or a fixed number -->
      	<option name="maxRoundsAA" value="1"/>				<!-- As isAAforCombatOnly is true, it will every turn, could be 2 ? -->
      		<option name="typeAA" value="AA-Industry"/>
      		<option name="targetsAA" value="$All-Bombers$"/>	<!-- All Bomber types -->
      		<option name="mayOverStackAA" value="false"/>
      

      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 1
      • wc_sumptonW Online
        wc_sumpton @beelee
        last edited by

        @beelee said:

        yea it doesn't fight in normal combat. the "-1" is so it'll shoot at all planes that try to bomb it.

        Sorry, I confused "maxAAattacks" with "maxRoundsAA". It happens to the worst of us.

        @beelee said:

        Basically, it is another Fctry that I want the AA to fire at 2, not 1.

        And that is what it does, just add "isInfrastructure".

        @beelee there is a factory major in the same territory. Because they have different "typeAA" both are shooting during the SBR attack. Remove "typeAA".

        Cheers...

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

          @wc_sumpton

          Right on. I'll give it a try. I just assumed since the Fctry wasn't being targeted it wouldn't fire.

          Screenshot from 2026-05-18 14-07-15.png

          @thedog yea it's not a combat unit. Just a different type of Fctry. I was trying to skirt the auto defend at 1 AA, is why I added the other stuff.

          Edit
          removed "typeAA" and the just the AA fire at 1 shot. I'm thinking the Fctrys/Infrastructure are just hardwired to shoot at 1 for AA defense.

          wc_sumptonW 2 Replies Last reply Reply Quote 0
          • wc_sumptonW Online
            wc_sumpton @beelee
            last edited by

            @beelee

            From the PoS2:
            isAAforBombingThisUnitOnly values: allows this unit to be an AA gun only when this unit is directly attacked by a strategic bombing raid (currently defends against all strategic bombing attacks in this territory, not just against this unit). it will not defend against a normal attack.

            With different "typeAA" both units defend. If they are the same, then the one with the 'better' attack will fire.

            Cheers...

            B 1 Reply Last reply Reply Quote 0
            • wc_sumptonW Online
              wc_sumpton @beelee
              last edited by wc_sumpton

              @beelee said:

              removed "typeAA" and the just the AA fire at 1 shot. I'm thinking the Fctrys/Infrastructure are just hardwired to shoot at 1 for AA defense.

              Your factories only have "isAAforBombingThisUnitOnly" set. There is no "typeAA", so everything is set to their default settings. It is not hardwired, only defaults, and defaults can be changed.

              @beelee said:

              Right now it shoots at 1 and then a second round at 2. So far, the closest I've come, is to make the second round of AA fire at 1.

              This is your first comment. What was stated here was wrong. The Factory_Major was defending at 1 and the Research_Facility was defending at 2. Both units were shooting because their "typeAA" were different. Remove "typeAA" from the Research_Facility, then only it will fire, even if the Factory_Major is attacked, only the Research_Facility will defend at 2.

              Cheers...

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

                @wc_sumpton

                yea I wasn't real clear with the first comment 🙂

                What happens is what I posted above with the screenshots.

                1 round of AA Fire at 1 defending against a SBR attack.
                Casualties are taken.

                2nd round of AA fire takes place defending at 2 against a SBR attack.

                SBR attack then continues if any Bmbrs survive.

                What I want to happen, is no AA Fire at 1 at all. Just 1 round of AA fire that defends at 2 against all SBR Bmbrs when the Facility is being Bombed.

                The Factory should be ignored.

                Different question.
                Can you change the value that Factories defend against SBR attack ? They currently defend at 1.

                Edit
                So I may be able to change the unitAttachment for the Factory then ? And make it not fire

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

                  @wc_sumpton said:

                  isAAforBombingThisUnitOnly values: allows this unit to be an AA gun only when this unit is directly attacked by a strategic bombing raid

                  well yea that's what I want 🙂 I have that 🙂

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

                    @beelee said:

                    Can you change the value that Factories defend against SBR attack ? They currently defend at 1.

                    <option name="attackAA" value="2"/> will change the factories defense.

                    @beelee said:

                    well yea that's what I want I have that

                    Then everything should be set. 😎

                    Cheers...

                    B 2 Replies Last reply Reply Quote 1
                    • B Offline
                      beelee @wc_sumpton
                      last edited by

                      @wc_sumpton

                      yea but how do I turn off the auto AA defend at 1 ?

                      🙂

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

                        @wc_sumpton

                        yea just a disconnect I guess 🙂

                        Can you make a "factory_major" not shoot the same time the new Facility unit does when being bombed ?

                        Screenshot from 2026-05-18 16-54-53.png

                        Edit
                        Hmm ... maybe if I make it like a "airfield" it'd work ? Can't place anyone then though.

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

                          @beelee said:

                          Can you make a "factory_major" not shoot the same time the new Facility unit does when being bombed ?

                          <option name="typeAA" value ="AtmoicProductionFacility"/>

                          Cheers...

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

                            @wc_sumpton

                            yea i already did that at first 🙂

                            Screenshot from 2026-05-18 17-19-29.png

                            Edit
                            doesn't work 🙂

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

                              @beelee said:

                              yea i already did that at first

                              That's for your Research_Facility, your question was about factory_major. So, you did not do it. 🤣
                              Add <option name="typeAA" value ="AtmoicProductionFacility"/> to factory_major or remove it from Research_Facility.

                              Cheers...

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

                                @wc_sumpton

                                Lets start over.

                                I need to make a a unit that is a Factory, that it's AA defends at 2, against Strategic Bombing and when attacked by Bombrs in a Strategic Bombing raid and there is a "Factory" present, the "Factory" AA will not fire with it's AA against the Bmbrs.

                                What should happen, is the new "Factory" will fire at 2 against Strategic Bomber attacks. There should be no AA Fire from any other Facility.

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

                                  @beelee

                                  <attachment name="unitAttachment" attachTo="Research_Facility " javaClass="UnitAttachment" type="unitType">
                                        <option name="isInfrastructure" value="true"/>
                                        <option name="isConstruction" value="true"/>
                                        <option name="constructionType" value="AtomicProduction"/>
                                        <option name="constructionsPerTerrPerTypePerTurn" value="1"/>
                                        <option name="maxConstructionsPerTypePerTerr" value="1"/>
                                        <option name="canBeDamaged" value="true"/>
                                        <option name="maxDamage" value="20"/>
                                        <option name="consumesUnits" value="1:AtomicLevel5"/>
                                        <option name="unitPlacementOnlyAllowedIn" value="Eastern United States:Germany"/>
                                        <option name="maxBuiltPerPlayer" value="1"/>
                                        <option name="isAAforBombingThisUnitOnly" value="true"/> <!-- allows this unit to be an AA gun only when the territory this unit is attacked by a strategic bombing raid -->
                                        <option name="attackAA" value="2"/> <!-- AA defends at 2 -->
                                      </attachment>
                                  

                                  Trying to eat... Thunderstorm... and two dogs...

                                  Cheers...

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