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

    Inflict damage on a unit outside of combat

    Scheduled Pinned Locked Moved Map Making
    5 Posts 3 Posters 1.3k Views 3 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.
    • Michael HooverM Offline
      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...

      Map Maker of: Twelve Clans and Labyrinth

      C 1 Reply Last reply Reply Quote 0
      • C Offline
        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 HooverM Offline
          Michael Hoover
          last edited by

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

          Map Maker of: Twelve Clans and Labyrinth

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

              "For the world is changing: I feel it in the water, I feel it in the earth, and I smell it in the air."

              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