View Full Version : Scripts Ware Manager : V1.00 : 2009/05/31

18-07-2009, 03:33 PM
Script: Ware Manager
Created: 31/05/2009
Version: 1.0
Author: Cycrow
Game: X3: Terran Conflict

:arrow: Installation:

http://www.egosoft.com/img/button_download.gif (http://cycrow.thexuniverse.us/tcscripts/WareManager-V1.00-31.05.2009.spk)

Install via the Plugin Manager

:arrow: Introduction:
This script is for use by other scripters to make it easier to and and remove the use of wares without the need for uninstall files
This manager is only useful for scripters, and for those scripts that use it.

The manager will add your chosen ware to the selected stations, based on station type and race, ie, you can add them to all Boron Equipment docks for example.
both built in wares and EMP wares will work. For emp wares, you can set it to maintain a quantity, this will mean the wares will always be available to buy.

:arrow: Usage:
To use the manager, you simply call the managers script, plugin.waremanager.add, eg:

= call script 'plugin.waremanager.add' station type = Equipment Dock, Race = Argon, Product to Add = My Ware, amount = 1, maintain amount = [TRUE]

Station Type: This is the station type to add the ware too, can be a specific station type, like "Argon Equipment Dock", or a station class, like "Equipment Dock" or "Dock"
Race: The owner race of the stations, will add to all stations owned by this race that matches the station type
Product: This is the ware to use
Amount: This is the starting amount, when its added, they will be given this amount in stock at the start for each station
Maintain amount: This is the option to have the manager maintain the quanity. If set to TRUE, then the manager will keep the stations stocked up to the starting amount

Setting the amount to -1 would fill the station to the maximum.

This should be called in your setup script, the ware list is whiped on each load, so this needs to be called each time, anything that isn't added after the startup will be removed.

There is no need to remove your wares from stations, once your script is removed and the setup script is no longer added your ware to the list, the manager will automatically remove the ware from all stations