Thread: tokens
View Single Post
  #15  
Old 10-03-2001, 03:33 AM
PresShinP2P PresShinP2P is offline
Registered User
Join Date: Oct 2001
Location: Screw it
Posts: 84
PresShinP2P is on a distinguished road
Send a message via AIM to PresShinP2P
you could shorten it, example:
// NPC made by Spanky
if (playertouchsme) {
toweapons *Level Warper;
}
if (playerchats&&isweapon) {
tokenize #c;
if(strequals(#t(0),warpto)){
if(tokenscount==4){
setlevel2 #t(3),strtofloat(#t(1)),strtofloat(#t(2));
}
if(tokenscount==3){
playerx=strtofloat(#t(1));
playery=strtofloat(#t(2));
}
}}

shortened, but you sacrifice readablility
__________________
President Shinra
Reply With Quote