How to use 'canMoveThroughEnemies' with land units?
-
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...
-
@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.
-
@Cernel
Thank you sir. Will get to bug reporting it soon.Cheers...
-
@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. -
@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.
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