Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, 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.
Due to spam on this forum, all posts now need moderator approval.
Entire forum
➜ MUSHclient
➜ Plugins
➜ Auto-Target Scripting
It is now over 60 days since the last post. This thread is closed.
Refresh page
Posted by
| Thalinos
USA (1 post) 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... | Top |
|
Posted by
| Nick Gammon
Australia (23,133 posts) 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 | Top |
|
Posted by
| Nick Gammon
Australia (23,133 posts) 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.
|
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 | Top |
|
Posted by
| Meerclar
USA (733 posts) 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 | 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.
15,849 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top