[Home] [Downloads] [Search] [Help/forum]


Register forum user name Search FAQ

Gammon Forum

[Folder]  Entire forum
-> [Folder]  MUSHclient
. -> [Folder]  Plugins
. . -> [Subject]  Wearable Inventory

Wearable Inventory

It is now over 60 days since the last post. This thread is closed.     [Refresh] Refresh page


Posted by Kresslack   (70 posts)  [Biography] bio
Date Tue 20 Apr 2010 01:42 AM (UTC)
Message
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?
[Go to top] top

Posted by Twisol   USA  (2,257 posts)  [Biography] bio
Date Reply #1 on Tue 20 Apr 2010 02:02 AM (UTC)
Message
I think either Sunflame or Trevize (both from Achaea) did something exactly like this. It's definitely a useful idea, and fairly workable. :)

'Soludra' on Achaea

Blog: http://jonathan.com/
GitHub: http://github.com/Twisol
[Go to top] top

Posted by Kresslack   (70 posts)  [Biography] bio
Date Reply #2 on Tue 20 Apr 2010 02:32 AM (UTC)

Amended on Tue 20 Apr 2010 02:43 AM (UTC) by Kresslack

Message
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.
[Go to top] top

Posted by Kresslack   (70 posts)  [Biography] bio
Date Reply #3 on Thu 22 Apr 2010 02:00 AM (UTC)
Message
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.
[Go to top] top

Posted by Twisol   USA  (2,257 posts)  [Biography] bio
Date Reply #4 on Thu 22 Apr 2010 02:49 AM (UTC)
Message
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.

'Soludra' on Achaea

Blog: http://jonathan.com/
GitHub: http://github.com/Twisol
[Go to top] top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


13,238 views.

It is now over 60 days since the last post. This thread is closed.     [Refresh] Refresh page

Go to topic:           Search the forum


[Go to top] top

Quick links: MUSHclient. MUSHclient help. Forum shortcuts. Posting templates. Lua modules. Lua documentation.

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.

[Home]


Written by Nick Gammon - 5K   profile for Nick Gammon on Stack Exchange, a network of free, community-driven Q&A sites   Marriage equality

Comments to: Gammon Software support
[RH click to get RSS URL] Forum RSS feed ( https://gammon.com.au/rss/forum.xml )

[Best viewed with any browser - 2K]    [Hosted at HostDash]