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 11-05-2003, 01:49 AM
Kappa00p2p Kappa00p2p is offline
Registered theRapist
Kappa00p2p's Avatar
Join Date: Jul 2003
Posts: 198
Kappa00p2p is an unknown quantity at this point
Send a message via AIM to Kappa00p2p
Keydown

Can someone tell me the numbers for keydown?
__________________

-Kappa
Reply With Quote
  #2  
Old 11-05-2003, 01:54 AM
ZeLpH_MyStiK ZeLpH_MyStiK is offline
Scripter
ZeLpH_MyStiK's Avatar
Join Date: May 2003
Location: NYC
Posts: 553
ZeLpH_MyStiK is on a distinguished road
Send a message via MSN to ZeLpH_MyStiK Send a message via Yahoo to ZeLpH_MyStiK
There are a lot, use keycode(keyhere) and figure it out yourself. =/
__________________
Reply With Quote
  #3  
Old 11-05-2003, 01:56 AM
Kappa00p2p Kappa00p2p is offline
Registered theRapist
Kappa00p2p's Avatar
Join Date: Jul 2003
Posts: 198
Kappa00p2p is an unknown quantity at this point
Send a message via AIM to Kappa00p2p
found some of them but i need left arrow right arrow up arrow and down arrow

8 - back
9 - tab
13 - return
16 - shift
17 - control
18 - alt
33 - page up
34 - page down
35 - end
36 - home
42 - print key
45 - insert
46 - delete
91 - left windows key
92 - right windows key
93 - mouse popup key
112-123 - F1-F12
144 - numlock
160 - left shift
161 - right shift
162 - left control
163 - right control
164 - left alt/menu
165 - right alt/menu
__________________

-Kappa
Reply With Quote
  #4  
Old 11-05-2003, 02:10 AM
-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
Those are for keydown2(), not keydown(). The regular keydown() is what allows you to check for arrow keys and default Graal keys, regardless of what they have them set to in the options.

The values for keydown() are:
0 - up arrow
1 - left arrow
2 - down arrow
3 - right arrow
4 - D
5 - S
6 - A
7 - M
8 - Tab
9 - Q
10 - P
__________________
Kat

Last edited by -Ramirez-; 11-05-2003 at 02:29 AM..
Reply With Quote
  #5  
Old 11-05-2003, 02:11 AM
Kappa00p2p Kappa00p2p is offline
Registered theRapist
Kappa00p2p's Avatar
Join Date: Jul 2003
Posts: 198
Kappa00p2p is an unknown quantity at this point
Send a message via AIM to Kappa00p2p
thanks for the correction
__________________

-Kappa
Reply With Quote
  #6  
Old 11-05-2003, 02:18 AM
ZeLpH_MyStiK ZeLpH_MyStiK is offline
Scripter
ZeLpH_MyStiK's Avatar
Join Date: May 2003
Location: NYC
Posts: 553
ZeLpH_MyStiK is on a distinguished road
Send a message via MSN to ZeLpH_MyStiK Send a message via Yahoo to ZeLpH_MyStiK
There is one more, I believe it is keydown(10), which is P.
__________________
Reply With Quote
  #7  
Old 11-05-2003, 02:29 AM
-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 ZeLpH_MyStiK
There is one more, I believe it is keydown(10), which is P.
Oops, yes, that's correct.
__________________
Kat
Reply With Quote
  #8  
Old 11-05-2003, 03:58 AM
DarkShadows_Legend DarkShadows_Legend is offline
Cult of the Winky
DarkShadows_Legend's Avatar
Join Date: Apr 2003
Location: Florida
Posts: 614
DarkShadows_Legend is on a distinguished road
Send a message via AIM to DarkShadows_Legend
crap! For weeks I was looking for the number for the delete button and now someone posts it. x.x
__________________
- Criminal X

"I rather be hated for being myself, than be liked for being what you like best. I go above the influence, not under." - Me
Reply With Quote
  #9  
Old 11-05-2003, 04:08 AM
EsCanavi EsCanavi is offline
No Longer Graalian.
EsCanavi's Avatar
Join Date: Oct 2003
Location: ..:: Lassomption/Quebec/Canada ]::...
Posts: 214
EsCanavi is on a distinguished road
Send a message via AIM to EsCanavi Send a message via MSN to EsCanavi
those thing are in the 2002 feature txt
also the feature ....

