Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   One thing... (https://forums.graalonline.com/forums/showthread.php?t=60656)

Idrox0 08-23-2005 07:57 PM

One thing...
 
Is keypressed an event or condition?
Event: When a key is pressed.
Condition: When any key is down (keydown uses a specific key).

ForgottenLegacy 08-23-2005 08:20 PM

NPC Code:

if (keypressed) // This is an event
if (keydown(int)) // This is a condition
if (keydown2(int,bool)) // This is also a condition, like keydown


calani 08-23-2005 10:19 PM

(keypressed) is an event
keydown() and keydown2() are conditions

Condensed into an eay-to-read post
also showing off my way of differentiating between the two ;)
use it, bask in its glory, for it is beautiful.

calani 08-25-2005 01:52 AM

Post got deleted here, too.
Looks like I'm not allowed to help anymore...?

Edit: hey cool, the L-man added it back! (or someone did, anyways)
Mayhap I'm still allowed to help.

Malinko 08-25-2005 02:13 AM

Quote:

Originally Posted by calani
Post got deleted here, too.
Looks like I'm not allowed to help anymore...?

Hah.


All times are GMT +2. The time now is 01:20 PM.

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