Page 1 of 1

Having an issue with Alias only working if I put in a wildcard

Posted: Sat Oct 24, 2020 8:30 pm
by Nilats
My offensive aliases are pared down to 2 letters: zz xx cc etc
They work if i put in ZZ ORC but dont fire if I just type ZZ. There may be times where I'm engaged and its unnecessary to type out the victim.
I've tried multiple ways to put in the alias

The simplest way I thought would be:

^xx$
command: cast 'chaotic r'

type is regx ( greyed out so i cant change it) and no LUA code entered. Does that seem right?

Re: Having an issue with Alias only working if I put in a wildcard

Posted: Sun Oct 25, 2020 12:46 am
by demonnic
use the pattern
^zz(.*)?$
leave command blank, and in the lua code section
Code: [show] | [select all] lua
if matches[2] then
  send("do the zz thing at" .. matches[2])
else
  send("do the zz thing")
end

Re: Having an issue with Alias only working if I put in a wildcard

Posted: Mon Oct 26, 2020 5:52 pm
by Nilats
Thanks that works!