Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 08-11-2008, 07:08 PM
Knightmare1 Knightmare1 is offline
Billy Allan
Knightmare1's Avatar
Join Date: Apr 2007
Posts: 804
Knightmare1 can only hope to improve
Key Codes?

i just was wondering if someone could help me with keycodes. i dont know what any of them are, and i cant find it on the wiki.
__________________
I am the devil, I am here to do to devils work.
Reply With Quote
  #2  
Old 08-11-2008, 07:12 PM
Tigairius Tigairius is offline
The Cat
Tigairius's Avatar
Join Date: Jan 2007
Location: Missouri, USA
Posts: 4,240
Tigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant future
You can test them with a script.

If you want to use your keyboard to do it:
PHP Code:
function onKeyPressed(c) {
  
player.chat c;

You can also do this:
PHP Code:
player.chat getkeycode("k"); 
Would return the keycode to 'k'.
__________________


“Shoot for the moon. Even if you miss, you'll land among the stars.”
Reply With Quote
  #3  
Old 08-11-2008, 07:20 PM
Knightmare1 Knightmare1 is offline
Billy Allan
Knightmare1's Avatar
Join Date: Apr 2007
Posts: 804
Knightmare1 can only hope to improve
thankyou!
__________________
I am the devil, I am here to do to devils work.
Reply With Quote
  #4  
Old 08-12-2008, 02:25 AM
Googi Googi is offline
A Serious Epidemic
Googi's Avatar
Join Date: Oct 2001
Location: Canada
Posts: 18,866
Googi has much to be proud ofGoogi has much to be proud ofGoogi has much to be proud ofGoogi has much to be proud ofGoogi has much to be proud ofGoogi has much to be proud of
Send a message via AIM to Googi
Quote:
Originally Posted by Tigairius View Post
PHP Code:
function onKeyPressed(c) {
  
player.chat c;

I might as well point out that you can do this in GS1 too, for those of us who are stuck using just the offline editor but want to get keycodes for some reason.

PHP Code:
if (keypressed) {
  
setplayerprop #c, #p(0);

__________________
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 08:06 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.