KEYBOARD INPUT

RPG Maker VX

ever want to type something?

ever want to type something?
Well with this script no more moveing that little square around to type in your name.
with this script just TYPE in your name!

Posts

Pages: 1
Hey, I have a part in my game where I want to have the user find a password and type it in as a word like this. Could this script be adapted for that somehow?
Caz
LET'SBIAN DO THIS.
6813
author=theneonheart
Hey, I have a part in my game where I want to have the user find a password and type it in as a word like this. Could this script be adapted for that somehow?


This is late, but there is a simple way to event this with or without this script.

Firstly, create an actor which will be used solely for the key word you want. Don't call it anything, don't give it any graphics - just leave it all blank. Next, make an event like a door or something which will request the key word. It will request it by saying "Password please!" and then bringing up the name input menu where you type in the actor's name. Use the blank actor (mine was number 12 in the database) and ask the player to "rename" him. This is where they type in what the password is. Then, there is a conditional branch right after which asks whether or not the actor's name is the same as the password. If it is, it'll say "password correct!" and if not, it'll says it's incorrect.

Here, I want the password to be "COOKIE". If the player types anything other than "COOKIE", they will be told it's incorrect and they'll have to come back and try again.

Just remember: this is case sensitive! If your password is set to be in upper case, they'll have to type it in upper case.

It works! Awesome! Thanks so much.
Now if only there were a way to make it work for both upper case and lower case...
Caz
LET'SBIAN DO THIS.
6813
This recent tutorial might help if you were willing to mess around with the scripts of the game, but this would also ruin any possibility of naming actual characters. I'm not confident with RGSS so I can't really help you there, but you could try asking the tutorial's author for some pointers?
I wonder if there is a way to just add a script so that it only lets you input all uppercase and doesn't have lower case on the options screen... Then I could just make all the 'passwords' all uppercase and there'd be no conflict... I don't have any instances where the player names characters anyway, but even with that, they could just all be uppercase, I don't think it would ruin the game's aesthetic, I've seen games where all the player named characters read back as uppercase.
Pages: 1