Twisol said:The parentheses are required (minus a couple exceptions). In Lua, a variable (i.e. Send) followed by parentheses is interpreted as a function call. Your second example doesn't have this syntactic cue, so Lua doesn't understand what you're trying to do.
Send(GetVariable("attackskill"))
This is quite clear. The sentence to to be sent is to be imbedded in parenthecis while the quotation marks have a different meaning. This was not clear to me. Thank you for the advice.
I noticed i had made a mistake in my previous post when i wrote that I wish to give the same command as in a within-alias script of "cast MySpell %1". I would of course like to send the command "cast @MySpell %1", that is send to the mud a command like "cast kick mule" or "cast heal Mazarin" or any similar command, ie. the spellname followed by my input.
Now my question is: how do I accomplish this? How do i write a command containing as well the contents of a variable as the input from the keyboard to the MUD?
Thank you.
//Mazarin
Nevermind. I found the solution. Thanks anyway.
//M.