Help - Search - Members - Calendar
Full Version: [SSS] Mini Game: Input Match
RPG RPG Revolution Forums > Scripting > Script Tutorials > RGSS2
Shanghai
Shanghai Simple Script - Mini Game: Input Match
made by Shanghai



Link/Script
Click here
NR - Since the pockethouse link no longer works, I've uploaded the script here
Click to view attachment

Introduction
Plays a little mini game to follow the input commands on the screen before the timer runs out.

How to Use
Download this image into the System folder.

NR - Backup link:
Click to view attachment

Do a script call for
CODE
@i = "236C"
$game_variables[1] = input_match(@i,x)

i is the input sequence you want the player to match. x is the amount of time given to the player. For the input string, the following items are allowed:
CODE
@i = "236C"
7  8  9  L  R                      UL  U  UR  Q  W
4     6  X  Y  Z   Translates to    L     R   A  S  D
1  2  3  A  B  C                   DL  D  DR  Sh Z  X

Don't confuse them. The score that's returned to the variable is a percent score of how well the player matched input sequence.

Works with Battle Engine Melody. Also, view the demo to see it in action.
NR - This image shows how to set up skills that require the key matching before they activate, as mentioned it requires Yanfly's Battle Engine
Click to view attachment

Compatibility
- Compatible with Battle Engine Melody.

For more Shanghai Simple Scripts
Visit Here.
MyPhantomile
I haven't tested this yet, however this looks like a very good addition to the Melody Engine! I'll be sure to use it and credit appropriately. Thanks a lot and keep up the great work. thumbsup.gif
archeart
cool script keep em comin' tongue.gif
kinan
EDIT: Nevermind. Found the demo, which solved the issue I had in mind. Thank you ^^
Ridvi
why is it that whenever the player has to press 'up', it misses? for the life of me I can't hit the up button correctly.....

other than that though, great script!

*edit* my bad. I was pushing up instead of down-right. XD The icon's look very similar, so I suppose from a player stand point you may want to make the arrows more distinguishable. but really, I love this script!
Fonstw
How do you put in more time? I find it going impossibkle fast!
Night_Runner
You can manually force the time when you call the input_match function.
CODE
input_match(inputs, time)


The alternative is if you want to use the number_of_frames * number_of_inputs that is given by default, and increase the number_of_frames variable.
If you would prefer to change the code to allow more time, then look for line 52:
CODE
@time = string.size * 30 if time < 1

And change that 30 to the number of frames you prefer smile.gif
dienaB
can anyone tell me where to find and put that " @i = "236C"
$game_variables[1] = input_match(@i,x) " ????!!!!!!!77
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2013 Invision Power Services, Inc.