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 problem

Alias problem

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


Posted by Davidmartin   (4 posts)  Bio
Date Sat 02 Aug 2003 12:24 PM (UTC)

Amended on Sat 02 Aug 2003 12:26 PM (UTC) by Davidmartin

Message
I'm new to MUSHclient and the only experience with making aliases are the simple ones I had with Gmud. Well,my problem is that I have a set aliases that envenoms the weapons(One shortsword in my left another in my right)I am wielding with venoms but if I want to use different weapons (broadswords or rapiers) I have to change them all to fit the weapon description. My current aliases look like this using the venom aconite:

aco1 is the alias for my left hand and it sends:
envenom 5555(this is the number identification of my first shortsword) with aconite
and aco2 is the alias for the right and it sends:
envenom 6666(second shortsword) with aconite

I was wondering if there was any way for my aliases to change the number description according to what weapons I'm wielding



Top

Posted by Davidmartin   (4 posts)  Bio
Date Reply #1 on Sat 02 Aug 2003 12:27 PM (UTC)
Message
Crap...Sorry for posting this twice
Top

Posted by Poromenos   Greece  (1,037 posts)  Bio
Date Reply #2 on Sat 02 Aug 2003 01:04 PM (UTC)
Message
Just delete this one :)

Vidi, Vici, Veni.
http://porocrom.poromenos.org/ Read it!
Top

Posted by Nick Gammon   Australia  (23,173 posts)  Bio   Forum Administrator
Date Reply #3 on Sat 02 Aug 2003 09:33 PM (UTC)
Message
This has been asked a fair few times before, so try searching the forum. However the quick answer is, make one alias that simply sets the weapon number or name, eg.

match: weapon *
send: %1
send to: variable
variable name = weapon

Then the other aliases can use:

send: envenom @weapon with aconite
expand variables: checked

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by Davidmartin   (4 posts)  Bio
Date Reply #4 on Sun 03 Aug 2003 10:46 AM (UTC)
Message
Thanks Nick, you are a life saver. Sorry for asking something already asked before. I guess I need to look harder the next time a problem comes up.
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.


16,370 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.