Edit variable with keyboard Script
5 Jan 2010
Summary
I'm working on some kind of computer hacking system.
There will be two different types of hacking. The first I've promised help with but the second i need help with.
It is supposed to be a system where you get in a menu, where you will be able to write a code with your keyboard.
Then when you hit ENTER it will save whatever was written into a variable and then trigger a common event and then
it will make the player able to write in a new command. It will loop until the player writes "system.close" or something.
The common event will be no problem I believe, but it is the script I need help with.
Oh, and of course there will be help in how the code is written. It won't be very hard.
Features Desired
- Set a variable into whatever was written in the field
- Another field above that shows what was recently written and what the "computer" answers.
- Easy to find where in the code the fields is so I can change places, perhaps.
- Easy to make the script write something in the above field from the common event.
Like this: $game_system.computer = "<<Whatever I want written here>>"
Mockups
(https://rmrk.net/proxy.php?request=http%3A%2F%2Fgycn4g.bay.livefilestore.com%2Fy1puO2vTV2xTWpFM10R5bL-X1AeJFSv-wrNm_1-bqqhkxN4OCjMXu_W4jmVEUmFZa5PfQJ7czOJS_RHaSNcc2erLIS6cFjyVSIL%2Flaptopscreen.PNG&hash=74c6658111883d2b6959093c0916b4310ac73bce)
As you can see I want it quite like a batch script.
Games its been in
I don't recall any game that it has been in right now...
Did you search?
Well, yea. Sort of. Modern Algebra said to me a time ago that it was impossible in RMXP to make such fields,
(But if it is, how can then you write in a filename in the Tileset Creator project?) so I didn't search very long.
Where did you search?
- RMRK
- HBGames.org
- Google
- Yahoo
- And other search engines
What did you search for?
- rpg maker xp keyboard variable change
- rmxp keyboard variable change
Edit: Oh, and this is what I want the common event to look like.
Of course not exact because I don't know if the scripts is right but, yea.
@>Comment: Check what was written in the computer.
@>Conditional Branch: Script: $game_variables[1] = system.close
@>Script: $scene =Scene_Map.new
@>
: Branch End
@>Conditional Branch: Script: $game_variables[1] = search test.txt
@>Script: $game_system.computer = "Searching
: : file..."
@>
: Branch End
@>