RPG Maker MZ Tutorial: Simple Key Mapping Plugin & Conditional Branch Example Event

Subscribers:
447
Published on ● Video Link: https://www.youtube.com/watch?v=slKYQQEOzcQ



RPG Maker MZ
Game:
Duration: 0:00
61 views
4


Here is a demo and tutorial of mapping a key using a script in a parallel event, the problem associated with that after reloading a Save file, highlighting a simple Key Mapping plugin that you can create or download from the link below, and a parallel event that will check keys that you designate but will also only allow one key to be active at a time. This is for something like letting the player press the "M" key to open a map, the "I" key to open an inventory, the "C" key to open a character sheet, etc.

Here is a link to where you can find the Javascript key codes for mapping keys. https://www.toptal.com/developers/keycode

Here is a link to the thread on the forum where you can find the plugin for download in one of my last posts: https://forums.rpgmakerweb.com/index.php?threads/questions-about-using-input-keymapper.174276/

In that same thread you can find the alternate option for doing the conditional branch checks using a function that is put into a plugin. I haven't experimented with that option yet. But special thanks to caethyril and bass2yang for all their help!

And here is the text of the plugin if the download doesn't work for you and you need to make your own plugin.

/*:
@target MZ
@plugindesc Add custom keyboard controls.
@author ZombieKidzRule (with help from caethyril)
@url https://forums.rpgmakerweb.com/threads/174276
@help Free to use and/or modify for any project, no credit required.
*/
Input.keyMapper[48] = "0";
Input.keyMapper[49] = "1";
Input.keyMapper[50] = "2";
Input.keyMapper[51] = "3";
Input.keyMapper[52] = "4";
Input.keyMapper[53] = "5";
Input.keyMapper[54] = "6";
Input.keyMapper[55] = "7";
Input.keyMapper[56] = "8";
Input.keyMapper[57] = "9";
Input.keyMapper[65] = "a";
Input.keyMapper[66] = "b";
Input.keyMapper[67] = "c";
Input.keyMapper[68] = "d";
Input.keyMapper[69] = "e";
Input.keyMapper[70] = "f";
Input.keyMapper[71] = "g";
Input.keyMapper[72] = "h";
Input.keyMapper[73] = "i";
Input.keyMapper[74] = "j";
Input.keyMapper[75] = "k";
Input.keyMapper[76] = "l";
Input.keyMapper[77] = "m";
Input.keyMapper[78] = "n";
Input.keyMapper[79] = "o";
Input.keyMapper[80] = "p";
Input.keyMapper[82] = "r";
Input.keyMapper[83] = "s";
Input.keyMapper[84] = "t";
Input.keyMapper[85] = "u";
Input.keyMapper[86] = "v";
Input.keyMapper[89] = "y";
Input.keyMapper[219] = "[";
Input.keyMapper[221] = "]";

I hope this helps people.

Please consider Liking, Subscribing, Getting Notifications, and Leaving Comments.

Thanks!




Other Videos By ZombieKidzRule!


2025-01-19RPG Maker MZ TUTORIAL: Recreating D&D EOB Character Generation PART 10 - FINAL
2025-01-18RPG Maker MZ TUTORIAL: Recreating D&D EOB Character Generation PART 9
2025-01-16RPG Maker MZ DEMO: Very Simple Scrolling Log Using Events
2025-01-12RPG Maker MZ TUTORIAL: Recreating D&D EOB Character Generation PART 8
2025-01-12RPG Maker MZ TUTORIAL: Recreating D&D EOB Character Generation PART 7
2025-01-12RPG Maker MZ TUTORIAL: Recreating D&D EOB Character Generation PART 6
2025-01-11RPG Maker MZ TUTORIAL: Recreating D&D EOB Character Generation PART 5
2025-01-10RPG Maker MZ TUTORIAL: Recreating EOB Character Generation PART 2
2025-01-09RPG Maker MZ TUTORIAL: Recreating EOB Character Generation PART 1
2025-01-09RPG Maker MZ: Updated Eye of the Beholder Character Generation
2025-01-02RPG Maker MZ Tutorial: Simple Key Mapping Plugin & Conditional Branch Example Event
2024-12-28RPG Maker MZ: Recreating Eye of the Beholder Character Generation
2024-10-13RPG Maker MZ Tutorial: Break Wait Loop With Condition
2024-10-06RPG Maker MZ Infinite Sudoku: Updated Menus & Features
2024-10-06RPG Maker MZ Tutorial: Random Changing BGM Using Arrays
2024-07-29RPG Maker MZ: Hangman Sample For User blanketorghost
2024-07-21RPG Maker MZ: Norintha Puzzle Explanation
2024-07-21RPG Maker MZ: Test For Norintha Puzzle
2024-07-04RPG Maker MZ: Infinite Sudoku - Playing Games With Changing Background
2024-06-30RPG Maker MZ: Infinite Sudoku - Current Functionality DEMO
2024-05-12RPG Maker MZ: Sudoku Game - Main Menu



Other Statistics

RPG Maker MZ Statistics For ZombieKidzRule!

ZombieKidzRule! currently has 11,262 views spread across 113 videos for RPG Maker MZ. Roughly a days worth of RPG Maker MZ videos were uploaded to his channel, roughly 30.34% of the content that ZombieKidzRule! has uploaded to YouTube.