# repeat alias
Re: # repeat alias
I think you have it right, the matches table is overwritten when a new alias is called, so you need to save the relevant values before you call expandAlias.
Re: # repeat alias
I fixed this my making matches local like this:
Perhaps this could be put in the package above at the start of this thread?
Thanks!
U
Code: Select all
local myMatches = matches
for i = 1, tonumber(myMatches[2]) do
expandAlias(myMatches[3])
end
Thanks!
U
Wod
CthulhuMUD
www.cthulhumud.com
A hugely entertaining MUD based on the horror writings of HP Lovecraft.
CthulhuMUD
www.cthulhumud.com
A hugely entertaining MUD based on the horror writings of HP Lovecraft.
Re: # repeat alias
Patched and tested, seems to work as desired.
- Attachments
-
- repeat.xml
- (634 Bytes) Downloaded 747 times
Re: # repeat alias
I like to be able to do things like: 13w or 9ne
So to do that you can change it to: ^(\d+)(.*)$
So to do that you can change it to: ^(\d+)(.*)$