Need help converting aliases and triggers from ZMUD to mushclient

Posted by Sarien on Mon 13 Jul 2009 03:12 PM — 4 posts, 20,892 views.

#0
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
#1
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>
USA #2
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.
Amended on Mon 13 Jul 2009 07:50 PM by Twisol
Australia Forum Administrator #3
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