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

    Remove building AA? (Factory, Airfield, Harbour) [Solved]

    Scheduled Pinned Locked Moved Maps & Mods
    6 Posts 3 Posters 1.3k Views 3 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.
    • SlendyMcTendiesS Offline
      SlendyMcTendies
      last edited by SlendyMcTendies

      Is there a way to disable buildings from having AA capabilities? Either outright or via being "disabled"? Right now disabled buildings still have AA capabilities and I don't like that.

      https://github.com/SlendyMcTendies/ww2_risk_of_defeat

      EDIT: Solution was to set "maxAAattacks" to 0. I decided to just outright remove the AA instead of trying to turn it off when disabled.

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

        @slendymctendies

        No.

        There are two types of damage/hits: 'hitPoints', which is used for combat damage, and 'maxDamage' is used for SBR.

        'whenHitPointsDamagedChangesInto' is used for 'hitPoints' damage. The icons, x_hit for 'canBeDamaged' and x_disabled for 'maxOperationalDamage', which are used for 'maxDamage', are interchanged through the engine and cannot be checked/changed within the xml as the original unit is still present. There is also no way to check the amount of 'maxDamage', though with the use of 'whenHitPointsDamagedChangesInto' the "damaged" unit can be checked for.

        So, again, sorry no. The best would be to ask for a modification that would do what you want.

        Cheers...

        TheDogT SlendyMcTendiesS 2 Replies Last reply Reply Quote 1
        • TheDogT Offline
          TheDog @wc_sumpton
          last edited by

          @SlendyMcTendies
          A poor alternative is to bend the AA rules like;
          <option name="targetsAA" value="Dummy-Air-Unit"/>

          or having a very low probability to hit the air units like
          <option name="offensiveAttackAAmaxDieSides" value="200"/>
          <option name="attackAAmaxDieSides" value="200"/>

          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
          • SlendyMcTendiesS Offline
            SlendyMcTendies @wc_sumpton
            last edited by

            @wc_sumpton @TheDog

            Actually, the solution was rather simple: <option name="maxAAattacks" value="0"/>

            That did the trick.

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

              @slendymctendies said in Remove building AA? (Factory, Airfield, Harbour):

              Actually, the solution was rather simple: <option name="maxAAattacks" value="0"/>
              That did the trick.

              I think I misunderstood, it happens quite often!! 🤔

              I was thinking that you wanted to remove the AA attacks only when the construction was disabled. What this does is completely remove the construction's AA capabilities. The same could have been accomplished by removing all the AA settings for the construction, since they will not be utilized.

              Then again you may want to reset the AA, so this does the trick!! :grinning_face_with_smiling_eyes:

              Cheers...

              SlendyMcTendiesS 1 Reply Last reply Reply Quote 1
              • SlendyMcTendiesS Offline
                SlendyMcTendies @wc_sumpton
                last edited by SlendyMcTendies

                @wc_sumpton Yeah, I initially wanted to figure out how to remove AA when disabled, but then I figured removing the AA capabilities of buildings would incentivize purchasing AA guns to protect them.

                I initially tried using "isAA" = "false", but this has the side-effect of making the game think it was an actual combat unit and therefore players could use them as sacrificial pawns and immediately deny the enemy their spoils if facing an overwhelming force, which was something I definitely didn't want either.

                You understood the original post correctly. I just decided to take a different route a day or two after posting.

                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