MZ - [CGMZ] Menu Command Window

● ARCHIVED · READ-ONLY
Started by CasperGaming 39 posts Page 1 of 2 View original ↗
  1. [CGMZ] Menu Command Window
    By: Casper Gaming
    Last Update: June 14, 2026
    Latest Version: 1.6.0
    Forum-Header-Introduction.png
    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.
    Forum-Header-Features.png
    • 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
    Forum-Header-Screenshots.png
    Screenshots
    A menu with some options disabled, and many custom options
    menu1.png
    Forum-Header-Video.png

    Forum-Header-HowTo.png
    Import into plugin manager and enable the plugin. Some customization options available. Further instructions in plugin.

    Online documentation can be found on my website.
    User documentation can be found on the Casper Gaming Wiki.
    Forum-Header-Download.png
    Plugin (along with all my other plugins) can be found here: [CGMZ] Menu Command Window
    Requires CGMZ Core plugin: [CGMZ] Core

    Also available on Itch.io:
    [CGMZ] Menu Command Window for RPG Maker MZ by Casper Gaming Forum-Header-CreditAndTerms.png
    Casper Gaming Terms of Use
    Forum-Header-VersionHistory.png
    Version History
    Version 1.0.1
    • Added ability to choose alignment of command text
    Version 1.1.0
    • Added option to use text codes in commands
    Version 1.2.0
    • Added option to disable commands if party doesn't have item
    Version 1.2.1
    • Added Spanish language help documentation
    • This plugin now warns instead of crashes when detecting invalid JSON
    Version 1.3.0
    • Added option to have subcategories with their own list of commands
    • Added commands that can require actor selection first
    • Added separate Icon property to commands which can be aligned separately
    • Added background image option to commands
    • Removed option to disable text codes
    • This plugin will now attempt to make a command symbol for you if blank
    Version 1.4.0
    • Added JS Show option for javascript show conditions
    • Added JS Enable option for javascript enable conditions
    • JS Command type change
    Version 1.4.1
    • Added easy way to make a command run a common event
    • Removed deprecated [CGMZ] Core function calls
    Version 1.5.0
    • Added on select parameter options for command name, icon, image
    Version 1.5.1
    • Added option to not exit the menu automatically for common event
    Version 1.5.2
    • Fix bug with menu subcategory not always properly resetting
    Version 1.6.0
    • Add option to show a confirm window for certain commands
    • Organized parameters
  2. Can I use JS to show/hide commands?
  3. 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).
  4. is this working for battle commands menu or just the menu alone?
  5. @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.
  6. 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..
  7. 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/
  8. 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?
  9. @Jennavieve Make sure their command symbols are different and not blank.
  10. casper667 said:
    @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!
  11. @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.
  12. 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
  13. What do I need to write in the JS Command to make a menu and press it to bring up Common Event 1?

    I wrote '$gameTemp.reserveCommonEvent(1)' but it doesn't work.
  14. @jhs if you want the menu to close and go to the map so the common event immediately runs, use:

    JavaScript:
    SceneManager.pop();
    $gameTemp.reserveCommonEvent(1);


    If you want the menu to stay and the common event to be processed when the user closes the menu, use:

    JavaScript:
    $gameTemp.reserveCommonEvent(1);
    this._commandWindow.activate();
  15. Thank you very much.
  16. Hi all, update today for this plugin to allow text codes as well in the command names (such as \c[x] or \i[x]).

    This update requires CGMZ Core v1.5.1+

    Version 1.1.0:
    - Added option to use text codes in commands
  17. @casper667 I was wondering do you change the parameters in the javascript file and then call the script prompt $gameSwitches.setValue(switchId, value) in the event it's self and should I do that for all the commands if I don't want them to be able to be activated?
  18. @alltheyuriz I'm not sure what you mean by changing the parameters in the javascript file.

    If you want a command to be deactivated but still shown, set its Enable Switch in plugin parameters then turn that switch off in game via the Control Switches event command (or script command if that is easier for you).

    If you want a command to be completely hidden from the menu set the Show Switch in plugin parameters and then turn the switch on/off via the Control Switches event command (or script command if that is easier for you).

    The demo shows an example of showing/hiding and enabling/disabling the item command in the main menu, if you are still confused you can download that to see an example of how it is done.
  19. @casper667 Edit: ok think I understand read it a second time ill try It out and see if I need anymore help! Thank you!
    Edit: I edited the parameters and now im getting this, im sorry for bugging you so much
    Error screen
    1619913625923.png
  20. @alltheyuriz could you show me your parameters you edited?