How do you get /write to perform an operation like -ds on a multi-word string like $3-? I'm trying to make a 'give' command to let users give items from their inventories to one another, and it only works with items that have one-word names and no spaces.
"give user charmstone" will take 'charmstone' out of $nick.txt and put it in user.txt as expected. However, "give user -6 readin' glasses" will give user.txt the -6 readin' glasses, but won't delete the original item from $nick.txt.
I've tried every possible way of setting up /write that I can think of - enclosing it in $+(), quotes, and even using vars to recombine $3 $4 $5..., but simply can't get /write to work with multi-word strings.
write inv $+ $2 $+ .txt $3-
write $+(-dw,"$3-") inv $+ $nick $+ .txt
^ What's wrong with it? First line works fine, second one never handles anything with spaces, even though the helpfile claims "" will handle them...
Cheers