Navigation

    TripleA Logo

    TripleA Forum

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

    Kamikaze land scrambler with 1 movement theorie

    Map Making
    2
    2
    147
    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.
    • TorpedoA
      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.

      Hepps 1 Reply Last reply Reply Quote 0
      • Hepps
        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.

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