Navigation

    TripleA Logo

    TripleA Forum

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

    Bombers – Single Round Attack

    Map Making
    5
    40
    3531
    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
      Contango last edited by

      In the map/mod I’m working on Bombers are only able to participate in land and sea battles for the first round of combat. After the first combat round Bombers either need to be taken as casualties or automatically retreat.

      I’m new to the TripleA Forum and also new to creating maps/mods. So far I’ve been unable to come up with any xml that might handle this scenario. Would appreciate any suggestions on how to handle, or if you can point me to an existing map that might do something similar as an example.

      1 Reply Last reply Reply Quote 0
      • RogerCooper
        RogerCooper last edited by

        You can't do what you want, but you can come close. You designate bombers as being offensive AA., which allow them to fire once, before all other combat. Then give them a 0 strength in regular combat. Look at this Nuke unit from The Grand War

        		<attachment name="unitAttachment" attachTo="nuke" javaClass="games.strategy.triplea.attachments.UnitAttachment" type="unitType">
        			<option name="movement" value="1"/> <!-- Receives extra movement from bombers(2) and carriers(1) -->
        			<option name="attack" value="0"/>
        			<option name="defense" value="0"/>
        			<option name="attackAA" value="0"/>
        			<option name="offensiveAttackAA" value="1"/>
        			<option name="offensiveAttackAAmaxDieSides" value="1"/>
        			<option name="maxAAattacks" value="4"/>
        			<option name="isAAforCombatOnly" value="true"/>
        			<option name="typeAA" value="nuclearBlast"/>
        			<option name="damageableAA" value="true"/>
        			<option name="targetsAA" value="infantry:artillery:tank:fighter:bomber:destroyer:submarine:carrier:battleship:zealot:stormtrooper:heavyTank:katyusha:conscript:garrison:marine:tankHunter:mercenary:nuke:rocket:r.Interceptor:r.Artillery:flakHalftrack"/>
        			<option name="isStrategicBomber" value="true"/>
        			<option name="bombingBonus" value="10"/>
        		 	<option name="carrierCost" value="1"/>
        		 	<option name="isAir" value="true"/>
        			<option name="canAirBattle" value="false"/>
        			<option name="isKamikaze" value="true"/>
        			<option name="isSuicide" value="true"/>
        		</attachment>
        
        
        1 Reply Last reply Reply Quote 1
        • C
          Contango last edited by

          @RogerCooper

          Thank you sir, that is much closer.

          I don’t suppose there is a way to allow units killed by AA fire to return fire is there? I didn’t see anything in the XML options that seemed like it would. I suppose even if there is, it would need to specifically happen for the bomber related AA fire and not traditional AA fire, which I’m guessing is even less likely.

          RogerCooper B 2 Replies Last reply Reply Quote 0
          • RogerCooper
            RogerCooper @Contango last edited by

            I assume that defensive AA and offensive AA is simultaneous.

            C 1 Reply Last reply Reply Quote 0
            • B
              beelee @Contango last edited by

              @Contango said in Bombers – Single Round Attack:

              I don’t suppose there is a way to allow units killed by AA fire to return fire is there? I didn’t see anything in the XML options that seemed like it would. I suppose even if there is, it would need to specifically happen for the bomber related AA fire and not traditional AA fire, which I’m guessing is even less likely.

              Yea you'd have to give the units the Bmbr can hit the same type of AA to shoot back but it'd shoot back regardless if it got killed or not. Idk of a way for regular AA kills to shoot back.

              1 Reply Last reply Reply Quote 0
              • C
                Contango @RogerCooper last edited by

                Oh, I’m not talking about the offensive AA vs defensive AA, I'm talking about offensive AA vs regular combat.

                Right now I have bombers set up to roll as offensive AA and eligible to hit all units. (like you suggested) This is successful in making them only fire for one round, but also makes the bomber attack pre-emptive. The result is that if the bomber makes a successful hit, that casualty is eliminated before the normal combat round takes place and never gets a chance to roll in retaliation.

                My goal is to have it be more like a bombardment roll where the defenders that are killed still have a chance to retaliate.

                I suppose I could try setting all units to be AA fire so that they all have the same priority, but this would ruin the functionality of normal AA gun fire, which I do want to be pre-emptive.

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

                  @Contango you could make a feature request to add isAir units to canBombard.

                  https://forums.triplea-game.org/category/42/feature-requests-ideas

                  Maybe it'd be relatively easy todo. Idk if so it might get done sooner than later 🙂

                  F C 2 Replies Last reply Reply Quote 0
                  • F
                    ff03k64 @beelee last edited by

                    @beelee said in Bombers – Single Round Attack:

                    @Contango you could make a feature request to add isAir units to canBombard.

                    What currently happens if you give an isAir unit canBombard?

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

                      @ff03k64

                      Screenshot from 2020-11-30 22-20-34.png

                      1 Reply Last reply Reply Quote 0
                      • C
                        Contango @beelee last edited by

                        @beelee said in Bombers – Single Round Attack:

                        @Contango you could make a feature request to add isAir units to canBombard.

                        https://forums.triplea-game.org/category/42/feature-requests-ideas

                        Maybe it'd be relatively easy todo. Idk if so it might get done sooner than later 🙂

                        Bombarding would be perfect if it could work, but a few questions that stem from that, even if air units could bombard:

                        1. Would the bomber be able to bombard from withing the territory the battle is happening, or would it need to be adjacent?
                        2. Would there need to be a sea zone adjacent to the battle for bombarding to work?
                        3. Would there need to be a unit being offloaded for the bombarding to work?

                        So I’m thinking it might be more complicated than just allowing isAir units to canBombard.

                        Another avenue I’m thinking now: Is it possible for a unit bonus to last a set number of rounds? I’m wondering if the Bomber could have a regular attack value of zero, but a single round bonus. I haven’t come across anything that seems to do that yet, have you?

                        B Hepps 2 Replies Last reply Reply Quote 0
                        • B
                          beelee @Contango last edited by

                          @Contango yea Good points. Figured it wouldn't be that easy 🙂 Idk about single round. So no, I haven't.

                          1 Reply Last reply Reply Quote 0
                          • Hepps
                            Hepps Moderators @Contango last edited by Hepps

                            @Contango

                            Another avenue I’m thinking now: Is it possible for a unit bonus to last a set number of rounds? I’m wondering if the Bomber could have a regular attack value of zero, but a single round bonus. I haven’t come across anything that seems to do that yet, have you?

                            You could make your bomber carry a suicide unit that auto repopulates at the end of every turn or start of the following turn for all surviving bombers.

                            C 2 Replies Last reply Reply Quote 0
                            • C
                              Contango @Hepps last edited by

                              @Hepps said in Bombers – Single Round Attack:

                              @Contango

                              Another avenue I’m thinking now: Is it possible for a unit bonus to last a set number of rounds? I’m wondering if the Bomber could have a regular attack value of zero, but a single round bonus. I haven’t come across anything that seems to do that yet, have you?

                              You could make your bomber carry a suicide unit that auto repopulates at the end of every turn or start of the following turn for all surviving bombers.

                              Thanks, @Hepps, I gave this a try and I still end up with casualties from the suicide unit not being able to return fire, even if I have the below global property set:

                              <property name="Suicide and Munition Casualties Restricted" value="false" editable="false">
                                <boolean/>
                              </property>
                              

                              I also tried with value=”true” and it doesn’t seem to make a difference.

                              Have you seen this successfully implemented where the casualties are able to fire back? If not then I think I’m in the same state as making the bomber use offensive AA, but in more steps.

                              Hepps F 2 Replies Last reply Reply Quote 0
                              • Hepps
                                Hepps Moderators @Contango last edited by Hepps

                                @Contango The property might be affected by what ruleset property you have set.

                                C 1 Reply Last reply Reply Quote 0
                                • F
                                  ff03k64 @Contango last edited by

                                  @Contango what is your actual code for this unit?

                                  C 1 Reply Last reply Reply Quote 0
                                  • C
                                    Contango @Hepps last edited by

                                    @Hepps said in Bombers – Single Round Attack:

                                    @Contango The property might be affected by what ruleset property you have set.

                                    So far I’ve tried:

                                    • WW2v2
                                    • WW2V3
                                    • WW2V3 Tech Model
                                    • None of the above

                                    All seem to result in the suicide casualties not firing back.

                                    I’m assuming that’s what you’re talking about but this is the first I’ve come across the ruleset properties, so can’t say that I’m familiar. Are there others besides these?

                                    1 Reply Last reply Reply Quote 0
                                    • C
                                      Contango @ff03k64 last edited by

                                      @ff03k64 said in Bombers – Single Round Attack:

                                      @Contango what is your actual code for this unit?

                                      Right now I have separated as the bomber and a suicide unit called bomber_payload:

                                      <attachment name="unitAttachment" attachTo="bomber" javaClass="games.strategy.triplea.attachments.UnitAttachment" type="unitType">
                                        <option name="movement" value="6"/>
                                        <option name="isAir" value="true"/>
                                        <option name="attack" value="0"/>
                                        <option name="defense" value="0"/>
                                        <option name="isStrategicBomber" value="true"/>
                                        <option name="isAirTransport" value="true"/>
                                        <option name="transportCapacity" value="2"/>
                                        <option name="bombingMaxDieSides" value="6"/>
                                        <option name="bombingBonus" value="2"/>
                                        <option name="airAttack" value="1"/>
                                      </attachment>
                                      <attachment name="unitAttachment" attachTo="bomber_payload" javaClass="games.strategy.triplea.attachments.UnitAttachment" type="unitType">
                                        <option name="movement" value="0"/>
                                        <option name="transportCost" value="2"/>
                                        <option name="attack" value="4"/>
                                        <option name="defense" value="0"/>
                                        <option name="isAirTransportable" value="true"/>
                                        <option name="isSuicide" value="true"/>
                                      </attachment>
                                      Hepps 2 Replies Last reply Reply Quote 0
                                      • Hepps
                                        Hepps Moderators @Contango last edited by Hepps

                                        @Contango I was wrong. Suicide units will always kill casualties without allowing return fire. I was thinking of bombard.

                                        1 Reply Last reply Reply Quote 0
                                        • Hepps
                                          Hepps Moderators @Contango last edited by Hepps

                                          @Contango Take a look at this thread... this might just solve all your problems...

                                          https://forums.triplea-game.org/topic/1579/add-ability-for-suicide-units-to-provide-support/53

                                          If you made your "payload" unit support the bomber +1 att... and the bomber still started with a 0 att. Then you should be able to achieve what you want.

                                          C 1 Reply Last reply Reply Quote 0
                                          • C
                                            Contango @Hepps last edited by

                                            @Hepps said in Bombers – Single Round Attack:

                                            @Contango Take a look at this thread... this might just solve all your problems...

                                            https://forums.triplea-game.org/topic/1579/add-ability-for-suicide-units-to-provide-support/53

                                            If you made your "payload" unit support the bomber +1 att... and the bomber still started with a 0 att. Then you should be able to achieve what you want.

                                            Excellent, with the suicide unit giving a bonus to the bomber, and the suicide unit having isSuicideOnAttack, that works to make the defenders able to return fire.

                                            One issue I’m now noticing is that when I try to use the bomber for strategic bombing, I now throw the below error because the Bomber has zero attack value:

                                            Units Can Not Fight.png

                                            The error is inconsequential and the bombing run still functions properly, it’s just annoying and misleading. Any suggestions on overriding that?

                                            My next hurdle is finding a way to auto-spawn the bomber_payload unit. Preferably this would happen at the beginning of a nation’s turn and then they would auto-disappear at the end of the nation’s turn if they were unused.

                                            I haven’t researched it yet, but if anyone has an example of something similar to share that would be helpful.

                                            Hepps 2 Replies Last reply Reply Quote 0
                                            • 1
                                            • 2
                                            • 1 / 2
                                            • First post
                                              Last post
                                            Copyright © 2016-2018 TripleA-Devs | Powered by NodeBB Forums