if (playerchats&&startswith(setred,#c)){
tokenize #c;
this.red = strtofloat(#t(1));
}
NPC Code:
setstring list,Hello how are you today;
tokenize #s(list); // don't forget the #s() here;
// #t(0) will = Hello , #t(1) will = how , and so on.
tokenize Hello how are you today; // don't need the #s() doing it this way
// #t(0) will = Hello lik ebefore
setstring list, ab.c.defg.hi.jklmnop;
tokenize2 . , #s(list); // don'tforget teh #s() here
// #t(0) will = ab ; #t(1) will = c ; #t(2) will = defg ;
tokenize2 #, hello#how#are#you; // don't need #s() here;
// #t(0) will = hello ; #t(1) will = how ; #t(2) will = are ; and so on
That should be enough examples.....