Key input event plugin?

Tinkerer

Veteran
Veteran
Joined
Jan 21, 2017
Messages
42
Reaction score
4
First Language
Norwegian
Primarily Uses
Hi,

I wanted to create an event where the player has to press a certain combination of arrow keys (e.g. up, down, down, left), set against a timer. Problem is, RPG maker MV doesn't seem to have an appropriate key input option in the event editor. I shortly considered doing this:
Loop
If : Button [Up] is pressed down
Break Loop
End
Repeat Above

But the problem with this is that the player isn't punished for pressing the wrong button, the event will just continue waiting until the right button is pressed.

Does anyone know of a plugin that does this for me?
 

Astfgl66

Veteran
Veteran
Joined
Jan 5, 2016
Messages
722
Reaction score
578
First Language
French
Primarily Uses
You can try my QTE plugin, the link is in my signature.

I think there are some others as well, by SRD, IIRC.

But what you said can be acheived by event as well. Just add conditionnals for other button inputs that fail the qte when pressed.
Same for the time limitation. Set a variable before the loop. That will be your timer.
Decrease it in the loop and then add a conditional that checks if the variable is 0, if it is fail the qte.
 

Tinkerer

Veteran
Veteran
Joined
Jan 21, 2017
Messages
42
Reaction score
4
First Language
Norwegian
Primarily Uses
Thanks for your reply!
I tried your plugin, but it wouldn't play nice with my existing savegames (don't want to break the savegames of my patrons, again), so in the end I opted not to use it. Your reply did inspire me to give the event editor another go, and I finally cracked it! Sort of:). It will still ignore all keys other than arrow keys, but at least it will punish you for pressing the wrong arrow keys.
The attached Event.txt file shows the test event I just scripted, in case anyone is looking to do something similar.
It's an event for checking a combination of six arrow keys at a leisurely time limit of 30 seconds, but it shows the basic principals. It requires additional images for displaying the arrows on screen.
 

Attachments

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

Latest Threads

Latest Posts

Latest Profile Posts

Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??

Forum statistics

Threads
105,862
Messages
1,017,045
Members
137,569
Latest member
Shtelsky
Top