You can use $gettok() but you need to set #one,#two,#three to a variable first.

$gettok(#one,#two,#three,1,44) - this won't work.
var %chans = #one,#two,#three | echo -a $gettok(%chans,1,44) - this will work.

Let me know if you need help with the rest of the script now that you know how to get the token identifiers working.