Alias firing on text from words, Need arguments to Alias

Posted by Grogan on Sat 23 May 2009 11:34 PM — 4 posts, 15,754 views.

#0
I use a lot of small aliases which I pass arguments to:

"wea playername" becomes "c 'weaken' playername"

"wea" by itself works mid-combat it just becomes
"c 'weaken'"

I have the alias set as: wea*
and Send set as: c 'weaken'%1

This works perfect for me. What I can't figure out how to do is stop the alias from firing on other commands:

invisibility spell alias = "inv*"

"invite playername" becomes "c 'invisibility'ite playername"

weaken spell alias = "wea*"

"wear chainmail" becomes "c 'weaken'r chainmail"

I've looked through the forum and I didn't see anyone else who had tried to do this. I read the documentation on alias syntax but I'm not clever enough to figure out a solution.

Thank in advance.
Australia Forum Administrator #1
See http://mushclient.com/faq point 50.
#2
Perfect! Thanks a lot. Keep up the great work by the way. I had used Zmud since I started playing on MUDs 10+ years ago. Just stumbled across MUSHclient a few weeks ago, and love it.

One more question though.
I don't suppose there's an option I missed somewhere that lets you split your mud window when scrolling up into the buffer, so you can see whats currently going on? I know Zmud has it built in, and I'm guessing that as versatile and flexible as MC is I'm sure it would be possible, if so I'd appreciate another point in the right direction. :)
Australia Forum Administrator #3
You can use Window menu -> New Window to make a second output window. One can be paused and one can be used to scroll back.

However as you are not the first to ask this recently I have written a small plugin that lets you do something similar to what you are requesting, automatically. See:

http://www.gammon.com.au/forum/?id=9454