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

    Defense Bonus for Tank Support

    Scheduled Pinned Locked Moved Map Making
    4 Posts 2 Posters 670 Views 2 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.
    • Joe GJ Offline
      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 Offline
        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 GJ Offline
          Joe G
          last edited by

          A derp. hahaha. Thank you!

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

            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