I've never heard of that function. Does it even exist? Try $a = setword($a, 1, "3");
setWork
setWord and other functions don't automatically modify the variable you give them. You have to use %variable = function(%variable, %args)Also, isn't setWord 0 indexed (first word is 0)?
hmmmmm
function addOne(%num) { %num = %num + 1; }%x = 1;addOne(%x);echo(%x);
Booldals is correct. No Torque function can modify the variable pushed to it unless it is global. Even then, it creates a local copy of it.
Doesn't nextToken set a local variable in the callee's scope? I don't remember though because I never use it for anything.