How to make a command menu?

Can anyone make a guide on how to create command windows with options and handlers please?
I was able to create a window using this code
Code:
function MyWindow() {
  this.initialize.apply(this, arguments);
}


MyWindow.prototype = Object.create(Window_Base.prototype)
MyWindow.prototype.constructor = MyWindow;

MyWindow.prototype.initialize = function(x, y, width, height) {
  Window_Base.prototype.initialize.call(this, 0, 0, Graphics.boxWidth, lh);
  this.refresh();

}


MyWindow.prototype.refresh = function() {
  this.contents.clear();
  this.drawText(text, 0, 0);
}

var scene = Scene_Map.prototype.start;
Scene_Map.prototype.start = function(){
scene.apply(this, arguments);
this.myWindow = new MyWindow();
this.addChild(this.myWindow);
};
but thats about it. I cant do anyhthing more than that (I cant even close it lol)
I want to learn how to do my own command menu
I took a look at original rpg maker's scripts but I can't figure it out
I am making a tutorial series around scripting/plugin making. It might help you. Part 3 covers basic window types including handlers in command/selectable windows.
I am making a tutorial series around scripting/plugin making. It might help you. Part 3 covers basic window types including handlers in command/selectable windows.
Thanks dude, just what I was looking for
tbh I searched "rpg maker mv javascript tutorial" on youtube but never saw your videos
you should try to change category to "videogames" and add "javascript" to the tags
Yeah, the search results are really mean. If I search for them, I find them, but that's because I own them 😀

Edit: I set the category to gaming and I set the game to RPG Maker MV, hopefully it makes the videos more relevant. Currently one of the videos is sitting like at 2.5 pages of scrolling, since Driftwood has 13k subs, he's absolutely crashing smaller channels like me.

Original thread: https://forums.rpgmakerweb.com/threads/how-to-make-a-command-menu.112083/