Script: Ware Manager
Created: 28/08/2011
Version: 1.10
Author: Cycrow
Game: X3: Terran Conflict
=============================================
Installation:
Optional: Community Plugin Config
Install via the Plugin Manager
- 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.
- To use the manager, you simply call the managers script, plugin.waremanager.add, eg:
ArgumentsCode: Select all
= 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
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
- If you have the Community Plugin Config installed, you will get 2 additional extras found in this menu.
The first is to remove a ware from the universe, simply select the ware and it'll be removed from all stations and ships
The second, will remove all unused wares, this will find any wares that dont have proper texts, ie ReadText-XX, SS_WARE* or ZA_EMP* and remove them all