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

    attackAAmaxdieSides

    Scheduled Pinned Locked Moved Map Making
    14 Posts 6 Posters 3.7k Views 6 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.
    • B Online
      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

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

        TripleA Developer with a Passion for AI: https://forums.triplea-game.org/topic/105/ai-development-discussion-and-feedback

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

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

            TripleA Developer with a Passion for AI: https://forums.triplea-game.org/topic/105/ai-development-discussion-and-feedback

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

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

              Heppster Rock on Image : )

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

                TripleA Developer with a Passion for AI: https://forums.triplea-game.org/topic/105/ai-development-discussion-and-feedback

                B 1 Reply Last reply Reply Quote 1
                • B Online
                  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

                  wc_sumptonW HeppsH General_ZodG 3 Replies Last reply Reply Quote 1
                  • wc_sumptonW Offline
                    wc_sumpton @beelee
                    last edited by

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

                    Cheers...

                    1 Reply Last reply Reply Quote 1
                    • HeppsH Offline
                      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?

                      "A joyous heart sours with the burden of expectation"
                      Hepster

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

                        @hepps hehe! Btw you have mail!

                        If we open a quarrel between past and present, we shall find that we have lost the future! Sir Winston Churchill

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

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

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

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

                            "A joyous heart sours with the burden of expectation"
                            Hepster

                            1 Reply Last reply Reply Quote 1
                            • General_ZodG Offline
                              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 Online
                                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

                                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