View Single Post
  #9  
Old 02-08-2002, 12:13 PM
BocoC BocoC is offline
Registered User
BocoC's Avatar
Join Date: Jun 2001
Location: Washington State, USA
Posts: 980
BocoC is on a distinguished road
Send a message via AIM to BocoC Send a message via Yahoo to BocoC
The problem most people don't understand is that NPCs don't run CONSTANTLY. They run only when they need to. So if you got a NPC with this code:
NPC Code:

if (created) showcharacter;
if (keydown(0)) say2 Blah;


The
if(keydown(0))
will ONLY work if the NPC is activated while the player is hold down the UP key. People put keydown() in loops because the script is ACTIVE and it will pick up the keydown. I hope somebody can help me on this. Wanna give it a try Kaimetsu?
__________________
-Boco

FLKJH$TRFG*$(&%>FMG >REN<>F ;.kjsd