[edit 2016 January 04] I released an alpha and created a new thread in Mod Announcments: https://forums.kronosaur.com/viewtopic. ... 82&p=67019
Original post below:
---
I'm working on a patch spider installer that will automatically use and remove patch spiders based on shield status, armor damage, and whether hostiles are detected within --- ls radius.
Ideally, I'd like for it to be a slotless device that automates installation for all external armor repair devices. Reasons: compatibility with other mods, ability to handle mod versions of the patch spider, and when I implement settings, the settings can be changed for the device instead of for each patch spider individually.
I'm running into a problem with objEnumItems, though. The criteria don't seem to be granular enough to distinguish between armor repair devices and other miscellaneous devices (see bottom of this post).
Is there a way to distinguish between an armor repair device and, say, a jumpdrive? I'd prefer not to have to make any assumptions about the names and UNID's of the devices, as the point of making this mod a device instead of overwriting the patch spider is compatibility with other mods. Thanks if you can offer assistance!
http://wiki.kronosaur.com/modding/function/legendItem Criteria
When retrieving items based on item criteria, these are the flags used:
* all categories
a armor
b miscellaneous devices (Patch Spider, Jumpdrive, Enhancers)
c cargo hold
d device (weapon, shield, drive, etc.)
f fuel
l launcher
m missile/ammo
p weapon, primary (excluding launchers, same as w~l)
r reactor
s shields
t miscellaneous
u useable (armor coating, ROM, etc.)
v drive
w weapon (including launchers)
I is installed
D is damaged
N is not damaged
S is usable
V is Virtual
U is not installed
Some special attributes
canBeDamaged:true only items that can be damaged
damageType:Laser only items that have a certain damage type. Also limits to weapons (obviously)
unid:0xXXXX only items with matching UNID
In addition there exists a special syntax for negating, filtering on levels etc…
~ Negate. Eg. w~l will match weapons that are not launchers.
^ Force. Eg. a^u will match armors that are usable
< and > Less than and Greater than. There are several ways to use these operators
<=$500 Items that cost less than 500 credits
>=#25 Items where there are greater than 25 in the stack. Used when getting items from objects
<=6 Items below level 6
L New in 1.04. Level Constraint. Eg. L:1-5 selects levels between 1 and 5 (inclusive). Replaces above syntax.
F Rarity. Eg. F:cu will only select Common or Uncommon items