View Single Post
  #1  
Old 09-27-2001, 07:39 AM
nyghtGT nyghtGT is offline
Banned
nyghtGT's Avatar
Join Date: Jun 2001
Posts: 3,993
nyghtGT is on a distinguished road
Send a message via AIM to nyghtGT
tokenizing >,=,<

ok i got the standard tokenizing down but like if the token saved is a number is there a way i can use it as in the below ?

NPC Code:

// NPC made by Nyght v3.5
if (playerenters) {
toweapons *Staff Warper
}
while (created && !staff) {
destroy;
}
if (playerchats && staff && startswith(warpto,#c)) {
tokenize #c;
if (#t(1)>=0) {
this.warpcommand=0;
}else setlevel #t(1);
}



I dont think '(#t(1)>=0)' is right but i want if the number value of the token is greater than or equals to zero to set the variable this.warpcommand to 0 ....

please help ....
Reply With Quote