Second issue that I'm unsure of how to go about is making a command that uses variables. For example, I have an elevator I wish to parse the word "set" followed by stuff like "first", so that when the owner says "set first", it'll set its current position as the first floor. I know one way to go about it, but it requires that I wrote several chunks of code.. my current implimentation is the following:
llListen(4338,"","","Ground"

llListen(4338,"","","First"

llListen(4338,"","","Second"

llListen(4338,"","","Third"

llListen(4338,"","","Fourth"

llListen(4338,"","","Fifth"

llListen(4338,"","","Sixth"

llListen(4338,"","","Seventh"

llListen(4338,"","","Eighth"

llListen(4338,"","","Roof"

Which it refers to:
if(m=="Ground"

{
end=pos;
llMoveToTarget(end,1.0);
llTriggerSound("Elevator Call", 1.0);
}
if(m=="First"

{
end=<80,100,58.675>;
llMoveToTarget(end,1.0);
llTriggerSound("Elevator Call", 1.0);
}
And so-on. This is annoyingly repetitive, so I'm wanting to shrink it down to use the same hunk of code, using a "set" command to set the vectors in.. well, a vector for each floor, so that all I end up using is one hunk of code that has all the if statements in that.. I'm guessing it's an if/else statement string inside an if statement, but I don't know how to call up a second word. Like in C++ and other languages, be it scripting or otherwise, it's be $2 to return the second string in a given statement, and $3 for the third etc..
Any help is greatly appreciated in both respects.