creating menu options and sub options

Ok so I'm new to rpg maker and new to java. I'm having a hard time understanding how the menu options are created so in game right click or press esc menu not the main menu. I think its const scene command or something like that. In the menu scripts I've dug into and dissected to see what's happening that's what I think is doing it but I'm not really sure, I'm not finding any real guides that speak in plain English (or I'm just too dumb to understand) as to what connects what. Now I know there's a lot going on in the background, but is there a better resource i can reference to learn how the menu system works? would be really nice if there was a ui function built into the rpg maker mz engine that you could use to create menus just like the map editor and event editor. any advice, help is greatly appreciated. and Merry Christmas!
Welcome to the forum!

I'm not sure I completely understand what you are asking for, but here are a couple of thoughts and maybe someone else can offer better assistance.

It would help if you formatted your posts a bit to make them easier to read.

MZ uses Javascript and not Java. As I understand it, those are different programming languages.

I can't tell if you are just trying to make changes to the existing menus or whether you want to make your own UI menus.

For modifying/customizing/creating menus, I know there are plugins for that which I have no experience in but you can find information and tutorials on if you search for them.

You can also find tutorials and information on Eventing your own menus. Here are a few examples:






Perhaps if you clarified exactly what you are wanting to do it might help folks with providing better information.

Anyway, I hope that helps a little.

Good luck on your projects, Merry Christmas, and Happy Holidays!
I think its const scene command or something like that
the menus are a type of window (usually some subclass of Window_Selectable) to the game and scenes can be seen as containers for windows. there are functions within a scene that can manipulate the windows, but for the most part if youre trying to figure out something about how windows work youll have to look at the windows js file, not the scene one.

I'm having a hard time understanding how the menu options are created so in game right click or press esc menu not the main menu.
Im not sure exactly what you mean by "creating the menu", so ill just mention these.

when a scene is started, all the windows within it are are created by createAllWindows() or some other similarly named function. That includes all the menus to be used within the scene as well.
within the menu, normally what determines what it contains is done by either makeItemList() or
makeCommandList() depending on the type of menu.

game right click or press esc menu not the main menu
the menu you get from right clicking while on the map *is* called the main menu (Window_MenuCommand). the menu that opens up at the start of the game is the title menu (Window_TitleCommand)
would be really nice if there was a ui function built into the rpg maker mz engine that you could use to create menus just like the map editor and event editor
never tried it nor really looked at it, but id check out Aerosys' recent plugin for editing windows on MZ if i were you.

i cant give any more specific info than that without knowing exactly what youre trying to do
A few comments to add:
- Taking a moment to do basic formatting on your post will help you get more and better answers. Many people will skip reading a block of text, or may lose some details in the middle of it.

- As mentioned above, you don't really say what your end goal is, so it's hard to give you specific advice. Actually coding your own scenes and windows is the hardest possible result.

- There's the Aerosys plugin mentioned; there's also VisuStella's Main Menu Manager. Odds are, whatever screen you ultimately want to have may have an existing plugin which would include integration into the menu (enemy bestiary, picture gallery, etc.).

- If you're very new to RPG Maker, you may want to put this on a back burner. Spending time doing tutorials and making some practice games using the default engine is highly recommended, as opposed to jumping straight into using plugins - or even worse, jumping straight into coding.
This actually really helped, i had like 3 hours of sleep when i posted the other day so sorry about the initial post being lacking of. mainly my goal was to just figure out the machanics of what makes a menu work which i think im getting now. i actually like getting stuck, usually means i get to take something apart and see how it works. thank you for your time everyone I really appreciate it!

Original thread: https://forums.rpgmakerweb.com/threads/creating-menu-options-and-sub-options.174160/