[Ohrrpgce] Input String command

Mike Caron caron.mike at gmail.com
Wed Jun 1 11:27:04 PDT 2005


I was thinking about implementing a routine to give the player a
chance to input an arbitrary string (without the use of name hero()),
and I came up with this routine (or two).

It's not done, but you can enter all the letters* (upper and lower
case), numbers (both the numbers, and their respective symbols),
space, backspace and enter (which doesn't get put in the stream, but
instead says "ok, done").

* - with the exception of "j", since that brings up the joystick
calibration menu. Perhaps a bitset to disable that would be in order

The other routine (which is actually above it) essentially translates
the key codes into ascii values. Of course, this would all be simpler
if game remembered the ascii code entered (or even the last key code)
instead of having to check *each* key.

I'm going to finish this up tonight. The only reason I'm sending it
like this is because I'm at school right now, and need to transport it
home. :) So, I thought I'd ask for some C&C in the mean time.

-- 
Mike Caron
Final Fantasy Q
http://finalfantasyq.com
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: inputstr.txt
URL: <http://lists.motherhamster.org/pipermail/ohrrpgce-motherhamster.org/attachments/20050601/5b49c2f2/attachment.txt>


More information about the Ohrrpgce mailing list