MV Plugin Request: Item Menu: Custom Categories

Indrah

Megane Berserker
Veteran
Joined
Mar 5, 2012
Messages
2,078
Reaction score
2,063
First Language
Spanish
Primarily Uses
RMMV
Hey there. I'm looking to get a plugin (or any kind of fix) that will do, at least, a simple reordering of the item menu.

The default item menu sorts things by Items/Weapons/Armors/Key Items.

I always found this to be very unwieldy, since I never have that many weapons that they should take a whole slot, or don't need that many "key" item spaces, or even any sorting at all.

->At the very least, I'd like to at least be able to make it so Weapons and Armors share a sorting space, like so: Items/Equipment/Key items.

Now, if it's possible and as a (I assume) more complex format, I'd like to be able to personally set the divisions and define what items are what, so I could, for example make the categories:

-Items (same as default)

-Equipment (all weapons and armor)

-Special (regular key items)

-Documents ("book" items which explain the basics of the game, lore, quest tracking reminders, etc).

Or many other user-made variables, such as for example:

-All items

-Healing items

-Attack items

-Weapons

-Armors

-Accessories

-Books

-Keys

-etc.

I'd also like to know if it's possible to completely remove the item sorting and make it a direct list of all your items (useful for games that don't have a lot) but this bit is not a priority at all for now, so ignore it if it's too much trouble.

In practice I imagine these would either be recognized with notetags (by adding a category tag to each item).

At least in Ace there were scripts which covered this (for example over HERE) but I do not think there is anything like this avaliable for MV so far. 

Thanks a bunch, and please poke me if you need more information or I didn't explain myself properly.
 
Last edited by a moderator:

Iavra

Veteran
Veteran
Joined
Apr 9, 2015
Messages
1,797
Reaction score
863
First Language
German
Primarily Uses
A first, quick version: http://pastebin.com/YDj5riut

Configuration is done via configuration file, which is formatted like this:

[ { "label" : "Category 1", "items" : [":item", "myCategory"] }, { "label" : "Weapons & Armors", "items" : [":weapon", ":armor"] }]There are four reserved categories:":item" - All items.

":weapon" - All weapons.

":armor" - All armors.

":keyItem" - All key items.

Everything else is matched via notetag. The tag itself can be configured via plugin parameter "Notetag". The default is "category" and thus you could put items in "Category 1" above via this tag:

<category myCategory>Note, that this plugin overrides Window_ItemCategory.prototype.makeCommandList and Window_ItemList.prototype.includes, so it might currently not be compatible with other plugins, that deal with the item menu.Plugin documentation is currently non-existent and so far there is no option to remove categories entirely (i will add this later, though).
 
Last edited by a moderator:

Indrah

Megane Berserker
Veteran
Joined
Mar 5, 2012
Messages
2,078
Reaction score
2,063
First Language
Spanish
Primarily Uses
RMMV
Configuration is done via configuration file
@iavra Sorry but I have no idea how to use this category file thing OTL 

I've tried making a itemCategories.son file with the contents as stated and throwing it in the plugin folder but it still doesn't seem to register, and I have no earthly idea of what is it I'm doing wrong.

For reference, I have an absolute zero knowledge of how plugins work, so if there's some "common knowledge" about these so called configuration files, I have NO IDEA what it is ><

Thanks all the same. I'm pretty sure the problem here is on my side due to error in the implementation anyway OTL

@Ryuk It works! it worrrrks! That's one less thing to worry about.

Thanks for the super-fast response! I was really not expecting this to go so easily. 
 
Last edited by a moderator:

Iavra

Veteran
Veteran
Joined
Apr 9, 2015
Messages
1,797
Reaction score
863
First Language
German
Primarily Uses
Ah, sorry, i should have explained it better. Assuming your file is named "itemCategories.json" and is placed in "js/plugins", you'll need to set the plugin parameter "Configuration File" to "js/plugins/itemCategories.json".
 
Last edited by a moderator:

Indrah

Megane Berserker
Veteran
Joined
Mar 5, 2012
Messages
2,078
Reaction score
2,063
First Language
Spanish
Primarily Uses
RMMV
Well that explains what I was effing up. I left it as "itemcategories.son" only XD
 

Ryuk

Veteran
Veteran
Joined
Nov 8, 2015
Messages
59
Reaction score
13
First Language
French
Primarily Uses
RMMV
@Indra, no problem i'm happy for you :)
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

People3_5 and People3_8 added!

so hopefully tomorrow i get to go home from the hospital i've been here for 5 days already and it's driving me mad. I miss my family like crazy but at least I get to use my own toiletries and my own clothes. My mom is coming to visit soon i can't wait to see her cause i miss her the most. :kaojoy:
Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.

Forum statistics

Threads
105,868
Messages
1,017,088
Members
137,585
Latest member
Reversinator
Top