attackAAmaxdieSides


  • Donators

    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


  • Admin

    @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?


  • Donators

    @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


  • Admin

    @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>
    

  • Donators

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

    Heppster Rock on Image : )


  • Admin

    @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.


  • Donators

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


  • Donators

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

    Cheers...


  • Donators Moderators Admin

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


  • Donators Moderators Admin

    @hepps hehe! Btw you have mail!


  • Donators

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


  • Donators Moderators Admin

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


  • Donators Moderators Admin

    @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.


  • Donators

    @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 : )