This function forces you to pick either "regular" or "key" items but is it possible to show the list of BOTH the regular and the key items instead of just one or the other?
MZ Select Item
Javascript/Plugin SupportI think CTB had one for it, otherwise, you can combine 2 types
at once.
so it should be doable with his plugin and a small modification to it.
maybe there is a scriptcall otherwise to call item type keyitem or regular
and return both to them.
at once.
so it should be doable with his plugin and a small modification to it.
maybe there is a scriptcall otherwise to call item type keyitem or regular
and return both to them.
Caethyril has one for MZ, but I think you'd need to put a notetag to all your items if you want to use it.
forums.rpgmakerweb.com
Caethyril's MZ Plugins
Caethyril's RMMZ Plugins Updated 2026-01-20: Cae_Drawing v0.95 Looking for my RPG Maker MV plugins? Click here! Features :kaohi: I've made some plugins for RPG Maker MZ! Here's a list of them with brief feature descriptions. The dates are when each plugin was last updated. For plugins marked...
forums.rpgmakerweb.com
Hey there,
I encountered a similar problem in my game and solved it using comment tags and a script.
In this example, I use a comment tag <Select Item ITypes: 1, 2> for "regular" and "key" items, and the game automatically filters them during the Select Item event. No need to tag every item in your game separately.
(Side note: Notice that I also place the comment BEFORE the Show Text command that preceeds the Select Item command. This is because I don't want the Show Text box to disappear when the Select Item box shows up. This is entirely optional though.)
If you'd like, I can put my script in a short plugin file and send it to you.
I encountered a similar problem in my game and solved it using comment tags and a script.
In this example, I use a comment tag <Select Item ITypes: 1, 2> for "regular" and "key" items, and the game automatically filters them during the Select Item event. No need to tag every item in your game separately.
(Side note: Notice that I also place the comment BEFORE the Show Text command that preceeds the Select Item command. This is because I don't want the Show Text box to disappear when the Select Item box shows up. This is entirely optional though.)
If you'd like, I can put my script in a short plugin file and send it to you.
Yes, that would be nice, thank you.
JavaScript:
(() => {
const CommentTag = Object.freeze({
SELECT_ITEM_ITYPES: "Select Item ITypes",
});
const _Game_Interpreter_setupItemChoice =
Game_Interpreter.prototype.setupItemChoice;
Game_Interpreter.prototype.setupItemChoice = function (params) {
const commentObject = {
note: this._comments,
};
DataManager.extractMetadata(commentObject);
if (CommentTag.SELECT_ITEM_ITYPES in commentObject.meta) {
const filters = String(commentObject.meta[CommentTag.SELECT_ITEM_ITYPES])
.split(",")
.map(Number);
this._comments = "";
$gameTemp._multiItypes = new Set(filters);
}
return _Game_Interpreter_setupItemChoice.call(this, params);
};
const _Window_ItemList_makeItemList = Window_ItemList.prototype.makeItemList;
Window_ItemList.prototype.makeItemList = function () {
if ($gameTemp._multiItypes?.size) {
this._data = $gameParty
.allItems()
.filter((item) => $gameTemp._multiItypes.has(item.itypeId));
if (this.includes(null)) {
this._data.push(null);
}
delete $gameTemp._multiItypes;
} else {
_Window_ItemList_makeItemList.call(this);
}
};
})();
Here you go. Just use the tag <Select Item ITypes: 1, 2> before any Select Item command and it will work. Or feel free to change the tag in the script to whatever else you want.
EDIT: Obviously I should mention that
1 = Regular Item
2 = Key Item
3 & 4 = Hidden Item A & B
Thank you very much.
Original thread: https://forums.rpgmakerweb.com/threads/select-item.178143/