[VXACE] Numbers causing actions?

I know that you can use the script call in conditional branches, "Input.press?🙂__)" for a keystroke to perform a certain action. I use it in different parts of my game, but I have not been able to make numbers work.

I'd think it wouldn't be too hard since games like Yume Nikki and Oneshot use numbers. Does anyone know how to do it?
I'm firstly wondering exactly what you mean.

What do you want the input_numbers to do?

You want the players to be able to put in a number for like a code? say they have to put in the right numbers to open a door.

Or the players to put in a number, and then they do a action upon that?

Edit:

I think, depending exactly on what you want, that maybe you could call "input number" and store it in a variable, and have a conditional branch sort out the rest depending on what the player puts in.
Specifically, I want numbers to play sounds. It's a sort of mini game where you have to play a ditty on a toy piano, numbers corresponding with the 8 keys. So you click a number, play the note, and then when you play them in the correct order, you beat that part (the last bit about playing them in order... that I also don't know how to program but I figured I'd tackle one thing at a time.)
Then the Input number won't work as intended - as it would disrupt the game to much I think.

My first instinct tells me that there might be a script that can add it, as I don't think (This is not really my strong point so I may very well be very wrong) the game directly support the number keys. (Again I may be wrong)

I think it's a matter of adding the number keys as supported keys, and have a event calling for button pushing, and have a handful conditional branch acting on the keys pressed, like pressing "1" will play sound "A"
The Input.press🙂?) arguments refer to the pre-set buttons that are available for use - the ones you see when you hit F1 while playing. The whole keyboard is not mapped - just a few select (character) keys.


If you want to be able to use other keys, including the numbers, you will need a keyboard script.
The Input.press🙂?) arguments refer to the pre-set buttons that are available for use - the ones you see when you hit F1 while playing. The whole keyboard is not mapped - just a few select (character) keys.

If you want to be able to use other keys, including the numbers, you will need a keyboard script.
Do you have a link to a specific character script I could use? Or should this go to the script help forums to request one?
Moving to RGSS3 Script Requests


There are keyboard scripts out there. Did you search the Master Script List?
I've looked at several scripts, and none seem to fit what I need.

I basically need someone to walk me through the process of some of these scripts, because if I DO find one that I think will work, apparently I don't use it correctly.
http://himeworks.com/2013/07/full-input-keyboard/ Okay I found a script that I think will help me.

And... I have no idea how to use it. All I want is to just be able to use a number to perform an action with a conditional branch.
You need both scripts there, so put them both into your project (the keyboard script itself as well as the Interpreter patch).


In your Conditional Branch, select the Script option (bottom of tab 4), and put

Input.key(x)where x is one of the symbols defined in KEYMAP in the script. This list is right at the top of the keyboard script.
So if you wanted to check for the 1 key being pressed, you'd use Input.key(KEY_1) or Input:KEYMAP[KEY_1] (though maybe that should be :: and not just :


Try a few variations and see if you can come up with something that doesn't throw an error.
EDIT 4: Deleted aaall of my previous comments. Found this https://adrarian.wordpress.com/2014/03/11/keyboard-manager/ instead. If I come across any problems I'll comment again but I think it's working and it's more straight forward.

Original thread: https://forums.rpgmakerweb.com/threads/vxace-numbers-causing-actions.38049/