added a bit a 'run and hide from the enemy' code ..
updated the ReadMe
--------------------------------------
(12/17/05)
changed the 'create list' command so it actually works ..
ran it on a test setup of stations for a bit .. and can say it works fine ..
still it never hurts to backup saves ..
---------------------------------------
RS.UPS
A delivery script.
This script allows you to deliver the products off a Factory or Dock to other Factories that use that product as resource or to other docks.
ReadMe wrote: -RS.UPS-
This script is for 'delivering' the Homebases Products to other playerowned stations.
It comes with 2 commands;
-UPS Delivery Service
-UPS Create List
-UPS Delivery Service
This command can be found under the trade commands and requires a ship to have Trade Command Software Mk2
and a Home-'Station'.
When selected it will ask you to select (one of)the HomeStations product(s).
This ship will now deliver this product to all Factories that use this ware as resource and to Docks that have it as Product.
These ships when equiped with a Jumpdrive and Navigation Command Mk1 will,
if possible use there Jumpdrive to get to any targetstation not in sector.
So think twice about giving them the 'Nav Com'and/or Jumpdrive.
Also key to the Jumpdrive;
Ships only use it if the amount off Ecells needed to jump to and back from the target station,
isnt larger than 1/6 their baysize.
These ships will deliver goods to the station in their homebases delivery list with the highest demand for this product.
However do note; 'Size does matter'
I mean; these ships work with a kinda logic that tells them not to deliver if they cant deliver up to x% off their baysize.
Where the state off demand is a key factor.
To give you some insight into it.
When the the target station is filled for;
>75% --> ships will wait
>50% --> ships will only deliver if they can 'fill up' the target station or they can carry a 'full load'
>25% --> ships will deliver if they can deliver '1/2 a load' or more.
<25% --> ships will deliver if they can deliver '1/4 a load' or more.
This ship will also scan for enemies that could be targeting it,
and if it finds them a threat, it tries to jump (if it can and its destination isnt in sector),
else it will find the nearest station and try to hide there for a while.
If the ship cant or shouldnt jump and can also not find a 'hiding-place', than it will ask you for help.
These ships will let you know if they cant reach their target for some reason or cant dock for some reason.
Also when their hull is 85% or below they will let you know.
This command is NOT available on the playership.
-UPS Create List
This command can be found on your Factories and Docks.
When selected it asks you to select a station.
If you select the station itself, than the 'Delivery List' will be printed out into your logbook.
If you select a station that is already in the list, that station is removed from the list.
If you select a station that is not in the list, that station is added to the list.
This list is required for the 'UPS Delivery Service' command to work.
Textfile used; 8602
Textpage used; 8602
Commands used; 461 and 1140
get it here;
http://www.geocities.com/g5_11/X3/RS.UPS.zip
G