I have a transport that I want to dock with ten cargo containers, then jump out when it has docked with everything that hasn't been destroyed. I could set up nine different events, checking whether they've been docked for the requisite amount of time, ordering the transport to undock, then in the next event, which is triggered when they are undocked, ordering it to dock with the next ship.
However, that's seems unnecessary. I'm looking for a shorter, neater way to do this, but currently the transport, which has initial orders to dock with the first one, docks and undocks from that correctly, but then has no more orders and just sits there doing nothing. I keep track of the how many have been docked with and how many have been destroyed, and when their sum equals 10, the transport jumps out.
Also, do I need to invalidate anything that's destroyed from the list of potential dockees? I just realized that could be a problem.
Screenshots of the relevant events are attached. Thanks.
[attachment stolen by Russian hackers]