Navigation

    TripleA Logo

    TripleA Forum

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

    attackAAmaxdieSides

    Map Making
    6
    14
    2477
    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.
    • B
      beelee last edited by

      I changed count to 10 but will only hit at 6. had it working at 8. Have a unique name for typeAA. Reread POS but can't figure it out.

      <attachment name="triggerAttachment_BBAndCAAA" attachTo="Germans" javaClass="games.strategy.triplea.attachments.TriggerAttachment" type="player">
      <option name="trigger" value="conditionAttachmentBBAndCAAA"/>
      <option name="unitType" value="battleship"/>
      <option name="unitAttachmentName" value="UnitAttachment" count="unitAttachment"/>
      <option name="unitProperty" value="isAAforCombatOnly" count="true"/>
      <option name="unitProperty" value="attackAA" count="1"/>
      <option name="unitProperty" value="attackAAmaxDieSides" count="10"/>
      <option name="unitProperty" value="maxAAattacks" count="2"/>
      <option name="unitProperty" value="mayOverStackAA" count="false"/>
      <option name="unitProperty" value="targetsAA" count="fighter:Japanese_fighter:Russian_fighter:tactical_bomber:Japanese_tactical_bomber:Russian_tactical_bomber:tactical_bomber10:Japanese_tactical_bomber10:Russian_tactical_bomber10:flying_tiger"/>
      <option name="unitProperty" value="typeAA" count="Battleship and CruiserAA"/>
      <option name="when" value="before:germansPolitics"/>
      <option name="uses" value="1"/>
      </attachment>

      condition is just a tech. Here's xml if anyone wants to take a look. Been battling this for a few days now and any help would be appreciated.

      0_1518934699679_Global_40_House_Rules_Canada.xml

      Thanks

      redrum 1 Reply Last reply Reply Quote 0
      • redrum
        redrum Admin @beelee last edited by

        @beelee Besides the fact that its good to avoid spaces in the typeAA name, I don't see any glaring issues. Can you upload the whole zip somewhere?

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

          @redrum yea didn't think of that spacing. is weird got it to work testing and then in game it didn't.

          https://www.sendspace.com/file/c8haz2

          Thanks

          redrum 1 Reply Last reply Reply Quote 0
          • redrum
            redrum Admin @beelee last edited by

            @beelee You have the BB and CA triggers defined twice so its picking up only the second pair. I think you need to delete the second pair.

            First pair with the 10 dice sides defined that isn't firing:

            <attachment name="triggerAttachment_BBAndCAAA" attachTo="Germans" javaClass="games.strategy.triplea.attachments.TriggerAttachment" type="player">
            <option name="trigger" value="conditionAttachmentBBAndCAAA"/>
            <option name="unitType" value="battleship"/>
            <option name="unitAttachmentName" value="UnitAttachment" count="unitAttachment"/>
            <option name="unitProperty" value="isAAforCombatOnly" count="true"/>
            <option name="unitProperty" value="attackAA" count="1"/>
            <option name="unitProperty" value="attackAAmaxDieSides" count="10"/>
            <option name="unitProperty" value="maxAAattacks" count="2"/>
            <option name="unitProperty" value="mayOverStackAA" count="false"/>
            <option name="unitProperty" value="targetsAA" count="fighter:Japanese_fighter:Russian_fighter:tactical_bomber:Japanese_tactical_bomber:Russian_tactical_bomber:tactical_bomber10:Japanese_tactical_bomber10:Russian_tactical_bomber10:flying_tiger"/>
            <option name="unitProperty" value="typeAA" count="Battleship and CruiserAA"/>
            <option name="when" value="before:germansPolitics"/>
            <option name="uses" value="1"/>
            </attachment>
            <attachment name="triggerAttachment_BBAndCAAA1" attachTo="Germans" javaClass="games.strategy.triplea.attachments.TriggerAttachment" type="player">
            <option name="trigger" value="conditionAttachmentBBAndCAAA"/>
            <option name="unitType" value="cruiser"/>
            <option name="unitAttachmentName" value="UnitAttachment" count="unitAttachment"/>
            <option name="unitProperty" value="isAAforCombatOnly" count="true"/>
            <option name="unitProperty" value="attackAA" count="1"/>
            <option name="unitProperty" value="attackAAmaxDieSides" count="10"/>
            <option name="unitProperty" value="maxAAattacks" count="2"/>
            <option name="unitProperty" value="mayOverStackAA" count="false"/>
            <option name="unitProperty" value="targetsAA" count="fighter:Japanese_fighter:Russian_fighter:tactical_bomber:Japanese_tactical_bomber:Russian_tactical_bomber:tactical_bomber10:Japanese_tactical_bomber10:Russian_tactical_bomber10:flying_tiger"/>
            <option name="unitProperty" value="typeAA" count="Battleship and CruiserAA"/>
            <option name="when" value="before:germansPolitics"/>
            <option name="uses" value="1"/>
            </attachment>
            

            Second pair that doesn't have dice sides defined that is firing:

            <attachment name="triggerAttachment_BBAndCAAA" attachTo="Germans" javaClass="games.strategy.triplea.attachments.TriggerAttachment" type="player">
            <option name="trigger" value="conditionAttachmentBBAndCAAA"/>
            <option name="unitType" value="battleship"/>
            <option name="unitAttachmentName" value="UnitAttachment" count="unitAttachment"/>
            <option name="unitProperty" value="isAAforCombatOnly" count="true"/>
            <option name="unitProperty" value="maxAAattacks" count="2"/>
            <option name="unitProperty" value="mayOverStackAA" count="false"/>
            <option name="unitProperty" value="targetsAA" count="fighter:Japanese_fighter:Russian_fighter:tactical_bomber:Japanese_tactical_bomber:Russian_tactical_bomber:tactical_bomber10:Japanese_tactical_bomber10:Russian_tactical_bomber10:flying_tiger"/>
            <option name="unitProperty" value="typeAA" count="Battleship and CruiserAA"/>
            <option name="when" value="before:germansPolitics"/>
            <option name="uses" value="1"/>
            </attachment>
            <attachment name="triggerAttachment_BBAndCAAA1" attachTo="Germans" javaClass="games.strategy.triplea.attachments.TriggerAttachment" type="player">
            <option name="trigger" value="conditionAttachmentBBAndCAAA"/>
            <option name="unitType" value="cruiser"/>
            <option name="unitAttachmentName" value="UnitAttachment" count="unitAttachment"/>
            <option name="unitProperty" value="isAAforCombatOnly" count="true"/>
            <option name="unitProperty" value="maxAAattacks" count="2"/>
            <option name="unitProperty" value="mayOverStackAA" count="false"/>
            <option name="unitProperty" value="targetsAA" count="fighter:Japanese_fighter:Russian_fighter:tactical_bomber:Japanese_tactical_bomber:Russian_tactical_bomber:tactical_bomber10:Japanese_tactical_bomber10:Russian_tactical_bomber10:flying_tiger"/>
            <option name="unitProperty" value="typeAA" count="Battleship and CruiserAA"/>
            <option name="when" value="before:germansPolitics"/>
            <option name="uses" value="1"/>
            </attachment>
            
            B 1 Reply Last reply Reply Quote 0
            • B
              beelee @redrum last edited by

              @redrum Thanks ! I feel kinda stupid lol : ) Something to remember though

              Heppster Rock on Image : )

              redrum 1 Reply Last reply Reply Quote 0
              • redrum
                redrum Admin @beelee last edited by

                @beelee Sometimes ya just need another set of fresh eyes 🙂

                Btw, the easiest way to figure that out is you can look at the game history to see what triggers actually fire. After looking at that I realized that you must have had another trigger defined since it wasn't firing what you originally posted.

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

                  @redrum right on. i have 2 xmls, dam Canadiens, and it worked on the other. Thanks again for your help

                  W Hepps General_Zod 3 Replies Last reply Reply Quote 1
                  • W
                    wc_sumpton @beelee last edited by

                    @beelee shhhh..... always up-vote those 'dam Canadians' post...

                    Cheers...

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

                      @beelee Did you have the second set of triggers with dice sides of 10 because we use the metric system?

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

                        @hepps hehe! Btw you have mail!

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

                          @hepps I always thought the "C" stood for "Canadian" not "celsius" : )

                          Hepps 1 Reply Last reply Reply Quote 2
                          • Hepps
                            Hepps Moderators @beelee last edited by

                            @beelee I thought "C" is for cookie... that's good enough for me.

                            1 Reply Last reply Reply Quote 1
                            • General_Zod
                              General_Zod Moderators @beelee last edited by General_Zod

                              @beelee Fyi, just incase your triggering battle abilities on and off during game. Be aware that if your triggering battle abilities on and off. Your battle calc wont be accurate.

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

                                @general_zod right on. Thanks
                                I usually don't use the calc too much or I use it with a grain or two of salt anyway. I just kinda look at it and go : )

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