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>>"
Mockups(https://rmrk.net/proxy.php?request=http%3A%2F%2Fgycn4g.bay.livefilestore.com%2Fy1puO2vTV2xTWpFM10R5bL-X1AeJFSv-wrNm_1-bqqhkxN4OCjMXu_W4jmVEUmFZa5PfQJ7czOJS_RHaSNcc2erLIS6cFjyVSIL%2Flaptopscreen.PNG&hash=8ed338dcab10ee8545e982cdaed807d7bc41e358)
As 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
@>
I don't remember saying anything like that; if I did, then I was wrong. I don't think this script would be overly difficult, but I don't think I will take the request.
Well it wasn't exactly that:
Quote from: stripe103 on December 17, 2009, 07:33:53 AM
This is really good.
I wish there was this kind of script for XP
Quote from: modern algebra on December 17, 2009, 01:03:30 PM
There aren't any note fields in XP :P
Also... This isn't possible to do in only events, or is it?
Oh, ok - that's true. What I was referring to was the note field in the database - actors, items, states, etc.. all have note field that allow the game creator to write stuff in. That's not this.
Anyway, it is possible to do in events, but it would be ugly and inefficient. You'd have to use picture eventing, and since there isn't full keyboard input by default you would need to get that script or else use Name input. The best way to do this type of system is with a script, as far as I'm concerned.
Ok, thanks for the answer. Then I'll just have to wait for anyone to take this request.
I believe that there are quite a lot that want this kind of script so I think that it would be worth making.
To bad that I don't are good with scripts. All I can do is like edit some easier things.