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 08-23-2005, 07:57 PM
Idrox0 Idrox0 is offline
Registered User
Join Date: Oct 2003
Posts: 66
Idrox0 is on a distinguished road
Question 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).
__________________
Reply With Quote
  #2  
Old 08-23-2005, 08:20 PM
ForgottenLegacy ForgottenLegacy is offline
-Backtoscripts-
Join Date: Aug 2003
Location: California
Posts: 289
ForgottenLegacy is on a distinguished road
Send a message via AIM to ForgottenLegacy
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

__________________
"The higher you fly, the harder it is to breathe."

[Kaidenn] Maybe I will somehow take control of Lance's body when he isn't looking, have him log onto Kingdoms, update one script, and leave.
[Kaidenn] And leave him exactly where I found him, unchanged and completely unnaware of what just took place the last two minutes.
[GrowlZ] Lance: You might want to lock your bedroom door tonight

Last edited by Lance; 08-25-2005 at 12:54 AM.. Reason: reference to deleted post removed :)
Reply With Quote
  #3  
Old 08-23-2005, 10:19 PM
calani calani is offline
Scriptess
calani's Avatar
Join Date: Aug 2003
Location: asmgarden.gmap
Posts: 606
calani is on a distinguished road
Send a message via AIM to calani
(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.
__________________
Reply With Quote
  #4  
Old 08-25-2005, 01:52 AM
calani calani is offline
Scriptess
calani's Avatar
Join Date: Aug 2003
Location: asmgarden.gmap
Posts: 606
calani is on a distinguished road
Send a message via AIM to calani
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.
__________________

Last edited by calani; 08-25-2005 at 05:37 AM..
Reply With Quote
  #5  
Old 08-25-2005, 02:13 AM
Malinko Malinko is offline
Unholy Nation
Join Date: Mar 2004
Location: Massachusetts, U.S.A.
Posts: 1,782
Malinko is on a distinguished road
Send a message via AIM to Malinko
Quote:
Originally Posted by calani
Post got deleted here, too.
Looks like I'm not allowed to help anymore...?
Hah.
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 11:39 AM.


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