(tl;dr: How can I hide or bypass the item category selection window, while preserving separate item categories?)
Hello!
In my game, "Key Items" have been renamed "Apps" and allows players to access tutorials screens, music player, note-taking, fast travel, etc. Apps are accessible from the main menu because there will be some situations where players might need to access Apps repeatedly (solving puzzles etc).
I'm using CGMV's menu plugin, as well as this bit of script that I figured out from searching these forums:
From the main menu, selecting "Items" will open up normal Item inventory and selecting "Apps" opens up the Key Items inventory -- so far so good!
However, I want to hide / bypass the item category selection window, to save players the button press and to prevent players from switching between items/equipment/key items.
I tried Mr. Trivel's No Item Categories plugin (by the way huge thanks to Mr. Trivel for so many excellent plugins), but it presents two problems for me: firstly it collapses all the item categories together, and secondly it conflicts with the script I posted above.
I'd be fine with collapsing Items / Weapons / Armor into the same menu category, but keeping Apps separate will keep the user experience tidy.
How can I hide or bypass the item category selection window, while preserving separate item categories? I feel like this is probably pretty simple, but I'm quite new to working with javascript and code in general.
Hello!
In my game, "Key Items" have been renamed "Apps" and allows players to access tutorials screens, music player, note-taking, fast travel, etc. Apps are accessible from the main menu because there will be some situations where players might need to access Apps repeatedly (solving puzzles etc).
I'm using CGMV's menu plugin, as well as this bit of script that I figured out from searching these forums:
Code:
const alias = Scene_Item.prototype.start;
Scene_Item.prototype.start = function() {
alias.call(this);
if($gameSwitches.value(5)){
const symbol = $gameVariables.value(1);
this._categoryWindow.selectSymbol('keyItem');
}
};
From the main menu, selecting "Items" will open up normal Item inventory and selecting "Apps" opens up the Key Items inventory -- so far so good!
However, I want to hide / bypass the item category selection window, to save players the button press and to prevent players from switching between items/equipment/key items.
I tried Mr. Trivel's No Item Categories plugin (by the way huge thanks to Mr. Trivel for so many excellent plugins), but it presents two problems for me: firstly it collapses all the item categories together, and secondly it conflicts with the script I posted above.
I'd be fine with collapsing Items / Weapons / Armor into the same menu category, but keeping Apps separate will keep the user experience tidy.
How can I hide or bypass the item category selection window, while preserving separate item categories? I feel like this is probably pretty simple, but I'm quite new to working with javascript and code in general.