Zip file :: SPK Package
Rename Ships with Expressions is a script to rename ships using variable expressions. This allows you to batch rename ships and produce names that will be both unique and descriptive. There are currently 13 expressions that can be used as "shortcuts" to context-dependent text, 9 clipboard slots, and colors. Besides the expressions you can also use whatever plain text to make the final name.
There are two RSwE commands available. The main command can rename ships selected by class in the entire universe or your current sector, and also to rename a single ship. The second command will rename formations (with options for entire formations or just the ship's followers), ships with a carrier or station as their homebase, or docked ships. This uses a incoming message with the relevant options as buttons.
List of RSwE Expressions
*ON : Old name
*TN : Type Name (Raptor, Nova Raider, Demeter Superfreighter, etc)
*TA : Type Abbreviation (Ra, NR, DS, etc)
*CL : Class Name (M1, M3, TS, etc)
*FP : Formation Position (alpha, beta, etc)
*FL : Formation Leader
*NN : Incrementing unique number
*ZN : Incrementing number with leading zero
*RN : Roman numerals
*SN : Starting number for other number functions
*HB : Home Base
*SC : Ship's current sector
*ID : ID Code
*Y1 - *Y9 : Your text clipboards
Color text :
*KW White *KR Red *KM Magenta *KY Yellow
*KG Green *KC Cyan *KB Blue *KX Normal
*KK Krazy Kolor (random color on each instance & ship)
Example of use: I want to rename five ships (2 Nova Raiders, 1 Mamba, and 2 Buster Vanguards) in a sector. There are also two of my frieghters in that sector. I select "Rename Ships w Expressions" from the General command console of one of those ships. Then I enter 2 for sector-based renaming. I choose "Fighter" from from the Class list, to exclude the freighters. I then enter "*CL-*TA Orion *NN" as the RSwE Name String. The fighters will now be named "M3-NR Orion 1", "M3-NR Orion 2", "M3-Ma Orion 3", "M4-BV Orion 4", and "M4-BV Orion 5".
If you like this script and have a request for a new expression you'd like to have, let me know! Funny note: I had the idea for this script in a single flash when I woke up from a afternoon nap. I grabbed a pen and scribbled the first expression list on the back of an envelope.
Code: Select all
Version History 1.0 - First Release 1.1 - Changed command method to only use 2 slots, as recommended by LV Bugfix in station renaming 1.2 - Added clipboards & colors 1.3 - Formation & followers renaming New expressions based on formation Added 2 colors & random colors Changed alternate command to use incoming question / callback 1.4 - Changed clipboards to be able to use RSwE expressions themselves Rename single ships & target feature Strip colors when using the *ON old name expression New expressions for starting number and roman numerals