Help me. Ever since Graal 2.04, I have been having trouble with npcserver. I can't even get a frickin keydown event to work!
NPC Code:
if (playertouchsme) {
setstring this.owner,#a;
message Touched;
timeout=0.1;
}
if (timeout) {
with (getplayer(#s(this.owner))) {
if (keydown(6)) {
this.continue=true;
message Works;
}
}
sleep 2;
if (this.continue==true) {
message Yay!;
} else { timeout=0.1; }
}
I can touch it, because Touched works, but it won't work when the key A is pressed! ARG! Anyone care to help?