Navigation

    TripleA Logo

    TripleA Forum

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

    transport units: how to limit which units can be transported

    Map Making
    4
    7
    319
    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.
    • cameron
      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
        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
        • cameron
          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.

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

                cameron 1 Reply Last reply Reply Quote 1
                • cameron
                  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
                  • 1 / 1
                  • First post
                    Last post
                  Copyright © 2016-2018 TripleA-Devs | Powered by NodeBB Forums