Alias; no arguments

Posted by Zeno on Tue 10 Aug 2004 06:23 AM — 2 posts, 7,646 views.

USA #0
Well I've begun to play my very first MUD again, so I'm back to creating a bunch of alias all over again.

There is a shield spell, cast shield, without an argument will cast on self. So I made an alias, cs, will do cast shield. But shield can also be targeted.

Want I want to do is, make it so if the cs alias has no argument, it will just do cast shield, and if it has an argument, it will do cast shield %1.

I tried cs * but cs without an arg won't work.

I believe I brought up a topic like this years ago, and I never figured it out.

I'm hoping this can be done with scripting, I plan on doing many alias like this.

[EDIT] Tch, nevermind. All I had to do was cs*.
Amended on Tue 10 Aug 2004 06:41 AM by Zeno
USA #1
You can also make it a regular expression, then use
^cs(.*)?$
cast shield%1