View Single Post
  #12  
Old 12-16-2001, 08:38 PM
konidias konidias is offline
Old Bee
konidias's Avatar
Join Date: Jul 2001
Location: Orlando, FL
Posts: 7,222
konidias will become famous soon enough
Send a message via AIM to konidias
Re: without if though you couldn't do some cool commands...

Quote:
Originally posted by Saga2001
NPC Code:

(playerchats) {
tokenize #c;
(strequals(#t(0),Do)&&strequals(#t(1),Cool)&&streq uals(#t(2),Command)) {
playerheadset=603;
set randowarp;
}
}
while (randowarp) {
playerx = random(0,64);
playery = random(0,64);
sleep .05;
}



wouldn't that suck?!?!?!
i am going with if...
but besides if i am going with with(getplayer(accountname))...
One question.. why is the players chat text tokenized, and then checked if it equals 3 words, when you could have just as easily said:

NPC Code:

if (playerchats && strequals(#c,Do Cool Command)) {



????

Anyway, I would have to be stuck with join and putnpc2 also.
__________________

Put this image in your sig if you support Bomy Island! (g2k1 revision)
play bomberman while you wait!