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

    How to use 'canMoveThroughEnemies' with land units?

    Scheduled Pinned Locked Moved Map Making
    5 Posts 3 Posters 852 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.
    • wc_sumptonW Offline
      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 TorpedoAT 2 Replies Last reply Reply Quote 0
      • C Online
        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
        • wc_sumptonW Offline
          wc_sumpton
          last edited by

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

          Cheers...

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

              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