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

    Transport Casualties Restricted only applies to sea units?

    Scheduled Pinned Locked Moved Map Making
    5 Posts 3 Posters 1.5k Views 3 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.
    • MahksM Offline
      Mahks
      last edited by

      Does "Transport Casualties Restricted" apply to air transport too?
      If so, I must be missing something, as it still permits hits on my air_transport :

      <attachment name="unitAttachment" attachTo="air_transport" javaClass="games.strategy.triplea.attachments.UnitAttachment" type="unitType">
      <option name="movement" value="4"/>
      <option name="isAir" value="true"/>
      <option name="attack" value="0"/>
      <option name="defense" value="0"/>
      <option name="transportCapacity" value="2"/>
      <option name="isAirTransport" value="true"/>
      <option name="canAirBattle" value="false"/>
      </attachment>

      <property name="Transport Casualties Restricted" value="true" editable="false">
      <boolean/>
      </property>

      General_ZodG 2 Replies Last reply Reply Quote 0
      • General_ZodG Offline
        General_Zod Moderators @Mahks
        last edited by General_Zod

        @mahks I believe all the game properties listed in the POS2.xml which refer to transports are for sea transports only.

        btw, when I say game property, I mean specifically the ones at the end of the xml's. They start with "property name". So as not to confuse you.

        1 Reply Last reply Reply Quote 0
        • General_ZodG Offline
          General_Zod Moderators @Mahks
          last edited by General_Zod

          @mahks You can however set your aaguns to not be able to hit the air-transport.

          targetsAA	values: <!-- a list of unit types which this aa gun can hit. (defaults to all air units) (any aa guns in the same group should have the same targetsAA) --> 
          

          You would need to place the above attribute in the aagun unit attachments section. I recommend looking at TWW xml for an example as well, in addition to pos2.xml.

          1 Reply Last reply Reply Quote 0
          • redrumR Offline
            redrum Admin
            last edited by

            Yeah, just about all the various transport properties only influence sea transports.

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

            1 Reply Last reply Reply Quote 0
            • MahksM Offline
              Mahks
              last edited by

              Ok, Thanks, will add a feature request...

              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