Is it possible to add another keyboard button to RPG Maker? Like making a conditional branch for if a button is pressed, and being able to use a different button other than the ones shown. Are there any plugins that can do this?
Adding keyboard buttons?
RPG Maker MV Supportthere are serveral KeyMappers plugin, I like ET_mapKey so
you have the entire keyboard to be used in a conditional branch.
it depends which one you want to use and feel most comfortable with.
you have the entire keyboard to be used in a conditional branch.
it depends which one you want to use and feel most comfortable with.
I don't know how familiar you are with JS, but in case this info helps, keyboard keys are defined in rpg_core.js (line 3002):
You can change and remove keys from the list, as well as add new custom ones.
forums.rpgmakerweb.com
Also you might want to check this thread's first reply. User waynee95 explains how to add custom keys and how to check if they're being pressed in conditional branches.
JavaScript:
Input.keyMapper = {
9: 'tab', // tab
13: 'ok', // enter
16: 'shift', // shift
17: 'control', // control
18: 'control', // alt
27: 'escape', // escape
32: 'ok', // space
33: 'pageup', // pageup
34: 'pagedown', // pagedown
37: 'left', // left arrow
38: 'up', // up arrow
39: 'right', // right arrow
40: 'down', // down arrow
45: 'escape', // insert
81: 'pageup', // Q
87: 'pagedown', // W
88: 'escape', // X
90: 'ok', // Z
96: 'escape', // numpad 0
98: 'down', // numpad 2
100: 'left', // numpad 4
102: 'right', // numpad 6
104: 'up', // numpad 8
120: 'debug' // F9
};
You can change and remove keys from the list, as well as add new custom ones.
JS call for specific button press?
I'm trying to use a conditional for a button press but am unsure how to direct the conditional to a specific key. If I use this in the script field for conditionals, for example: Input.isTriggered('pageup') It works fine on pressing the "Q" key since that's pageup. But is there any way to...
forums.rpgmakerweb.com
alright, thank you!
the one I use don't interfer with anything and easely be re-used
for something else.
and using the A-Z also require a plugin, and if you have limited like the
core give, you arent near anywhere 🙂
the site he linked can be used for the "code numer" instead of the "name"
or "letter".
as ET_MapKey is hard to find or links are broken, I can send you plugin by DM.
as it is 1 of the best keymapper out there (personal opinion) as you can also
use 2-3-4 buttons at the same time for an effect to happen in/out of battle.
for something else.
and using the A-Z also require a plugin, and if you have limited like the
core give, you arent near anywhere 🙂
the site he linked can be used for the "code numer" instead of the "name"
or "letter".
as ET_MapKey is hard to find or links are broken, I can send you plugin by DM.
as it is 1 of the best keymapper out there (personal opinion) as you can also
use 2-3-4 buttons at the same time for an effect to happen in/out of battle.
Yeah, I tried searching for the plugin online but couldn’t find it. The link would be appreciated! Thank you.
I too would also appreciate it if you could send me this plugin link by DM as well. This feature would help me a great deal in my own project.
@MrVyngaard I cannot send you, probably as you block permission.
you can also try to download my Evented Dance Demo from itch, which
has the plugin in it.
you can also try to download my Evented Dance Demo from itch, which
has the plugin in it.
Original thread: https://forums.rpgmakerweb.com/threads/adding-keyboard-buttons.153445/