- keydown2 is fixed, when you dont add 256,512 or 1024
(shift, control, alt) to the key number then it doesn't
return 'true' when those special keys are not pressed;
a few keycodes that can be used in keydown2 to check for
normally unaccessible keys (have not test all of them though):
8 - back
9 - tab
13 - return
16 - shift
17 - control
18 - alt
33 - page up
34 - page down
35 - end
36 - home
42 - print key
45 - insert
46 - delete
91 - left windows key
92 - right windows key
93 - mouse popup key
112-123 - F1-F12
144 - numlock
160 - left shift
161 - right shift
162 - left control
163 - right control
164 - left alt/menu
165 - right alt/menu

and feature

- scriptfunction for disabling features
enablefeatures flags;
A description of all flags:
1 - M key (map)
2 - P key (pause)
4 - Q key (weapon select)
8 - R key (show ratings)
0x10 - S+A key combination for dropping items
0x20 - S+D key combination for switching weapons
0x40 - TAB key (if disabled then you cannot switch to the chat field with TAB)
0x80 - display of chat text
0x100 - display of the hearts over player heads
0x200 - display of nicknames
0x400 - toall/PM-icons on the minimap
0x800 - right-click on players opens their profile
0x1000 - emoticons (disable it if you want to do other stuff with control+keys)
0x2000 - Alt+5 for making snapshots
0x4000 - Alt+8/9 for zooming
0x8000 - the logframe where savelog stuff is added
allfeatures:
So to disable the profile click you can do:

enablefeatures allfeatures-0x800;
__________________
:: Free Gift... 40$ ::
:: WrsHosting ::
:: Need a webhost, contact me ( free ) 99.9% Online ::
Contact me: [email protected] (msn|mailbox)
Reply With Quote
  #10  
Old 11-05-2003, 04:45 AM
CheeToS2 CheeToS2 is offline
That Guy
CheeToS2's Avatar
Join Date: Dec 2001
Location: Seattle, WA
Posts: 2,528
CheeToS2 will become famous soon enough
Send a message via AIM to CheeToS2
Quote:
Originally posted by DarkShadows_Legend
crap! For weeks I was looking for the number for the delete button and now someone posts it. x.x
//#CLIENTSIDE
if (keypressed){
setcharprop #c,#p(0) #p(1);
}
__________________

Reply With Quote
  #11  
Old 11-05-2003, 05:20 AM
-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 CheeToS2


//#CLIENTSIDE
if (keypressed){
setcharprop #c,#p(0) #p(1);
}
Ugh, chat text replacers. Message; is so much nicer.
__________________
Kat
Reply With Quote
  #12  
Old 11-05-2003, 05:30 AM
Kaimetsu Kaimetsu is offline
Script Monkey
Kaimetsu's Avatar
Join Date: May 2001
Posts: 18,222
Kaimetsu will become famous soon enough
Quote:
Originally posted by -Ramirez-

Ugh, chat text replacers. Message; is so much nicer.
Not in this situation. It means the user can see the text wherever he is, and it's not like it's going to replace anything if he's playing offline.
__________________
Reply With Quote
  #13  
Old 11-05-2003, 05:43 AM
-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
Not in this situation. It means the user can see the text wherever he is, and it's not like it's going to replace anything if he's playing offline.
I guess I should have worded it differently. I was merely stating my opinion, not trying to get him to change what he was doing. I have always hated scripts that put things in your chat text.
__________________
Kat
Reply With Quote
  #14  
Old 11-05-2003, 05:56 AM
Kaimetsu Kaimetsu is offline
Script Monkey
Kaimetsu's Avatar
Join Date: May 2001
Posts: 18,222
Kaimetsu will become famous soon enough
Quote:
Originally posted by -Ramirez-
I guess I should have worded it differently. I was merely stating my opinion, not trying to get him to change what he was doing. I have always hated scripts that put things in your chat text.
*shrugs*

S'your prerogative. I just think the player.chat method is more practical in this case.
__________________
Reply With Quote
  #15  
Old 11-05-2003, 06:10 AM
-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
*shrugs*

S'your prerogative. I just think the player.chat method is more practical in this case.
New engine torturer!
__________________
Kat
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 04:20 AM.


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