I created a map key item, however I find it a bit tedious to constantly open up the menu each time you want to view the map. Is there an option, with or without a plugin, to hotkey a command to use the key item without opening the menu, or register a key item similar to how the pokemon games do it, where a player presses select to use an item (such as the bike or rod in those games)?
MV Any way to “register” or hotkey a key item?
Javascript/Plugin SupportThis can easily be done with the base engine using common events. You can tie the hotkey item to a conditional branch to check which button you want to press to activate it. Check the event conditional branch command out, and you should be able to pull off what you want.
Alternatively you can use conditional branch with script :
Input.isTriggered('ok') -> is equivalent to pressing the okay button.
Alternatively you can use conditional branch with script :
Input.isTriggered('ok') -> is equivalent to pressing the okay button.
Could you possibly share an example of the scripting? Would it be a parallel process that triggers any time the command is executed? Can I change the ('ok') to the "m" key, for example?
Hi, RPG Maker doesn't support the full keyboard by default, so first you will need to download this plugin and install it in the JS folder and the plugin manager. -> https://forums.rpgmakerweb.com/inde...-all-keys-of-the-keyboard-and-gamepad.126363/
Then you can use that same code in a conditional branch like this ->
I hope that helps.
(Also, I think you should know if you want to use this plugin commercially you may need to buy a license first.)
Then you can use that same code in a conditional branch like this ->
I hope that helps.
(Also, I think you should know if you want to use this plugin commercially you may need to buy a license first.)
I got it to work with the default method. Thank you so much!
For the record, you also have Yanfly's Button Common Event plugin which allows you to assign any keyboard button input to a specific common event.
So if you want, say for example, a potion hotkey, you can create a common event to consume a potion, then assign that common even in the plugin parameters. It's also super useful for creating whole new map-exploration mechanics.
So if you want, say for example, a potion hotkey, you can create a common event to consume a potion, then assign that common even in the plugin parameters. It's also super useful for creating whole new map-exploration mechanics.
I'm glad things worked out for you.
Original thread: https://forums.rpgmakerweb.com/threads/any-way-to-register-or-hotkey-a-key-item.152674/