I tried searching various helpfiles and searched this forum for any subject with alias but couldn't find exactly the answer I needed.
I programming an aliaas on aardwolf mushclient. I have tried to combine the following two aliases:
Note: I created a MushClient variable called Heal
Heal set to Cure Light
Both aliases have Enabled, Regular Expression and Expand Variables checked.
Alias 1:
^zz$
cast '@Heal'
Aliast 2:
^zz (.*)$
cast '@Heal' %1
This works great if type zz
I get cast 'cure light' (which is on me)
or typeing zz joe
I get cast 'cure light' joe
However if i remove Alias 1, whenever i just type zz
the mud returns : Unknown command please check help files.
It seems to require there be soemthing there to capture. I tried various combinations of ?, ?: and using a (.*|) to try to get it to work if nothing was there. Is this possible in regexp to have it match if nothing is there and have %1 just be ""
I programming an aliaas on aardwolf mushclient. I have tried to combine the following two aliases:
Note: I created a MushClient variable called Heal
Heal set to Cure Light
Both aliases have Enabled, Regular Expression and Expand Variables checked.
Alias 1:
^zz$
cast '@Heal'
Aliast 2:
^zz (.*)$
cast '@Heal' %1
This works great if type zz
I get cast 'cure light' (which is on me)
or typeing zz joe
I get cast 'cure light' joe
However if i remove Alias 1, whenever i just type zz
the mud returns : Unknown command please check help files.
It seems to require there be soemthing there to capture. I tried various combinations of ?, ?: and using a (.*|) to try to get it to work if nothing was there. Is this possible in regexp to have it match if nothing is there and have %1 just be ""