Thread: keydown
View Single Post
  #5  
Old 09-27-2001, 03:17 AM
Guest
Posts: n/a
Quote:
Originally posted by Knightoffrost
[ Delph Inc. ]
Well if you have managed to get the new version as many of us have...you will see that Stefan has included an ascii command.
You know how each key has a certain numeric value? Well that's what this does.
You give it a number and it calls the key related to that number.
I'll type what it says about it:

- new script function ascii(c) to get the
ascii code of a character (ascii(A) is 65);
the other way (converting ascii code to
character) can still be done by using the
#K(num) message code (#K(65) is A)

This means we should be able to do stuff like
if (keydown(ascii(66)) {
script...
}
That would mean if the player has pressed the character 'b'
that is pretty cool what you typed up but that dont work... if stefan or anybody knows a way where you can do stuff like that, that works pleae post it cause i need to know how to use it to.
Reply With Quote