Thread: Tokenize
View Single Post
  #15  
Old 06-18-2002, 08:02 PM
screen_name screen_name is offline
is watching you
Join Date: Mar 2002
Location: The 3rd Dimension
Posts: 2,160
screen_name is on a distinguished road
Send a message via AIM to screen_name Send a message via MSN to screen_name
NPC Code:

if (created) {
setimg light2.png;
dontblock;
timeout = 0.1;
}

if (timeout) {
//#CLIENTSIDE
if (startswith(setred,#c)) {
tokenize #c;
if (tokenscount==5 && strequals(#t(0),setred)) {
setplayerprop #c,Red was set to #t(1).;
SetRed();
} elsif (tokenscount!=5) {
say2 Incorrect syntax...;
}
}
timeout=.1;
}

function SetRed() {
setcoloreffect #t(1),#t(2),#t(3),#t(4);
drawaslight;
}

__________________
[signature]insert here[/signature]
Reply With Quote