![]() |
#t() help
How can I have all the tokens after a certain token be shown?
What i mean is, after #t(1), i want all the tokens to be shown along with that, but because the amount of tokens is always changing, i just can't add more #t(). Is there a character i can add with #t() so it knows to show all the tokens after it, or will i need to put it into a loop.. |
The variable tokenscount should help, make a for loop that appends the rest of the tokens to a string, for example.
|
Quote:
|
Arg, did I ever tell you how much you people scare me?!
This is an example that will take something if you chat, and sendtorc #t(1) up to #t(i) =) This is the MOST efficent way ;) NPC Code: Short, sweet, and to the point =) #e (as alex said) is the best way, but all you have to do is have it do the string length. Plus #T removes spaces at the beginning =D ---Shifter |
It's usually foolish to proclaim that your method is the most efficient, especially in a language like GScript. It's impossible to know for sure since we don't know how Graal works internally, and you run the risk of somebody saying something like:
Hey dorkface, that only works if spaces are the only delimiters. |
LOL, point taken Kai. But to the best of my knowledge, that is the most efficient way ;)
And if you're using another delimiter, it should be self explanatory ;) ---Shifter |
| All times are GMT +2. The time now is 05:11 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.