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

Post Reply
Nilats
Posts: 11
Joined: Mon Aug 03, 2020 1:16 am

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

Post 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?

User avatar
demonnic
Posts: 884
Joined: Sat Dec 05, 2009 3:19 pm

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

Post 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

Nilats
Posts: 11
Joined: Mon Aug 03, 2020 1:16 am

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

Post by Nilats »

Thanks that works!

Post Reply