A token is a segment of a given string. You need to specify what the string is (i.e. a sentence), what token you want to manipulate, and what character number (ASCII number) the characters are separated by. For example:
//echo -a $gettok(quick brown fox
) will return 'fox'. quick brown fox
is the string. 3
is telling mIRC you want to GET the third TOKEN (gettok) and 32
is the ASCII number for a space - the tokens are separated by a space.
//echo -a $gettok(apples.pears.milk
) will return 'pears' because the 2
means the second token, and the tokens are separated by ASCII character 46
More examples/explanations can be found in this tutorial
as not all token identifiers are as simple as that. /help Tokens
is also a reference. You can also find a list of ASCII characters and their associated character numbers at http://www.mirc.net/ascii.php
which may be useful.