[Home] [Downloads] [Search] [Help/forum]


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, 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.
[Folder]  Entire forum
-> [Folder]  MUSHclient
. -> [Folder]  Tips and tricks
. . -> [Subject]  Need help converting aliases and triggers from ZMUD to mushclient

Need help converting aliases and triggers from ZMUD to mushclient

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


Posted by Sarien   (1 post)  [Biography] bio
Date Mon 13 Jul 2009 03:12 PM (UTC)
Message
I am a long time ZMUD user. I have some basic questions that I have not been able to figure out in mushclient. First, the easy one which is a type of trigger I use. I use a lot of Echo's, but have not been able to figure out how to echo things in mushclient. an example is

#TRIGGER {You feel less tough.} {#ECHO ****RESIST DOWN!!!!!****}

When the mud sends me "You feel less tough." My client will echo
****Resist down!!!*****
on the following line.

The second, is the type of alias I use...

#ALIAS tt {#alias r {bearcharge %1};#alias t {ambush %1 onslaught};#alias p {dirt %1};#alias q {murder %1};#alias y {savage %1};#alias b {call 'beast call' %1};#alias x {c 'call lightning' %1};#alias v {call 'feral rage' %1};#alias de {dash east under %1};#alias dw {dash west under %1};#alias dn {dash north under %1};#alias ds {dash south under %1};#alias ht {hurl throat %1};#alias ch {choke %1}}

Basically, this particular alias creates about 10 other aliases when I use it. In example, when I type tt bear

it sets "r" to be bearcharge bear
"t" to be ambush bear onslaught" etc et al.

I'd really appreciate some help with this, as I want to give mushclient a whirl.

-S
[Go to top] top

Posted by Mm1mark   (24 posts)  [Biography] bio
Date Reply #1 on Mon 13 Jul 2009 04:34 PM (UTC)
Message
Trigger is simple. match string. convert to regular expression. send to output. put in send what you want sent to output

<triggers>
<trigger
enabled="y"
match="^You feel less tough\.$"
regexp="y"
send_to="2"
sequence="100"
>
<send>***RESIST DOWN!!!***</send>
</trigger>
</triggers>
[Go to top] top

Posted by Twisol   USA  (2,257 posts)  [Biography] bio
Date Reply #2 on Mon 13 Jul 2009 07:46 PM (UTC)

Amended on Mon 13 Jul 2009 07:50 PM (UTC) by Twisol

Message
The alias is very simple too, because you don't need to redefine those aliases every time you change your target.

<aliases>
<alias
match="^\s*tt\s+(.+?)\s*$"
enabled="y"
regexp="y"
ignore_case="y"
send_to="10"
sequence="100"
variable="mytarget"
>
<send>%1</send>
</alias>

<aliases>
<alias
match="^\s*r\s*$"
enabled="y"
regexp="y"
expand_variables="y"
sequence="100"
>
<send>bearcharge @mytarget</send>
</alias>
</aliases>


EDIT: In short, the tt alias sets a variable with your target, and the r alias will use that variable in the attack. You can add both aliases at once easily by copying all the text from <aliases> to </aliases> with CTRL+C, then going to the Aliases dialog in MUSHclient and hitting the Paste button at the bottom. The two aliases should appear in the list.

'Soludra' on Achaea

Blog: http://jonathan.com/
GitHub: http://github.com/Twisol
[Go to top] top

Posted by Nick Gammon   Australia  (23,043 posts)  [Biography] bio   Forum Administrator
Date Reply #3 on Tue 14 Jul 2009 01:09 AM (UTC)
Message
Various useful hints on getting started with aliases and triggers are in the "Getting Started" part of this forum:

http://www.gammon.com.au/forum/?bbtopic_id=120

- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] 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.


14,639 views.

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

Go to topic:           Search the forum


[Go to top] top

Quick links: MUSHclient. MUSHclient help. Forum shortcuts. Posting templates. Lua modules. Lua documentation.

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

[Home]


Written by Nick Gammon - 5K   profile for Nick Gammon on Stack Exchange, a network of free, community-driven Q&A sites   Marriage equality

Comments to: Gammon Software support
[RH click to get RSS URL] Forum RSS feed ( https://gammon.com.au/rss/forum.xml )

[Best viewed with any browser - 2K]    [Hosted at HostDash]