Thread: Tokens...
View Single Post
  #8  
Old 10-17-2003, 05:43 AM
Lance Lance is offline
dark overlord
Lance's Avatar
Join Date: Sep 2003
Location: Space Jam Mountain
Posts: 5,072
Lance is on a distinguished road
Re: Tokens...

Quote:
Originally posted by Idrox0
Does anyone know how to make a code that will show as many tokens as made? An example...

NPC Code:

if (playerchats) {
tokenize #c;
message #t(0) #t(1) ...;
}



How would I make the npc show just as many words as said? I have tried this next code to show the text you say up to a limit of five:

NPC Code:

if (playerchats) {
tokenize #c;
message #t(0) #t(1) #t(2) #t(3) #t(4);
}



But it wont say anything. I once saw the code, but it was on Doomsday, and that's gone. Anyone know it?
This may be reaching, but...could you be possibly trying this in a weapon NPC instead of a level NPC?

If it's a level NPC, then that code you said should just work fine. If it's a weapon, then it will not, as the NPC does not physically exist in the level for the message command to work, and you will want to use setplayerprop #c,(stuff); to change the player's chat.
Reply With Quote