Quote:
Originally posted by Knuckles
O.O, I don't think that would work.. >:P.
It would, accept you would have to say it EXACTLY on the 3rd second.
NPC Code:
if (playertouchsme) {
message Hi, whats up?;
sleep 1;
message Do you like punk?;
this.mode = 1; // Just pretend that this means 'if was talked to'
}
if (playerchats && strequals(#c,yes) && this.mode == 1) message Oh cool! Me too!;
// Noticed I added the && this.mode == 1.
// Thats to check if the NPC was talked to/touched
// Else if the player chats NO.. blah
else if (playerchats && strequals(#c,no) && this.mode == 1) message Ewww! I can't belive you don't like punk!;
|
I didn't test it, nor was I expecting it to work. I just showed him how to use the playerchats and strequals. He can find out the bugs on his own.