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 12-23-2005, 12:52 AM
Angel_Light Angel_Light is offline
Varia Developer
Angel_Light's Avatar
Join Date: Nov 2005
Location: Knoxville, TN
Posts: 1,684
Angel_Light is on a distinguished road
Send a message via AIM to Angel_Light Send a message via MSN to Angel_Light
Q Menu

Hello all, is there any command for the qmenu? I've tried keydown(Q) and most stuff alike and none of it seems to work? Any help?
__________________
Deep into the Darkness peering...
Reply With Quote
  #2  
Old 12-23-2005, 01:03 AM
Skyld Skyld is offline
Script-fu
Skyld's Avatar
Join Date: Jan 2002
Location: United Kingdom
Posts: 3,914
Skyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud of
Send a message via AIM to Skyld
The Wiki suggests that the check for Q is:
PHP Code:
if (keydown(9))
{
  
// Code

You may also want to disable weapon select if you are writing your own Q menu:
PHP Code:
disableselectweapons
__________________
Skyld
Reply With Quote
  #3  
Old 12-23-2005, 01:52 AM
Angel_Light Angel_Light is offline
Varia Developer
Angel_Light's Avatar
Join Date: Nov 2005
Location: Knoxville, TN
Posts: 1,684
Angel_Light is on a distinguished road
Send a message via AIM to Angel_Light Send a message via MSN to Angel_Light
All hail the wiki.... wait... what's this..... the wiki failed. XP That doesn't work dude.
__________________
Deep into the Darkness peering...
Reply With Quote
  #4  
Old 12-23-2005, 01:59 AM
Skyld Skyld is offline
Script-fu
Skyld's Avatar
Join Date: Jan 2002
Location: United Kingdom
Posts: 3,914
Skyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud of
Send a message via AIM to Skyld
Does this?
PHP Code:
if (keypressed)
{
  if (
keydown2(keycode(q),true))
  {
    
// Code
  
}

__________________
Skyld
Reply With Quote
  #5  
Old 12-23-2005, 02:26 AM
Angel_Light Angel_Light is offline
Varia Developer
Angel_Light's Avatar
Join Date: Nov 2005
Location: Knoxville, TN
Posts: 1,684
Angel_Light is on a distinguished road
Send a message via AIM to Angel_Light Send a message via MSN to Angel_Light
Nope
__________________
Deep into the Darkness peering...
Reply With Quote
  #6  
Old 12-23-2005, 02:58 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
Did you put
NPC Code:
//#CLIENTSIDE


in front of the script?
__________________
Reply With Quote
  #7  
Old 12-23-2005, 04:15 AM
Angel_Light Angel_Light is offline
Varia Developer
Angel_Light's Avatar
Join Date: Nov 2005
Location: Knoxville, TN
Posts: 1,684
Angel_Light is on a distinguished road
Send a message via AIM to Angel_Light Send a message via MSN to Angel_Light
Yes
__________________
Deep into the Darkness peering...
Reply With Quote
  #8  
Old 12-23-2005, 04:39 AM
ApothiX ApothiX is offline
Okiesmokie
Join Date: May 2004
Posts: 1,447
ApothiX is on a distinguished road
PHP Code:
if(keypressed) {
  if(
keydown(9)) {
    
setplayerprop #c,Wtf q pressed.;
  
}

?
__________________


[06:24:19] * Parts: Skyld (i=silent@unaffiliated/skyld) ("Perhaps Okiesmokie did not realise that I like the boys. ")
Reply With Quote
  #9  
Old 12-23-2005, 04:40 AM
Bl0nkt Bl0nkt is offline
Era Developer
Bl0nkt's Avatar
Join Date: Mar 2005
Location: Pennsylvania
Posts: 1,589
Bl0nkt will become famous soon enough
Send a message via AIM to Bl0nkt
Is there something wrong with the rest of your script?
Reply With Quote
  #10  
Old 12-23-2005, 06:40 AM
Lance Lance is offline
dark overlord
Lance's Avatar
Join Date: Sep 2003
Location: Space Jam Mountain
Posts: 5,072
Lance is on a distinguished road
Quote:
Originally Posted by Angel_Light
All hail the wiki.... wait... what's this..... the wiki failed. XP That doesn't work dude.
That would naturally need to execute within some kind of event, e.g. a timeout loop.
Reply With Quote
  #11  
Old 12-23-2005, 07:06 AM
Angel_Light Angel_Light is offline
Varia Developer
Angel_Light's Avatar
Join Date: Nov 2005
Location: Knoxville, TN
Posts: 1,684
Angel_Light is on a distinguished road
Send a message via AIM to Angel_Light Send a message via MSN to Angel_Light
tried it all none seems to work
__________________
Deep into the Darkness peering...
Reply With Quote
  #12  
Old 12-24-2005, 02:10 AM
Inverness Inverness is offline
Incubator
Inverness's Avatar
Join Date: Aug 2004
Location: Houston, Texas
Posts: 3,613
Inverness is a jewel in the roughInverness is a jewel in the rough
KeyPressed is an event

PHP Code:
function onKeyPressed() {
  if (
params[1] == "q") {
    
stuffhere;
  }

I use this for my Q Menu, works perfectly.
I guess for GS1 you would use:
PHP Code:
if (keypressed) {
  if (
strequals(#p(1),q)) {
    
stuffhere;
  }

__________________
Reply With Quote
  #13  
Old 12-24-2005, 09:14 AM
Angel_Light Angel_Light is offline
Varia Developer
Angel_Light's Avatar
Join Date: Nov 2005
Location: Knoxville, TN
Posts: 1,684
Angel_Light is on a distinguished road
Send a message via AIM to Angel_Light Send a message via MSN to Angel_Light
All hail Invern!!!!
__________________
Deep into the Darkness peering...
Reply With Quote
  #14  
Old 12-24-2005, 11:38 AM
ApothiX ApothiX is offline
Okiesmokie
Join Date: May 2004
Posts: 1,447
ApothiX is on a distinguished road
That would force people to use the 'q' button, not what they have set in the options. I suggest you use #K(9) (old engine), or keyname(9) (new engine)
__________________


[06:24:19] * Parts: Skyld (i=silent@unaffiliated/skyld) ("Perhaps Okiesmokie did not realise that I like the boys. ")
Reply With Quote
  #15  
Old 12-24-2005, 12:14 PM
Lance Lance is offline
dark overlord
Lance's Avatar
Join Date: Sep 2003
Location: Space Jam Mountain
Posts: 5,072
Lance is on a distinguished road
Quote:
Originally Posted by ApothiX
That would force people to use the 'q' button, not what they have set in the options. I suggest you use #K(9) (old engine), or keyname(9) (new engine)
lowercase k
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:28 PM.


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