Navigation

    TripleA Logo

    TripleA Forum

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

    Inflict damage on a unit outside of combat

    Map Making
    3
    5
    608
    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.
    • Michael Hoover
      Michael Hoover last edited by

      Is this possible?
      I tried this but it doesn't seem to work (doesn't throw an error either):

      <option name="repairsUnits" value="-1:Knight"/>
      

      The above was added to a "pit" unit that acts as infrastructure and is supposed to damage a unit for 1 point...

      C 1 Reply Last reply Reply Quote 0
      • C
        Cernel Moderators @Michael Hoover last edited by

        @Michael-Hoover Try to see if -2 gives an error or not. Often -1 is used to mean infinite in options that do not accept negative values (horrible program hack).

        I support the idea that this option should damage units if set negative.

        1 Reply Last reply Reply Quote 0
        • Michael Hoover
          Michael Hoover last edited by

          @Cernel -2 doesn't throw an error either...
          Guess I'll go make a feature request!

          1 Reply Last reply Reply Quote 0
          • C
            Cernel Moderators last edited by Cernel

            This might be an issue to report, then. I tend to think something should either do something or give an error, if set to a value that cannot possibly mean doing nothing (which, in this case, would be 0).

            1 Reply Last reply Reply Quote 0
            • alkexr
              alkexr last edited by

              When a unit checks for repair facilities, it always selects the one where it can get the highest amount of repair, which is technically 0, in this case.

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