Thanks to everyone for their answers.
I had already discovered that $gettok will work instead of $token, but to make the Trivbot script work, the identifier arguments needed to be arranged in a different order. ie
n55=;return $token($2,$asc($3),$1)
n56=return $gettok($1,$2,$asc($3))
I found one other error, which mirc reported as ' /if: insufficient parameters (line 220, script.ini)'.
Mirc 6.16 reports this error, but Mirc 5.6 lets it go by with no problems running the script. However I managed to nut that problem out too. Hint : count the opening and closing brackets in line 220 lol
Anyways, Trivbot now runs in the latest version of Mirc.
Why do I want it so? Dunno... I just like wasting time, and I won't be able to do it when I am dead

regards, Mark