VoteByGaming Posted June 19, 2012 Share Posted June 19, 2012 Just as the title says, I'm trying to get an accurate count for inventory objects. Normally, it'd just be GetItemCount <object> but I've run into a snag... If I have two items of differing amounts of health (weapons or armor, specifically) but the same base object, I have no way of separating them. It simply lists them as "2" when the above-mentioned code runs. How do I determine the references (or create ones if necessary) to the objects with differing health amounts? I've been looking up BuildRef but that seems to be a dead end. How does one specify the reference of each item in one's inventory? I think it's pretty obvious that the inventory items have a reference or somewhere that it stores its health values. I just can't seem to find the right code to extract that information... Anyone know? Summary: How do I find the reference of the same base objects with differing health values? Link to comment Share on other sites More sharing options...
Gribbleshnibit8 Posted June 22, 2012 Share Posted June 22, 2012 They do store that data somewhere. Somewhere very secure it seems. To my knowledge, nobody has been able to fully crack where that information is stored or how to read it and do something with it. I believe I've talked with Ian or behippo about this at one point in the past (I discussed it with someone very knowledgeable about script extender stuff at any rate). To answer you question, you can't. There's no way to differentiate the items in inventory by health value. I suppose you could find a way to fudge it with an equip and check, since you can check the health of the currently equipped weapon. But that poses issues in script speed and the super rapid equip/unequip of the weapons. Link to comment Share on other sites More sharing options...
Recommended Posts