I have a question for you that's probably fairly simple, but I haven't been able to find the answer for it.
I'm wondering how to create an alias using a wildcard that may or may not have a value...let me give an example, because as mentioned, I'm not sure how to explain this clearly.
My alias would be:
^x (\w+)
And the script would basically cause it so that when I entered 'x guard' it would, for general purposes let's say, set my variable to whatever follows 'x', and then attack it. So my script would be:
target == matches[2]
send("kill "..target)
My question is, is it possible, and if so, how can I get it to allow me to enter just 'x' by itself and have it skip the variable assignment and go right to 'kill'ing the same target, without writing separate alias. I understand the basics of if then statements, and that I may need one, but I just don't know how to go about it.
I hope I managed to make that clear enough
![Confused :?](./images/smilies/icon_e_confused.gif)