CGMZ Menu Command Window

casper667

Casper Gaming
Veteran
Joined
Mar 15, 2012
Messages
231
Reaction score
320
First Language
English
Primarily Uses
RMMZ
CGMZ Menu Command Window
By: Casper Gaming
Last Update: 11/11/2020
Latest Version: 1.0.1

Use this plugin to easily manage the command window in the menu scene. It allows you to re-arrange commands or use JavaScript to add custom commands which are capable of calling custom plugin scenes or functions.

  • Enable/Disable menu commands with a switch
  • Show/Hide menu commands with a switch
  • Add as many custom commands as you want with JavaScript parameter in plugin setup

A menu with some options disabled, and many custom options

Import into plugin manager and enable the plugin. Some customization options available. Further instructions in plugin.

Plugin (along with all my other plugins) can be found here: https://www.caspergaming.com/plugins/cgmz/menucommandwindow/
Requires CGMZ Core plugin: https://www.caspergaming.com/plugins/cgmz/core/

https://www.caspergaming.com/terms-of-use/

Version 1.0:
- Initial Release

Version 1.0.1:
- Added ability to choose alignment of command text
 
Last edited:

Zarsla

Veteran
Veteran
Joined
Jan 23, 2015
Messages
710
Reaction score
228
First Language
English
Primarily Uses
Can I use JS to show/hide commands?
 

casper667

Casper Gaming
Veteran
Joined
Mar 15, 2012
Messages
231
Reaction score
320
First Language
English
Primarily Uses
RMMZ
Yes but not directly. Each command is optionally shown/hidden via switch (controllable with event -> control switches). To do it with JS you would need to call

JavaScript:
$gameSwitches.setValue(switchId, value)
where switchId is the switchId you set in the plugin parameter for that command, and value is either true/false (for on/off).
 

chocopanda

Veteran
Veteran
Joined
Sep 24, 2017
Messages
41
Reaction score
17
First Language
English
Primarily Uses
RMMV
is this working for battle commands menu or just the menu alone?
 

casper667

Casper Gaming
Veteran
Joined
Mar 15, 2012
Messages
231
Reaction score
320
First Language
English
Primarily Uses
RMMZ
@chocopanda it is just for the menu alone, but adding options for the other command windows is a good idea. I will look into adding the battle commands menu as well, but that might take a few weeks as I am looking to port my MV plugins to MZ first.
 

chocopanda

Veteran
Veteran
Joined
Sep 24, 2017
Messages
41
Reaction score
17
First Language
English
Primarily Uses
RMMV
take your time.. all other plugins will take time as well so it's alright.. i just think it's a good idea specially if you are starting the game and there would be a tutorial to switch off/on the battle command first before it can be used..
 

casper667

Casper Gaming
Veteran
Joined
Mar 15, 2012
Messages
231
Reaction score
320
First Language
English
Primarily Uses
RMMZ
Hi all,

Added a demo for this plugin today in case anyone was confused on how to use it (will be going through all my plugins and making demos over the next few weeks), you can play it in-browser or download it from the plugin's main page on my website: https://www.caspergaming.com/plugins/cgmz/menucommandwindow/
 

Jennavieve

Veteran
Veteran
Joined
Oct 21, 2020
Messages
69
Reaction score
60
First Language
English
Primarily Uses
RMMZ
I think I might have encountered a bug with this plugin. Although, I am still a noob so it's possible I'm doing something wrong but it all looks right as far as I can tell.

The problem I'm encountering is when I'm trying to use the CGMZ Crafting and CGMZ Encyclopedia plugins with the Menu Command Window plugin. It looks like I have the parameters set correctly but, for some reason, when I select "Encyclopedia" in the menu it opens up the crafting menu and, oddly, when I open the crafting menu it works fine but after you leave crafting and go back to the main menu, the button for Encyclopedia is highlighted instead of Crafting as if you were in the encyclopedia instead.

I took screenshots of how I have it set up.

This is for the encyclopedia
Encyclopedia.png
text is:
{"Command Name":"Encyclopedia","Command Symbol":"","JS Command":"\"SceneManager.push(CGMZ_Scene_Encyclopedia)\"","Enable Switch":"0","Show Switch":"0"}


And for the Crafting I have
Crafting.png
text is:
{"Command Name":"Crafting","Command Symbol":"","JS Command":"\"SceneManager.push(CGMZ_Scene_Crafting)\"","Enable Switch":"0","Show Switch":"0"}


Is this a bug or do I have something wrong?
 
Last edited:

casper667

Casper Gaming
Veteran
Joined
Mar 15, 2012
Messages
231
Reaction score
320
First Language
English
Primarily Uses
RMMZ
@Jennavieve Make sure their command symbols are different and not blank.
 

Jennavieve

Veteran
Veteran
Joined
Oct 21, 2020
Messages
69
Reaction score
60
First Language
English
Primarily Uses
RMMZ
@Jennavieve Make sure their command symbols are different and not blank.
Okay that must be where I'm going wrong. I keep seeing notes that say "see documentation" and that was one of the things that said it but I haven't been able to find the documentation. I'll figure it what needs to go there and let you know if it still doesn't work. Thanks for responding so quickly

Edit: I looked at the symbols on the examples you gave to call the default menu items and adjusted the others accordingly. Works fine now. Thank you!
 
Last edited:

casper667

Casper Gaming
Veteran
Joined
Mar 15, 2012
Messages
231
Reaction score
320
First Language
English
Primarily Uses
RMMZ
@Jennavieve The documentation for all my plugins is at the bottom of the help window where you set up plugin params. In this case it is just referring to the documentation explaining the special command symbols for the original commands (that's why you can make the command symbol something like "item" and it'll know you want to use the default item command). I guess I should add some additional help text for why the command symbol is important since you are not the first one to ask about this.
 

casper667

Casper Gaming
Veteran
Joined
Mar 15, 2012
Messages
231
Reaction score
320
First Language
English
Primarily Uses
RMMZ
Hi all, small update today to let you choose the alignment of the text in the command window:
Version 1.0.1:
- Added ability to choose alignment of command text
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

Are we allowed to post about non-RPG Maker games? And, if so, would any of you be interested in a short, proof of concept type non-euclidian puzzle game?
I should realize that error was produced by a outdated version of MZ so that's why it pop up like that
Ami
i can't wait to drink some ice after struggling with my illness in 9 days. 9 days is really bad for me,i can't focus with my shop and even can't do something with my project
How many hours have you got in mz so far?

A bit of a "sparkle" update to the lower portion of the world map. :LZSexcite:

Forum statistics

Threads
105,883
Messages
1,017,232
Members
137,607
Latest member
Maddo
Top