How to make a command menu?

UniqueName

Veteran
Veteran
Joined
Nov 12, 2018
Messages
78
Reaction score
12
First Language
Russian
Primarily Uses
Other
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
 

Poryg

Dark Lord of the Castle of Javascreeps
Veteran
Joined
Mar 23, 2017
Messages
4,125
Reaction score
10,639
First Language
Czech
Primarily Uses
RMMV
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.
 

UniqueName

Veteran
Veteran
Joined
Nov 12, 2018
Messages
78
Reaction score
12
First Language
Russian
Primarily Uses
Other
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
 

Poryg

Dark Lord of the Castle of Javascreeps
Veteran
Joined
Mar 23, 2017
Messages
4,125
Reaction score
10,639
First Language
Czech
Primarily Uses
RMMV
Yeah, the search results are really mean. If I search for them, I find them, but that's because I own them :D

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.
 
Last edited:

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

Latest Threads

Latest Posts

Latest Profile Posts

Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??

Forum statistics

Threads
105,860
Messages
1,017,038
Members
137,567
Latest member
sashalag
Top