Thread: keydown
View Single Post
  #2  
Old 09-26-2001, 05:43 PM
Knightoffrost Knightoffrost is offline
and Delph Inc.
Knightoffrost's Avatar
Join Date: Jul 2001
Location: Canada
Posts: 1,162
Knightoffrost is on a distinguished road
Send a message via ICQ to Knightoffrost Send a message via AIM to Knightoffrost Send a message via Yahoo to 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'
__________________
Xerphier Dintch
Featuring
Reply With Quote