As it turns out, the AGI Studio compiler and help file handle the word.to.string command incorrectly.
The help file states:
"word.to.string(wA,sB); -- This command is supposed to convert a word to a string, but I have not been able to get it to work."
Well, it does indeed work. What it does is retreive a word from the player input (a words.tok word), and place it in a string. However, it's actually "word.to.string(sA, B)". The sA is the destination string, and the B is an immediate number for the word number starting at 0.
For example, if the player enters "look at door", the interpreter parses it as "look door", and "look" would be word 0, "door" would be word 1.
code example:
if(isset(f2)) {
word.to.string(w5,s1);
print("WORD #1: %s5");
}
Put that in your logic.0 or whatnot, and see it in action. Note that the correct form would be "word.to.string(s5,1);", but the compiler incorrectly parses the arguments.