This is a simple routine to re-register the name all unmanned ships at StarDock (including your presently manned ship) so that their corresponding ship number is displayed along with its name. Several checks are performed, checking on hand cash, turns available, xport access to the ship, etc.
So basically the ship name for ship #: 55, "USS Enterprise", becomes "USS Enterprise-55".
This script is inspired by a really nice idea Hammer practices, which is handy when working with ships on a frequent basis.
Notes:
--This is the first version, not all aspects have yet been thoroughly tested; but in general it works.
--It only accounts for ship names up to 15-characters long. Additionally, if the ship name cuts the ship number off, if that ship is in the sector the next time the script is ran it will re-register it and corrupt the ship name in the process (e.g., "My Gobblygook-50" would become something like "My Gobblygook-5-50".) (As the TW tow/xport display only provides enough space for the 15-characters.) Otherwise previously processed ships will be bypassed.
(to better solve this I think I am going to change the way it search the name to instead just look for a - within the last four spaces of the ship name. It is still not full proof but does further decrease the odds of the issue arising.)
--Place file in "Mombot\Commands\General"
--Command is: lships while at the StarDock with whatever number of ships present, including your currently occupied ship.
Attachment:
lships.cts [8.42 KiB]
Downloaded 549 times
Attachment:
lships.ts [5.49 KiB]
Downloaded 556 times