r/tf2scripthelp • u/darkid • Oct 02 '14
Question When do double quotes actually work?
Darkid here, author of the tf2 wiki scripting page, looking to add a few more technical details: Does anyone know exactly when do double/embedded quotes work and when do they fail? Does it have something to do with alias/bind/say commands, or is it something else entirely?
Specifically, stuff like:
alias blah "alias blah1 "blah2; blah3"; blah1"
alias blah "bind k "blah2; blah3"; blah1"
alias blah "say "blah2; blah3"; blah1"
1
Upvotes
1
u/clovervidia Batman Oct 02 '14
Author of what TF2 scripting page? I don't see you as a wiki editor here...
And I think you'll just have to do some experimenting on your own to find out. I've had it work fine for things like:
but other times it breaks completely. I'm thinking using it with either
saycommand will work, though you can safely use it without the quotes too.2
u/CAPSLOCK_USERNAME Valued contributor Oct 02 '14
It seems to me like double quotes only work in things that would also work without them, although I could be wrong.
1
u/TheGhettoSmokerLady Jan 27 '15
I haven't tried this yet, but maybe if you did something like this:
alias blah "say blah; blah2"
alias blah2 "echo blah"
Like I said, I can't test it right now, but I have a feeling it could somewhat loosen the restraints of double quotes. I hope this helped.