Thread: #e uses..
View Single Post
  #9  
Old 09-27-2001, 06:10 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
it starts at 0 like with tokens .... like
i say "Welcome to Graal"
the tokens set would be:
#t(0)=Welcome
#t(1)=to
#t(2)=Graal
then i use:
NPC Code:

if (playerchats) {
tokenize #c;
message #t(0);
sleep 1.25;
message #t(1);
sleep 1.25;
message #t(2);
sleep 1.25;
message ;
}


the npc would say pausing 1 1/4 seconds after each:
Welcome <pause> to <pause> Graal <pause>

Basically the index is the number of items, but the items count starts at one .... so #t(0) has a value.

And i aint a genious but i suppose its the same as setting the index of all things ....

(please correct me if wrong)
Reply With Quote