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


Register forum user name Search FAQ

Gammon Forum

[Folder]  Entire forum
-> [Folder]  MUSHclient
. -> [Folder]  General
. . -> [Subject]  alias problem

alias problem

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


Posted by Epic   (1 post)  [Biography] bio
Date Thu 22 Apr 2004 06:19 AM (UTC)
Message
Hi...

What I'm trying to do, is have an alias that will target
whatever mob I'm currently fighting. Such as, I could
type 'kill' and it will automatically send an attack
towards the mob, rather than having to manually target it.

Is this possible? If so, would like to be pushed in the
right direction...

Thanks,

Epic
[Go to top] top

Posted by Nick Gammon   Australia  (22,975 posts)  [Biography] bio   Forum Administrator
Date Reply #1 on Thu 22 Apr 2004 07:20 AM (UTC)
Message
Do you mean it is to automatically work out which mob, or have things sent in its direction once you decide?

One possibility is to have a trigger like:

* attacks you

The "*" is a wildcard matching the mob name (you need to change the trigger a bit to match exactly what you get) and the trigger could send %1 (the first wildcard) to a variable "target".

Then in other aliases you do things like:

kick @target

with "expand variables" set.

If you want to manually decide the target, an alias like this will do it:


<aliases>
  <alias
   match="target *"
   enabled="y"
   variable="target"
   send_to="9"
   sequence="100"
  >
  <send>%1</send>
  </alias>
</aliases>


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


7,644 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]