Making it so the menu button activates the inventory instead?

Hi everyone! (hope this is the right forum for this)

I've been trying to make it so that the menu button leads straight to the inventory menu instead of showing the main menu button with all the actors, it'll go directly to the inventory screen.

I disabled menu access, then I made a common event, triggered by the menu button, that would enter the inventory screen. The problem with this approach is that the common event could still be triggered even during events. While I could make every event have a switch that disables the common event via conditional branch, it would mean altering the code of a lot of events, and I would like to prevent that kind of work if unnecessary.

So I was wondering if there was another way to achieve what I need. Thanks in advance for any help! 😤
I believe a plugin to make the menu button open the item scene instead of the menu from the map would be fairly simple to make, but i wont be able to start looking into it till much later today
that would be amazing! and very useful. thanks so much. please take as much time as you need. 😀
save this as a .js file and add it to your project as a plugin. if theres any problems, ask about it here
Code:
Scene_Map.prototype.callMenu = function() {
    SoundManager.playOk();
    SceneManager.push(Scene_Item);
    $gameTemp.clearDestination();
    this._mapNameWindow.hide();
    this._waitCount = 2;
};
While I could make every event have a switch that disables the common event via conditional branch, it would mean altering the code of a lot of events, and I would like to prevent that kind of work if unnecessary.
Just as an aside for future considerations, you could create a common event for every cutscene and run it at the start and end. Then just set up a conditional:
If switch is on:
turn off switch, do things.
Else (if switch is off)
Turn on switch, do things.

While it would still be pretty much the same as going back through every event adding a switch to prevent opening the menu (except now you are attaching the common event to the start and end of every cutscene), what this would act like is sort of like appending a script to the start and end of every cutscene, which means if, in the future, you ever make something else that you need to run (or not run) in every cutscene, you'd simply add it to the common event, instead of going back through all of your old events and adding it manually.

Saves time, saves effort, super pog.

Original thread: https://forums.rpgmakerweb.com/threads/making-it-so-the-menu-button-activates-the-inventory-instead.174733/