How do you make a Targeting alias?
How do you make a Targeting alias?
Can someone tell us? And then how do we use it to attack etc.?
Re: How do you make a Targeting alias?
Is there a way to call a variable from within the command line so that if I have the simple targetting alias
(Assuming I don't want to set up a separate SMITE or PUNCH alias)
And I've already defined t by typing "t <mob>", I can then do something like "smite tar" or "punch tar" from within the command line?Pattern: ^t (.*)$
Script:
tar = matches[2]
(Assuming I don't want to set up a separate SMITE or PUNCH alias)
Re: How do you make a Targeting alias?
Not from within the command line, no. The command line only accepts raw text and sends exactly what you type in.
You can create an alias, however, that can reference the variables you need.
For example, you could do something like:
Syntax: ^punch(?: (.+))?$
Script:
This is an absurd example, because you could do the exact same thing by just using:
Syntax: ^punch$
Script:
You can create an alias, however, that can reference the variables you need.
For example, you could do something like:
Syntax: ^punch(?: (.+))?$
Script:
Which would change depending on how you use it. You could save your target as "vadi", for example, and just type in "punch" to make it punch vadi. But if you wanted to punch me instead without changing your target you could type in "punch tsuujin" and it would bypass needing the second argument and use the variable instead.
This is an absurd example, because you could do the exact same thing by just using:
Syntax: ^punch$
Script:
and it would still work exactly the same way, but it's still a good example of why aliases are cool and flexible. That said, I have used this technique heavily before if I always want to do some sort of script whenever the punch command is sent other than just punching.