Navigation

    TripleA Logo

    TripleA Forum

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

    How to use 'canMoveThroughEnemies' with land units?

    Map Making
    3
    5
    83
    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.
    • W
      wc_sumpton last edited by

      Trying to get a land unit 'helicopter' to act like a air unit, but not require it to land. There are other isAir units so using the step property 'removeAirThatCanNotLand' does not sound like the answer. It would work for all isAir units if the helicopter were changed.

      The property 'Submersible Subs' is set to 'true'. The helicopter looks like:

      <attachment name="unitAttachment" attachTo="helicopter" javaClass="games.strategy.triplea.attachments.UnitAttachment" type="unitType">
         <option name="movement" value="4"/>
         <option name="attack" value="3"/>
         <option name="defense" value="3"/>
         <option name="transportCapacity" value="1"/>
         <option name="isLandTransport" value="false"/>
         <option name="canRetreatOnStalemate" value="true"/>
         <option name="canMoveThroughEnemies" value="true"/>
      </attachment>
      

      I've tried adding 'isSub'. When I added 'canBlitz' then it blitzes through enemy controlled territories, but can not move through an enemy occupied territory. So am I missing something, or does 'canMoveThroughEnemies' not work with land units?

      Thanks.

      Cheers...

      C TorpedoA 2 Replies Last reply Reply Quote 0
      • C
        Cernel Moderators @wc_sumpton last edited by

        @wc_sumpton I discussed this with @redrum and I believe this is a problem. I believe he intended that in such a case the unit should be able to move through, albeit without conquering the territory. I've never opened an issue because I'm not currently offering a map in which it can be tested, but probably someone should open the issue anyway, even if the option hasn't been used yet.

        1 Reply Last reply Reply Quote 0
        • W
          wc_sumpton last edited by

          @Cernel
          Thank you sir. Will get to bug reporting it soon.

          Cheers...

          TorpedoA 1 Reply Last reply Reply Quote 0
          • TorpedoA
            TorpedoA @wc_sumpton last edited by

            @wc_sumpton
            <option name="canRetreatOnStalemate" value="true"/>

            Didnt know that exists. Where it derives from?
            Because i set up Battle Rounds to 1 and stalemate is plenty.

            1 Reply Last reply Reply Quote 0
            • TorpedoA
              TorpedoA @wc_sumpton last edited by

              @wc_sumpton
              Nevermind
              2.0 has a new XML option canRetreatOnStalemate. We can use that to explicitly allow conscripts an option to retreat on stalemate.

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