Register forum user name Search FAQ

Gammon Forum

Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the password reset link.

Due to spam on this forum, all posts now need moderator approval.

 Entire forum ➜ MUSHclient ➜ General ➜ Alias; no arguments

Alias; no arguments

It is now over 60 days since the last post. This thread is closed.     Refresh page


Posted by Zeno   USA  (2,871 posts)  Bio
Date Tue 10 Aug 2004 06:23 AM (UTC)

Amended on Tue 10 Aug 2004 06:41 AM (UTC) by Zeno

Message
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*.

Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org
Top

Posted by Flannel   USA  (1,230 posts)  Bio
Date Reply #1 on Tue 10 Aug 2004 08:30 AM (UTC)
Message
You can also make it a regular expression, then use
^cs(.*)?$
cast shield%1

~Flannel

Messiah of Rose
Eternity's Trials.

Clones are people two.
Top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


5,868 views.

It is now over 60 days since the last post. This thread is closed.     Refresh page

Go to topic:           Search the forum


[Go to top] top

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.