MZ VisuStella Main Menu Core - Add Custom command Calling Common Event

Dear MZ Makers,

I need your help for a very specific point :
I would like to add a new Custom Menu command using VisuStella Main Menu Core Plugin.
Ideally the custom Menu command would launch a common event when clicked.


In order to do so, I added a new item in Command Window List.
Then, in the "JS: Run Code" parameter I wrote the script for calling a common event (in this case ID 151) :
"$gameTemp.reserveCommonEvent(151);"
See screenshots for more details.

Unfortunatly It does not work...
I really do not know what to do.
Please Help me 🙂
Otherwise my fishing game might not be the one my few players and me would like it to be 😉

Yours

Capture d’écran 2024-08-27 192237.png
Capture d’écran 2024-08-27 192444.png
In your screenshot, you have selected command 23.

As you can see, command 20 in that screenshot has the symbol commonEvent1. Have you looked at it to see how it works?
OMG! Indeed it's working now!
Thank you very much!!!! 😍

For all the makers with the same issue :
Here is what I needed to do to make it work (see screenshot)
1724964933521.png


To add more details because I have been asked for in MP 😉 :

1) Duplicate the "Command Window List" named "commonEvent1".
2) Add the number of the common event in the parameter named " JS: Ext" like in the picture : ""return X"" where X is the number of the common event you want to call, in the picture you see "return 151" because in my case, I call the common event 151.
Feel free to ask here for more details if you need some ! 🙂
OMG! Indeed it's working now!
Thank you very much!!!! 😍

For all the makers with the same issue :
Here is what I needed to do to make it work (see screenshot)
View attachment 316395

To add more details because I have been asked for in MP 😉 :

1) Duplicate the "Command Window List" named "commonEvent1".
2) Add the number of the common event in the parameter named " JS: Ext" like in the picture : ""return X"" where X is the number of the common event you want to call, in the picture you see "return 151" because in my case, I call the common event 151.
Feel free to ask here for more details if you need some ! 🙂

thx man~! it works!! appreciated!
Thanks! This is exactly what I've been looking for.
Great!

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/visustella-main-menu-core-add-custom-command-calling-common-event.171519/