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 05-06-2001, 08:23 AM
GraalWarrior2k1 GraalWarrior2k1 is offline
Registered User
GraalWarrior2k1's Avatar
Join Date: Mar 2001
Location: New York
Posts: 506
GraalWarrior2k1 is on a distinguished road
Send a message via AIM to GraalWarrior2k1
Unhappy

Does anyone know how to work the command:
if (keydown(key))?
Because it never works for me, no matter what i do! I want to make it so if you press down like the "right" key you'll change into a gani. i was thinking it was something like:
if (keydown(right)) {setani cow,;
}


but the keydown part doesn't work, but i ahve the gani thing right.
Reply With Quote
  #2  
Old 05-06-2001, 08:24 AM
Fai Fai is offline
!!!!!!!!!!!!!!!!!!!!!!!!!
Fai's Avatar
Join Date: Mar 2001
Location: New York
Posts: 4,491
Fai will become famous soon enough
Send a message via ICQ to Fai Send a message via AIM to Fai
0,1,2,3 = directions...

and i think you have to use it with timeouts or something.
__________________
SIGNATURE
Reply With Quote
  #3  
Old 05-06-2001, 10:37 AM
KJS KJS is offline
The one, The only -
KJS's Avatar
Join Date: Apr 2001
Location: USA, Minnesota
Posts: 1,012
KJS is on a distinguished road
Send a message via AIM to KJS
Cool yes

yea you have to do it in a timeout...

so like

if(timeout){
if(keydown(<key>)){setani cow,;}
timeout=.1;
}
__________________
Thanks,
-KJL

Last edited by KJS; 05-06-2001 at 10:42 AM..
Reply With Quote
  #4  
Old 05-06-2001, 10:50 AM
Termina_GP4 Termina_GP4 is offline
Registered User
Join Date: May 2001
Posts: 297
Termina_GP4 is on a distinguished road
oooooo, i hav never tried that, could u give a big example with the timeout thing too
__________________
click

or here

if you do i will give you a cookie
Reply With Quote
  #5  
Old 05-06-2001, 10:58 AM
KJS KJS is offline
The one, The only -
KJS's Avatar
Join Date: Apr 2001
Location: USA, Minnesota
Posts: 1,012
KJS is on a distinguished road
Send a message via AIM to KJS
Cool jw

just wondering why would you upgrade a rc account...
like what if you get fired and tehy change the password you would be screwed over I would beleve.... I dunno but I would never do that..

for timeout you just say

timeout=<time>;

so like if you want to timeout for 1 second you would say
timeout=1;
the fastest you can get it to is
timeout=0.05;

and to check for when the timeout is done you go

if(timeout){
//what you do
}
__________________
Thanks,
-KJL
Reply With Quote
  #6  
Old 05-06-2001, 11:00 AM
Termina_GP4 Termina_GP4 is offline
Registered User
Join Date: May 2001
Posts: 297
Termina_GP4 is on a distinguished road
i know about the whole rc thing, but i didn't upgrade it, and thankx for da help
__________________
click

or here

if you do i will give you a cookie
Reply With Quote
  #7  
Old 05-06-2001, 11:02 AM
KJS KJS is offline
The one, The only -
KJS's Avatar
Join Date: Apr 2001
Location: USA, Minnesota
Posts: 1,012
KJS is on a distinguished road
Send a message via AIM to KJS
Cool geeze

really stop spamming...
this is annoing... you have every board iwth your name on it... and you say like usless things....


sorry everyone for that I am kinda spamming but this is annoing...
__________________
Thanks,
-KJL
Reply With Quote
  #8  
Old 05-06-2001, 11:03 AM
Termina_GP4 Termina_GP4 is offline
Registered User
Join Date: May 2001
Posts: 297
Termina_GP4 is on a distinguished road
ok
__________________
click

or here

if you do i will give you a cookie
Reply With Quote
  #9  
Old 05-06-2001, 12:13 PM
GraalWarrior2k1 GraalWarrior2k1 is offline
Registered User
GraalWarrior2k1's Avatar
Join Date: Mar 2001
Location: New York
Posts: 506
GraalWarrior2k1 is on a distinguished road
Send a message via AIM to GraalWarrior2k1
are u sure it has to do with the timeout dealy?
Reply With Quote
  #10  
Old 05-07-2001, 08:16 AM
MoonAngel MoonAngel is offline
Banned
MoonAngel's Avatar
Join Date: Mar 2001
Location: QUÉBEC!
Posts: 1,443
MoonAngel is on a distinguished road
Send a message via ICQ to MoonAngel Send a message via AIM to MoonAngel
Re: jw

Quote:
Originally posted by KJS
just wondering why would you upgrade a rc account...
}
You cant upgrade RC Accounts, Termina's rc accounts are all p2p, but they cant go on any other PW then Termina
Reply With Quote
  #11  
Old 05-07-2001, 08:51 AM
KJS KJS is offline
The one, The only -
KJS's Avatar
Join Date: Apr 2001
Location: USA, Minnesota
Posts: 1,012
KJS is on a distinguished road
Send a message via AIM to KJS
Cool oh

oh I didn't kjnow that
__________________
Thanks,
-KJL
Reply With Quote
  #12  
Old 05-07-2001, 08:53 AM
MoonAngel MoonAngel is offline
Banned
MoonAngel's Avatar
Join Date: Mar 2001
Location: QUÉBEC!
Posts: 1,443
MoonAngel is on a distinguished road
Send a message via ICQ to MoonAngel Send a message via AIM to MoonAngel
Wink

well now you do, P2P PW only get 2 free accounts, i know one is PWNAME_Owner like Termina_Owner
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 07:44 PM.


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