Wearable Inventory

Posted by Kresslack on Tue 20 Apr 2010 01:42 AM — 5 posts, 20,069 views.

#0
So I have an idea, but have no idea how to bring it to existance. Mainly, it's a pain when you play a game which requires constant anti-theft udpate(things decaying, new things being bought). So my idea was for some sort of system that can check your inventory using Info Inventory so it gets items and numbers, then create triggers to automatically wear those items when removed. Such as if you did II:

You are holding:
a long, curved pipe pipe123
a long, curved pipe pipe234
a long, curved pipe pipe345

You are wearing:
a wide brimmed fedora hat hat123
a plain leather belt belt234
a crimson tunic tunic345
black leather trousers trousers456

It would catch specific item types(a plain leather belt) then make a trigger to send: wear belt234 if it matches on 'You remove a plain leather belt.'

Then if you do II and it sees that a item that used to be worn is no longer being worn, to remove it from the triggers.

I don't know if this is possible, but it would be a very neat project and especially very useful. Any ideas?
USA #1
I think either Sunflame or Trevize (both from Achaea) did something exactly like this. It's definitely a useful idea, and fairly workable. :)
#2
Hmm...I'm usually quick to know when Trevieze releases a new plugin. I know he was going to put his old page back up, but I haven't seen anything like this yet. I'll have to hit him up.

EDIT:

Found it. Been away for a while. Heh. Thanks.
Amended on Tue 20 Apr 2010 02:43 AM by Kresslack
#3
Trev's plugin is helpful, but you still have to manually put the items in. Was wondering if it were possible to make a script to run down II(Info Inv) and in the You are wearing: section to update triggers for wearable items. If you're wearing something that doesn't have a trigger to rewear by number, it adds one. If there's a trigger for something you're not wearing it tries to wear it and if it can't deletes the trigger.

That sounds kinda complicated though, so was wondering about opinions on if it were possible, and if so to what extent. Thanks for any answers.
USA #4
It would be really complex, in my opinion, to tell if an item can be worn just by looking. Not to mention, some items (like perfumes) are used up as soon as you wear them.

Personally, I'd just add an item to the list when you wear it, and remove it when you explicitly unwear it. An occasional check on INFO WEAR would be good to keep the list updated, in case things decay for instance.