Aliases

Posted by Akisohida on Wed 23 Feb 2005 07:54 PM — 5 posts, 19,946 views.

#0
Ok, I have a not-so-simple (to me) question. I just spent the last hour trying to figure out (with no luck) how to set an alias on MUSHclient so I can type...ohh..random example from a MUD..there is a pixie in the room and I have the skill fire breath. Ok, I know I want a variable that makes fb become fire breath @target and I can easilery set that but I can not set up the alias that makes it so I type tt pixie and then pixie becomes the @target field. Help! How do I make tt pixie target the pixie with any skills I then type? Oh! And just in case I said it stupidly, that tt field with change every time I type in tt again. So I can go from fighting a pixy to fighting a wolf by typing tt wolf and then fb would fire breath the wolf.
Amended on Wed 23 Feb 2005 07:59 PM by Akisohida
USA #1
This should be in the Mushclient section, but anyway...

http://www.gammon.com.au/forum/bbshowpost.php?bbsubject_id=4695
gives a good rundown. Of course, if you search the mushclient section for target (or target set variable) you'll get a rather large list of things to choose from for various situations.
#2
Umm..that made no sense to me. I am a little dumb about computers. If it is not too much trouble, can you babytalk me though what I put and where to make it so I can tt an NPC to make it my target? Preferrably 'ok, cut and pase this to alias title: blah blah blah' :)
USA #3
<aliases>
<alias
match="tt *"
enabled="y"
echo_alias="y"
variable="target"
send_to="9"
sequence="100"
>
<send>%1</send>
</alias>
</aliases>

that will set whatever you target to the "target" variable. Which you can then use in other aliases with 'expand variables'.
#4
Ignore this post. The attackign is easy. Just punch set to 'punch @target'