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

    transport units: how to limit which units can be transported

    Scheduled Pinned Locked Moved Map Making
    7 Posts 4 Posters 1.2k Views 4 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.
    • cameronC Offline
      cameron
      last edited by

      is there a way to limit which units a transport can carry?

      context/example: steampunk map - i'd like the aviatrix unit to be able to transport hero units but not any other...

      B 1 Reply Last reply Reply Quote 0
      • B Offline
        beelee @cameron
        last edited by

        Hi @cameron

        The "pact of Steel 2" xml explains how transports work.

        In "unitAttachments" units that can be transported have a "transportCost".

        Units that can transport have a "transportCapacity". If the cost is higher than the capacity, the unit can't be transported.

        1 Reply Last reply Reply Quote 0
        • cameronC Offline
          cameron
          last edited by

          yeah, i know how transport cost / capacity works.
          what i want to know is if there is a way to block/allow specific units.

          RogerCooperR 1 Reply Last reply Reply Quote 0
          • RogerCooperR Offline
            RogerCooper @cameron
            last edited by

            @cameron You give aviatrix a transportcapacity of 1 and give heroes a transportcost of 1. Other units would higher numbers.

            1 Reply Last reply Reply Quote 0
            • cameronC Offline
              cameron
              last edited by

              again, i really do understand how transport cost works.

              what i want is a unique relationship between the (in this case) the aviatrix (air transport unit) and the hero (land unit) that doesn't affect how the hero interacts with other transports.

              i'm guessing that this is simply not an option. 😞

              but thanks for the replies, guys. 🙂

              A 1 Reply Last reply Reply Quote 0
              • A Offline
                Azimuth @cameron
                last edited by

                @cameron transport cost is definitely the answer to what you are looking for 😉 I got that you understood how the property works, but you probably haven't seen how you can play with it to reach your goal.

                What you need to do is just to find some math that makes your hero transportable by aviatrix but keep the other interactions unchanged.

                If you give more details (like a table of which units you want to be transported by which), I am sure we can help you finding the solution.

                cameronC 1 Reply Last reply Reply Quote 1
                • cameronC Offline
                  cameron @Azimuth
                  last edited by cameron

                  @azimuth
                  transport cost is definitely not the answer i am looking for; which doesn't mean that it can't provide a solution... but i suspect a rather ugly one. 😜

                  the problem is there are rather a lot of units:
                  https://docs.google.com/spreadsheets/d/1NnFVfK3eOrjdNwnmiA4q6ytV6VHLN8mNbgTetywtHm4/edit?usp=sharing

                  am i right in assuming that transport costs must be integers?
                  maybe i'll see what happens if i make them 0.9... otherwise i guess i could just multiply all the other values by 10 and make aviatrix/hero 9... hmm... that would allow one extra hero to be transported on the largest transport but that's prob fine - such an edge case it'll most likely never happen.
                  i really wish my OCD wasn't triggered in such silly ways... 😉

                  edit:
                  so i went with 100x for everything and 99 for the aviatrix and hero. seems to work. 🙂
                  i still wonder why only integers.
                  and why we can't just have toggles for everything.

                  thanks, y'all.

                  1 Reply Last reply Reply Quote 0

                  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
                  Powered by NodeBB Forums