transport units: how to limit which units can be transported
-
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...
-
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.
-
yeah, i know how transport cost / capacity works.
what i want to know is if there is a way to block/allow specific units. -
@cameron You give aviatrix a transportcapacity of 1 and give heroes a transportcost of 1. Other units would higher numbers.
-
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.
-
@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.
-
@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=sharingam 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.