Bit of help with the keyMapper

Orichalcum+

Veteran
Veteran
Joined
Apr 17, 2015
Messages
72
Reaction score
52
First Language
English
Primarily Uses
Im trying to add a couple of keys to my project.

I opened rpg_core.js, found Input.keyMapper, and added...

65: 'action',   // A80: 'x',         // X90: 'z',         // ZI tried using them in conditional branch and got nothing.

Input.isTriggered('action')I searched it in the forum and found the plugin request, but no specific instructions.

As far as I know I just needed add the key code and string value. any ideas as to what Im doing wrong?

em.png

Em1.png
 

Quxios

Veteran
Veteran
Joined
Jan 8, 2014
Messages
1,055
Reaction score
785
First Language
English
Primarily Uses
RMMV
Well what keys are you trying to add in? because from your list, assuming the comment part is the keyboard button, only 65: 'action' and 90: 'z' are correct. key code 80 is the p key not x.

Other then that it looks ok, so how is your event setup? if its not parallel it wont run.

My test:

Added this in a js

Input.keyMapper[121] = 'F10';Event page

http://i.imgur.com/X3zNakU.png
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,108
Reaction score
13,713
First Language
English
Primarily Uses
RMMV
Also consider that the codes for x and X are not the same.  I suspect you'll have to put both in, if you want it to be case-insensitive.

88 (X) is already listed as 'escape', so you should be able to use 'escape' to detect X.  But that will also detect the real escape key.
 
Last edited by a moderator:

Orichalcum+

Veteran
Veteran
Joined
Apr 17, 2015
Messages
72
Reaction score
52
First Language
English
Primarily Uses
Input.keyMapper[121] = 'F10';Had no idea I could add a key this way. Thanks :)

I actually meant to take the X out, it occurred to me I had that wrong when I found the Adobe page with the keyboard value.
 
Last edited by a moderator:

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

Latest Threads

Latest Posts

Latest Profile Posts

Just beat the last of us 2 last night and starting jedi: fallen order right now, both use unreal engine & when I say i knew 80% of jedi's buttons right away because they were the same buttons as TLOU2 its ridiculous, even the same narrow hallway crawl and barely-made-it jump they do. Unreal Engine is just big budget RPG Maker the way they make games nearly identical at its core lol.
Can someone recommend some fun story-heavy RPGs to me? Coming up with good gameplay is a nightmare! I was thinking of making some gameplay platforming-based, but that doesn't work well in RPG form*. I also was thinking of removing battles, but that would be too much like OneShot. I don't even know how to make good puzzles!
one bad plugin combo later and one of my followers is moonwalking off the screen on his own... I didn't even more yet on the new map lol.
time for a new avatar :)

Forum statistics

Threads
106,018
Messages
1,018,357
Members
137,803
Latest member
andrewcole
Top