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

Gammon Forum

See www.mushclient.com/spam for dealing with forum spam. Please read the MUSHclient FAQ!

[Folder]  Entire forum
-> [Folder]  MUSHclient
. -> [Folder]  Plugins
. . -> [Subject]  Auto-Target Scripting
Home  |  Users  |  Search  |  FAQ
Username:
Register forum user name
Password:
Forgotten password?

Auto-Target Scripting

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


Posted by Thalinos   USA  (1 post)  [Biography] bio
Date Fri 08 Aug 2014 10:00 PM (UTC)
Message
In most of the MUDs I play, certain classes attacks are long to type, and have to have a target distinction. How would I write a script auto target the mob/player I am battling, using aliases for the attacks? I have the aliases already, just can't get the scripting to work right. Sorry to bug You with this...
[Go to top] top

Posted by Nick Gammon   Australia  (21,321 posts)  [Biography] bio   Forum Administrator
Date Reply #1 on Fri 08 Aug 2014 11:39 PM (UTC)
Message
You need to post some example MUD output. How would the script know what mob you are attacking?

- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] top

Posted by Nick Gammon   Australia  (21,321 posts)  [Biography] bio   Forum Administrator
Date Reply #2 on Fri 08 Aug 2014 11:41 PM (UTC)
Message
Thalinos said:

I have the aliases already, just can't get the scripting to work right.


Best to post what you have. We don't know what your aliases are, what your script is, and in what way it doesn't work.

Template:copying For advice on how to copy aliases, timers or triggers from within MUSHclient, and paste them into a forum message, please see Copying XML.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] top

Posted by Meerclar   USA  (733 posts)  [Biography] bio
Date Reply #3 on Sat 09 Aug 2014 06:07 AM (UTC)
Message
If you have aliases already, why not use %1 in the aliases to designate your target dynamically when you trigger the alias?

alias mm cast 'magic missile' %1
mm <target>

Meerclar - Lord of Cats
Coder, Builder, and Tormenter of Mortals
Stormbringer: Rebirth
storm-bringer.org:4500
www.storm-bringer.org
[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.


3,309 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 FutureQuest]