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
➜ Tips and tricks
➜ Auto assist trigger
It is now over 60 days since the last post. This thread is closed.
Refresh page
Posted by
| Graham Hillman
(5 posts) Bio
|
Date
| Wed 06 Dec 2023 07:51 AM (UTC) |
Message
| Hi could someone please help?
Complete noob here,
I am looking to create a trigger that recognises what my group buddies are attacking and automatically attack the same mob
the line it would need to recognise is;
(Person) moves aggressively toward ......
and the send text would need to be something along the lines of;
Kill .....
Could someone please help me complete the dots?
Thank you | Top |
|
Posted by
| Fiendish
USA (2,534 posts) Bio
Global Moderator |
Date
| Reply #1 on Wed 06 Dec 2023 04:20 PM (UTC) |
Message
| |
Posted by
| Graham Hillman
(5 posts) Bio
|
Date
| Reply #2 on Thu 07 Dec 2023 07:26 AM (UTC) Amended on Sun 10 Dec 2023 07:00 AM (UTC) by Nick Gammon
|
Message
| Thank you but this video doesn't really explain what i am trying to achieve.
i have managed to work out that i can do
trigger - moves aggressively towards *
send - kill %1
issue now is that where the * is, is followed by punctuation (!) and when it is sent back to the MUD it doesnt like it. Any way to remove the punctuation?
<triggers>
<trigger
enabled="y"
match="moves aggressively towards *"
sequence="100"
>
<send>kill %1</send>
</trigger>
</triggers>
Thankyou | Top |
|
Posted by
| Nick Gammon
Australia (23,133 posts) Bio
Forum Administrator |
Date
| Reply #3 on Sun 10 Dec 2023 07:01 AM (UTC) |
Message
| Please copy/paste an example from the MUD of what you are trying to match on. |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | Top |
|
Posted by
| Graham Hillman
(5 posts) Bio
|
Date
| Reply #4 on Tue 12 Dec 2023 10:57 AM (UTC) |
Message
|
Nick Gammon said:
Please copy/paste an example from the MUD of what you are trying to match on.
An example of that i am trying to match. (Copy and paste)
moves aggressively towards the cockroach!
where "the cockroach!" could be anything.
I have in the match box - moves aggressively toward *
I have in the send box - kill %1
Sent to the mud is - kill the cockroach!
i need to remove the ! and "the" if possible please
thank you | Top |
|
Posted by
| Fiendish
USA (2,534 posts) Bio
Global Moderator |
Date
| Reply #5 on Tue 12 Dec 2023 05:08 PM (UTC) |
Message
|
<triggers>
<trigger
enabled="y"
match="moves aggressively towards *"
sequence="100"
send_to="12"
>
<send>
target = "%1"
target = target:gsub("!$", ""):gsub("^the ", "")
Send("kill " .. target)
</send>
</trigger>
</triggers>
|
https://github.com/fiendish/aardwolfclientpackage | 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.
4,815 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top