Navigation

    TripleA Logo

    TripleA Forum

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

    Defense Bonus for Tank Support

    Map Making
    2
    4
    322
    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.
    • Joe G
      Joe G last edited by

      Hey there. Adam and I are trying to add a defense bonus for mechs that are paired with tanks. Our XML already contains this capability for mechs on the attack. Here is the code:

      <attachment name="supportAttachmentMechanizedTechnology" attachTo="armour" javaClass="games.strategy.triplea.attachments.UnitSupportAttachment" type="unitType">
        <option name="unitType" value="mech_infantry"/>
        <option name="faction" value="allied"/>
        <option name="side" value="offence"/>
        <option name="dice" value="strength"/>
        <option name="bonus" value="1"/>
        <option name="number" value="1"/>
        <option name="bonusType" value="infantry_bonus"/>
        <option name="impArtTech" value="false"/>
         <option name="players" value="Germans:Russians:Americans:British:UK_Pacific:French:Italians:Japanese:Chinese:ANZAC:French:Dutch"/>
      </attachment>
      

      Does anybody know if there is a way to do the same effect on defense. I tried replacing "offense" with "defense" in the above tech, but it didn't work. Any suggestions would be appreciated.

      Thanks!

      C 1 Reply Last reply Reply Quote 0
      • C
        Cernel Moderators @Joe G last edited by

        @Joe-G As you can see in what you posted, that is British English, not American English, both for "offence" and "defence".

        1 Reply Last reply Reply Quote 0
        • Joe G
          Joe G last edited by

          A derp. hahaha. Thank you!

          C 1 Reply Last reply Reply Quote 0
          • C
            Cernel Moderators @Joe G last edited by

            @Joe-G No problem. TripleA is fairly evenly split between British and American English. It can be easily confusing.

            I would personally prefer if TripleA would follow British English fully.

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