How it works:
Once you have chosen your template ships all ships in the wing with both supply command software and a transporter device will be temporally removed from the wing. Since I've been using Luckie's scripts so much lately I will call this group the supplier group. The ships remaining in the wing will be referred to as the consumer group.
The script then checks to see if any of the consumers are without shields, if so the suppliers supply all the consumers with the shield of the template ship.
Following that, all the consumers will then fly to the nearest station that sells cargo, engine, and rudder upgrades and buy the max their ship can have. The consumers will then fly around from station to station buying all the same equipment the template ship has. Equipment in this sense means the software type upgrades, fight command software mk1, navigation command software mk1, ect. that are listed in the ship equipment section of the in-game encyclopedia. During this period the suppliers will remain idle. Once a consumer has finished buying all the equipment it needs it will return to where it started.
After all consumers have purchased the required equipment the suppliers will equip all the consumers with all the remaining items that the template ship has and they do no: weapons, ammo, missiles, shields, and anything else in the template ships cargo hold. Once a supplier is finished with a consumer it will be assigned another one until all consumers have or have had a supplier assigned to them.
Each consumer is only assigned one supplier to equip it, regardless of whether or not the supplier has enough cargo space, or the right size of cargo hold to perform the task.
If no ships in the wing have both supply command software and a transporter device, only the upgrades and equipment portion of the script will have any effect.
Once all consumers have been equipped the suppliers will be returned to the wing and the script will exit. If you stop the script before this happens the suppliers will not be automatically returned to the wing.
Note: Suppliers will not equip each other, nor will they purchase upgrades or equipment, this is intentional.
Uninstall previous versions before installing this version.
v0.03 Script pack Download:
[ external image ]
This is a fully functional version, just need more people to test it.
Change log:
v0.03
-Combined previous two scripts into one command.
-Fixed a bug that would cause a ship to be skipped.
-Fixed a bug that would case a ship to skip buying some equipment if the next item on its list was at its current station.
Older versions:
morbideth wrote:This is an extension of the equip like command. It add an addition command in the wing -> special menu, "Equip like ext". When used this will command all ships in the wing to go buy each software upgrade the selected ship has, but first they will go buy the max amount of cargo, engine, and rudder upgrades they can. (the amount is hard coded atm, it will be changed in later version) Once a ship has finished buying all the equipment it will return to where it started.
This only works for upgrades and equipment; lasers, missiles and other cargo are not considered.
At least one ship in the wing must have supply command software. This command will still run on all ships if they don't have supply command software, but one ship must have it in order to tell the others where to go.
Script pack Download:
[ external image ]
If you find any bugs please inform me here.
Commands
WING_COMMAND_SPECIAL_29
t file
7529
-------------------------------------------------------------------------------------
After further inspection (read I tried to use it) I realized the standard wing equip like command was broken. Below you will find a fix, this is an early release. It has not been extensively tested as I am running out of ships that need equipping and stuff to equip them with.
Also, this is not a complete bug fix for all the equip like problems, it is still only slightly better then the single ship equip like command as it uses egosoft scripts.
How it works: all ships in the wing with BOTH a transporter device and supply command software will be used to equip the other ships, these ships will only be used to equip the others, no be equipped themselves. Each of the ships without those two upgrades will receive one, and only one ship to equip them. If you have more then one ship with both upgrades they will be assigned to different ships. Once a ship finishes equipping another ship it will be assigned to any remaining ships that need equipped within a few seconds.
Unlike the standard command this does not do equipment, you are expected to you the above extension script for that. Like the standard command this does not check the cargo size of the ship before assigning it to equip a ship. Meaning if you try to equip a wing of ships with L and XL size equipment using 2 L cargo size and one XL cargo size ship. It will not use the L cargo size ships to equip what they can, then use the XL size cargo ship to equip the rest. Each ship will be given a different assignment and what the L cargo size ships cant carry will simply be skipped on their ships.
Currently these are two separate and independent scripts, they will be bundled into one as soon as I can get them to work together.
[ external image ]