Want to be able to type "dragX Y". X being a number 1-? and Y being a direction (n,s,e,w,u,d)
Example would be:
"drag3 n"
and have it return "drag 1.corpse drag 2.corpse drag 3.corpse n"
Thanks in advance!
How would I make this alias?
Re: How would I make this alias?
Your pattern would look like this: ^drag(\d+) (\w+)
And the code would look like this:
And the code would look like this:
The for loop should make all of the "drag #.corpse" parts and append them all together, and then you tack on the direction at the end. And given how it is set up, you still end up with a leading space, which you remove with the string.trim line.
Re: How would I make this alias?
Awesome. Works perfectly! Thanks:)