Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   I need a little help here.... (https://forums.graalonline.com/forums/showthread.php?t=2286)

GraalWarrior2k1 05-06-2001 08:23 AM

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.

Fai 05-06-2001 08:24 AM

0,1,2,3 = directions...

and i think you have to use it with timeouts or something.

KJS 05-06-2001 10:37 AM

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

so like

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

Termina_GP4 05-06-2001 10:50 AM

oooooo, i hav never tried that, could u give a big example with the timeout thing too

KJS 05-06-2001 10:58 AM

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
}

Termina_GP4 05-06-2001 11:00 AM

i know about the whole rc thing, but i didn't upgrade it, and thankx for da help

KJS 05-06-2001 11:02 AM

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...

Termina_GP4 05-06-2001 11:03 AM

ok

GraalWarrior2k1 05-06-2001 12:13 PM

are u sure it has to do with the timeout dealy?

MoonAngel 05-07-2001 08:16 AM

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

KJS 05-07-2001 08:51 AM

oh
 
oh I didn't kjnow that

MoonAngel 05-07-2001 08:53 AM

well now you do, P2P PW only get 2 free accounts, i know one is PWNAME_Owner like Termina_Owner


All times are GMT +2. The time now is 12:35 PM.

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