Well, I've been wondering if it's possible to have different shops in one station. In the station I'm making, I want a weapons shop, a defenses shop, a technology shop, and a general shop, but I don't know if that's possible.
Make the shops as dock panes.
Use the (setq gShowCriteria ...) before calling the &dsExchangeBuySell; dockscreen.
Here is the list of the letter codes:
a armor
d device (weapon, shield, drive, etc.)
f fuel
l launcher weapon only
m missile
r reactor
s shields
t miscellaneous
u useful (armor coating, ROM, etc.)
v drive
w weapon (including launchers)
I is installed
D is damaged
N is not damaged
S is useable
U is not installed
Means that "*NU" is * (All Items), N (Not damaged), and U (not installed)
Then the modifiers (from the item's modifiers) go after the letter codes.
+ must have this modifier
- must not have this modifier
"*NU -military" would be all undamaged uninstalled items that don't have military modifier. A '+' instead of the '-' would make it so that the items Must Have military modifier.
The station would have to have all of the items for all of the different shops in it's [Items]...[/Items], then use the (setq gShowCriteria ...) on each dock pane to limit which ones of the station's inventory would work for the individual 'shop' pane's buy/sell screens.