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

    Funny Trigger to help/trick the AI to amphibiously noncombat-move isAA units

    Scheduled Pinned Locked Moved Map Making
    1 Posts 1 Posters 489 Views 1 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 TorpedoA

      I try to be as short as possible to describe this phenomenon in regard to a specific unit attachment option called canNotMoveDuringCombatMove.
      All isAA units that dont set that option false are subject to this.

      The problem of that option is that the AI never use that kind of unit in a amphibious noncombat movement, even if it is technically possible. Because the human player can do it without any problem.

      If you have a unit with isAA property, which by standard contains the above mentioned unit option at true, and you want to have the AI to use this isAA unit in a noncombat phase by amphibious transport to strengthen an already conquered territory (same round or the later), then you have to make the following pair of triggers for each nation with a always-true-condition:

      <attachment name="triggerAttachmentAmphibiousNonCombatTransport" attachTo="Nation" javaClass="games.strategy.triplea.attachments.TriggerAttachment" type="player">
      <option name="conditions" value="conditionAttachmentAlwaysTrueCondition"/>
      <option name="when" value="before:NationNonCombatMove"/>
      <option name="unitType" value="isAA-unit"/>
      <option name="unitProperty" value="canNotMoveDuringCombatMove" count="false"/>
      

      The second trigger just changes:

      <option name="when" value="after:NationNonCombatMove"/>
      <option name="unitProperty" value="canNotMoveDuringCombatMove" count="true"/>
      

      This is funny because i just allowed a noncombatmovement unit to combatmove in a noncombatmove phase to be able to be transported and unloaded by amphibious transport by the AI.
      And it works. Without problems so far.

      1 Reply Last reply Reply Quote 2

      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