Edit variable with keyboard Script
5 Jan 2010
SummaryI'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>>"
MockupsAs you can see I want it quite like a batch script.
Games its been inI 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@>