MV Is it possible to use YEP_ItemCategories to call the Item Scene by Category?

I use:
JavaScript:
SceneManager.push(Scene_Item);
to call the Item Screen directly for some of my shop events. But I'm wondering if there is a way to use YEP_ItemCategories to call the Item Screen by Category. So your looking for a Quest item to use for a puzzle and the event pulls up just the Quest category items.

Is this even possible?
Hmmm, try below. Then you can set in script $gameTemp._itemCategorySelect = categoryId (first category is 0). And then get rid of it with $gameTemp._itemCategorySelect = undefined

const _myYanflyEdit1_SceneItem_Create = Scene_Item.prototype.create;

Scene_Item.prototype.create = function() {
_myYanflyEdit1_SceneItem_Create.call(this);
if ($gameTemp._itemCategorySelect) {
this._categoryWindow.select($gameTemp._itemCategorySelect);
this._categoryWindow.update();
this._categoryWindow.processOk();
}
};
Hmmm, try below. Then you can set in script $gameTemp._itemCategorySelect = categoryId (first category is 0). And then get rid of it with $gameTemp._itemCategorySelect = undefined

const _myYanflyEdit1_SceneItem_Create = Scene_Item.prototype.create;

Scene_Item.prototype.create = function() {
_myYanflyEdit1_SceneItem_Create.call(this);
if ($gameTemp._itemCategorySelect) {
this._categoryWindow.select($gameTemp._itemCategorySelect);
this._categoryWindow.update();
this._categoryWindow.processOk();
}
};
Is this a script call or do i make this a JS file?
JS file (starting from the const).

Then you use the $gameTemp._itemCategorySelect = categoryId in script boxes.

Original thread: https://forums.rpgmakerweb.com/threads/is-it-possible-to-use-yep_itemcategories-to-call-the-item-scene-by-category.181202/