View Single Post
  #22  
Old 11-15-2003, 07:05 PM
-Ramirez- -Ramirez- is offline
Registered User
Join Date: Jun 2002
Location: USA, Ohio
Posts: 729
-Ramirez- has a spectacular aura about-Ramirez- has a spectacular aura about
Quote:
Originally posted by Kaimetsu
My fault, I should've been more explicit. They're identical in terms of the range of values in use here (ie: only letters). I dunno about the upper-case thing, I've never experimented with that. If it is true then Ramirez' solution is inadequate.
That turns out to be true, but only because Graal is weird with keypressed. Instead of returning 65 to 90 for uppercase letters, and 97 to 122 for lowercase letters, it returns 65 to 90 for lowercase, and 321 to 346 for uppercase letters, strangely enough. It would seem extending beyond the normal 255 range just wraps around, like directions do.

...too bad all of this is still assuming it's for keypressed.


Quote:
Are there any other realistic explanations for him processing single-character params and filtering for letters, then appending one-by-one to a string? [/B]
Why does it have to be realistic? What says he's using some method that you would think of as being used the most? Who's to say he doesn't have some weird script triggeractioning the chat text of the player to another NPC? There's no reason to assume it's keypressed just because that's the most likely thing. He did not ask for his script to be optimized, he asked why #K(string) didn't work.
__________________
Kat
Reply With Quote