MZ Script Call to push a plugin menu

Hello!

I'm using Visustella Main Menu Core, Quest System and Button Common Events.
My goal is to have the J key to open the quest menu but I can't find a way to do it. I understand that I need a script in a common event but I can't find the right script call.
I tried a bunch of stuff with the SceneManager.push script call but nothing works.

When I use
SceneManager.push(SceneManager._scene.commandQuest);
the game keeps playing but I can't move (no error message)

When I use SceneManager.push(Scene_commandQuest);
or some other variation nothing happens and I get this error:
ReferenceError: Scene_commandQuest is not defined
I'm really not good at scripting ^^"
Can anyone help me with this problem?

Thanks!
And sorry if this question have already been asked!
Generally scenes tend to following a naming scheme in which the first letter of every word is capitalized. I expect VS team did the same thing with that scene as well, so the command should be SceneManager.push(Scene_CommandQuest), assuming that's the name of the scene.

It would be relatively easily to figure out the name of the scene from inside the script file, if it weren't obfuscated, but alas, if that isn't the name of the scene, you'll need to jump through some hoops in the console to figure out what the name of the scene really is.

Set the scene to be accessible from the menu (by default).
Enter it from the main menu.
With it active on screen, open the console (f12) click on the console tab, and type:
SceneManager._scene.constructor.name
That line will return the name of the current scene in quotation marks
"Scene_MainMenu"
Take that string, and put it in the above SceneManager.push call, without the quotes, and it should work.
Hi there!

Since the code is obfuscated, you can't look at it and see what the script call is.
So you can read the help file of the quest plugin and see if it tells a way to call the scene. Either by plugin command or script call, sou you can use them on your button common event.

Otherwise, if you don't find it, you can ask them on their discord.

Or open the scene with the plugin command or through the menu(I mean the conventional way).
When you are inside the scene, open the console log with F12, go to the console tab and write:

SceneManager._scene

It is supposed to return the scene class name, that you will be able to use on the script call:
SceneManager.push(scene name)

On the example below, I'm getting the name of the scene class "Scene_Status"
1652174646873.png

Watch out because those names are case-sensitive.
Code:
SceneManager.push(Scene_Quest);
Thanks a lot for your help!
I tried
SceneManager.push(Scene_quest);
but not
SceneManager.push(Scene_Quest);

It works perfectly, thanks again!

Original thread: https://forums.rpgmakerweb.com/threads/script-call-to-push-a-plugin-menu.147460/