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

    Kamikaze land scrambler with 1 movement theorie

    Scheduled Pinned Locked Moved Map Making
    2 Posts 2 Posters 480 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.
    • TorpedoAT Offline
      TorpedoA
      last edited by

      Theorie:
      I want the following isAir unit to behave as land unit most of the time. Also you could turn around the logic: I want a land unit that functions as isAir scramble kamikaze unit for a specific phase. This unit only will have 1 movement.
      This is the reason why i have to use isKamikaze to allow my unit to paticipate in battle because at 1 movement there is no way back. But then it should be able to function as Land unit again immediately after battle, which should lead to the possibiltiy that this unit can "land" on that territory where it scrambled to.
      In short: Air > Land > Air > Land in regard to specific phases.

      <attachment name="unitAttachment" attachTo="Scrambler" javaClass="games.strategy.triplea.attachments.UnitAttachment" type="unitType">
      <option name="attack" value="1"/>
      <option name="defense" value="1"/>
      <option name="movement" value="1"/>
      <option name="isAir" value="true"/>
      <option name="airAttack" value="1"/>
      <option name="airDefense" value="1"/>
      <option name="isAirBase" value="true"/>
      <option name="isKamikaze" value="true"/>
      <option name="canScramble" value="true"/>
      <option name="canAirBattle" value="true"/>
      <option name="maxScrambleDistance" value="1"/>
      </attachment>
      

      And then i use a trigger to strip off all related properties until the next phase when another trigger will undo it.

      <attachment name="triggerAttachmentScramble" attachTo="Nation" javaClass="games.strategy.triplea.attachments.TriggerAttachment" type="player">
      <option name="conditions" value="conditionAttachmentAnyAlwaysTrue"/>
      <option name="when" value="after:NationCombatMove"/>
      <option name="unitType" value="Scrambler"/>
      <option name="unitProperty" value="allRelatedProperties"count="false/true"/>
      

      So that i have a unit which is most of the time a normal infantry-like unit but when enemy is attacking a territory in scramble-range, i should be able to scramble while only having 1 movement AND stay there like a normal land unit.

      The only theoretical problem that i dont know how to solve, is the scramble to amphibious assaults, which i have to prevent.
      Is there any chance i can prevent that?
      Or worse, is there anything wrong about the theorie?
      I could imagine that there is more problems i now can think of.

      Thanks for reading.

      HeppsH 1 Reply Last reply Reply Quote 0
      • HeppsH Offline
        Hepps Moderators @TorpedoA
        last edited by

        @TorpedoA You'd have to test this... but I fear you may run into issues as there is no way trigger a unit change in the midst of the combat phase. Not sure how the scramble and Kamikaze attachments will interact when the unit remains in the territory it scrambled to.

        "A joyous heart sours with the burden of expectation"
        Hepster

        1 Reply Last reply Reply Quote 1

        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