MV How do I erase these extra inventory slots?
JS Plugin Requestsserveral ways, you can open the itemScene.js from your project or
copy the function and rule those out if not needed.
but why do you want to rule them out?
are you using only "key items?" or key items and equip?
because there are serveral methodes on what to show and hide.
depending what you exactly need.
copy the function and rule those out if not needed.
but why do you want to rule them out?
are you using only "key items?" or key items and equip?
because there are serveral methodes on what to show and hide.
depending what you exactly need.
I only really want to have 2 separate categories of items. The ones I set to a blank space are (armor) and (key items)
this removed the item category of "Item" and "weapon".
I didn't test it, but should work while I aliased teh category function
just in case.
if it doesn't work, I missed something, but this is a really basic version.
EDIT:
plugin removed due a minor mistake, download the one from caetyril below!.
I didn't test it, but should work while I aliased teh category function
just in case.
if it doesn't work, I missed something, but this is a really basic version.
EDIT:
plugin removed due a minor mistake, download the one from caetyril below!.
@ShadowDragon close, but not quite. 😅 Yours adds a couple of extra commands: it invokes the original method (all four commands) then adds two more. It works as intended if you don't call the original method, but that will conflict with other plugins that alter this method.
Instead, I suggest aliasing that window's
See attachment~
Instead, I suggest aliasing that window's
addCommand method: when a command is added to the item category window, first check whether the command's symbol should be skipped. If it shouldn't, then go ahead as normal; otherwise, do nothing. 👋See attachment~
JavaScript:
/*:
* @plugindesc Remove specific item categories
* @author Caethyril
* @help Free to use and/or modify for any project!
*/
(function(alias) {
var IGNORE = ['armor', 'keyItem']; // <- edit to change ignored categories
Window_ItemCategory.prototype.addCommand = function(name, symbol, enabled, ext) {
if (IGNORE.indexOf(symbol) < 0) alias.apply(this, arguments);
};
})(Window_ItemCategory.prototype.addCommand);
// Change column count (default 4).
Window_ItemCategory.prototype.maxCols = function() { return 2; };
Thanks a ton guys! Great code!!
This may be stupid but where should I put the js files?
This may be stupid but where should I put the js files?
They're plugins; import them like any other plugin. Here's a relevant section from the RMMV help:
Or this guide (it's for RMMZ but the importing part is the same as in RMMV):
www.rpgmakerweb.com
Or this guide (it's for RMMZ but the importing part is the same as in RMMV):
Using Plugins in MZ | The Official RPG Maker Blog
In some of our recent Resource Spotlights, we’ve looked at some of the amazing plugins creators have shared with all of us to use to improve our games. It’s great to know about all these options, but let’s take a closer look at plugins for those new users who aren't familiar with how to use them.
Moved to: Plugin Requests
@caethyril I checked your code and is different in mind, also a friend
point out to remove the alias and just rule out the other 2 which was a mistake
on my end, and had to much on my end, but your code looks intresting as well.
but I keep learning how some things are done.
Thank you for the change required, (I will remove mine to avoid confusion).
point out to remove the alias and just rule out the other 2 which was a mistake
on my end, and had to much on my end, but your code looks intresting as well.
but I keep learning how some things are done.
Thank you for the change required, (I will remove mine to avoid confusion).
Original thread: https://forums.rpgmakerweb.com/threads/how-do-i-erase-these-extra-inventory-slots.139254/