casper667

Casper Gaming
Veteran
Joined
Mar 15, 2012
Messages
359
Reaction score
476
First Language
English
Primarily Uses
RMMZ
CGMV Menu Command Window
By: Casper Gaming (Casper667)
Last Update: N/A
Latest Version: 1.0
dxEPbU0.png

Use this plugin to easily manage the command window in the menu scene. It allows you to add more commands and also limit how many commands are displayed before needing to scroll.
nlUIeRv.png

  • Easily change default commands
  • Add custom menu commands via javascript
  • Change amount of commands shown at once before scrolling
zvfGt10.png

Y8HsKeU.png
lWNLTGy.png

Import into plugin manager and enable the plugin. Some customization options available.
3AzjNYV.png

Plugin (along with all my other plugins) can be found here: https://www.caspergaming.com/plugins/cgmv/menucommand/
Requires CGMV Core, which can be found here: https://www.caspergaming.com/plugins/cgmv/core/
l8DkDBW.png

http://caspergaming.com/terms-of-use/
 
Last edited:

Pepsilawn

Warper
Member
Joined
Jul 10, 2020
Messages
3
Reaction score
1
First Language
English
Primarily Uses
RMMV
Having issues implementing the script:
I want to add two new commands: one to show the CGMV Achievements' menu and another to show the Shop Menu (YEP)'s menu. I had to do some tinkering with the latter but both show up correctly when I add them to the game alone. The problem arises when I try to add both commands at the same time. Both commands show up correctly in the menu, but clicking on it always chooses the menu from the last command I added. For example, adding the Achievements' menu and then the Shop menu, pressing on either of those will only display the Shop menu. Adding the Shop menu and then the Achievements' menu, only the Achievements' menu shows up.

Here is the parameters:
JavaScript:
["{\"Command Name\":\"Encyclopedia\",\"Command Symbol\":\"\",\"JS Command\":\"\\\"SceneManager.push(CGMV_Scene_Encyclopedia);\\\"\",\"Enable Switch\":\"0\",\"Show Switch\":\"0\"}","{\"Command Name\":\"Buy\",\"Command Symbol\":\"\",\"JS Command\":\"\\\"SceneManager.push(YEP_Scene_Shop);\\\"\",\"Enable Switch\":\"0\",\"Show Switch\":\"0\"}"]
 

ShadowDragon

Realist
Veteran
Joined
Oct 8, 2018
Messages
5,424
Reaction score
2,135
First Language
Dutch
Primarily Uses
RMMV
@Pepsilawn
do you have the CGMV core plugin on top? or just achievement and YEP_ShopMenuCore?
if you have the core, do you also have YEP_EngineCore?

because it works correctly.

YEP_EngineCore
YEP_ShopMenuCore
CGMV_Core
CGMV_Achievements
CGMV_Enclopedia (if you use this)
CGMV_CommandWindow

Make sure the order are correct, specially of yanfly.
 

8bitsim

Villager
Member
Joined
Jul 13, 2020
Messages
23
Reaction score
2
First Language
English
Primarily Uses
RMMV
@Pepsilawn
do you have the CGMV core plugin on top? or just achievement and YEP_ShopMenuCore?
if you have the core, do you also have YEP_EngineCore?

because it works correctly.

YEP_EngineCore
YEP_ShopMenuCore
CGMV_Core
CGMV_Achievements
CGMV_Enclopedia (if you use this)
CGMV_CommandWindow

Make sure the order are correct, specially of yanfly.

I seem to have the same issue - only the Encyclopedia appears upon selecting either 'Achievements' or 'Encyclopedia' from menu. Achievement will not appear from menu.

JavaScript:
["{\"Command Name\":\"Achievements\",\"Command Symbol\":\"\",\"JS Command\":\"\\\"SceneManager.push(CGMV_Scene_Achievements);\\\"\",\"Enable Switch\":\"0\",\"Show Switch\":\"0\"}","{\"Command Name\":\"Encyclopedia\",\"Command Symbol\":\"\",\"JS Command\":\"\\\"SceneManager.push(CGMV_Scene_Encyclopedia);\\\"\",\"Enable Switch\":\"0\",\"Show Switch\":\"0\"}"]

I am on RMMV 1.6.2 - and all CGMV plugins are current.

My main project functioned the same (incorrectly)... a new empty project (with only pictured plugins) confirmed issue.

Hopefully it's an easy solution! Thank you. :)
 

Attachments

  • Snipaste_2020-07-17_22-50-57.png
    Snipaste_2020-07-17_22-50-57.png
    53.3 KB · Views: 14

Pepsilawn

Warper
Member
Joined
Jul 10, 2020
Messages
3
Reaction score
1
First Language
English
Primarily Uses
RMMV
@8bitsim Try giving the commands a Command Symbol. Any string of character should do, like "achievement" and "encyclopedia", for example. It doesn't need to relate to any other game files.
 

ShadowDragon

Realist
Veteran
Joined
Oct 8, 2018
Messages
5,424
Reaction score
2,135
First Language
Dutch
Primarily Uses
RMMV
@8bitsim
make sure the MenuCommand plugin is below the CORE, and and above the other plugin.
after that, it will work.

while its below, the function wont be taken.

Remember that the plugin higher in the list can take functions below, whatever is below can overwrite the above
if not aliased.
 

8bitsim

Villager
Member
Joined
Jul 13, 2020
Messages
23
Reaction score
2
First Language
English
Primarily Uses
RMMV
@8bitsim Try giving the commands a Command Symbol. Any string of character should do, like "achievement" and "encyclopedia", for example. It doesn't need to relate to any other game files.

Thanks @Pesilawn! Providing command symbol immediately did the trick.
Thanks also @ShadowDragon - afterwards, I moved it to be on the safe side too.
Much appreciated :)
 

Marianna

Queen of wolves
Member
Joined
Sep 2, 2018
Messages
26
Reaction score
13
First Language
Spanish
Primarily Uses
RMMV
Hi. I want to ask if it's possible to bind a common event with this plugin like can be done with Yanfly MainMenuManager.
I think this plugin has a lot of features I really like, but I need common events to show in the menu, because many of them are custom function that I need to made with events. Someone please can help me or have done it before?

Edit: oh... well. I found the answer. https://forums.rpgmakerweb.com/index.php?threads/cgmz-menu-command-window.125803/post-1154470
 
Last edited:

Latest Threads

Latest Posts

Latest Profile Posts

Our latest Make a Game in MZ Stream is here! Today, we're going to create a complex switch puzzle, where flipping one switch also toggles the switches adjacent to it. Join now to see how it's done!

Here's a preview to an upcoming free track. Kind of a hybrid, Middle Eastern, orchestral thingy. Should be released pretty soon!

Time: duration regarded as belonging to the present life as distinct from the life to come or from eternity; finite duration.


1653085842103.png

Me against Time now. No second chances. No distractions. All or nothing. Whoever wins is the best fighter.
Come join us for 2 more hours of the fabulous Kindred Novel by BirdBunch! We had a lot of fun yesterday and look forward to exploring more of this compelling game :LZSjoy:
steamdemo_scr.png

I am happy to announce that a date for the release of the demo on Steam has been decided: On may 26th at 18:00 GMT, the demo will be available for download! One week later, on april 21st, the demo will also be available on other platforms such as Itch.io and other supported platforms.

Forum statistics

Threads
121,979
Messages
1,145,627
Members
160,254
Latest member
Ucojugetsu
Top