Window_ActorCommand.prototype.makeCommandList = function() {
if (this._actor) {
this.addAttackCommand();
this.addSkillCommands();
//this.addGuardCommand();
this.addItemCommand();
}
};
Blog
-
RPGMaker MZ – Hide “Guard” option in battle menu
-
RPGMaker MZ – Change speed of messages during battle
// Default in RPGMaker MZ is 16; higher numberis slower // The higher the number, the longer the message is on screen Window_BattleLog.prototype.messageSpeed = function() { return 36; }; -
RPGMaker MZ – Set location of event – persistent
If you simply set the location of an Event, it will jump back to its original position when you leave and re-enter the map. To make the new location persistence, follow these steps:
- Create a new event. Add an image.

2. Double0click the first contents line and add a Control Switch.

3. Make sure Operation is “On”. In this example the default name is used (0001). Of course you can change that.

4. Add a new event page.
Add the same image. Set “Trigger” to “Parallel”.
5. Double the first contents line and add the Event Command: “Set Event Location”. In the window that pops-up, select a new location for the event.

6. Check “Switch” and make sure the switch you created is selected.(0001 in this example). Double-check if the trigger is on parallel.

Now, when you interact with the object, it will move ti the new position. If you leave the map and re-enter, of if you save the game and reload, the Event will remain at its newposition.
-
RPGMaker MZ – Change Cursor
1. Make a new .js file. E.g. “custom_cursor.js
2. Add this code to the file:
document.body.style.cursor = 'url("img/pictures/my_cursor.png"), auto';3. Make a png image of a cursor. Name it “my_cursor.png”. Think about the size. This one is 24×24 pixels:

4. Place that image file in the img\pictures folder of your project.
4. Go to “Tools” > “Plugin Manager”. Double click the lowest empty line and select “custom_cursor.js” from the list.
That’s all!
If you want to change the cursor in an event, use the same line of code and place it in a script-block of the event.
-
RPGMaker MZ – Get Distance from Event to Player
Get the distance from an Event to the player. If the event is smaller than 2 tiles, set self-switch A to ON.
var dist = $gameMap.distance($gamePlayer.x, $gamePlayer.y, $gameMap.event(this._eventId).x, $gameMap.event(this._eventId).y); if (dist <= 2) { $gameSelfSwitches.setValue([$gameMap._mapId, this._eventId, 'A'], true); }$gamePlayer.x and $gamePlayer.y get the location of the player.
$gameMap.event(this._eventId).x and y get the location of the event.